Author Topic: PID questions  (Read 11073 times)

Ken Talley

  • Newbie
  • Posts: 12
    • View Profile
PID questions
« on: October 11, 2002, 05:23:05 PM »
Hello,

I have a few questions regarding the PID function.  I think I have the P figured out.  The P is simply what is the error is multiplied by to create an output.  This number is then escalated by the I value with respect to time?  Is the s shown in the definition of PID compute refering to seconds?  I am trying to compute a very rapidly changing flow rate and hope to run the PID compute 10 times per second.  I am also making the assumption that D is kinda a booster to the whole function.  Would it be possible for someone to show the an actual sample calculation based on a sample PIDdef statement.  I have been researching but have come to the understanding that there are many different versions of PID.  If I could see how the Trilogy PID actually works it would be a great help.

Thanks,
Ken ;D
« Last Edit: December 31, 1969, 04:00:00 PM by 1076562000 »
Ken

support

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3174
    • View Profile
    • Internet Programmable PLCs
Re: PID questions
« Reply #1 on: October 13, 2002, 11:08:31 AM »
When there is an error (= setpoint - output), the error is multiplied by I term and added to the control output, and the term is accumulated (integral) in internal memory and will be applied in the next control output sampling, whereas the last error for P term will not be remembered. that is the fundamental difference between the P and I.

Assuming that there is an error E. A PI control apply some output to correct it. But in the next sample, it is found that the E remain unchanged. The P term will apply the same output since it is based only on the sampled error, but the I term will apply double the last control output, since the last E x I is "integrated" and added to the current "E x I". And if the next sample it finds that the E remain the same (i.e. control output did not manage to result any changes to the error), then additional output will be applied due to the cumulative effect of the I term until the output "saturated" or the "limit" is reached.

Hence, if the sample time of your control system is small, but the system inertial is large (meaning system changes slowly with respect to change of control output) the I term can accumulate quickly and drive the control output to saturation and the system can fluctuate wildly, so use it with caution. It is not always necessary to have very short cycle time for digital control, it really depends on the dynamics of the system. If the system is slow then the system does not change rapidly in response to change of control output then a longer sample period may be more beneficial since it allows time for the system to react to the output change.
« Last Edit: December 31, 1969, 04:00:10 PM by -1 »
Email: support@triplc.com
Tel: 1-877-TRI-PLCS