EasyManua.ls Logo

Siemens SINUMERIK 840DE

Siemens SINUMERIK 840DE
516 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Arithmetic Parameters and Program Jumps
10.2 Unconditional program jumps
Fundamentals
10-4 Programming Manual, 10.2004 Edition, 6FC5 298-7AB00-0BP1
<destination>
Destination parameters for label, block number, or string
variable
Label Destination for a jump command
Label: Labeling of destination within the program
Block number Destination as main block or subblock number (e.g. 200,
N300)
String variable Variable of type string containing a label or block number.
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 ;Jump forward to LABEL_0
N30 …
N40 Label_1: R1=R2+R3 ;Destination LABEL_1
N50 …
N60 LABEL_0: ;Destination LABEL_0
N70 …
N80 GOTOB LABEL_1 ;Jump backward to 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

Table of Contents

Other manuals for Siemens SINUMERIK 840DE

Related product manuals