yer should of put in what I have tried
below works with out mc.mcAxisSetPos(inst, 0, 0.000) or mc.mcMotorSetHomePos(inst,0,0); -- inst, 0= X axis , 0 = set to home anything else is counts per unit
if I add one or the other of the above codes it stops the output turning off and the axis`s don't go to zero.
I put them in after gcode execute
--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