Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: gorf23 on August 31, 2018, 02:04:10 PM

Title: reading and displaying axix position?
Post by: gorf23 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
Title: Re: reading and displaying axix position?
Post by: DazTheGas on September 04, 2018, 02:46:42 PM
You need to take into account that the dro`s output is formatted.

DazTheGas