Numerical integration of the ERROR in a PI controller

Click For Summary
SUMMARY

This discussion focuses on the numerical integration of error in a Proportional-Integral (PI) controller implemented in Fortran77 for a binary distillation column model. The user initially employed the explicit Euler method to compute the integral term of the error but seeks alternative numerical integration methods. It is established that while various algorithms exist for numerical integration, the specific choice is less critical in the context of a PI controller, as the primary goal is to ensure that the integral value increases with sustained error, thereby driving the error to zero in steady state.

PREREQUISITES
  • Understanding of PI controller dynamics
  • Familiarity with numerical integration methods, specifically explicit Euler
  • Basic knowledge of Fortran77 programming
  • Concept of error dynamics in control systems
NEXT STEPS
  • Explore the Trapezoidal Rule for numerical integration in control systems
  • Research the implementation of Simpson's Rule in Fortran77
  • Investigate the effects of integral windup in PI controllers
  • Learn about the application of numerical integration in chemical process control
USEFUL FOR

Control engineers, software developers working with Fortran77, and anyone involved in the design and implementation of PI controllers in industrial applications.

pid3control
Messages
2
Reaction score
0
good day all.i've just written a program in fortran77 for the model of a binary distillation column.i included a PI controller in my program.To obtain the integral term of the PI,I used the explicit euler to numerically integrate the error.i would love to compare my results using another method to numerically integrate the error.but I'm confused.the euler method was quite simple.i defined ERINT as the integral of the error (∫E).and since E(i.e the error) is the derivative of the integral i simply employed euler to solved the resulting ODE.That is,

ERINT(n+1)=ERINT(n) + TE(n) where T is the step size

please which other method simple can i use to obtain the integral term.can i also see simple chemical processes (in fortran77) where they are applied in a PI controller it obtain the integral term? please an answer would be greatly appreciated.many thanks
 
Last edited by a moderator:
Technology news on Phys.org
There are many algorithms for numerical integration. But there is no justification for them in a PI controller. You are not integrating a specific differential equation. You are not predicting position by integrating velocity. All you want is some function that forces E(n) to zero in the steady state. It doesn't matter whether it is a pure or an accurate integration.
https://en.wikipedia.org/wiki/Numerical_integration
 
The use of an integral in a PI feedback system is very forgiving of any errors in the integration (and of many other errors for that matter). The only real requirement is that the integral value will increase if there is a sustained error. In fact, the value of the integrator is usually multiplied by a constant before it is used. That is done to give the system the desired dynamic response.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 15 ·
Replies
15
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 4 ·
Replies
4
Views
6K
Replies
2
Views
5K