At present it inserts a pause before each cut, so the sequence is...
Move
Pause
Set ref
Cut
Lift
Move
What I want is...
Pause
Move
Set ref
Cut
Lift
Pause
I have inserted my changes here...
Code: Select all
function Reference()
if (firstRef == true) then
--do nothing
else
if (tool == 8) then --Tool 8 is a plasma tool used as a drill-marker
--do nothing
else
post.Text (" M00")
post.Text (" (Paused: Hit RUN to continue)\n")
end
end
The issue that came to light at the weekend was that it mis-fired on a cut, then moved to the next cut position, I rewound the code in Mach3 to the pause at the start of the mis-cut but as it positions BEFORE the pause it started the torch then happily dragged itself cutting across the plate until it reached the start position
If I can get it to position AFTER the pause and BEFORE the cut, everything will be sweet