Good day people,
I'm doing some custom macros for my cnc machine, everything is working fine but I'm having a problem with "FOR" loops when hitting the "STOP" button.
The thing is I have an M73 file wich performs a pattern for punching, in sumary it looks something like this:
for Y=1,Y lines,1
moves to the next Y coords.
for X=1, X columns,1
moves to the next X coords
external function for punching
end
end
the problem here is when I need to press the stop button for any reason, the movement stops but the machine continues punching until the end of FOR loops.
I tried using a BREAK statement when the signal Gcode_Running turns off but nothing happens.
Any idea of how to properly break the loops inside a macro?
Regards.