Professional Documents
Culture Documents
CONTENTS
CONTENTS....................................................................................................................................................................................... 1 An Introduction to Cascade Control : The Theory .................................................................................................................... 2 Cascade Control in Practice: A Start Up Feed Heater.............................................................................................................. 4 Heres how it works. .............................................................................................................................................................. 7 OK, but why use a cascade architecture in the first place?................................................................................................ 7 How a single loop strategy would work: ................................................................................................................................. 8 Without Cascade: Handling a steam flow (level) disturbance. ........................................................................................ 10 Other practical reasons for cascade.......................................................................................................................................... 12 Note: Valve positioners............................................................................................................................................................ 12 Deciding when to use cascade .................................................................................................................................................... 13 Some other examples of cascade control: ............................................................................................................................... 13 Level control:............................................................................................................................................................................. 13 Temperature control via heat exchanger: ........................................................................................................................... 13 Crystal Growth Control ............................................................................................................................................................ 13 Operating a Cascade Control Loop............................................................................................................................................. 14 How to operate a Cascade Loop: Going from Manual to Fully Automatic Operation ................................................... 15 Step 0 ...................................................................................................................................................................................... 16 Step 1 ...................................................................................................................................................................................... 17 Step 2 ...................................................................................................................................................................................... 18 Step 3 ...................................................................................................................................................................................... 19 Step 4 ...................................................................................................................................................................................... 20 Step 5 ...................................................................................................................................................................................... 21 Tuning a Cascade Control System .............................................................................................................................................. 22 1. Tune the Slave ................................................................................................................................................................... 22 2. Tune the Master Loop.......................................................................................................................................................... 23 Stop Winding Me Up! .................................................................................................................................................................... 26 Another windup situation ........................................................................................................................................................ 27
Heres a block diagram of a theoretical Cascade Control System showing all the component parts and signals:
Now, Im not going to talk you through this diagram because Im reckoning that any explanation of how a system works is going to be a lot easier to understand if it is based on a real life example. So to make the whole concept of cascade control clear, lets think about a temperature cascade system. In fact lets use the first control loop I ever tuned, back when I was a spotty 19 year old.
So steam goes into the pressure vessel. When it hits the feedwater tubes it condenses. This creates a column of water in the bottom of the vessel. The steam pressure is controlled by a standalone pressure control loop that opens a valve to reduce pressure and closes it to increase pressure. Forget about this pressure control loop. It is not connected into the cascade loop in any way; I just mention it for completeness. The main aim in life of this Start Up Feed Heater (SUFH) is to get the feedwater to a desired temperature setpoint. The cunning way that this is achieved is by varying the level of the condensate with a level control valve that drains the condensate to reduce the level. To increase the feedwater temperature: Open the level control valve The condensate level drops More feedwater piping is exposed to the steam. Feedwater temperature increases. To reduce the feedwater temperature: Close the level control valve The condensate level rises. Less feedwater piping is exposed to the steam. Feedwater temperature decreases.
The blokes that designed the system implemented this as the cascade control system - shown as a block diagram here:
Figure 3 - A real-life example of a Cascade Control System - Feedwater Temperature Control through a Start Up Feed Heater
It looks bloody complicated, but is actually fairly simple when you break it down.
Heres how it works. The temperature (Master) controller compares the desired feedwater temperature with the actual temperature. If the water needs to heat up, there will be a positive error into the master controller and the reverse-acting master controller will reduce its output. This will signal to the slave controller that the level needs to drop. The slave controller will open the valve to drop the level; the feedwater temperature will rise. If the water still isnt hot enough the master controller will ask for an even lower level. This whole cycle repeats until we hit the temperature setpoint. There will eventually be zero temperature error and zero level error and everything will be nice and stable. OK, but why use a cascade architecture in the first place? Why use 2 controllers when you could get away with 1? The diagram over the page shows how we could control the feedwater temperature with just one controller. Ive deliberately laid it out so that you can see what has been removed from the cascade diagram. Note that the 2 processes in this system remain unchanged. All that we have done is delete the inner (slave) controller and feedback loop. So now the output of the temperature controller directly sets the position of the level control valve instead of going through a second controller:
How a single loop strategy would work: The temperature controller compares the temperature setpoint with the actual feedwater temperature. If the feedwater is too cold, the temperature controller opens the level control valve, the level drops, and the feedwater gets hotter. That is exactly what we want to happen. So why bother with the second loop?
Well, just as with a single PID loop we learned that if it wasnt for the disturbances we wouldnt need a feedback loop (Blueprint page 7), with cascade control systems, if it wasnt for disturbances we wouldnt need a second feedback loop. We implement cascade control so that our system will better handle some disturbances. Note the emphasis on some. Look again at Figure 4. There are 2 distinct sets of disturbances. Those that directly affect the temperature control process. And those that affect the level control process. With cascade control, the disturbances that affect just the temperature process arent handled any better. This kinda makes sense when everything is drawn as a block diagram. (Thats why I always say Block Diagrams Rock! and P&IDs suck) You can see from the block diagram (Figure 4) that the length of the feedback loop that senses and corrects for disturbances that directly affect the temperature is no shorter in the single loop version. If anything it is a teeny bit shorter because it doesnt go through a second controller (which saves 1 sample-time worth of dead time). The block diagram makes it clear however, that the existence of an inner loop provides a much shorter and direct feedback loop to counter any pesky disturbances that will mess with our level control. To make it crystal clear, lets walk through two scenarios. One with cascade. One without.
Without Cascade: Handling a steam flow (level) disturbance. The steam flow increases, which means that our condensate level starts filling more quickly. This means that the level in the pressure vessel rises. The effect of the level rise has to filter through the thermal characteristics of the system as a whole before the rise in level manifests itself as a decrease in feedwater temperature. Only when the effect on the temperature is picked up by the temperature transmitter does the controller realise that it has to do something. The temperature of the feedwater rises. The temperature error increases and the controller opens the valve. The condensate level falls, the temperature increases. The system achieves steady state once again, but not without a noticeable dip in the feedwater temperature. This diagram shows the path of the disturbance with one only controller:
Now lets see how the disturbance is handled with the cascade strategy. I think the picture says it all really:
You can see that the level control disturbance will be handled very quickly here (assuming a well tuned controller!). In fact the thermal lags in the master loop will act as a filter which probably means that any effects of the level disturbance will be almost unnoticeable in the feedwater temperature.
Another point that this diagram makes pretty clear is that cascade is only gonna work well if the inner loop is faster than the outer loop (3 times faster is a good rule of thumb). How do you measure the speed of the loop? Simply measure the open loop time constants (lags) as per the PID Tuning Blueprint (the shorter the lag the faster the loop).
The Master loop controls the rate of change of crystal diameter. The Slave loop controls speed at which you pull the crystal out of the liquid in mm/day.
How to operate a Cascade Loop: Going from Manual to Fully Automatic Operation There are many ways to skin this cat. This is my preferred sequence of operation for putting a cascade loop into Automatic without upsetting the PV. Note that a lot of modern software based control systems will automate many or all of these steps. Even if that is the case with your system, it is always nice to know what the software is doing and why. A note about the diagrams below. It can be quite hard to visualise what is going on in a Cascade loop if you are just reading paragraphs of text. If you are like me your brain soon starts to get a bit fuzzy switching between the concept of slaves and masters going from manual to auto to local. And with 2 control loops there are so many signals everywhere it can be hard to keep track of which signals are internal, external, in your control and out of your control. So I have drawn a diagram for each step of the sequence below. The blue box encapsulates the cascade control loop. All signals external to the cascade loop that bear on its operation can clearly be seen. The external signals that you can directly manipulate are shown in green. The external measurement signals that change due to the controllers actions are in yellow. The disturbances that you have no control over are shown as blue arrows
Youll see that Ive also shown the 3 switches that you have control over, Master AUTO/MAN. Slave AUTO/MAN and Slave LOCAL/CASCADE. Finally the fat red arrows show you what has changed in each step.
Step 0
Start your cascade loop in Fully Manual mode: Master: Manual, Slave: Manual, Slave: Local This gives you manual control of everything, and keeps everything as static as possible.
Step 1
Switch the Slave Controller from Local to cascade. Note that your Master Manual trim now determines the Slave SP.
Step 2
Use the Masters Manual trim control to set the Slaves Setpoint until it matches the Slavess PV. In this example you want the Level Setpoint to match the level measurement. Note: This is the standard way to achieve bumpless changeover from Man to Auto. It is bumpless because if the SP = PV then the Error is zero and the controller output wont want to move anywhere. Many digital control systems have a setpoint tracking feature. This simply continuously updates the manual setpoint to match the PV, so that they are always the same value.
Step 3
When the Slaves setpoint equals its measured PV, switch the Slave controller to AUTO. In this example you will get a bumpless transition to automatic level control with the level setpoint being determined by the value of the Master Controllers manual trim.
Step 4
Adjust the Master Controllers setpoint to match the Master Loops measured PV. In this example, adjust the temperature SP to match the measured feedwater temperature.
Step 5
When the Master SP equals the Master PV, switch the master to AUTO. The cascade control system is now in fully automatic operation.
To put a Cascade control system into Manual from fully Auto, just reverse this sequence.
When you are happy that the slave loop has good closed loop performance, it is time to move on to the Master Loops tuning. 2. Tune the Master Loop When we are tuning the Master Controller, we need treat the Slave loop as just another part of the process, and make believe that we are just tuning a single loop in isolation. In our example, we would just follow the blueprint as if we were tuning a single temperature control loop. Important: Ensure that the Slave loop is in AUTO and CASCADE modes for the whole tuning process. For all open loop step testing, the Master loop will need to be in MANUAL. Heres the setup for tuning the master:
To make it even simpler, the entire Slave loop should just be treated as a black box:
Nah, still too many boxes in that diagram! Lets simplify it even further. When tuning the Master, to all extents and purposes the level control loop is just a part of the Feedwater temperature process. And the feedwater temperature process is just a system which takes the Master (Temperature) controllers MV as its input and converts that to a feedwater temperature as its output.
When you draw the master loop like this, it becomes straightforward to tune it using the Blueprints process:
Figure 16 - Think of tuning the Master just like any other single loop
Another windup situation There is one more situation where cascade loops can wind up. Remember that windup is defined as the Master continuing to change its output even though the Slave cant move any further. Well, if the Slave is switched to Manual and the Master stays in Auto, we can get this situation too. The simple solution is an interlock that forces the Master to manual whenever the Slave goes into Manual.