Hi,
OK thats easy.
Open the script editor and enter:
function m101()
local inst=mc.mcGetInstance()
local hsig=mc.mcSignalGetHandle(inst, mc.OSIG_OUTPUT1)
local current=mc.mcSignalGetState(inst,hsig)
if current ==1 then
mc.mcSignalSetSate(inst,hsig,0)
else
mc.mcSignalSetState(inst,hsig,1)
end
end
if (mc.mcInEditor()==1)then
m101()
end
Save in the macros folder of your profile as m101.mcs
If in your Gcode file you code m101 then output#1 will turn on, code it a second time and it will turn off.
You will have to use your PoKeys plugin to assign a pin to the output.
Note I am at work and cannot run this through the debugger...may do so when I get home.
Craig