plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Get the book!

If you're really looking to learn about PLCs, you NEED our book...

"Your Personal PLC Tutor - A Guide to Understanding PLCs"

Easy to read and uses 'plain' language!
Get $$FREE$$ priority mail shipping too!!!
You WILL be glad you did!!

Click Here now to order

Reply
 
Thread Tools Display Modes
Old November 9th, 2004, 08:55 PM   #1
Farid
Member
Sudan

Farid is offline
 
Farid's Avatar
 
Join Date: Jul 2004
Location: UAE
Posts: 79
what is "I" in pid ?

HI, I have been reading all the pid related posts on this site and had an Idea what it is, but still have a question..now why do I have to set for example 30 minuts for the integral ("I")?? What will happen in 30 minutes of time ??


I understand how proportional works...it scale the input signal eg. from an analog input(this is the PV), then compare it with the setpoint
this is the SP, and act accordingly, here I am a little confused..why do I need the integral term ??


any help that will enlighten me I will appriciate alot.

ps: I'd read all the post related to pid so please don't suggest to use the search button on the top of this page loooooooool


thanks in advance
  Reply With Quote
Old November 9th, 2004, 08:58 PM   #2
elevmike
Member
United States

elevmike is offline
 
elevmike's Avatar
 
Join Date: Feb 2004
Location: Detroit, MI
Posts: 4,012
PID= Proportional Integral Derivative
.

http://www.expertune.com/tutor.html
  Reply With Quote
Old November 9th, 2004, 09:03 PM   #3
Farid
Member
Sudan

Farid is offline
 
Farid's Avatar
 
Join Date: Jul 2004
Location: UAE
Posts: 79
thank you Mike..


I'll check this one out... but still need some pointers if anyone else can explain in an easy way (away from math as I don't like math at all, actually I hate it).




thanx.
  Reply With Quote
Old November 9th, 2004, 09:15 PM   #4
elevmike
Member
United States

elevmike is offline
 
elevmike's Avatar
 
Join Date: Feb 2004
Location: Detroit, MI
Posts: 4,012
Farid,

If you really hate math, and are doing a PID loop, your in BIG TROUBLE! utoh
  Reply With Quote
Old November 9th, 2004, 10:01 PM   #5
Mickey
Member
United States

Mickey is online now
 
Mickey's Avatar
 
Join Date: May 2003
Location: Palmdale,Ca
Posts: 4,759
Take a look at this
Attached Files
File Type: zip fundamentals_of_three_mode_controllers_d350406x012.zip (123.7 KB, 294 views)
__________________
Mickey

If you want happiness for an hour-take a nap. If you want happiness for a day-go fishing. If you want happiness for a month-getmarried. If you want happiness for a year-inherit a fortune. If you want happiness for a lifetime-help someone else.
----- Chinese Proverb
  Reply With Quote
Old November 9th, 2004, 10:03 PM   #6
Mickey
Member
United States

Mickey is online now
 
Mickey's Avatar
 
Join Date: May 2003
Location: Palmdale,Ca
Posts: 4,759
Or this
http://members.aol.com/pidcontrol/booklet.html
__________________
Mickey

If you want happiness for an hour-take a nap. If you want happiness for a day-go fishing. If you want happiness for a month-getmarried. If you want happiness for a year-inherit a fortune. If you want happiness for a lifetime-help someone else.
----- Chinese Proverb
  Reply With Quote
Old November 10th, 2004, 02:49 AM   #7
RMA
Member
Scotland

RMA is offline
 
RMA's Avatar
 
Join Date: Sep 2004
Location: North of Hamburg, Germany
Posts: 1,920
Basically elevmike is right when he says if you don't like math you're in trouble, although lots of experience (say 20 - 30 years) is also pretty good.

The basic problem is that depending on your other parameters, it can happen that for a relatively small offset the output may not change sufficiently to cause a response in the loop. By integrating the error over a period of time you cause the output to react as though the error was increasing with time so eventually causing a reaction in the loop.

Unfortunately, to know how much integral term to use you either need the maths, or a very good gut feeling for the process. As with all the parameters if you're not sure, start out VERY gently, too much integral term can cause chaos!
  Reply With Quote
Old November 10th, 2004, 04:47 AM   #8
Ken Moore
Member
United States

Ken Moore is offline
 
Ken Moore's Avatar
 
Join Date: May 2004
Location: Upstate South Carolina
Posts: 2,246
Whenever I try to explain PID loops to the maintenance guys, I tell them this.

