DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming Example 1: control diagram FTC D22 MV Y0 GPWM Program D11 PV Temperature Sensor PT Module Output D22 (MV) of FTC instruction is the input D22 of GPWM instruction, as the duty cycle of ajustable pulses. D30 is the fixed cycle time of pulses. See below for the timing diagram of Y0 output. D22 Y0 D30 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:
3-356 SV + e Fuzzy Controller 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 END MOV K1500 D10 TO K0 K2 K2 K1 FROM K0 K6 D11 K1 MOV K60 D12 MOV K8 D13 MOV K6000 D30 SET M1 FTC D10 D11 D12 D22 GPWM D22 D30 Y0 FROM K0 K6 D11 K1