Flexible NC programming
1
1.11 CASE instruction
840D
840D
NCU 571
NCU 572
NCU 573
1.11 CASE instruction
Programming
CASE (expression) OF constant1 GOTOF LABEL1 ... DEFAULT GOTOF LABELn
CASE (expression) OF constant1 GOTOB LABEL1 ... DEFAULT GOTOB LABELn
Explanation of the commands
CASE
GOTOF
GOTOB
LABEL
LABEL:
Expression
Constant
DEFAULT
Function
The CASE statement enables various branches to be
executed according to a value of type INT.
Sequence
The program jumps to the point specified by the jump
destination, depending on the value of the constant
evaluated in the CASE statement.
1-56
FM-NC
810D
840Di
Vocabulary word for jump instruction
Jump instruction with jump destination forwards (towards the end of
program)
Jump instruction with jump destination backwards (towards the start of
program)
Destination (label within the program);
The name of the jump destination is followed by a colon
Arithmetic expression
Constant of type INT
Program path if none of the previously named constants applies
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA) − 04.00 Edition
04.00
1
Siemens AG 2000. All rights reserved