beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 400

background image

7 Application Instructions API 50-99

D V P - P L C A P P L I C AT I O N M A N U A L

7-116

Part of the example program:

M1

MOV

K0

D5

M3

MOV

D40

D30

M2

MOV

K3000

D32

K3000

D32

>

MOV

K0

D32

K0

D32

<

ADD

D30

D31

D32

MOV

D32

D1116

M1

PID

D1

D1110

D10

D5

M1002

MOV

K1000

D40

M0

MOV

D0

D1

DIV

D32

K11

D32

MOV

K255

D32

K255

D32

>

Application 3 Using auto-tuning on the parameter for the temperature control.

Purpose: Using auto-tuning to calculate the most suitable parameters for PID temperature control.

Explanation: You may not be familiar with the temperature environment for the first time, so you can use auto-tuning

(S

3

+ 4 = K3) for an initial adjustment. After this, PID instruction will become exclusively for temperature

control (S

3

+ 4 = K4). In this example, the control environment is an oven. See the example program

below.

M1002

M1013

M0

MOV

K4000

D20

D200

K800

D10

TO

K0

K2

K1

D11

K6

F RO M

K3

D204

RST

M0

K400

MOV

MOV

K2

K0

K1

MOV