Previous in Forum: codless phones programming   Next in Forum: How to Build an AM Transmitter
Close
Close
Close
15 comments
Rate Comments: Nested
Associate
United States - Member - New Member

Join Date: Jan 2008
Location: Chicago, IL
Posts: 26

PID Loop and Automation Direct PLC

11/10/2009 11:08 AM

Good morning,

I am having some problems with my pid loop in my automation direct plc that is controlling my condensor cooling.

I have an Automation Direct DL06-AR plc with an analog input/output card (i am at home and cannot remember what the model number is).

the plc controls the coolant to the coolant towers for an ammonia condensor system and the system is controlling a psi input set to 160 psi.

there are 3 coolant pumps that come on in a step configuration when the process value (pv) exceeds the setpoint with a 2 psi deadband.

after the 3 pumps, there are 2 fans that are controlled by vfd's that come on 1 at a time. these fans are the ones that are controlled by the pid loop in the plc. 0 to 60 hertz.

the problem that i am having is that the output of the pid loop is steadily climbing over a period of a few days, and apparently sticking at 60 hertz. so when the fans are called on, they ramp up to max output. they have also gone the other way and stuck at 0 hertz.

the setup of the pid loop is as follows: (setup was from chapter 8 of the do-06 users manual).

Config tab:

algorithm - position
sample rate - 0.05 sec
transfer mode - Bumpless 1
sp/pv & output format - common format
common data format - bipolar data format
- 12 bit data format

sp/pv tab:

nothing is set on this tab.

output tab:

upper limit - 4095
lower limit - 0

tuning tab: (these values have been adjusted to various levels. the ones listed are the latest values)

gain - 2
reset - 30 sec
rate - 0

all other values are default including the alarms and r/s tabs.

apparently, the bias value (which can be monitored and adjusted from the pid view pane in directsoft 5 software) is climbing and sticking at a value of 4095.

any help would be greatly appreciated. I am also new to plc's and apologize for any missing information, which i will gladly provide.

Thank you,

Ken Edwards

Engineering Student
Maintenance Man

__________________
Whoaaa...... Did anyone else see that?
Register to Reply
Pathfinder Tags: PID PLC
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.
Associate
United States - Member - New Member

Join Date: Jan 2008
Location: Chicago, IL
Posts: 26
#1

Re: Automation Direct PLC pid value wont piddle.

11/10/2009 11:16 AM

Some important information that I forgot to add:

we dont have the cleanest power in this area of the plant. there was a power spike or something that took out one of the inputs from one of the pump controllers. This also damaged the original plc. there is a new plc now, but the I/O card is the original one.

__________________
Whoaaa...... Did anyone else see that?
Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#2

Re: Automation Direct PLC pid value wont piddle.

11/10/2009 11:29 AM

Direct acting/reverse acting. Is this feature correctly set?

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Associate
United States - Member - New Member

Join Date: Jan 2008
Location: Chicago, IL
Posts: 26
#3
In reply to #2

Re: Automation Direct PLC pid value wont piddle.

11/10/2009 2:16 PM

sorry. it's a cooling loop, so i set it to reverse acting.

Ken

__________________
Whoaaa...... Did anyone else see that?
Register to Reply
Guru
United Kingdom - Member - Indeterminate Engineering Fields - Control Engineering - New Member

Join Date: Jan 2007
Location: In the bothy, 7 chains down the line from Dodman's Lane level crossing, in the nation formerly known as Great Britain. Kettle's on.
Posts: 32175
Good Answers: 839
#5
In reply to #3

Re: Automation Direct PLC pid value wont piddle.

11/11/2009 7:04 AM

