Z-Probe trigger inverted after update to RRF3.0
-
I just updated my Duet's firmware from 1.19 to 3.0. I'm working on fixing my config.g now for the new firmware, but things are pretty different and it's throwing me off. My Z-probe (inductive sensor) wiring seems to be fine. The little led on the sensor lights up when I bring metal within a couple mm of the probe, and the duet recognizes that the sensor is triggered as well. The problem is, it seems the probe's input is inverted. It regularly shows '1000', and when I trigger it, the input jumps to '0'. I've tried messing with the M558 code in my config file, but none of the combos I've tried have worked, and the RepRap Configuration tool is confusing me.
The following was given to me in the config.g generated by the configuration tool with the parameters that I thought were correct.
; Endstops M574 X1 S1 P"xstop" ; configure active-high endstop for low end on X via pin xstop M574 Y2 S1 P"ystop" ; configure active-high endstop for high end on Y via pin ystop M574 Z1 S2 ; configure Z-probe endstop for low end on Z ; Z-Probe M558 P1 C"zprobe.in" H5 F120 T6000 ; set Z probe type to unmodulated and the dive height + speeds G31 P500 X21.5 Y-26.5 Z0.8232 ; set Z probe trigger value, offset and trigger height M557 X23.25:473.25 Y28.25:478.25 S50 ; define mesh grid
Help please! Thank you in advanced, guys
-
@wcj97 said in Z-Probe trigger inverted after update to RRF3.0:
M558 P1 C"zprobe.in" H5 F120 T6000
try this
M558 P1 C"!zprobe.in" H5 F120 T6000
-
@SIam Still didn't work
On another note, my inductive probe is wired as shown at:
https://duet3d.dozuki.com/Wiki/Connecting_a_Z_probe#Section_NPN_output_normally_open_inductive_or_capacitive_sensor -
@wcj97 said in Z-Probe trigger inverted after update to RRF3.0:
M574 Z1 S2
and if you remove this line
M574 Z1 S2
-
@SIam Nope, still inverting the input.
Is the "I" parameter still needed in RRF3.0 to invert the input? I know the M558 in my config.g from RRF1.19 had that included
-
@SIam Wait! I take that back. I changed the sensor type to "P5" in addition to what you said and that seems to have worked. Thank you for the help! Now on to my next struggle
-
@SIam said in Z-Probe trigger inverted after update to RRF3.0:
@wcj97 said in Z-Probe trigger inverted after update to RRF3.0:
M558 P1 C"zprobe.in" H5 F120 T6000
try this
M558 P1 C"!zprobe.in" H5 F120 T6000
If it's an NPN-output probe then you also need to enable the pullup resistor:
M558 P1 C"!^zprobe.in" H5 F120 T6000
-
@dc42 Just curious, what exactly is the pullup resistor doing? Currently I don't have that on, but I'm assuming you have a good reason for enabling the pullup resistor. Is it just an over-current protection for the sensor/board?
-
@wcj97 said in Z-Probe trigger inverted after update to RRF3.0:
@dc42 Just curious, what exactly is the pullup resistor doing? Currently I don't have that on, but I'm assuming you have a good reason for enabling the pullup resistor. Is it just an over-current protection for the sensor/board?
An NPN-output sensor can only pull its output to ground. When it isn't doing that, you need something else to pull the Z probe input high. The pullup resistor does that. Without it, you would be relying on the leakage of the over-voltage protection diode.
-
@dc42 what would the code line look like on a duet 3 mainboard ,for a Z probe NPN sensor, running RRF 3.4? I am having trouble.
-
@damaged_goods said in Z-Probe trigger inverted after update to RRF3.0:
@dc42 what would the code line look like on a duet 3 mainboard ,for a Z probe NPN sensor, running RRF 3.4? I am having trouble.
-
@damaged_goods It's literally 4 posts up
If it's an NPN-output probe then you also need to enable the pullup resistor:
M558 P1 C"!^zprobe.in" H5 F120 T6000
-
@phaedrux said in Z-Probe trigger inverted after update to RRF3.0:
@damaged_goods It's literally 4 posts up
If it's an NPN-output probe then you also need to enable the pullup resistor:
M558 P1 C"!^zprobe.in" H5 F120 T6000
Or as above but preferanly with probe type P5 or P8.
-
-
@damaged_goods which IO port on the Duet 3 have you connected the Z probe to? If you connected it to IO0 then you should use:
M558 P8 C"!io0.in"
plus whatever extra parameters you need in the M558 command.
-
@dc42 that's better and the probe is working. Thank you
-
-