Originally Posted by
TDC-shop
I did finely get the jump lines to work to the #:end_. I still don't know why the first try didn't work, maybe because of the parametric variable R2?
( T8 | 1/2 CENTERDRILL | H8 )
T8M6
G52X0
G0G90G54X-1.3675Y1.9653S7500M3
G43H8Z0.4M8F60.
L401
G52X6.7
L401
G52X13.4
L401
#IFV5=3THENGOTO:END4
G52X20.1
L401
#:END4
M9
G91G28Z0M5
M1
G52X0
G0G90G54Y-11.X19.5
M98P5001
G91G28Z0
G91G28Z0Y0X0M5
#IFV5=3THENGOTO:END "variable V5=0 at this point"
#V5=3 "variable V5=3 is set to 3"
M0(CHANGE SHEET LOC.)
#GOTO:START2 "jumps back and reruns program, when it reaches IF-THEN lines it will GOTO the #:end_"
#:END
#V5=0 "resets variable to 0
T9M6
M2