I/O allocation (External output WY)
Y
Y
Y
Y
Y
Y
3
3
3
3
3
3
F
E
D
C
B
A
CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0
D
D
D
D
D
D
1
0
1
0
1
0
D1 D0
Averaging (Common to each channel)
Moving average 10 times (Max. and min.
0
0
removal)
0
1
No. of averaging times: 64
1
0
No. of averaging times: 128
1
1
No averaging
Sample program (Switching input range)
The following program shows the case that the input range of CH0 to CH7 of the first
expansion analog input unit is set.
R0
(
)
DF
[ F0 MV
Input a constant for specifying an input range. Set it according to the I/O allocation on the previous page.
①
In the above sample program, HFF00 is input for setting Y2F-Y28 to 1 and Y27-Y20 to 0.
The range for CH4 to CH7 is 0 to 5 V/0 to 20 mA, and that for CH0 to CH3 is -10 V to +10 V.
②
WY2
Sample program (Switching averaging processing method)
The following program shows the case that the averaging processing method of CH0 to CH7
of the first expansion analog input unit is set.
R0
(
)
DF
[ F0 MV
Input a constant for specifying an averanging method. Set it according to the I/O allocation on the
previous page.
①
In the above sample program, HFF00 is input for setting Y3F-Y38 to 1 and Y37-Y30 to 0.
The method of CH4 to CH7 is no averaging processing, and that of CH0 to CH3 is moving average 10
times.
②
WY3
Y
Y
Y
Y
Y
Y
Y
Y
3
3
3
3
3
3
3
3
9
8
7
6
5
4
3
2
D
D
D
D
D
D
D
D
1
0
1
0
1
0
1
0
, HFF00
①
Set it for switching the input range.
, HFF00
①
Set it for switching the averaging processing method.
4.2 Analog input unit (FP0R-AD4/AD8)
Y
Y
Y
Y
Y
3
3
2
2
2
1
0
F
E
D
CH7 CH6 CH5 CH4 CH3 CH2 CH1 CH0
D
D
D
D
D
1
0
1
0
1
D1 D0
Range (Common to each channel)
0
0
-10V to+10V
0
1
- 5V to +5V
1
0
0 to 10V
1
1
0 to 5V / 0 to 20mA
, WY2
]
②
, WY3
]
②
Y
Y
Y
Y
Y
Y
Y
Y
2
2
2
2
2
2
2
2
C
B
A
9
8
7
6
5
D
D
D
D
D
D
D
D
0
1
0
1
0
1
0
1
Y
Y
Y
Y
Y
2
2
2
2
2
4
3
2
1
0
D
D
D
D
D
0
1
0
1
0
4-7