Siemens SINUMERIK 880 Programming Manual page 193

Hide thumbs Also See for SINUMERIK 880:
Table of Contents

Advertisement

11 Programming of Cycles
11.4 Program branches
Main group 1/subgroup 0: Absolute jump
@100 <Const> oder @100 <R-Par>
The jump target (block number) and the direction of jump are specified with the constant
or R parameter (pointer not allowed). A positive block number means that the block to be
jumped to is in the direction of the end of the program, and if the block number is negative
then the block will be found in the direction of the beginning of the program.
If the sign points in the wrong direction, the control will not find the block even if it is
contained in the program (alarm 3012: "Block does not exist").
Examples:
@100 K375
Unconditional jump to block N375 in the direction of end of program
@100 K-150
Unconditional jump to block N150 in the direction of beginning of
program
Main group 1/subgroup 1: CASE branch
@111
<Var>
<Value 1>
<Value 2> <Const 2>
.
.
.
<Value n> <Const n>
@100 K..
The notation <Var> is compared successively with the various notations <Value...>.
If the compare function has been satisfied, the program branches to the block number
programmed under the notation <Const ...>.
If the comparison has not been satisfied, processing continues in the program at the next
block.
This block is not allowed to have a block number of its own and must contain an absolute
jump (@100) to the program continuation.
This jump must always be written even if the next block is the one next in the sequence of
execution. A block number with the address "N" or ":" is not allowed.
Example for CASE branch:
N475
K2 K485
K3 K490
@100
N480 . . .
@100
N485 . . .
@100
N490 . . .
N495 . . .
Jump to block N900 (end of program)
Application of a CASE branch in a cycle with switchable axes
11–6
<Const 1>
.
.
.
@111
R11
K1
K480
K900
K495
K495
© Siemens AG 1991 All Rights Reserved
R11 = 1
R11 = 2
R11 = 3
R11 is neither 1, nor 2 nor 3
6ZB5 410-0HD02
SINUMERIK 880, (PG)
05.91

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sw 6Sinumerik 880 ga2Sw 1

Table of Contents