9-33
9 Using Expansion Units and Expansion I/O Units
CP1E CPU Unit Hardware User’s Manual(W479)
9-3 Analog I/O Units
9
9-3-4 Flow of Processing
(7) Programming Example
Analog input 0: 0 to 10 V
Analog input 1: 4 to 20 mA
Analog output : 0 to 10 V
MOV
#8051
102
First Cycle Flag
A200.11
TIM5
#0002
Always ON Flag
P_On
002
D0
T5
MOV
(P_EQ)
110.00
003
D1
T5
MOV
D10
102
T5
MOV
003
#8000
T5
CMP
Execution
condition
Execution
condition
Execution
condition
Execution
condition
← 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 D10 is written to the output
word as the analog output set value.
Open-circuit alarm