IDEC SmartAXIS FT9Z-1A01 User Manual page 342

Table of Contents

Advertisement

13: S
CR I P TS
Indirect assignment
Example 7.29 Indirect read
Script
[D0200] = OFFSET([D0010],[D0020]);
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.
D0010
D0200
1234
D0018
Read
Example 7.30 Indirect write
Script
OFFSET([D0010],[D0020]) = 1234;
Operation Description
When the value of D0020 is 3, the constant 1234 is stored in D0013, the device 3 words from D0010.
D0010
1234
D0013
Write
13-34
0000
D0020
0008
+8
1234
0000
D0020
0003
+3
1234
S
A XI S P
/ L
M AR T
R O
U
'
M
FT9Y-B 1378
I TE
SER
S
ANUAL

Advertisement

Table of Contents
loading

Table of Contents