14.3.3 Example of Using an Index Register
Repeatedly reading in external data
<Example>
Writing the contents of input WX3 to a sequence of data registers beginning from DT0.
○
1
When R0 turns on, 0 is written to index register I0.
○
2
When the R1 turns on, the contents of input WX3 is transferred to the data register specified by I0DT0.
○
3
Input times of R1
Add 1 to I0. In this case, the contents of I0 will change successively, and the destination data register
will be as follows.
Contents of I0
Destination data register
1st
2nd
3rd
:
0
1
2
:
DT0
DT1
DT2
:
Inputting and outputting data based on a number specified by an input
<Example 1> Setting a timer number specified by a digital switch
○
1
Convert the BCD timer number data in WX1 to binary and set it in index register I0.
○
2
Convert the BCD timer set value in WX0 to binary and store in the timer set value area SV specified
by contents of I0.
<Example 2>
Taking external output of the elapsed value in a timer number specified by a digital switch
○
1
Convert the BCD timer number data in WX1 to binary and set it in index register I0.
○
2
Convert the elapsed value data EV in the timer specified by I0 to BCD, and output it to output relay
WY0.
Phone: 800.894.0412 - Fax: 888.723.4773 - Web: www.clrwtr.com - Email: [email protected]
Summary of Contents for AFPX-C30R
Page 6: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 12: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 28: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 54: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 102: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 295: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 300: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 309: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 311: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 314: ...Program Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 347: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 352: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 361: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 363: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 366: ...Program Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 384: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 398: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 410: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 430: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 448: ...Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...
Page 543: ...17 7 ASCII Codes Phone 800 894 0412 Fax 888 723 4773 Web www clrwtr com Email info clrwtr com ...