1
Flexible NC Programming 04.00
1.3 Arra
definition
1
840D
NCU 571
840D
NCU 572
NCU 573
FM-NC 810D 840Di
ï›™
Siemens AG 2000. All rights reserved
1-30
SINUMERIK 840D/840Di/810D/FM-NC Programming Guide Advanced (PGA)
−
04.00 Edition
1.3 Array definition
Programming
DEF CHAR NAME[n,m]
DEF INT NAME[n,m]
DEF REAL NAME[n,m]
DEF AXIS NAME[n,m]
DEF FRAME NAME[n,m]
DEF STRING[string length] NAME[m]
DEF BOOL[n,m]
Explanation
INT NAME[n,m]
REAL NAME[n,m]
Variable type (CHAR, INTEGER, REAL,
AXIS, FRAME, BOOL)
n = array size for 1st dimension
m = array size for 2nd dimension
DEF STRING[string length] NAME[m]
The data type STRING can only be defined
with one-dimensional arrays
NAME
Variable name
The same memory size applies for type BOOL as for
type CHAR.
SW 3 and higher
:
The maximum size of an array is set via machine data.
Machine manufacturer
See machine manufacturer's specifications
Type Memory size for each array element
BOOL 1 byte
CHAR 1 byte
INT 4 bytes
REAL 8 bytes
STRING String length + 1
FRAME
∼
400 bytes depending on number of axes
AXIS 4 bytes
The maximum array size determines the size of the
memory blocks in which the variable memory is
managed. It should not be set higher than actually
required.
Standard: 812 bytes
If no large arrays are defined, please
select: 256 bytes.