Delta AS Series Programming Manual page 760

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

Example
1.
You need to set up the parameters before executing DMPID. Switch the operand EN from False to True to execute
this instruction and once the instruction is enabled, the parameters are applied to the modules. If you need to
change parameters during execution, you can use the UPDATE flag to update the parameters (including PID_RUN ~
CYCLE). After the parameters are updated, PLC clears the UPDATE flag.
2.
When M0 is ON, the instruction is executed. When M2 is ON, the DMPID starts to process. When M2 is OFF, MV
value is 0. And the value in MV is stored in D26. When M0 is OFF, the instruction is not executed. And the values in
the instruction is not changed.
3.
When the mode is set to 1, the system starts to auto tuning the parameters for the temperature control. After tuning
is done, the system switches to auto control mode (PID_MODE is set to 0) and fill in the appropriate parameters
(Kc_Kp, Ti_Ki, Td_Kd, Tf, ALPHA and BETA) to data devices. You can also use retentive devices to retain PID
parameters.
4.
You should convert the MV output value based on your needs within the range from 0.0 to 100.0. This example
converts the MV output value to PWM output. Use floating point division instruction F/ to convert the MV value to
Duty cycle ranging from 0% to 100%, and then use floating point multiplication F* to multiply the Duty Cycle and the
period value of PWM so as to get the width of output pulses.
5.
Input the width and period of output pulses to GPWM parameters and PWM control can be performed in the
designated Output pulse device.
1
0
Output pulse width
Duty cycle =
Output pulse cycle
Pulse output width
脈波輸出寬度
脈波輸出週期
Pulse output cycle
Cha p ter 6 App l ied Ins truc tio ns
t
6_
6-481

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents