438
Temperature Sensor Units Section 7-5
Programming with BCD(24) Instruction
002
#7FFF
1000.00
CMP(020)
1000.00
2
#7FFE
Always ON
P_On
CMP(020)
Detects completion of input 0 initialization.
P_EQ
1000.01
2
D0
BCD(024)
2.15
#0000
2
SBB(051)
P_EQ 2.15
#0000
D1
MOV(021)
CLC(041)
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 D00000.
Stores #0000 in D00001.
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.