The problem is that i can't edit the code everytime that Gcad program produce it.
As example i give you the following to understand what i want the button do:
Line 1 : DoOEMButton (1000)
{START CYCLE}Line 2 :
?
WAIT TILL PROGRAM END i want a command to wait the program end (Gcode end).
Line 3 : DoOEMButton (1002)
THIS IS THE REWIND BUTTONLine 4 :
?
WAIT FOR X SECONDS i want a command to wait for X seconds.
Line 5 :
?
GOTO DoOEMButton (1000) i want a command to go to the first line (line1) of the script.
Alternative i have a thought about a button to only enable or disable the all process. One button START & one button ENABLE REPEAT. When the ENABLE REPEAT button is off the button START make a single START CYCLE & when the ENABLE REPEAT button is on the button START make
repeated START CYCLE.
I say again that i'm not familiar with scripts but i hope to help me.