8 Using Expansion Units and Expansion I/O Units
8-46
CP1E CPU Unit Hardware User’s Manual(W479)
(7) Programming with SCL2 Instruction
•
Operation
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.
8-4-5
Function Descriptions
Two-decimal-place Mode
2
#7FFF
W0.00
CMP
W0.00
2
#7FFE
Always ON
P_On
CMP
P_EQ
P_EQ
W0.01
P_CY
P_EQ
#0000
D1
MOV
2
D10
SCL2
D0
P_CY
#0001
D1
MOV
ON when initialization complete.
Execution
condition
Detects an open-circuit alarm.
ON when an open-circuit alarm has
been detected.
Parameter settings for data conversion:
When the converted value is non-
negative, stores #0000 in D1.
When the converted value is
negative, stores #0001 in D1.
Detects completion of input 0
initialization.
CIO 2
D1
1: Negative, 0: Non-negative
16
3
16
2
16
1
16
0
0
0
0
1/0
1/0
D0
CY
(when using SCL2 instruction)
Binary to BCD conversion
10
3
10
2
10
1
10
0
0: If data non-negative, “0000” stored in D1.
1: If data negative, “0001” stored in D1.
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: ......