Siemens SINUMERIK 840DE Programming Manual page 388

Hide thumbs Also See for SINUMERIK 840DE:
Table of Contents

Advertisement

Arithmetic Parameters and Program Jumps
10.2 Unconditional program jumps
<destination>
Label
Label:
Block number
String variable
Example
Axis U: Pallet store, 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
10-4
Destination parameters for label, block number, or string
variable
Destination for a jump command
Labeling of destination within the program
Destination as main block or subblock number (e.g. 200,
N300)
Variable of type string containing a label or block number.
Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
;Jump forward to LABEL_0
;Destination LABEL_1
;Destination LABEL_0
;Jump backward to LABEL_1
Fundamentals

Advertisement

Table of Contents
loading

Table of Contents