Siemens SINUMERIK 840D sl Programming Manual page 101

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

Syntax
CASE(<expression>) OF <constant_1> GOTOF <jump destination_1>
<constant_2> GOTOF <jump destination_2> ... DEFAULT GOTOF <jump
destination_n>
Meaning
CASE
<expression>
:
OF
<constant_1>
<constant_2>
DEFAULT
GOTOF
<jump destination_1>
<jump destination_2>
<jump destination_n>
Job Planning
Programming Manual, 03/2013, 6FC5398-2BP40-3BA1
:
Jump statement
:
Variable or arithmetic function
Keyword to formulate conditional program branches.
:
First specify constant value for the variable or arithmetic function
Type:
:
Second specified constant value for the variable or arithmetic
function
Type:
:
For the cases where the variable or arithmetic function does not
assume any of the specified constant values, the DEFAULT
instruction can be used to determine the branch destination.
Note:
If the DEFAULT instruction is not programmed, then in these cases,
the block following the CASE instruction is the jump destination.
:
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.
INT
INT
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.
Flexible NC programming
1.10 Program jumps and branches
,
)
200
N300
101

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents