Chapter 5. PROGRAMMING
5.2 A Program for Conversing the Detected Temperature Value(°C) into Fahrenheit(°F) and Output as a
BCD Value
1) System
2) Initial Settings
(1) Specifying the used channel : channel 0
(2) Specifying the type of a temperature - measuring resistor : Pt 100
3) The Expression that Converts the Detected Temperature Value into a Fahrenheit
Detected temperature value = real temperature value x 10
Fahrenheit temperature
∴ If the Fahrenheit temperature displayed on the BCD digital display is represented as 'the real
Fahrenheit temperature x 10', "the detected temperature x 18 + 320" be processed into the program.
4) Descriptions of the Program
(1) If %10.0.0 turns on then the initialization of the RTD input module is executed.
(2) The detected temperature value is displayed on %Q0.2.0 to %Q0.2.19 of the BCD digital display when
it is negative the ramp %Q0.3.2 turns on
(3) The detected temperature value is converted into a Fahrenheit temperature value and displayed
on %Q0.4.0 to %Q0.4.19 of the BCD digital display when it is negative the ramp %Q0.3.0 turns on.
(4) If disconnection is detected during temperature conversion at channel 0, The Lamp %Q0.3.1 turns on.
= real temperature x 1.8 + 32
Detected temperature value
=
10
Detected temperature value x 18 + 320
=
10
5 - 6
value
negative
x 1.8 +32