Analog I/O Units
Setting I/O Signal Range
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
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
Analog input 0
code
signal range
000
–10 to 10 V
001
0 to 10 V
010
1 to 5 V or 4 to 20 mA
011
0 to 5 V or 0 to 20 mA
100
---
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
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)
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.
CPU Unit inputs:
Analog input 0:
Analog input 1:
CPU Unit outputs: IR 010
Analog output:
Analog input 1
signal range
15
8 7 6 5 4 3 2 1 0
1 0 0 0 0 0 0
Analog
output
MOV (21)
Analog input 0:
#800A
Analog input 1:
011
Analog output:
Section
IR 000
IR 001
IR 002
IR 011
Analog output
signal range
–10 to 10 V
0 to 10 V
1 to 5 V
0 to 20 mA
4 to 20 mA
Analog
Analog
input 1
input 0
4 to 20 mA
0 to 10 V
–10 to 10 V
3-1
187
Need help?
Do you have a question about the CPM1 - PROGRAMING MANUAL 02-2001 and is the answer not in the manual?