i tried yours, but you used 143 encoder count 3. I used 170 encoder count 0 I believe.
That was the dro input number I found to correspond with the z axis DRO in the mach 3 settings tab. The brain I built is identical to yours other than that. The less than or greater than statements work fine as i toggle the DRO above or below the Z position, but when the encoder count, and z position match, I do not get the Encoder Count = Z position to work. Where in mach 3 does 143 encoder count 3 correspond to?