Welcome! Log In Create A New Profile

Advanced

Cannot invert Z probe value

Posted by Tennysballs 
Cannot invert Z probe value
December 21, 2017 08:10AM
So I am using an NPN NO Inductive sensor as my z probe for my delta build. I've tried everything I can find on the topic but it always reads 1000 when out of range of the bed and 0 after it reaches sensor distance- I cannot get to invert. Per documentation I have it connected- output > BAT43 diode > E0 STP, ground of sensor to E0 GND, and Vin to Vin. Actual extruder is connected to E1 motor. endstops are mechanical switches wired according to documentation. Here is a copy of my config file that I got from the rep rap generator.


; Endstops
M574 X1 Y1 S1 ; Set active high endstops
M574 E0 S0
M558 P4 X0 Y0 Z1 H3 F200 T5000 ; Set Z probe type to switch, the axes for which it is used and the dive height + speeds H5 F120 T6000
G31 P0 X0 Y0 Z0 P500 ; Set Z probe trigger value, offset and trigger height
M557 R90 S20 ; Define mesh grid

; Drives
M569 P0 S1 ; Drive 0 goes forwards
M569 P1 S0 ; Drive 1 goes forwards
M569 P2 S1 ; Drive 2 goes forwards
M569 P3 S1 ; Drive 3 goes forwards
M584 X0 Y1 Z2 E4 ; Apply custom drive mapping

The setup got a little confusing for me because of the Duet designations on the board and what the generator was calling for so I suspect i may have messed up in the definitions of things. Another observation is that the endstop LEDs on the board are on until home is contacted. For the sensor, it's the opposite- LED on sensor and on board are on/off at the same time.

Ideas anyone?
Re: Cannot invert Z probe value
December 21, 2017 01:44PM
As described at [duet3d.com] you need to add parameter I1 (that's letter-i followed by digit-1) to your M558 command, assuming you are not using very old firmware.



Large delta printer [miscsolutions.wordpress.com], Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Cannot invert Z probe value
December 21, 2017 09:15PM
Quote
dc42
As described at [duet3d.com] you need to add parameter I1 (that's letter-i followed by digit-1) to your M558 command, assuming you are not using very old firmware.

That may be where I got confused. For some reason, any time I tried that I used the pipe ' | ' character instead of capital I. I will try that and report back. Thank you
Re: Cannot invert Z probe value
December 23, 2017 10:08AM
Coming as a shock to probably no one, that fixed the issue- thank you.
Re: Cannot invert Z probe value
April 07, 2019 12:24AM
This doesn't work for me! Been fighting with this for many hours now sad smiley

; Endstops
M574 X1 Y2 S1 ; Set active high endstops

; Z-Probe
M574 Z2 S2 ; Set endstops controlled by probe <-- tried I0 here too, didn't work
M558 P5 H5 Z1 I0 F120 T6000 ; Set Z probe type to modulated and the dive height + speeds
G31 P500 X0 Y0 Z4.2 ; Set Z probe trigger value, offset and trigger height
M557 X50:250 Y50:250 S20 ; Define mesh grid

Firmware:
Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
Firmware Electronics: Duet WiFi 1.02 or later
Firmware Version: 2.03beta3 (2019-03-25b6)
WiFi Server Version: 1.20beta2
Web Interface Version: 1.19.3


--------------------------------------------------------
Custom Hypercube 3D
- Ramps 1.4 w/ smart LCD controller
- 305mm x 305mm x 400mm
- 750w Silicon heater

Custom Mendel90
(Backup printer - Old reliable!)
Re: Cannot invert Z probe value
April 07, 2019 05:14AM
Quote
Mogal
This doesn't work for me! Been fighting with this for many hours now sad smiley

; Endstops
M574 X1 Y2 S1 ; Set active high endstops

; Z-Probe
M574 Z2 S2 ; Set endstops controlled by probe <-- tried I0 here too, didn't work
M558 P5 H5 Z1 I0 F120 T6000 ; Set Z probe type to modulated and the dive height + speeds
G31 P500 X0 Y0 Z4.2 ; Set Z probe trigger value, offset and trigger height
M557 X50:250 Y50:250 S20 ; Define mesh grid

Firmware:
Firmware Name: RepRapFirmware for Duet 2 WiFi/Ethernet
Firmware Electronics: Duet WiFi 1.02 or later
Firmware Version: 2.03beta3 (2019-03-25b6)
WiFi Server Version: 1.20beta2
Web Interface Version: 1.19.3

To invert the Z probe reading, use i1 in the M558 command, not i0.



Large delta printer [miscsolutions.wordpress.com], Robotdigg SCARA printer, Crane Quad and Ormerod

Disclosure: I design Duet electronics and work on RepRapFirmware, [duet3d.com].
Re: Cannot invert Z probe value
April 07, 2019 10:29AM
Thanks DC42, I thought I had tried that as well, guess I didn't.
It's working now, thanks!


--------------------------------------------------------
Custom Hypercube 3D
- Ramps 1.4 w/ smart LCD controller
- 305mm x 305mm x 400mm
- 750w Silicon heater

Custom Mendel90
(Backup printer - Old reliable!)
Sorry, only registered users may post in this forum.

Click here to login