Application Programming; A Program For Conversing A Detected Temperature Value(°C) - LG G3F-TC4A User Manual

Glofa, master-k programmable logic controller
Table of Contents

Advertisement

Chapter 8. PROGRAMMING

8.2 Application Programming

8.2.1 A program for Conversing a Detected Temperature Value(° ° ° ° C) into Fahrenheit(° ° ° ° F) and Outputting
as a BCD Value
1) System
GM3-
GM3-
PA1A
CPUA
Thermocouple
input module
initial setting
Thermocouple type K
2) Initial Setting
(1) Specifying used channel : Channel 0
(2) Specifying the type of the thermocouple : Type K
3) Expression for conversion of a temperature conversion value into a Fahrenheit temperature(° ° ° ° F)
Temperature conversion value = Detected temperature value × 10
Fahrenheit temperature(°F)
4) Program Description
(1) If P0000 turns on then the thermocouple input module would be initialized.
(2) The temperature conversion value is displayed on the BCD digital display of P0020 to P0033 If the
value is negative the ramp P0042 will turn on.
(3) After the conversion of the temperature conversion value into a Fahrenheit temperature (°F), it will
be displayed on the BCD digital display ofP0050 to P0063. If it is negative the ramp P0040 will
turn on.
(4) If disconnection is detected during conversion of temperature of the channel 0, the ramp P0041 will
turn on.
G3I-
G3F-
G3Q-
G3Q-
G3Q-
D24A
TC4A
RY4A
RY2A
RY4A
= Detected temperature value × 1.8 + 32
Temperature conversion value
=
= Temperature conversion value × 18 + 320
8 - 4
The lamp turns on if the Fahrenheit temperature value is negative
The lamp turns on if disconnection occurs
The lamp turns on if the temperature conversion value is negative
× 1.8 + 32
10
10
BCD digital display.
[Display the Fahrenheit
temperature value]
BCD digital display.
[Display the temperature
conversion value]

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G4f-tc2aG6f-tc2a

Table of Contents