EasyManuals Logo
Home>Siemens>Control Unit>SINUMERIK 810D

Siemens SINUMERIK 810D Programming Manual

Siemens SINUMERIK 810D
687 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #48 background imageLoading...
Page #48 background image
Flexible NC programming
1.11 CASE statement
Job planning
1-34 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Example: single character access in call-by-reference parameter:
DEF STRING [50] STRG
DEF CHAR CHR1
EXTERN UP_CALL (VAR CHAR1) ;Call-by-reference parameter!
…
CHR1 = STRG [5]
UP_CALL (CHR1) ;Call-by-reference
STRG [5] = CHR1
1.11 1.11 CASE statement
Function
The CASE statement enables various branches to be executed according to a value of
type INT.
The program jumps to the point specified by the jump destination, depending on the value of
the constant evaluated in the CASE statement.
Programming
CASE (expression) OF constant1 GOTOF LABEL1 … DEFAULT GOTOF LABELn
CASE (expression) OF constant1 GOTOB LABEL1 … DEFAULT GOTOB LABELn
Parameters
CASE Keyword for jump statement
GOTOB Jump statement with jump destination
backward (toward the beginning of
program)
GOTOF Jump statement with forward jump
destination (toward the end of program)
GOTO Jump statement with the jump destination
first forward and then backward (the
direction first to the end of the program
and then to the start of the program)
GOTOC Suppress Alarm 14080 "Destination not
found".
Jump statement with the jump destination
first forward and then backward (the
direction first to the end of the program
and then to the start of the program)
LABEL Destination (label within the program)
LABEL: The name of the jump destination is
followed by a colon
Expression Arithmetic expression
Constant Constant of type INT
DEFAULT Program path if none of the previously
named constants applies

Table of Contents

Other manuals for Siemens SINUMERIK 810D

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens SINUMERIK 810D and is the answer not in the manual?

Siemens SINUMERIK 810D Specifications

General IconGeneral
BrandSiemens
ModelSINUMERIK 810D
CategoryControl Unit
LanguageEnglish

Related product manuals