Conditional Program Jumps - Siemens sinumerik 808d Programming And Operating Manual

Hide thumbs Also See for sinumerik 808d:
Table of Contents

Advertisement

1.10.2

Conditional program jumps

Functionality
Jump conditions are formulated after the IF instruction. If the jump condition (value not zero)
is satisfied, the jump takes place.
The jump destination can be a block with a label or with a block number. This block must be
located within the program.
Conditional jump instructions require a separate block. Several conditional jump instructions
can be located in the same block.
By using conditional program jumps, you can also considerably shorten the program, if
necessary.
Programming
IF condition GOTOF label
IF condition GOTOB label
GOTOF
GOTOB
Label
IF
Condition
Comparison operations
Operators
= =
< >
>
<
> =
< =
The comparison operations support formulating of a jump condition. Arithmetic expressions
can also be compared.
The result of comparison operations is "satisfied" or "not satisfied." "Not satisfied" sets the
value to zero.
Turning Part 2: Programming (Siemens instructions)
Programming and Operating Manual, 05/2012, 6FC5398-5DP10-0BA0
;Jump forward
;Jump backwards
;Jump direction forward (in the direction of the last block of
the program)
;Jump direction backwards (in the direction of the first block
of the program)
;Selected string for the label (jump label) or block number
;Introduction of the jump condition
;Arithmetic parameter, arithmetic expression for formulating
the condition
Meaning
Equal to
Not equal to
greater than
less than
greater than or equal to
less than or equal to
Programming principles
1.10 Program jumps
91

Advertisement

Table of Contents
loading

Table of Contents