439
Temperature Sensor Units
Section 7-5
Programming with SCL2(
−
) Instruction
Operation
Two-decimal-place
Mode
If pin 2 on the DIP switch is turned ON, values are stored to two decimal
places. In this case, temperature 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.
Note
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). Treat any reso-
lution above that specified for the normal data format as reference data.
2
#7FFF
1000.00
CMP(020)
1000.00
2
#7FFE
Always ON
P_On
CMP(020)
P_EQ
01000
P_CY
P_EQ
#0000
D1
MOV(021)
2
D10
SCL2(486)
D0
P_CY
#0001
D1
MOV(021)
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 D00001.
When the converted value is
negative, stores #0001 in D00001.
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 CP1H CPU UNITS - PROGRAMMING 05-2007
Page 2: ......
Page 3: ...CP1H X40D CP1H XA40D CP1H Y20DT D CP1H CPU Unit Operation Manual Revised March 2009...
Page 4: ...iv...
Page 10: ...x...
Page 18: ...xviii...
Page 22: ...xxii...
Page 34: ...xxxiv Conformance to EC Directives 6...
Page 174: ...140 CP series Expansion I O Unit Wiring Section 3 6...
Page 370: ...336 Analog I O XA CPU Units Section 5 5...
Page 552: ...518 Trouble Shooting Section 8 7...
Page 595: ...561 Sample Application Section 9 12 Network Settings Network Tab Network Settings Driver Tab...
Page 598: ...564 Sample Application Section 9 12...
Page 642: ...608 Standard Models Appendix A...
Page 652: ...618 Dimensions Diagrams Appendix B...
Page 745: ...711 Connections to Serial Communications Option Boards Appendix F Connecting to Unit...
Page 746: ...712 Connections to Serial Communications Option Boards Appendix F...
Page 776: ...742 PLC Setup Appendix G...
Page 778: ...744 Specifications for External Power Supply Expansion Appendix H...
Page 786: ...752 Revision History...