Hello Guest it is April 27, 2024, 08:58:17 PM

Author Topic: DRO values problem  (Read 1106 times)

0 Members and 1 Guest are viewing this topic.

DRO values problem
« on: September 04, 2023, 06:03:34 AM »
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
IMG-20230904-124946" border="0

2 pic
IMG-20230904-125033" border="0

With all respect, Andrew.