Analog I/O Units
25135
(First Cycle ON Flag)
25313
(Always ON Flag)
Execution
TIM005
condition
Execution
TIM005
condition
Execution
TIM005
condition
Execution
TIM005
condition
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
MOV (21)
TIM 005
MOV (21)
CMP (20)
25506(=)
MOV (21)
MOV (21)
8051
011
Writes the range code (8051) to the Unit.
#0002
001
DM0000
Reads analog input 0's converted value.
002
#8000
01000
Open-circuit alarm
002
Reads analog input 1's converted value.
DM0001
DM0010
011
The content of DM 0010 is written to the output
word as the analog output set value.
Section
3-1