8 Application Instructions API 100-149 API 145 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 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; bit0 = 1 -> 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 the 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 DVP-PLC Application Manual 8-62 Mnemonic Operands Function FTC Fuzzy Temperature Control Type OP Bit Devices Word Devices Program Steps X Y M S K H KnX KnY KnM KnS T C D E F FTC:
9 steps S 1 * * * S 2 * * * S 3 * D * PULSE 16-bit 32-bit SA SX SC EH SV EH3 SV2 ES EX SS EH3 ES EX SS SA SX SC EH SV EH3 SV2 ES EX SS SA SX SC EH SV SV2 FTC D0 D1 D100 D150