What happens if it is set to direct acting (the forum doesn't know at this time what the loop is driving)?

__________________
"Did you get my e-mail?" - "The biggest problem in communication is the illusion that it has taken place" - George Bernard Shaw, 1856
Register to Reply
Associate
United States - Member - New Member

Join Date: Jan 2008
Location: Chicago, IL
Posts: 26
#6
In reply to #5

Re: Automation Direct PLC pid value wont piddle.

11/11/2009 11:15 AM

I'm sorry PWSlack, I don't understand what your confusion is. The loop is driving 2 VFD's that are controlling fans on the roof in two coolant towers. The coolant is ammonia. Am I missing something that is relavant to this?

The input that is driving the loop is pressure. When the pressure goes up, we turn on the coolant to drive it down.

This is a pre-existing setup.

I did try direct acting, but I believe that it was before I realized that the PLC was bad.

__________________
Whoaaa...... Did anyone else see that?
Register to Reply
Anonymous Poster
#4

Re: PID Loop and Automation Direct PLC

11/10/2009 11:45 PM

It looks like you are suffering from Reset Windup, the Reset component of the PID settings is slowly ramping in either direction whilst not in use and causing either a 0% or 100% output to be present when the controller is required to be bought into action. Modern controllers have a feature called "Anti Reset Windup" function, you may have this option in your PLC PID Controller, it may be an optional extra (software) or it may not be available for your hardware. If not available the only option is to force the controller into Manual when not in use, to "freeze" the output, and then force it into Auto when it is needed. This should be able to be done in logic in PLC.

Rok

Register to Reply
Associate
United States - Member - New Member

Join Date: Jan 2008
Location: Chicago, IL
Posts: 26
#10
In reply to #4

Re: PID Loop and Automation Direct PLC

11/12/2009 10:47 AM

Hi Rok,

there is a setting called Bias Freeze. I've tried this setting without much success.

I am wondering if there is an issue with my analog I/O card.

at this moment, I have the Gain set at max, and the Integration set to 99.99 (which forces it to 0) and the output should be swinging wildly, but i'm not getting higher then an output equivalent to 15 hertz and it never quite makes it back down to 0 hertz.

Ken

__________________
Whoaaa...... Did anyone else see that?
Register to Reply
Anonymous Poster
#7

Re: PID Loop and Automation Direct PLC

11/11/2009 5:06 PM

Hi Kandanews;

  • For your application you don't need R/S enabled (Ramp/Soak) because it will cause exactly the behavior you describe, go to that tab and de-select it.
  • If it is already disabled, try changing the algorithm to velocity, or the PID will continue to increase the output until some expected "position" is met (which is never, you don't have a position controller but a speed controller).

Do one thing at the time, if the first step fixes it, don't mess with it any further and make a back-up of your config.

I hope this helps.

Yahlasit

Register to Reply
Associate
United States - Member - New Member

Join Date: Jan 2008
Location: Chicago, IL
Posts: 26
#9
In reply to #7

Re: PID Loop and Automation Direct PLC

11/12/2009 10:40 AM

Thank you Yahlasit for your reply.

The R/S is not enabled. I switched to the velocity like you suggested, but absolutely nothing happened with the pid. Both the bias value and the Output value stayed on 0.

Question? Could there be an issue with my analog I/O card causing problems with the pid loop.

before this the loop worked just fine. It cycled all the way up to 60 when called, then back down to 0 (appeared to be in increments of 15 hertz). Now the loop is very sluggish incrementing by 2 or 3 hertz and it only makes it up to about 15 hertz.

Thanks for everyones answers and support

__________________
Whoaaa...... Did anyone else see that?
Register to Reply
Member

Join Date: Nov 2009
Location: Fish Pond Bay in the Black Gum Swamp Georgia
Posts: 5
#8

Re: PID Loop and Automation Direct PLC

11/12/2009 2:34 AM

Have you checked the winding current of each pump phase? Plus the fan current? Check them in the Am vs Pm temps. You setup looks ok for most apps. Could be an I/O board from any vfd too. Oooh ammonia. Very corrosive. Do's wonders for electrical connections. We use a lot of clorine and peroxide. Sometimes a unit just disintegrates.

__________________
Greypoopon
Register to Reply
Associate
United States - Member - New Member

Join Date: Jan 2008
Location: Chicago, IL
Posts: 26
#11
In reply to #8

Re: PID Loop and Automation Direct PLC

11/12/2009 10:52 AM

:) I agree with the corrosive portion of your comment.

I have not gone outside of the controller to do any checks. Could an output card from the vfd cause my loop to be sluggish?

there is no feedback from the vfd to the controller. it all runs off the system pressure input. Only 1 input to the control. the other inputs are only to show that the pumps and fans are on.

Ken

__________________
Whoaaa...... Did anyone else see that?
Register to Reply
Power-User

Join Date: Nov 2009
Posts: 335
Good Answers: 63
#12

Re: PID Loop and Automation Direct PLC

11/22/2009 9:09 PM

1) You've got the wrong control action. It needs to be direct action, not reverse action.

The industry standard for direct action is when the PV exceeds the setpoint, the output has to INCREASE to deal with the error. If the fans have to speed up to move more air to remove more heat the hotter it gets, then that is a definition of direct action (ISA standards)

20 years ago, Texas Instruments inverted the industry standard definition of reverse and direct acting, and since Koyo makes AD, there might have been a continuing historical anomaly. But according to AD's manual, that's not the case.

AD's definition of control action is on page 14 of the CL05/06 chapter on PID (http://www.automationdirect.com/static/manuals/d0user/ch8.pdf)

