DVP-ES2/EX2/EC5/SS2/SA2/SX2/SE&TP Operation Manual - Programming
Example 1: control diagram
Fuzzy
Controller
FTC
SV
D10 D22
MV
Y0
D11
PV
+
e
PT Module
GPWM Program
Temperature
Sensor
Output D22 (MV) of FTC instruction is the input D22 of GPWM instruction, as the duty cycle of
adjustable pulses. D30 is the fixed cycle time of pulses. See below for the timing diagram of Y0
output.
Assume parameter settings: D10 = K1,500 (target temperature), D12 = K60 (sampling time: 6 secs.),
D13 = K8 (bit3=1), D30 = K6,000 (=D12*100)
The example control program is indicated as:
M1002
MOV
K1500
D10
TO K0 K2 K2 K1
FROM K0 K6 D11 K1
MOV K60 D12
MOV K8 D13
MOV K6000 D30
SET M1
M1
FTC D10 D11 D12 D22
GPWM D22 D30 Y0
M1013
FROM K0
K6
D11 K1
END