452
Temperature Sensor Units Section 7-5
Programming with BCD(24) Instruction
Programming with SCL2(−) Instruction
2
#7FFF
1000.00
CMP(020)
1000.00
2
#7FFE
Always ON
P_On
CMP(020)
Detects completion of input 0 initialization.
P_EQ
100.00
2
D0
BCD(024)
2.15
#0000
2
−(410)
P_EQ 2.15
#0000
D1
MOV(021)
D0
D0
D0
BCD(024)
#0001
D1
MOV(021)
Execution
condition
ON when input 0 has been initialized
Detects an open-circuit alarm or Unit
error by checking whether the error code
7FFF has been output.
ON when an open-circuit alarm or Unit
error has been detected for input 0.
Stores positive BCD data in D0.
Stores #0000 in D1.
When input 0 converted value is negative
(#0000 minus two's complement = actual
value)
Stores negative BCD data in D0.
Stores #0001 in D1 to indicate a
negative number.
2
#7FFF
1000.00
CMP(020)
1000.00
2
#7FFE
Always ON
P_On
CMP(020)
P_EQ
100.00
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
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.
Detects an open-circuit alarm or Unit
error by checking whether the error
code 7FFF has been output.