13: S
CRIPTS
13-34 S
MART
AXIS P
RO
/L
ITE
U
SER
'
S
M
ANUAL
FT9Y-B1378
Indirect assignment
Example 7.29 Indirect read
Script
Operation Description
When the value of D0020 is 8, the value of D0018, the device 8 words from D0010, is read and stored in D0200.
Example 7.30 Indirect write
Script
Operation Description
When the value of D0020 is 3, the constant 1234 is stored in D0013, the device 3 words from D0010.
[D0200] = OFFSET([D0010],[D0020]);
0000D0010 0008D0020
+8
1234D00181234D0200
OFFSET([D0010],[D0020]) = 1234;
0000D0010
0003
+3
1234D00131234
D0020