Example Of Using An Index Register - Panasonic FP0 User Manual

Programmable controller
Hide thumbs Also See for FP0:
Table of Contents

Advertisement

Precautions During Programming
8.3
Handling Index Registers
8.3.3

Example of Using an Index Register

Repeatedly Reading in External Data
Example:
Writing the contents of word external input relay WX3 to a
sequence of data registers beginning from DT0.
1
2
3
Input times
of R1
1st
2nd
3rd
Inputting and Outputting Data Based on a Number Specified by an Input
Example 1: Setting a timer number specified by a digital switch
Timer
setting
number
8 − 8
R0
F0 MV, K0, IX
R1
DF
F0 MV, WX3, IXDT0
F35 +1, IX
When R0 turns on, K0 is written to index register IX.
When the R1 turns on, the contents of WX3 is transferred to
the data register specified by IXDT0.
Add 1 to IX.
In this case, the contents of IX will change successively,
and the destination data register will be as follows.
Contents of
IX
0
1
2
:
:
PLC
2
0
WX1
Digital
switches
1
2
3
Destination
data register
DT0
DT1
DT2
:
Timer set value
7
9
4
(timer time setting)
WX0
FP0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents