I've been trying to test a tool zeroing script and got stuck with G31 command.
For debugging purposes I went to MDI screen and tried the command there and it works funny.
I enter for example G31X10F50 and each time I execute this same command (I tried a hundred times) either X does not move at all or it moves some random length like 0.0125mm, 0.0062, etc.
If I try G0 commands it works perfectly. Same thing on Y axis.
I also suspected that there could be a problem with the probe (I made it myself) receiving 'noise' and giving false signals, so I created a brain that presses the RESET button when the probe signal goes active and this never happens (no reset at all).
Any clues?? What am I missing?

??