4.5 Handling Index Registers
4-21
4.5.3 Example of Using an Index Register
Repeatedly reading in external data
With the FP0R/FPΣ/FP−X/FP2/FP2SH/FP10SH, any value between I0 and ID should
be specified in place of IX.
Example: Writing the contents of word external input relay WX3 to a
sequence of data registers beginning from DT0.
X0
F0 MV, K0, IX
X1
DF F0 MV, WX3, IXDT0
F35 +1, IX
1
2
3
1
When X0 turns on, K0 is written to index register IX.
2
When the X1 turns on, the contents of WX3 is transferred
to the data register specified by IXDT0.
3
Add 1 to IX.
In this case, the contents of IX will change successively,
and the destination data register will be as follows.
Input times of X1 Contents of IX Destination data register
1st
2nd
3rd
:
0 → 1
1 → 2
2 → 3
:
DT0
DT1
DT2
: