Chapter 7 Usage of Various Functions

10)Program example

(1)A program for output of detected temperature value as a BCD value

a) Program explanation

The present A/D conversion value of the detected temperature value which is detected from the temperature-measuring resistor Pt 100 is displayed on the BCD digital display by use of channel 0 of the temperature-measuring resistor input module. The lamp turns on when the detected temperature value is a negative number and turns off when it is a positive number

b) System configuration and parameter setting

Input condition

COM0

RTD input module

 

 

(P0000)

 

 

Detected temperature

 

 

 

Turns on when temperature

BCD segment

value is negative

( P0040 ~ P004F )

 

 

Main unit input contact : P000 ~ P023

Main unit output contact: P040 ~ P057

c) Program

7-68

Page 152
Image 152
LG Electronics 120S user manual RTD input module, P0000, P0040 ~ P004F, Main unit input contact P000 ~ P023