Example
N40 R1=30 R2=60 R3=10 R4=11 R5=50 R6=20
N41 MA1: G0 X=R2*COS(R1)+R5 ->
-> Y=R2*SIN(R1)+R6
N42 R1=R1+R3 R4=R4-1
N43 IF R4>0 GOTOB MA1
N44 M30
Fundamentals
Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
10.3 Conditional program jumps (IF, GOTOB, GOTOF, GOTO, GOTOC)
Arithmetic Parameters and Program Jumps
;Assignment of initial values
;Calculation and assignment to ;axis
address
;Specification of variable
;Jump statement with label
;End of program
423