Gain scheduling with PidAdvancedCC
I am using a PidAdvancedCC to implement a PID control with gain scheduling (two parameter sets) for which I have a question.
Here is my configuration:
The selection of the parameter sets is configured to be based on Eps. The gain scheduling limit is set to 0. The reference signal max value is 100, and the min value is -100.
Switching works in principal as expected. However, there seems to be some kind of dead zone when switching from one set to the other, which is not desired in our case. Currently, a switch from set 1 to set 2 is not happening until Eps is <-5. Similarly, a switch from set 2 to set 1 is only happening once Eps is >5. I understand that a certain dead band might be desired but how can I reduce it to, e.g. -/+1 instead of -/+5, which seems random to me. I could not find any information on this in the documentation.
Thanks in advance for your help.
it could be because a small hysteresis function is built in, to avoid frequent switching between two parameter sets when a noisy reference signal passes a limit.
My be you can try settinfCOntroller response to Fast (3)
You can set the DeadZone to different value , par.<Your PID Name>.Main.DeadZOne:= 1.0.; default is 0.0
Vary deadzone see the epsilon results.
PS: If PidAdvancedCC is used, the calculation of the derivative part has no dependency to the selected dead zone. This means that the output signal may change even if the difference between Sp and Pv is less than the dead zone value. Small changes in Pv is filtered by a special low pass filter assigned for the derivative part.