0 Members and 1 Guest are viewing this topic.
function M6() local inst = mc.mcGetInstance(); local selectedtool = mc.mcToolGetSelected(inst) local currenttool = mc.mcToolGetCurrent(inst) if selectedtool == currenttool then return mc.mcCntlSetLastError(inst, "ToolChange Activated but Not Required") else mc.mcCntlGcodeExecuteWait(inst,"G90 G53 G0 Z0.0") mc.mcCntlGcodeExecuteWait(inst,"G90 G53 G0 X260 Y50") local changetoo = mc.mcToolGetDesc(inst,selectedtool) wx.wxMessageBox("Please change to tool number "..selectedtool.." "..changetoo.." and press ok to continue") wx.wxMessageBox('Toolchange finished') endendif (mc.mcInEditor() == 1) then M6()end