News:

  • September 24, 2026, 03:27:54 AM

Login with username, password and session length

Author Topic: Understanding PID  (Read 8037 times)

Garyhlucas

  • Hero Member
  • *****
  • Posts: 421
Understanding PID
« on: June 06, 2019, 12:58:45 PM »
We have a PID loop controlling pH which auto tuned really well despite a very slow system response. We were really impressed and pleased by this. The issue we are having is during a cleaning operation the pH probe sees very high or very low pH and we have to stop it for a couple hours.  What we have noticed is despite the rung being off it appears as if it continues to run but with no output.  So when we turn the rung back on it is as if it has accumulated a large error and then makes a huge output change. While we are cleaning the system pH changes very little so it should be able to come back on with minimal bump.  Is there something else we need to do?  In the past I have lied to the loop telling it that it is at setpoint and no change is needed.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: Understanding PID
« Reply #1 on: June 06, 2019, 01:16:59 PM »
The box leg switches between Auto and Manual. While in manual, the input and output scales are still running, but basically nothing else. On the rising edge of the input (initial switch into Auto) there are some things that get initialized internally, which could be causing what you are seeing. That still shouldn't matter much if the PV and SP are close. It points to the PV being considerably different than the SP.

If nothing is changing, you could just bypass execution of the loop by putting in a task that isn't being executed, rather than taking it out of Auto.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3626
  • Darth Ladder
Re: Understanding PID
« Reply #2 on: June 06, 2019, 06:44:39 PM »
It's the integrator running?  Doesn't sound like it should be from BobO's description of man mode.   Is there a bias lock input to the structure?
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

BobO

  • Host Moderator
  • Hero Member
  • *****
  • Posts: 6176
  • Yes Pinky, Do-more will control the world!
Re: Understanding PID
« Reply #3 on: June 06, 2019, 07:28:18 PM »
It's the integrator running?  Doesn't sound like it should be from BobO's description of man mode.   Is there a bias lock input to the structure?

Nothing is running except the PV and Output scales.
"It has recently come to our attention that users spend 95% of their time using 5% of the available features. That might be relevant." -BobO