Hello!
Sorry about my Enlish!
I'm here for the first time, so I'm not sure if I wrote in that section of the forum?  
I recently started studying CNC machines and the Mach3 program.  
Now I'm trying to write simple scripts, but I've run into a problem that I can't figure out.  
There are commands GetDRO(0), GetDRO(1), GetDRO(2), which should return the value of the working coordinates for the X, Y, Z axes. 
When the values of the coordinates of the axes on the DRO are not equal to 0 (1 pic), then the values obtained correspond to the real values on the DRO screen.  
But as soon as I manually reset the value of the axes to 0 (2 pic), I run the script to find out the coordinates, the variables turn out to be not 0 at all. I tried using GetOEMDRO, but there is no result.  What can I be doing wrong?  Can someone help me figure out the problem?  
1 pic

2 pic

With all respect, Andrew.