EasyManua.ls Logo

Siemens SINUMERIK 840Di sl - Page 420

Siemens SINUMERIK 840Di sl
560 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
420 Programming Manual, 11/2006, 6FC5398-1BP10-2BA0
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
;Jump forward to LABEL_0
N30 …
N40 LABEL_1: R1=R2+R3
;Branch destination LABEL_1
N50 …
N60 LABEL_0:
;Branch destination LABEL_0
N70 …
N80 GOTOB LABEL_1
;Jump backwards 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
Jump forward
Jump with block number
GOTOF N100
....
N100 ;destination

Table of Contents

Other manuals for Siemens SINUMERIK 840Di sl

Related product manuals