8-35
8 Using Expansion Units and Expansion I/O Units
CP1E CPU Unit Hardware User’s Manual(W479)
8
-3
Ana
log
I/
O
U
n
it
s
8
8-3-4
F
lo
w
o
f O
p
e
rat
ion
(6) Handling Unit Errors
•
When an error occurs in the Analog I/O Unit, analog input data will be 0000 and 0 V or 0
mA will be output as the analog output.
If a CPU error or an I/O bus error (fatal errors) occurs at the CPU Unit and the analog
output is set to 1 to 5 V or 4 to 20 mA, 0 V or 0 mA will be output. For any other fatal
errors at the CPU Unit, 1 V or 4 mA will be output.
•
Expansion Unit and Expansion I/O Unit errors are output to bits 0 to 5 of word A436. The
bits are allocated from A436.00 in order starting from the Unit nearest the CPU Unit. Use
these flags in the program when it is necessary to detect errors.
(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
Summary of Contents for CP1E-E10DT-A
Page 3: ......
Page 31: ...26 CP1E CPU Unit Hardware User s Manual W479...
Page 273: ...Index 4 CP1E CPU Unit Hardware User s Manual W479...
Page 275: ...Revision 2 CP1E CPU Unit Hardware User s Manual W479...
Page 276: ......