Omron CP1H CPU Operation Manual page 470

Cp1h cpu unit
Hide thumbs Also See for CP1H CPU:
Table of Contents

Advertisement

Temperature Sensor Units
1,2,3...
436
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 program as shown below, so that when operation begins
simultaneously with startup it will wait for valid conversion data.
Always ON
P_On
(P_EQ)
Handling Unit Errors
• CP-series Expansion Unit/Expansion I/O Unit errors are output to bits 0 to
6 of word A436. The bits are allocated from A436.00 in order starting from
the Unit nearest the CPU Unit. CP1W/CPM1A-TS002 and CP1W/
CPM1A-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.
Programming Example
1. 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.
CP1H
CIO 0
Inputs
CIO 1
CIO 100
Outputs
CIO 101
CMP(020)
Temperature input data
2
output word
#7FFE
Initialization
Completed Flag
1000.00
CP1W-TS001/101
CPM1A-TS001/101
Temperature Sensor Unit
CIO 2
Temperature unit setting:
CIO 3
Two-decimal-place Mode:
Input range setting:
Input 0:
None
Input 1:
Section 7-5
0 (°C)
0 (normal)
1 (K: 0.0 to 500.0°C)
CIO 2
CIO 3

Advertisement

Table of Contents
loading

Table of Contents