Notes
SINUMERIK 802D sl Operating and Service Training Manual Page 3
C94
C94
Section 2
Unconditional program jumps
Function
NC programs process th
eir blocks in the sequence in which they
were written.
The jump destination
can be a block with a label or with a block num-
ber. The blo
ck must be located within the program.
Program
GOT
OF label ; jump forward to label
GOTOB label
; jump backwards to label
————
—————————————————————————————
Conditional program jumps
Function
Jump condit
ions are formulated after the if instruction. If the jump
condition (v
alue not zero
) is satisfie
d, the jump takes place.
The jump destination
can be a block with a label or with a block num-
ber. The blo
ck must be located within the program.
Program
IF condition
GOTOF label ; jump forward to label
IF condition
GOTOB label ; jump backwards to label
N10 IF R1==1 GOTOF LABEL1
…
N90 LABEL
1:
N100 IF R1>1 GOT
OF LABEL2
…
N150 LABEL2:
…
N800 LABEL3:
…
N1000 IF R45==R7+1 GOT
OB LABEL3