Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: gorf23 on November 10, 2020, 07:22:51 PM

Title: mc.mcAxisGetMachinePos help
Post by: gorf23 on November 10, 2020, 07:22:51 PM
if i use mc.mcAxisGetMachinePos in a macro i don't seem to get the correct value returned every time.

i run the macro i get the correct value, then without moving the axis i run the same macro and now get a value of 0.0 even though its still showing 3.0 in the dro..
so i either get a 0.0 or the correct value returned, so if i want to move the axis back to the machine position at the end of the macro sometimes it go's to the correct position but other times it go's back to 0... and that's my home position

any suggestion?..

thanks gary