Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

PID loop for AB plc 1

Status
Not open for further replies.

7723

Electrical
Apr 11, 2002
1
I have to write a PID algorithim for an AB plc (with out using the pid function) The P term is fine but i am having problems with the integral and derivitve terms any suggestions on how to go about programming these???
 
Replies continue below

Recommended for you

The solution may lie in the definition of PID control.
P=Proportional, control response proportional to error.
I=Integral, the control response is proportional to the "area" of error versus time. A simple calculation would be to periodically (e.g. once per second) calculate error, and accumulate the error in a register. The value of the register would represent the product of error and time, giving a representation of integral error.
D=derivative, effectively is the error moving closer or further away from the setpoint. Another way of looking at it is the slope of the control parameter. This could be calulated by measuring the control parameter periodically, and subtracting successive measurements.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor