![background image](http://html1.mh-extra.com/html/omron/srm1-programing-02-2001/srm1-programing-02-2001_programming-manual_742414207.webp)
3-1
Section
Analog I/O Units
187
For example, in the following diagram an Analog I/O Unit is connected to a CPU
Unit with 20 I/O points.
CPU Unit CPM2C-MAD11 Analog I/O Unit
CPU Unit inputs:
IR 000
Analog input 0:
IR 001
Analog input 1:
IR 002
CPU Unit outputs:
IR 010
Analog output:
IR 011
I/O signal ranges are set by writing a range code to the output word of the Analog
I/O Unit. The range code must be set for the Analog I/O Unit to convert data.
The range code settings provide the combinations of signal ranges for the ana-
log inputs and analog output, as shown in the following table.
Voltage/current selections for the CPM1A-MAD11 are made by connecting the
appropriate terminals. Refer to page 188 for details.
Voltage/current selections for the CPM2C-MAD11 are made using pins 3 and 4
on the DIP switch. refer to page 179 for details.
Range
code
Analog input 0
signal range
Analog input 1
signal range
Analog output
signal range
000
–10 to 10 V
–10 to 10 V
001
0 to 10 V
0 to 10 V
010
1 to 5 V or 4 to 20 mA
1 to 5 V
011
0 to 5 V or 0 to 20 mA
0 to 20 mA
100
---
4 to 20 mA
Note
Be sure to write the correct terminals.
Write the range codes to the Analog I/O Unit’s output word (n + 1) in the first cycle
of program execution.
n+1
Analog
output
Analog
input 1
Analog
input 0
1 0 0 0 0 0 0
15
8 7
6 5 4 3 2 1 0
Example
The following instructions set analog input 0 to 4 to 20 mA, analog input 1 to 0 to
10 V, and the analog output to –10 to 10 V.
SR 25315
(First Cycle Flag)
Analog input 0:
4 to 20 mA
Analog input 1:
0 to 10 V
Analog output:
–10 to 10 V
MOV (21)
#800A
011
The Analog I/O Unit will not start converting analog I/O values until the range
code has been written. Until conversion starts, inputs will be 0000, and 0 V or
0 mA will be output.
After the range code has been set, 0 V or 0 mA will be output for the 0 to 10-V,
–10 to 10-V, or 0 to 20-mA ranges, and 1 V or 4 mA will be output for the 1 to 5-V
and 4 to 20-mA ranges until a convertible value has been written to the output
word.
Setting I/O Signal Range