
Originally Posted by
stevo1
Beege,
That's a good idea, it will depend on what he is actually trying to acheive.
ggborgen,
The only way you are going to know is to try it. Do a simple WHILE loop moving the machine in incremental but cut in with the GOTO statement before the WHILE is satisfied.
#1=0
WHILE[#1LT5]DO1
G0G91X1.
#1=#1+1
IF[#1EQ3]GOTO100
END1
N100M30
If your machine incrementally moves 5” then it never jumped out. If it moved 3” and the program ended then it jumped out of the loop with the IF statement.
You don't need to actually move the machine. You could use a dwell or something if you wanted. Or just use variables to count +1 and compare values.
Stevo