Flexible NC programming
1.1 Variables
Job planning
Programming Manual, 07/2010, 6FC5398-2BP40-0BA0
21
Significance
Link variable for BYTE data format (1 byte)
Data type: UINT
$A_DLB:
Range of values: 0 to 255
Link variable for WORD data format (2 bytes)
Data type: INT
$A_DLW:
Range of values: -32768 to 32767
Link variable for DWORD data format (4 bytes)
Data type: INT
$A_DLD:
Range of values: -2147483648 to 2147483647
Link variable for REAL data format (8 bytes)
Data type: REAL
$A_DLR:
Range of values: ±(2,2*10
-308
… 1,8*10
+308
)
Address index in bytes, counted from the start of the link variable memory
Data type: INT
<index>:
Range of values: 0 - MAX_INDEX
Note
• MAX_INDEX is calculated from the parameterized
size of the link variables memory: MAX_INDEX =
(MD18700 $MN_MM_SIZEOF_LINKVAR_DATA) - 1
• Only indices may be programmed, so that the bytes
addressed in the link variables memory are located on
a data format limit ⇒
Index = n * bytes, where n = 0, 1, 2, etc.
–
$A_DLB[i]: i = 0, 1, 2, etc.
–
$A_DLW[i]: i = 0, 2, 4, etc.
–
$A_DLD[i]: i = 0, 4, 8, etc.
–
$A_DLR[i]: i = 0, 8, 16, etc.