pg 14 Reverse Acting Loop
Although the PID algorithm is used in a direct, or forward, acting loop controller, there are times when a reverse acting control output is needed. The DL05 loop controller allows a loop to operate as reverse acting. With a reverse acting loop, the output is driven in the opposite direction of the error. For example, if SP > PV, then a reverse acting controller will decrease the output to increase the PV.

Your setting for 'reverse' action is incorrect. When the SP>PV, the PID output will decrease (slow down, lower VFD Hz output) as it gets hotter. You need the output to INCREASE, not decrease.

2) According to the way I read the CL05/06 chapter on PID (http://www.automationdirect.com/static/manuals/d0user/ch8.pdf)
you should use position algorithm.

pg 9:
The DL05 uses two types of PID controls: "position" and "velocity". These terms usually refer to motion control situations, but here we use them in a different sense:
• PID Position Algorithm – The control output is calculated so it responds to the displacement (position) of the PV from the SP (error term).
• PID Velocity Algorithm – The control output is calculated to represent the rate of change (velocity) for the PV to become equal to the SP.

3) > I have the Gain set at max, and the Integration set to 99.99 (which forces it to 0)

The manual says:
Eliminating Integral Action:
The effect of integral action on the output may be eliminated by setting Ti = 9999. When this is done, the user may then manually control the bias term (Mx) to eliminate any steady-state offset.

It isn't clear from the manual whether 99.99 (presumably seconds) turns the integral factor off. I doubt it. I think that's an integral factor of ~ 100 seconds. A value of 9999 minutes produces so little reset action that it effectively disables reset/integral. But that's a guess.

I doubt your process warrants disabling reset/integral action, but to do so I suspect you'd have to change the integral units to minutes and the setting to 9999.

What I find confusing is that my first reaction was 'reset windup', especially with a 30 second reset term. But you say it takes a day to max out the output. Of course, if the control action is wrong, all bets are off.

4) I am confused about AD's bias deal. I think they mean what was historically called "manual reset", but it isn't clear on my first read. If I were messing with it, I'd turn Bias off, not 'freeze', but set bias = 0 and see what happens, disable bias freeze and see what happens.

Register to Reply
Associate
United States - Member - New Member

Join Date: Jan 2008
Location: Chicago, IL
Posts: 26
#13
In reply to #12

Re: PID Loop and Automation Direct PLC

12/01/2009 2:37 PM

Thank you Carl. I will look into this today. Sorry it has taken so long to reply. The coolant has been working, although, no where near any resembalance to any PID loop I have seen. Probably due to the cooler weather.

So that project was effectively put on the back burner.

__________________
Whoaaa...... Did anyone else see that?
Register to Reply
Power-User

Join Date: Nov 2009
Posts: 335
Good Answers: 63
#14

Re: PID Loop and Automation Direct PLC

12/01/2009 11:30 PM

I stand corrected. When your post popped up, I re-read what the AD manual said and realized I had misread it the first time.

AD quote, "if SP > PV, then a reverse acting controller will decrease the output to increase the PV."

That does indeed invert the ISA standard.

The ISA standard for reverse action is:
PV > SP, output decreases
SP < PV, output decreases
PV < SP, output increases
SP > PV, output increases


The ISA standard for direct action is:
PV > SP, output increases
SP < PV, output increases
PV < SP, output decreases
SP > PV, output decreases


AD definition of reverse action, when SP > PV, output decreases; is the opposite of the ISA standard.

So your decision to opt for reverse action in the AD does fit the action you need.

Register to Reply
Associate
United States - Member - New Member

Join Date: Jan 2008
Location: Chicago, IL
Posts: 26
#15
In reply to #14

Re: PID Loop and Automation Direct PLC

12/02/2009 3:16 AM

Don't stand corrected. I appreciate the help that knowledgable persons like yourself take the time to help up and coming knowledgable persons like me.

and I went back and changed to a forward acting loop and the output went the wrong way. but It still does not work properly. I have some help in the form of control engineers coming to visit my plant tomorrow. I will let everyone know what we come up with. there is something wrong in there and i don't believe it is "setup". i believe the problem is a faulty component. and I am betting on the I/O card.

__________________
Whoaaa...... Did anyone else see that?
Register to Reply
Register to Reply 15 comments
Copy to Clipboard

Users who posted comments:

Anonymous Poster (2); Carl_E (2); greypoopon (1); kandanews (8); PWSlack (2)

Previous in Forum: codless phones programming   Next in Forum: How to Build an AM Transmitter

Advertisement