3-1
Section
Analog I/O Units
175
Programming Example
This programming example uses these ranges:
Analog input 0: 0 to 10 V
Analog input 1: 1 to 5 V or 4 to 20 mA
Analog output: 0 to 10 V or 4 to 20 mA
25135
(First Cycle ON Flag)
Writes the range code (FF04) to the Unit.
Reads analog input 0’s converted value.
Reads analog input 1’s converted value.
The content of DM 0010 is written to the output
word as the analog output set value.
25313
(Always ON Flag)
Open-circuit alarm
MOV (21)
#FF04
011
TIM 000
#0003
MOV (21)
001
DM0000
Execution
condition
TIM000
Execution
condition
TIM000
01000
MOV (21)
002
DM0001
Execution
condition
TIM000
MOV (21)
DM0010
011
Execution
condition
TIM000
00215
Example
Analog Input Program Example
Analog I/O Unit Connection
In this example, an Analog I/O Unit is connected to a CPU Unit with 30 I/O points.
I/O words are allocated to the Analog I/O Unit beginning with the next word ad-
dress following the last words allocated to the CPU Unit.
Input words
Output words
CPU Unit with
30 I/O points
Analog I/O
Unit
IR 000
IR 001
IR 010
IR 011
IR 002
IR 003
IR 012