171
Mach4 General Discussion / Re: Jogging while doing a tool change?
« on: October 24, 2017, 04:10:42 PM »
A simpler way would be to go into the tooltable and add 2 user fields ie XProbe and YProbe and make these integers, you can then call these like
obviously you would have to populate the table for all tools which should be straight forward.
DazTheGas
Code: [Select]
local xpos = mc.mcToolGetDataExInt(inst, selectedtool, XProbe)
local ypos = mc.mcToolGetDataExInt(inst, selectedtool, YProbe)
mc.mcCntlGcodeExecuteWait(inst,"G90 G53 G0 Z0.0 \n X"..xpos.." Y"..ypos)
obviously you would have to populate the table for all tools which should be straight forward.
DazTheGas