Controllogix PID in very slow reacting loop

terry56

Member
Join Date
May 2010
Location
California
Posts
45
Hey guys,
I have a Controllogix and I am tying to control a PID loop for Chlorine (CL2). The trouble is the mixing point is 15 minutes away from where the CL2 is injected, so there is 15 minutes time lag!!

What method do you think is best for control- straight PID or a cascaded PID?

Thanks for any help.
 
Chlorination is tough. I wouldn't use PID at all.

Residual transmitters used to be notoriously unreliable. Newer ones may be better - it has been some years since I worked with them.

I would start out with flow paced feed, where the feed rate is a ratio times your wastewater flow rate. Once that is getting you close (a little higher residual than necessary is better than under-dosing) then you can add a simple roll your own control. Use a time delay. Periodically add or subtract a small increment to you ratio if your residual is over or under setpoint. Use a slightly different increment on increase than decrease to avoid hunting.
 
Tom, didn't you basically describe what a PID does? Just use the P and the I, D in this case would just make it harder to get to where you need to get.

Edit -
That isn't a statement meaning to offend. Just ribbing a little. Oh, I would say straight PID but then what are your two control variables going to be in the cascade arrangement?
 
Last edited:
I guess with a 15 minutes delay, not much you can do to speed it up... In less you know what is coming before it gets there.
 
Hey guys,
I have a Controllogix and I am tying to control a PID loop for Chlorine (CL2). The trouble is the mixing point is 15 minutes away from where the CL2 is injected, so there is 15 minutes time lag!!

What method do you think is best for control- straight PID or a cascaded PID?

Thanks for any help.
A cascade loop will do you no good unless you have two feed back devices.
Tom is right about using a PID. I have one of Tom's articles where he used a model. I have never done a chlorine system but I have researched enough to know that that free chlorine is not linear with the dosing and this is why Tom doesn't like a PID. However, a PID can be made to work with care and a lot of effort. A Smith Predictor like queue is required and some idea of how fast the reactions take place is also required. From what I have read this is not an easy application for a PLC and I am surprised that no one has made a dedicated controller for this application yet since it seems to be a common one.
 
By contractual issues I assume you have a set of plans and specs that call for PID control, undoubtedly written by a process/civil engineer who has never commissioned a control system in his life. Ah yes - the wonder of shelf specs. I have come to the conclusion that a great many programmers and engineers think that "PID" is synonymous with "analog control", even though that is not really the case.

You and Peter are correct - you can make PID work, although it can be somewhat painful. Refinements to the PID algorithm such as tolerance can improve your odds, and very low gain will also help. Nonetheless, even the textbooks will state that PID is not suitable for slow response systems.

One trick I have used in similar circumstnces is to provide two operator selectable algorithms. The specs probably do not say you can provide only PID. I basically provide two subroutines. One implements PID, one implements logic similar to my description above. The operator can switch to the one that works best. Set up both, demonstrate both at the acceptance test, and then let the operator decide. You comply with the contract documents, the system will work, the engineer will have his spec met, and everyone will be happy. Something to consider if you get too frustrated tuning the PID at commissioning.
 
Right, Peter - I meant systems with large process time lags. In the case of chlorination there are transport lags because the distance between the chlorine feed pump and the injection point is long, and involves a lot of equipment such as evaporators or dosage pumps. Even more significant response delays occur because the residence time in the chlorination tank from the point of injection to exit is a minimum of 15 minutes and more likely an hour or more. To make it more problematic the reaction isn't stoichiometric because suspended solids, ammonia, and nitrate concentrations vary and these absorb and react with the chlorine.
 
To be honest, Peter, I am not a sufficient scholar in this area to differentiate between transport time, process time constants, and dead time. All I know is that there is a time lag of many minutes between a change in control output and the response in the measured process variable. This plays heck with the control, regardless of which mechanism predominates.
 

Similar Topics

Morning all, Could anyone shed some light on whats happening with my PID Loop? On our plant we have a 'fast ramp' on the PID Instruction done...
Replies
14
Views
7,610
Hello, I have a PID that I am using for an oxygen valve that regulates the pressure. Often when the header pressure is too low, the output will...
Replies
4
Views
1,281
Hello all, I have a pump that has operational limits 15-100% Speed (9-60Hz). 1. On the PID instruction would you limit (.MINO=15% and...
Replies
21
Views
5,165
Why is my PID .PV (Process Variable) getting continually overwritten with some strange value every time the rung my PID Instruction is on goes...
Replies
4
Views
2,136
Hi there, I have a PID which I limit at MINO = 25% and MAXO = 100%. When the PID runs for the first time it takes time to start reacting at 25+%...
Replies
3
Views
3,066
Back
Top Bottom