9-9
9 Using Expansion Units and Expansion I/O Units
CP1E CPU Unit Hardware User’s Manual(W479)
9-1 Analog Input Units
9
9-1-4 Flow of Processing
3
Create the ladder program.
(1) Allocating I/O Words
Four input words and two output words are allocated from the next words following the last
I/O words allocated to the CPU Unit or an existing Expansion Unit or Expansion I/O Unit.
(2) Writing Set Data
Write the settings for input use, averaging use, and range codes for words n+1 and n+2.
When the set data is transferred from the CPU Unit to the Analog Input Unit, the A/D con-
version will be started.
• Set Data
• The Analog Input Unit will not start converting analog I/O values until the range code has
been written.
The conversion data will be 0000 until the range code is written.
• Once the settings have been made, it is not possible to change the settings while power
is being supplied to the CPU Unit. To change the range code or other settings, turn the
CPU Unit OFF then ON again.
(3) Averaging
Set whether averaging is to be used for set data. When the averaging bit is set to 1, the
average (moving average) for the past eight inputs is output as conversion data.
Words (m+1) to (m+4)
Analog Input Unit
Words (n+1), (n+2)
15 0
1000000
87654321
15 0
1000000
87654321
0
0
Set to 1.
Set to 1.
Wd (n+1)
Wd (n+2)
Analog input 1
Analog input 2
Analog input 3
Analog input 4
Averaging
0
1
No
Ye s
Input use
0
No
1
Ye s
Range code Analog input signal range
−10 to 10 V
0 to 10 V
1 to 5 V or 4 to 20 mA
0 to 5 V or 0 to 20 mA
00
01
10
11