
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
:
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Summary of Contents for FP-E
Page 1: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 2: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 24: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 1333: ...5 245 Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...