2 application programming – LG K7F-PIDA User Manual

Page 30

Advertising
background image

Chapter 6. PROGRAMMING

10 - 3

6.2 Application Programming

6.2.1 A Program for Controlling an Electric Furnace
(with Applying the A/D Conversion Module, PID Control Module and D/A Conversion Module)

1) System Configuration

1)

Initial Settings

(1) PID control module

A) Specifying used loop : loop 0
B) Specifying forward/reverse action : forward action
C) Setting SV: 12800

D) Specifying auto/manual processing : auto processing

(2) A/D conversion module

A) Specifying used channel: channel 0

B) Specifying output data type: -192 to 16191
C) Setting filter constant: 50

(3) D/A conversion module

A) Specifying used channel: channel 0

B) Specifying input data type: -192 to 16191
C) Output when no channel is used or the CPU module is in the stop state : The median value of the output range is

output.

2) Descriptions of the Program

(1) A temperature 0 to 200

°

C from the temperature sensor is converted into an analog signal 4 to 20 mA and then

the signal is input to the channel 0 of the A/D conversion module channel and converted into a digital value 9600
to 16000.

K7S-
122S

K7F-
AD4A

K7S-
30AS

K7X-
310S

K7X-
310S

K7S-
132S

K7Y-
201S

K7F-
PIDA

K7F-
DI4A

Ch. 0

Loop 0

Ch. 0

Advertising
This manual is related to the following products: