So I set out to make a zero all button and came up with this code....
local inst = mc.mcGetInstance()
rc = mc.mcAxisSetPos(inst,0,0)
rc = mc.mcAxisSetPos(inst,0,1)
rc = mc.mcAxisSetPos(inst,0,2)
rc = mc.mcAxisSetPos(inst,0,3)
What happens is after I make sure that everything is zero and machine is referenced (IE: current pos and machine coord = 0), I run this code and it sets a work offset on X at -3.000 and does not affect Y, Z or A at all. If I repeat without making sure machine coord is at zero, it will set random numbers as offsets for all axes.
Anyone seen anything like this? I don't ever use offsets. When I run mc.mcAxisSetPos(inst,0,0) it should set current position on X to zero. Why does it always set X current pos to 3.000 and also set a fixture offset on X to -3.000? Strange part is that this seems to work on my M4 PC at work, which is licensed, but not here at home, which is in demo mode.
What I want to do is create a button to set current position on all axes to zero, then another button the set machine zero to the same point.
Thanks