Hello Guest it is February 28, 2021, 08:18:02 PM

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

0 Members and 1 Guest are viewing this topic.

Offline gorf23

*
  •  163 163
    • 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

*
  •  753 753
  • 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
Theres always time for a choccy biccy