Chapter 8. PROGRAMMING
4) Program
M1 is turned on if error occurs at the channel 0.
M2 is turned on if error occurs at the channel 1.
Specifying the Type K for thermocouples of channel 0 and 1.
Specifying thermocouple input module SET data enable
Reading the temperature conversion value of channel 0 to D17
Reading the temperature conversion value of channel 1 to D20
Reading thermocouple type specification error information to D67
If the temperature of the channel 0 is less than
-20℃ and larger than -30℃, P10 is turned on.
If the temperature of the channel 1 is less than
-20℃ and larger than -30℃, P11 is turned on.
Storing the difference between two temperatures of channel 0 and 1 to D0100
8 - 7
Specifying the channel 0 and 1 enable
Reading the error code of channel 0 to D19
Reading the error code of channel 1 to D22
P12 turns on if the
difference between two
temperatures of channel 0
and 1 is larger than 5℃,
Thermocouple
input module
initialization