3-1
Section
Analog I/O Units
192
Programming Example
This programming example uses these ranges:
Analog input 0: 0 to 10 V
Analog input 1: 4 to 20 mA
Analog output: 0 to 10 V
25135
(First Cycle ON Flag)
Writes the range code (8051) 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)
8051
011
TIM 005
#0002
MOV (21)
001
DM0000
Execution
condition
TIM005
CMP (20)
002
#8000
Execution
condition
TIM005
01000
25506(=)
MOV (21)
002
DM0001
Execution
condition
TIM005
MOV (21)
DM0010
011
Execution
condition
TIM005