Programming
10.10 Program jumps
Cylindrical grinding
Programming and Operating Manual, 07/2009, 6FC5398-4CP10-2BA0
311
10.10.3
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
;Jump forward
IF condition GOTOB label
;Jump backwards
GOTOF
;Jump direction forward (in the direction of the last block
of the program)
GOTOB
;Jump direction backwards (in the direction of the first
block of the program)
Label
;Selected string for the label (jump label) or block number
IF
;Introduction of the jump condition
Condition
;Arithmetic parameter, arithmetic expression for
formulating the condition
Comparison operations
Operators
Meaning
= =
Equal to
< >
Not equal to
>
greater than
<
less than
> =
greater than or equal to
< =
less than or equal to
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.
Содержание SINUMERIK 802D
Страница 6: ...Preface Cylindrical grinding 6 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 12: ...Table of contents Cylindrical grinding 12 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 64: ...Define 4 10 User data Cylindrical grinding 64 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 152: ...System 8 7 Alarm display Cylindrical grinding 152 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 334: ...Programming 10 15 Oscillation Cylindrical grinding 334 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 394: ...Appendix A 5 Overview Cylindrical grinding 394 Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 ...
Страница 399: ...Index Cylindrical grinding Programming and Operating Manual 07 2009 6FC5398 4CP10 2BA0 399 W Word structure 221 ...