Siemens SINUMERIK 840D sl Programming Manual page 22

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

Advertisement

Flexible NC programming
1.3 Array definitions (DEF, SET, REP)
Programming
DEF CHAR NAME[n,m]
or
DEF INT NAME[n,m]
or
DEF REAL NAME[n,m]
or
DEF AXIS NAME[n,m]
or
DEF FRAME NAME[n,m]
or
DEF STRING[string_length] NAME[m]
or
DEF BOOL[n,m]
• Initialization with value lists; SET
Array definition options
DEF Type VARIABLE = SET(VALUE)
DEF Type ARRAY[n,m] = SET(VALUE, value, ...)
or
DEF Type VARIABLE = Value
DEF Type ARRAY[n,m] = (value, value, ...)
Note
SET is optional in the array definition.
Initializing during the program run
ARRAY[n,m]= SET(value, value, value,...)
ARRAY[n,m]= SET(expression, expression, expression,...)
• Initialization with the same values, REP
Array definition options
DEF Type ARRAY[n,m] = REP(value)
Note
Variables of type FRAME cannot be initialized.
Initializing during the program run
ARRAY[n,m] = REP(value)
ARRAY[n,m] = REP(expression)
1-8
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
Job planning

Advertisement

Table of Contents
loading

Table of Contents