P= how far off am I
I= how long have I been here
D= how fast am I going


For some reason that seems to work best with them.


Ken
__________________
"To give real service you must add something that cannot be bought or measured with money; and that is sincerity and integrity."
- Donald A. Adams

  Reply With Quote
Old November 10th, 2004, 06:35 AM   #9
Farid
Member
Sudan

Farid is offline
 
Farid's Avatar
 
Join Date: Jul 2004
Location: UAE
Posts: 79
hi all,

prince Mike,


I hate math , though I know basic math, but it seems to be frustrating every time, I think about tuning PID, its goes like mt ,kc bla bla ...well why not using a simple terms?? or is it just about keeping humble persons like me out of the track ??


RMA ,

I have alot of experience , as I have done many tasks and I am in the feild now for 15 years..I used to work on hydraulic presses and cut-to-length machines and I have made lots of systems runing effeciently since long time now.


thank you alot Ken,

I am lookin for this kind of answers, somthin'readable to me..
what will happen when the "I" time elapse, say 30 minuts?? is the loop will stop? or is it gonna increase the output more rapidly? what is it ? or it will start to popen the output at its maximun value gradualy till it reaches 30 mnts?? I'm kinda lost out here

I have been reading Ron beaufort's threads , very intersting, especialy the buick thing and the story of his wife's car.

I am not an engineer, I have graduated from high school, And worked in a factory for roll formming machines and , I tell you, one can learn alot in such factories...hydraulics,pneumatics,etc..

what I need is an answer to my question : what will happen when the integral time elapse??


thanx to all for baring with me.
  Reply With Quote
Old November 10th, 2004, 08:46 AM   #10
DonsDaMan
Member
United States

DonsDaMan is offline
 
Join Date: May 2003
Location: Houston, TX
Posts: 155
I like the thumbnail description you gave of PID, Ken. I'm going to steal it.

Anyway, for an understanding, you have to know what the PID is doing.

A PID is a controller for some process. When the process is in balance (output is doing what the input wants it to do) there is no error, and everything stays at the present level.

Then, something happens. Perhaps the operator increases the input, which we call a reference, for example. Now, the controller output is too low, and we have to increase it, but by how much? This is where the PID comes in.

If the operator changed the input very quickly, then the D term becomes the dominant term. We change our controller output quickly, because the input (actually the error) changed quickly. The D change occurs because the RATE of the change of the error is high. "Change the output by an amount proportional to the rate of change," says the D term.

Now, we're probably very close to the right output, but still off by a bit. At this point, the P becomes dominant. The P term is like a multiplier. Using 6 as the P gain: "I'm 2 away (error), so I'll change my control by 12... Now, I'm 1.5 away, so I'll change it by 9... Now, I have an error of 1.0, so I'll change it by 6."

As you can see, eventually the error becomes so small, that no real change is made in the controller. "Change the output by an amount proportional to the error itself," says the P term.

