Siemens SINUMERIK 840Di sl Programming Manual page 420

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

Advertisement

Arithmetic Parameters and Program Jumps
10.2 Unconditional program jumps
Example
Axis U: Pallet storage, transporting the pallet to the working area
Axis V: Transfer line to a measuring station, where sampling controls are carried out:
N10 ...
N20 GOTOF LABEL_0
N30 ...
N40 LABEL_1: R1=R2+R3
N50 ...
N60 LABEL_0:
N70 ...
N80 GOTOB LABEL_1
N90 ...
Description
Jump destinations with user-defined names can be programmed in a routine. The command
GOTOF or GOTOB can be used to branch to a jump destination from any other point within
the same program. The program then resumes execution at the instruction immediately
following the jump destination.
Destination not found
If the destination is not found, program execution is terminated with Alarm 14080
"Destination not found". Command GOTOC suppresses this alarm. Program execution is
resumed at the line following the GOTOC command.
Destination backward
Jump with label
Label_1: ;destination
....
GOTOB Label_1
Jump forward
Jump with block number
GOTOF N100
....
N100 ;destination
420
;Jump forward to LABEL_0
;Branch destination LABEL_1
;Branch destination LABEL_0
;Jump backwards to LABEL_1
Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
Fundamentals

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents