Hello Guest it is April 19, 2024, 03:12:45 PM

Author Topic: reading and displaying axix position?  (Read 961 times)

0 Members and 1 Guest are viewing this topic.

Offline gorf23

*
  •  189 189
    • View Profile
reading and displaying axix position?
« on: August 31, 2018, 02:04:10 PM »
xpos = scr.GetProperty("droCurrentX", "Value")
ProbePos = mc.mcAxisGetProbePos(inst, mc.Z_AXIS, 2)
zpos = mc.mcAxisGetPos(inst, 2)

Have tried these to read the current axis position and then display the value but the values are always different than mach4's dro on screen
both user and machine position are not the same as what is shown on the DRO's on the mach4 screen, as to my printout displays in a messgebox so I assume I am doing something wrong

thanks gary

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: reading and displaying axix position?
« Reply #1 on: September 04, 2018, 02:46:42 PM »
You need to take into account that the dro`s output is formatted.

DazTheGas
New For 2022 - Instagram: dazthegas