Flexible NC programming
1.3 Array definitions (DEF, SET, REP)
Job planning
1-10 Programming Manual, 03/2006 Edition, 6FC5398-2BP10-1BA0
$UUD\LQGH[
P
P
Q
P
QQQ
>QP@
Q
P
Memory requirements
Variable type Memory requirement per element
BOOL 1 byte
CHAR 1 byte
INT 4 bytes
REAL 8 bytes
STRING String length + 1
FRAME ∼ 400 bytes, depending on the number of axes
AXIS 4 bytes
Note
The maximum array size determines the size of the memory areas in which the variable
memory is managed. It should not be set higher than actually required.
Default: 812 bytes
If no large arrays are defined, select: 256 bytes.
Example: Definition of BOOL arrays
Global user data must contain PLC machine data for switching the control on/off.
Example Definition of arrays with maximum array size for the 1st and 2nd dimension
DEF INT NAME[32767,32767]