<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Cannot invert Z probe value</title>
        <description> So I am using an NPN NO Inductive sensor as my z probe for my delta build. I&#039;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 &amp;gt; BAT43 diode &amp;gt; 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&#039;s the opposite- LED on sensor and on board are on/off at the same time. 

Ideas anyone?</description>
        <link>https://reprap.org/forum/read.php?416,801834,801834#msg-801834</link>
        <lastBuildDate>Tue, 17 Mar 2026 07:44:48 -0400</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://reprap.org/forum/read.php?416,801834,850799#msg-850799</guid>
            <title>Re: Cannot invert Z probe value</title>
            <link>https://reprap.org/forum/read.php?416,801834,850799#msg-850799</link>
            <description><![CDATA[ Thanks DC42, I thought I had tried that as well, guess I didn't.<br />
It's working now, thanks!]]></description>
            <dc:creator>Mogal</dc:creator>
            <category>Duet</category>
            <pubDate>Sun, 07 Apr 2019 10:29:28 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?416,801834,850780#msg-850780</guid>
            <title>Re: Cannot invert Z probe value</title>
            <link>https://reprap.org/forum/read.php?416,801834,850780#msg-850780</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>Mogal</strong><br />
This doesn't work for me! Been fighting with this for many hours now :(<br />
<br />
; Endstops<br />
M574 X1 Y2 S1                            ; Set active high endstops<br />
<br />
; Z-Probe<br />
M574 Z2 S2                                   ; Set endstops controlled by probe &lt;-- tried I0 here too, didn't work<br />
M558 P5 H5 Z1 I0 F120 T6000     ; Set Z probe type to modulated and the dive height + speeds<br />
G31 P500 X0 Y0 Z4.2                   ; Set Z probe trigger value, offset and trigger height<br />
M557 X50:250 Y50:250 S20         ; Define mesh grid<br />
<br />
Firmware:<br />
Firmware Name:	        RepRapFirmware for Duet 2 WiFi/Ethernet<br />
Firmware Electronics:	Duet WiFi 1.02 or later<br />
Firmware Version:    	2.03beta3 (2019-03-25b6)<br />
WiFi Server Version:	1.20beta2<br />
Web Interface Version:	1.19.3</div></blockquote>
<br />
To invert the Z probe reading, use i1 in the M558 command, not i0.]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Duet</category>
            <pubDate>Sun, 07 Apr 2019 05:14:10 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?416,801834,850774#msg-850774</guid>
            <title>Re: Cannot invert Z probe value</title>
            <link>https://reprap.org/forum/read.php?416,801834,850774#msg-850774</link>
            <description><![CDATA[ This doesn't work for me! Been fighting with this for many hours now :(<br />
<br />
; Endstops<br />
M574 X1 Y2 S1                            ; Set active high endstops<br />
<br />
; Z-Probe<br />
M574 Z2 S2                                   ; Set endstops controlled by probe &lt;-- tried I0 here too, didn't work<br />
M558 P5 H5 Z1 I0 F120 T6000     ; Set Z probe type to modulated and the dive height + speeds<br />
G31 P500 X0 Y0 Z4.2                   ; Set Z probe trigger value, offset and trigger height<br />
M557 X50:250 Y50:250 S20         ; Define mesh grid<br />
<br />
Firmware:<br />
Firmware Name:	        RepRapFirmware for Duet 2 WiFi/Ethernet<br />
Firmware Electronics:	Duet WiFi 1.02 or later<br />
Firmware Version:    	2.03beta3 (2019-03-25b6)<br />
WiFi Server Version:	1.20beta2<br />
Web Interface Version:	1.19.3]]></description>
            <dc:creator>Mogal</dc:creator>
            <category>Duet</category>
            <pubDate>Sun, 07 Apr 2019 00:24:50 -0400</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?416,801834,802122#msg-802122</guid>
            <title>Re: Cannot invert Z probe value</title>
            <link>https://reprap.org/forum/read.php?416,801834,802122#msg-802122</link>
            <description><![CDATA[ Coming as a shock to probably no one, that fixed the issue- thank you.]]></description>
            <dc:creator>Tennysballs</dc:creator>
            <category>Duet</category>
            <pubDate>Sat, 23 Dec 2017 10:08:21 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?416,801834,801924#msg-801924</guid>
            <title>Re: Cannot invert Z probe value</title>
            <link>https://reprap.org/forum/read.php?416,801834,801924#msg-801924</link>
            <description><![CDATA[ <blockquote class="bbcode"><div><small>Quote<br /></small><strong>dc42</strong><br />
As described at [<a href="https://duet3d.com/wiki/Connecting_a_Z_probe#NPN_output_normally-open_inductive_or_capacitive_sensor" target="_blank"  rel="nofollow">duet3d.com</a>] 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.</div></blockquote>
<br />
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]]></description>
            <dc:creator>Tennysballs</dc:creator>
            <category>Duet</category>
            <pubDate>Thu, 21 Dec 2017 21:15:32 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?416,801834,801882#msg-801882</guid>
            <title>Re: Cannot invert Z probe value</title>
            <link>https://reprap.org/forum/read.php?416,801834,801882#msg-801882</link>
            <description><![CDATA[ As described at [<a href="https://duet3d.com/wiki/Connecting_a_Z_probe#NPN_output_normally-open_inductive_or_capacitive_sensor" target="_blank"  rel="nofollow">duet3d.com</a>] 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.]]></description>
            <dc:creator>dc42</dc:creator>
            <category>Duet</category>
            <pubDate>Thu, 21 Dec 2017 13:44:36 -0500</pubDate>
        </item>
        <item>
            <guid>https://reprap.org/forum/read.php?416,801834,801834#msg-801834</guid>
            <title>Cannot invert Z probe value</title>
            <link>https://reprap.org/forum/read.php?416,801834,801834#msg-801834</link>
            <description><![CDATA[ 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 &gt; BAT43 diode &gt; 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. <br />
<br />
<br />
; Endstops<br />
M574 X1 Y1 S1 			  ; Set active high endstops<br />
M574 E0 S0             <br />
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<br />
G31 P0 X0 Y0 Z0 P500                 ; Set Z probe trigger value, offset and trigger height<br />
M557 R90 S20                      ; Define mesh grid<br />
<br />
; Drives<br />
M569 P0 S1                        ; Drive 0 goes forwards<br />
M569 P1 S0                        ; Drive 1 goes forwards<br />
M569 P2 S1                        ; Drive 2 goes forwards<br />
M569 P3 S1                        ; Drive 3 goes forwards<br />
M584 X0 Y1 Z2 E4                  ; Apply custom drive mapping<br />
<br />
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. <br />
<br />
Ideas anyone?]]></description>
            <dc:creator>Tennysballs</dc:creator>
            <category>Duet</category>
            <pubDate>Thu, 21 Dec 2017 08:10:50 -0500</pubDate>
        </item>
    </channel>
</rss>
