thanks gents I must be missing something cant get the axis`s to zero out.
this is what I have so far.
This works
--Laser Zero
--Get the instance of the controller
local inst= mc.mcGetInstance();
mc.mcCntlGcodeExecute(inst, "G1 X10 Y10 F500");--run some g-code
--Get the out5 handle
local out5= mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT5);
--Output TOGGLE
local outstate = mc.mcSignalGetState(out5);
if (outstate == 1) then
mc.mcSignalSetState(out5, false);
else
mc.mcSignalSetState(out5, true);
end