Conditional Program Jumps (If, Gotob, Gotof, Goto, Gotoc) - Siemens SINUMERIK 840Di sl Programming Manual

Hide thumbs Also See for SINUMERIK 840Di sl:
Table of Contents

Advertisement

Indirect jumps
Jump to block number
N5 R10=100
N10 GOTOF "N"<<R10 ;jump to block whose number is in R10
N90
N100 ;destination
N110
Jump to labels
DEF STRING[20] DESTINATION
DESTINATION = "label2" ;jump with variable jump destination
GOTOF DESTINATION
Label1: T="Drill1"
....
Label2: T="drill2" ;destination
Further information
10.3

Conditional program jumps (IF, GOTOB, GOTOF, GOTO, GOTOC)

Function
Jump conditions can be formulated using IF statements. The jump to the programmed jump
destination is only performed if the jump condition is fulfilled.
Programming
IF expression GOTOB <destination>
Or
IF expression GOTOF <destination>
Or
IF expression GOTO/GOTOC <destination
Fundamentals
Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
10.3 Conditional program jumps (IF, GOTOB, GOTOF, GOTO, GOTOC)
The unconditional jump must be programmed in a separate block.
In programs with unconditional jumps, the end of program M2/M30
does not have to appear at the end of the program.
Arithmetic Parameters and Program Jumps
421

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents