Siemens SINUMERIK 828D Programming Manual page 90

Hide thumbs Also See for SINUMERIK 828D:
Table of Contents

Advertisement

Flexible NC programming
1.10 Program jumps and branches
GOTOF
<jump destination_1>
<jump destination_2>
<jump destination_n>
Example
Program code
...
N20 DEF INT VAR1 VAR2 VAR3
N30 CASE(VAR1+VAR2-VAR3) OF 7 GOTOF Label_1 9 GOTOF Label_2 DEFAULT GOTOF Label_3
N40 Label_1: G0 X1 Y1
N50 Label_2: G0 X2 Y2
N60 Label_3: G0 X3 Y3
...
The
1. If the value of the arithmetic function VAR1+VAR2-VAR3 = 7, then jump to the block with
2. If the value of the arithmetic function VAR1+VAR2-VAR3 = 9, then jump to the block with
3. If the value of the arithmetic function VAR1+VAR2-VAR3 is neither 7 nor 9, then jump to
90
:
Jump instruction with jump destination towards the end of the
program.
Instead of
(refer to the subject "Program jumps to jump markers").
:
A branch is made to this jump destination if the value of the
variable or arithmetic function corresponds to the first specific
constant.
The jump destination can be specified as follows:
<jump marker>:
<block number>:
STRING type
variable:
: A branch is made to this jump destination if the value of the
variable or arithmetic function corresponds to the second specified
constant.
: A branch is made to this jump destination if the value of the
variable does not assume the specified constant value.
instruction from
CASE
N30
the jump marker definition "Label_1" (→
the jump marker definition "Label_2" (→
the block with the jump marker definition "Label_3" (→
all other GOTO commands can be programmed
GOTOF
Jump destination is the jump marker (label)
set in the program with a user-defined name:
<
jump marker>:
Jump destination is main block or sub-block
number (e.g.:
Variable jump destination. The variable
stands for a jump marker or a block number.
defines the following program branch possibilities:
).
N40
).
N50
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
,
)
200
N300
).
N60
Job planning

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents