Function Descriptions - Omron CP1E Series User Manual

Cp1e cpu unit hardware
Table of Contents

Advertisement

9 Using Expansion Units and Expansion I/O Units
(7) Programming with SCL2(-) Instruction
Always ON
P_On
Execution
W0.00
condition
• Operation
3
CIO 2
16
9-4-5

Function Descriptions

Two-decimal-place Mode
If pin 2 on the DIP switch is turned ON, values are stored to two decimal places. In this case, tempera-
ture data is stored as 6-digit signed hexadecimal (binary) data with 4 digits in the integer portion and 2
digits after the decimal point. The actual data stored in memory is 100 times the actual value, i.e., the
decimal point is not indicated. Methods for handling this data are described in this section.
Additional Information
When set to store values to two decimal places, temperature data as far as two digits after the
decimal point is converted to 6-digit binary data, but the actual resolution is not 0.01°C (°F). For
this reason, there may be skipping and inaccuracies in the first digit after the decimal point 0.1°C
(°F). Treat any resolution above that specified for the normal data format as reference data.
9-44
P_EQ
P_EQ
P_EQ
P_CY
P_CY
Binary to BCD conversion
2
1
0
16
16
16
D1
D0
0
0
0
1/0
10
1: Negative, 0: Non-negative
0: If data non-negative, "0000" stored in D1.
1: If data negative, "0001" stored in D1.
Detects completion of input 0
CMP
initialization.
2
#7FFE
ON when initialization complete.
W0.00
CMP
Detects an open-circuit alarm.
2
#7FFF
ON when an open-circuit alarm has
W0.01
been detected.
SCL2
2
D10
Parameter settings for data conversion:
D0
MOV
When the converted value is non-
negative, stores #0000 in D1.
#0000
D1
MOV
When the converted value is
negative, stores #0001 in D1.
#0001
D1
CY
(when using SCL2 instruction)
3
10
2
10
1
10
0
1/0
CP1E CPU Unit Hardware User's Manual(W479)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents