16 Applied Instructions (External Device)
16.2 ANRD / Read from F2-6A
422
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Program example
This is intended to determine the average of three points of time series data in 100 ms unit in order to
suppress fluctuations of the analog input.
[Structured ladder/FBD]
M8000
RUN monitor
M8012
[ ST ]
ANRD(M8000, X040, K10, Y030, D20);
WSFLP(M8012, D20, K3, K1, D0);
MEANP(M8012, D0, K3, D10);
WSFLP
EN
s
n1
ENO
d
n2
Y030X040
ANRD
EN
s
n
ENO
d1
d2K10 D20
D0
D20
K3
K1
D0
MEANP
EN
s
n
ENO
d1
K3
D10
100 ms
clock
To store the data of input channel 10 of F
2-6A
type analog input and output unit connected
from X040, Y030, in the D20.
The content of D20 is shifted to D0, D1, D2
in 100 ms unit.
The average of D0, D1, D2 is stored in the D10.