This is where the I term comes in. The I just keeps track of changes made so far, and says, "and keep making them." The P only wanted to change by 0.6 when the error was 0.1, but the I term says, "Hey, you changed by 12 just a little while ago, so I'm going to make you keep changing by a bit more," and *adds* its adjustment (it's gain times the "average" error) to the P adjustment. "Change the output by an amount proportional to the summation of errors I've had so far," says the I term.

As one last note, the I term averages the error over a set period of time, so errors that occurred before this are ignored.

I hope this helps.

Don
  Reply With Quote
Old November 10th, 2004, 08:49 AM   #11
shoeman
Member
United States

shoeman is offline
 
shoeman's Avatar
 
Join Date: Oct 2004
Location: Cincinnati, OH
Posts: 24
One other confusion factor

Proportional v/s Gain

Intergral v/s Resets

The terms are interchangeable but not the same. Any good PID reference should explain the difference. Also note that resets can be resets/min or min/reset and even use seconds in some systems. Keep this in mind while tuning and you should be ok.
__________________
I thought I was wrong once, then I got married.
  Reply With Quote
Old November 10th, 2004, 08:54 AM   #12
kamenges
Member
United States

kamenges is offline
 
kamenges's Avatar
 
Join Date: Nov 2002
Location: Brillion, WI
Posts: 2,635
I've always been a little confused by integral times myself, mostly because the involve an implied basis and I'm not sure what that basis is. But I'll take a shot here. Even if my basis is wrong the concept is the same.

An 'integral time' or 'reset time' (same thing) of 30 minutes will cause a one unit change in output given a 1 unit error in 30 minutes. As an example, consider a system with a setpoint of 10 and an actual value of 9. This produces an error of 1 (10-9). Assume the error is constant. An integral time of 30 minutes would cause the control output to ramp up slowly by one additional output unit over 30 minutes. So if your output at the start of the 30 minutes was 100, all other things being constant, your output after 30 minutes would be 101. And this is a continuous process so after 15 minutes your output would be 100.5. Also, as a continuous process, there is no beginning or end to the 30 minute period. Look at it relatively. Over ANY arbitrary 30 minute period the output would increase by one unit.

Now, if the error were 2 units, the output would increase by 2 output unite in 30 minutes. Also, if the integral time were 15 minutes with an error of one unit the output would change by one unit in 15 minutes. And this increase (or decrease if the error is negative) will continue until the output reaches it's positive (or negative) limit.

I hope this helps.
Keith

Edit: I really do type slow!!!
  Reply With Quote
Old November 10th, 2004, 08:59 AM   #13
Tom Jenkins
Member
United States

Tom Jenkins is offline
 
Tom Jenkins's Avatar
 
Join Date: Apr 2002
Location: Milwaukee, WI
Posts: 4,349
I use an explanation along the lines of Ken's.

Proportional looks at the present state of the control loop

Integral looks backward

Derivative looks forward

Technically the integral term is there to eliminate "droop". This is the inherrent tendency for a "pure" proportional loop to have, at steady state conditions, an offset or permanent error between the setpoint and the process variable.

Integral isn't really a time delay, which is how intuitively (and incorrectly) we tend to interpret the integral tuning term "resets per minute". It actually sums over time the difference between the setpoint and the process variable and adds a little push to the controller output to eventually eliminate the offset or droop. The tuning "resets per minute" defines how hard to make each each little push of the output. The loop is actually executing continuously in the mathematics.

The tuning term's name is a historical artifact of the old names for a three mode controller - Proportional, Reset, and Rate. For the old analog or pneumatic single mode Proportional Only controllers the operators would manually get rid of droop by tweaking the setpoint adjustment until the droop disapeared - in effect "resetting" the setpoint.

And before you ask, Derivative adjusts the controller output based on the Rate of change of the process variable in order to minimize overshoot. Mathematically it calculates the derivative, which is the slope of the process variable - the rate of change over time of the process variable. The tuning name, derivative rate per minutes or seconds, actually defines the relative effect of the rate on the controller output. Again the mathematics is usually continuously executed in the controller.

Confused yet? Join the club! Difficulty in explaining the tuning concepts to operators is one of the many reasons I aboandoned PID control years ago for floating control.

Last edited by Tom Jenkins; November 10th, 2004 at 09:01 AM.
  Reply With Quote
Old November 10th, 2004, 09:05 AM   #14
kamenges
Member
United States

kamenges is offline
 
kamenges's Avatar
 
Join Date: Nov 2002
Location: Brillion, WI
Posts: 2,635
Quote:
Originally posted by Tom Jenkins:

The tuning term's name is a historical artifact of the old names for a three mode controller - Proportional, Reset, and Rate. For the old analog or pneumatic single mode Proportional Only controllers the operators would manually get rid of droop by tweaking the setpoint adjustment until the droop disapeared - in effect "resetting" the setpoint.
Thanks, Tom. I was always curiuos about where that term came from.

Keith
  Reply With Quote
Old November 10th, 2004, 09:24 AM   #15
mordred
Member
Canada

mordred is offline
 
mordred's Avatar
 
Join Date: Mar 2004
Location: Red Deer
Posts: 1,883
Some references will also use different terms.

Gain=proportional
reset=integral
rate=derivitive.

oops should have read Tom's post sorry bout the repeat
__________________
Can I ground short a Sparky?

Last edited by mordred; November 10th, 2004 at 09:27 AM.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
AB PLC5 PIDs Derek McFarland LIVE PLC Questions And Answers 23 March 2nd, 2005 01:18 AM
PID - A challenge, is a PID good enough? Peter Nachtwey LIVE PLC Questions And Answers 19 July 18th, 2004 10:10 PM
Use a PID? MarBa LIVE PLC Questions And Answers 4 May 8th, 2003 08:31 PM
how often should I trigger the PID? Ron Beaufort LIVE PLC Questions And Answers 11 February 22nd, 2003 10:57 AM
Cascading Sparky LIVE PLC Questions And Answers 24 February 17th, 2003 11:33 AM


All times are GMT -5. The time now is 12:03 AM.


.