Summary
Offset Addresses can be designated. Only temporary Word Addresses can be designated for offset value storage Addresses.
Format
[Word Address]#[Offset Address]
Constant Input Ranges
Data Type |
Constant Input |
|
---|---|---|
Min |
Max |
|
Bin16 |
0 |
65535 |
Bin32 |
0 |
4294967295 |
Bin16+/- |
-32768 |
32767 |
Bin32+/- |
-2147483648 |
2147483647 |
BCD16 |
0 |
9999 |
BCD32 |
0 |
99999999 |
Example expression 1:
[w:[PLC1]D0200]=[w:[PLC1]D0100]#[t:0000]
In the above example, when [t:0000]'s value is 2, the value stored in D0102 is assigned to D0200.
Example expression 2:
[w:[PLC1]D0100]#[t:0000]=30
In the above example, when [t:0000]'s value is 8, 30 is assigned to D0108.
Word Addresses used in the offset address format are not counted as D-Script Addresses.
Data from a device designated by an offset address is not continuously read from the connected device. It is read when the D-Script is run. When an error occurs during the readout, the read-out value is treated as "0". Also, Bit 12 of the display unit internal special relay LS2032 turns ON. When data read is completed normally, Bit 12 is OFF.
If the address offset result exceeds 16 bits (maximum value: 65535), bits up to bit 15 are valid, and bits 16 and higher are discarded.
When defining a variable as the address, specify an integer array. Make sure the integer array is large enough to house all the consecutive addresses. Operations will be invalid if the array is not large enough to store consecutive addresses. Operations will also be invalid if the integer variable is not an array.