Via pulse width modulation, the value at the output parameter Output is transformed into a pulse sequence that is output at output parameter Output_PWM.
Output is calculated in the PID algorithm sampling time. The sampling time is used as time period of the pulse width modulation.
The PID algorithm sampling time is determined during pretuning or fine tuning. If manually setting the PID parameters, you will also need to configure the PID algorithm sampling time.
Output_PWM is output in the PID_Compact sampling time. The PID_Compact sampling time is equivalent to the cycle time of the calling OB.
The pulse duration is proportional to the value at Output and is always an integer multiple of the PID_Compact sampling time.
|
① |
PID_Compact sampling time |
|
② |
PID algorithm sampling time |
|
③ |
Pulse duration |
|
④ |
Break time |
The "Minimum ON time" and the "Minimum OFF time" are rounded to an integer multiple of the PID_Compact sampling time.
A pulse or a break is never shorter than the minimum ON or OFF time. The inaccuracies this causes are added up and compensated in the next cycle.
Example
PID_Compact sampling time (equivalent to the cycle time of the calling OB) = 100 ms
PID algorithm sampling time (equivalent to the time period)= 1000 ms
Minimum ON time = 200 ms
Output is a constant 15%. The smallest pulse that PID_Compact can output is 20%. In the first cycle, no pulse is output. In the second cycle, the pulse not output in the first cycle is added to the pulse of the second cycle.
|
① |
PID_Compact sampling time |
|
② |
PID algorithm sampling time |
|
⑤ |
Minimum ON time |
In order to minimize operation frequency and conserve the actuator, extend the minimum ON and OFF times.
If you are using "Output" or "Output_PER", you must configure the value 0.0 for the minimum ON and OFF times.
|
Note The minimum ON and OFF times only affect the output parameter Output_PWM and are not used for any pulse generators integrated in the CPU. |