591
Mach4 General Discussion / Re: Resetting machine coordinates in G code program
« on: July 22, 2015, 06:54:53 AM »
have you tried it in the editor with a g code running it works that way
local inst = mc.mcGetInstance(0);
mc.mcCntlCycleStop(inst);
mc.mcAxisHome(inst, 0);
wx.wxSleep(5);
mc.mcCntlCycleStart(inst);
this works in a button it`s not the best way to do it
local inst = mc.mcGetInstance(0);
mc.mcCntlCycleStop(inst);
mc.mcAxisHome(inst, 0);
wx.wxSleep(5);
mc.mcCntlCycleStart(inst);
this works in a button it`s not the best way to do it