8-43
8 Using Expansion Units and Expansion I/O Units
CP1E CPU Unit Hardware User’s Manual(W479)
8-4
T
e
mp
eratu
re
Se
n
s
o
r U
n
it
s
8
8-4-4
F
lo
w
o
f O
p
e
rat
ion
(3) Startup Operation
After power is turned ON, approximately 1 s is required for the first conversion data to be
stored in the input word. During that period, the data will be 7FFE. Therefore, create a pro-
gram as shown below, so that when operation begins simultaneously with startup it will wait
for valid conversion data.
(4) Handling Unit Errors
•
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.
CP1W-TS002 and CP1W-TS102 Temperature Sensor Units are allocated two bits each.
Use these flags in the program when it is necessary to detect Expansion Unit/Expansion
I/O Unit errors.
•
When an error occurs, the Temperature Sensor Unit data becomes 7FFF hex (the same
as for an open-circuit detection). With an open-circuit detection, it is not reflected in word
A436.
(5) Programming Example (E30/40, N30/40/60 or NA20 CPU Unit)
(a) The following programming example shows how to convert the input data from 2
temperature sensor inputs to BCD and store the result in D0 and D1.
Temperature unit
0 (°C)
Number of decimal places
0 (normal)
Input range setting
1 (K: 0.0 to 500.0°C)
Input 0
CIO 2
Input 1
CIO 3
P_EQ
W0.00
2
#7FFE
P_On
CMP
Always ON
Temperature input data
output word
Initialization
Completed Flag
CP1E CPU Unit
CP1W-TS001/101
Temperature Sensor Unit
Inputs
Outputs
CIO 0
CIO 1
CIO 100
CIO 101
CIO 2
CIO 3
None
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: ......