beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 460

background image

8 Application Instructions API 100-149

DVP-PLC Application Manual

8-58

API Mnemonic

Operands

Function

145

FTC

Fuzzy Temperature Control

Controllers

ES/EX/SS SA/SX/SC EH/SV

Bit Devices

Word Devices

Program Steps

Type

OP

X Y M S K H

KnX

KnY KnM KnS T

C

D

E

F

S

1

*

*

*

S

2

*

*

*

S

3

*

D

*

FTC: 9 steps

PULSE 16-bit 32-bit

ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV

Operands:

S

1

: Set value (SV) S

2

: Present value (PV) S

3

: Parameter (sampling time) D: Output value (MV)

Explanations:

1. Range

of

S

1

: 1 ~ 5000 (shown as 0.1

°C ~ 500°C). Unit: 0.1°. If (S

3

+1) is set as K0, the range will be 0.1

°C ~

500

°C.

2. Range

of

S

2

: 1 ~ 5000 (shown as 0.1

°C ~ 500°C). Unit: 0.1°. If (S

3

+1) is set as bit0 = 0, the range will be 0.1

°C

~ 500

°C. Therefore, when the user obtain an A/D value from the temperature sensor, the value has to be

converted into a value between 1 ~ 5,000 by four arithmetic operation instructions.

3. If

S

3

< K1, the instruction will not be executed. If S

3

> K200, S3 will adopt K200. S

3

will occupy 7 consecutive

devices.

4. See the specifications of each model for their range of use.

5. Settings of parameter S

3

+1: bit0 = 0 ->

°C; bit1 = 0 ->°F; bit1 = 0 -> no filter function; bit1 = 1 -> with filter

function; bit2 ~ bit5 -> 4 kinds of heating environments; bit6 ~ bit15 -> reserved. See remarks for more

information.

6. D is the value between 0 ~ sampling time × 100. When using this instruction, the user has to adopt other

instructions according to the types of the heater. For example, FTC can be used with GPWM for output pulse

control. “Sampling time × 100” is the cycle of GPWM pulse output; MV is the width of GPWM pulse. See

program example 1.

7. There is no limit on the times of using FTC instruction, but Do not repeatedly use a designated operand in case

an error may occur..

Program Example:

1. Set up the parameter before executing FTC instruction.

2. When X0 = On, the instruction will be executed and and result will be stored in D150. When X0 = Off, the

instruction will not be executed and the previous data remain unchanged.

X0

FTC

D0

D1

D100

D150