Siemens SINUMERIK 840D sl Programming Manual page 23

Job planning
Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents
Note
Variables of type FRAME are permissible and can be initialized very simply in this way.
Parameters
DEF Variable type
SET VALUE or expression
REP VALUE or expression
CHAR NAME[n,m]
INT NAME[n,m]
REAL NAME[n,m]
AXIS NAME[n,m]
FRAME NAME[n,m]
BOOL[n,m]
STRING[string_length]
NAME[m]
NAME
Type VARIABLE
ARRAY[n,m]= SET(value,
value,...)
TYPE ARRAY[n,m] = REP(value)
ARRAY[n,m]= SET(value,
value,...)
ARRAY[n,m]=
SET(expression,...)
ARRAY[n,m]= REP(value)
ARRAY[n,m]= REP(expression)
ARRAY[n, m]
n
m
Maximum array size
Arrays with variables of type STRING can only be 1-dimensional.
Array_index [n,m]
Elements of an array are accessed via the array index. The array elements can either be
read or assigned values using this array index.
The first array element starts with index [0,0]; for example, for array size [3,4] the maximum
possible array index is [2,3].
Job planning
Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
1.3 Array definitions (DEF, SET, REP)
Array definition
Initialization with value lists for the array
definition or in the program execution
Initialization with the same values for the array
definition or in the program execution
Variable type (CHAR, INTEGER, REAL, AXIS, FRAME, BOOL)
Data type STRING can only be defined for 1-dimensional
arrays.
The string length is specified after the data type
String.
Variable name
Variable type (CHAR, INTEGER, REAL, AXIS, FRAME, BOOL)
Initialization of all elements of an array with the
listed values for the array definition
Initialization of all elements of an array with the
same value for the array definition
Initialization of all elements of an array with the
listed values in the program execution
Initialization of all elements of an array with the
same value in the program execution
Array index
Array size for 1st dimension
Array size for 2nd dimension
e.g. DEF INT NAME[32767]
Flexible NC programming
1-9
Table of Contents
loading

Table of Contents