I'm writing a script which involves using G59 fixture to locate my spindle and router setup to a specific point.
After the code has run i want it to return to the current fixture for example G54/G55.
Anyone who knows with api or variable i need to call and save to get this information?
I've looked trough the list, but don't seem to find the aswer to my question.
Is this even possible?
added som code to show what i want to do:
function zControl.ProbeMBZ()
mc.mcCntlSetLastError(inst, "Goto machine bed probe point")
mc.mcCntlGcodeExecute(inst, "G00 G90 G53 Z-20 A-20\n G59 X0 Y0\n G54 ") --Use G59 as workpiece zero for position Return to G54
wx.wxMessageBox("Load the correct tool & lower the bit within 50mm before probing. Attach the MAGNET!!!","If not abort",16)
mc.mcCntlSetLastError(inst, "Probing in progress!")
mc.mcCntlGcodeExecuteWait(inst,"G91 G31 Z-50 F200")
--local ToolSet = -12.8 -- Toolset plate difference machine bed / plate
mc.mcAxisSetPos(inst, mc.Z_AXIS, ToolSet)
mc.mcCntlGcodeExecute(inst,"G00 G90 G53 Z-20")
end
Adam
Keep Safe!