Hello Guest it is October 21, 2021, 08:28:00 AM

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

0 Members and 1 Guest are viewing this topic.

Offline gorf23

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

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