Cascade PID - Help Getting Started

Damn! I am late to the show! I didn't get a chance to make any pop corn.
I am assuming drbitboy's diagram is correct.
Good job extracting teeth drbitboy. Counter flow heat exchangers are the most efficient there are formulas for calculating the how the heat exchanger will transfer heat between the hold and cold.

Heat exchangers are not linear. Hopefully the set point of the tank never changes/
Also, the flow of hot water and moderating water through V1 is not going to be linear either but I think this can be worked around
Yes, one PID needs to control the temperature at TiT1.
The formulas for heat transfer can calculate how the temperature will be out the outlets of the HX cold and hot.
My spider senses tell me that the temperature at TiT2 will be lower than the HX cold outlet by a little bit.
I am assuming the pump is running at a constant speed
What I would need is a trend of the control signal to VI, the temperature at TIT1 and the temperature at TIT2.

This is NOT A SIMPLE PROBLEM. Nothing is linear!

The amount of moderating water flowing through VI depends of the pressure before V1 and the pressure after V1 and how open V1 is and how linear V1 is.
The pressure after V1 will depend on the back pressure due to the combined flow of the hot water and the moderating water through V1.
This is not linear as I said before because the pressure may go up as a function of the flow squared..

Trends are necessary. Only after drbitboy extracted enough teeth did I feel I could make an intelligent comment.

There are formulas for the heat transfer so if you know the hot and cold temperatures at the inlet, you can calculate the temperature out the out lets.
Engineers don't guess.
 
I apologize for being lazy - I didn't read 2 pages
I have a stupid question: where is the second PID loop here?
There is a PID loop TIT2 - V1. with V1 blocking when SP1 is exceeded on TIT1
I'm always looking to learn new ways
Blah-blah
Don't "search", but try
Can you calculate/simulate the system you propose? Simulate, calculate.
If you can't, then don't write nonsense.
 
Sidebar: I have re-read this thread, and I want to point out that nowhere does OP say that the fluid in the tank and on the cold side of the HX is water.

So any places I have said the could side is water are probably wrong.

Either way, whether the cold side is water or not does not change the fundamental way the heat balance of the process works.
 
This is crazy! I really hate it when the OP doesn't give us all the information.
C'mon Peter, I understand and wholeheartedly agree with the sentiment in my gut, but you and I are of an age where we have learned that "it is what it is." Times 10∞ when "it" is the 'net, so this is just yelling at the wind.

Anyway, have you started your simulation yet? I was thinking of modeling the heat exchanger as a large number of thermal Navier-Stokes 1-D sections that transfer heat instead of energy/mass.
 
About 7-8 years ago I did a system somewhat similar to this where I was working. Process was chilled water/glycol mixture used for press dies. I had a 200-gallon insulated tank, which had a circulation loop with a liquid-to-liquid exchanger, as well as an air to liquid exchanger in the same loop. Circulation loop drew from the top of the tank and returned to the bottom, which seemed counterintuitive to me, but the cold dense water displaces the hotter water upwards. The pump for the circulation loop was on a VFD, so I could ramp it up/down to see what flow rate achieved the best heat transfer.

In the cooling loop my goal was to use the air/liquid exchanger as much as possible for energy savings and to take advantage of atmospheric conditions. I had the liquid/liquid so that I could use a glycol loop to make up the difference when atmosphere wasn't advantageous.

Can't remember all the physical dimensions of the system, but basically because the response times were so slow I ended up just writing some temperature control logic without using any sort of PID. As other's have stated the systems are very much non-linear so it's challenging to control.
 
Quick question, specific to the RS Logix 5000 LD PID instruction; the help menu leaves quite a bit to be desired as far as explaining each of the parameters for the PIDs. What does the "PID Master Loop" parameter do?
 
Quick question, specific to the RS Logix 5000 LD PID instruction; the help menu leaves quite a bit to be desired as far as explaining each of the parameters for the PIDs. What does the "PID Master Loop" parameter do?
Leave it default for your outer loop, put the tag name of your outer loop in this parameter for your inner loop.

Some background control is passed from the outer loop to the inner loop, and telling the inner loop what the tag name of the outer loop is, is how it does it. I don't think it is actually critical, but it is very useful.
 
Anyway, have you started your simulation yet? I was thinking of modeling the heat exchanger as a large number of thermal Navier-Stokes 1-D sections that transfer heat instead of energy/mass.

The are 3 different types of heat exchangers. There are parallel flow, cross flow and counter flow heat exchangers. They all have different equations.
Your drawing shows a parallel flow. Counter flow heat exchangers are the most efficient.
Go down to 18.24 to get into the nitty gritty. Notice the ln() function.
I doubt the info for calculating exp(-beta*x) term but it can be assumed to be a constant we assume x is the length of the HX.
A system id can determine what exp(-beta*x) is but temperature sensors would be required at all the inlets and outlets. Right now there are two.


What bothers me is how the moderating water is mixed with the hot water. It would be better if they were mixed in a tank and then fed to the heat exchanger through V1. No one has addressed the back pressure part at V1. The pressure drop across the valve is proportional to flow^2, Is the valve linear?

NO OP! You have just scratched the surface. You can probably get your system to work by trial and error by using one PID to control the temperature a at the hot water inlet have another PID controlling the temperature of the tank. The PIDs are not going to have linear gains but they should be close enough to linear at one setpoint. The control guru call this the designed level of operation or DLO
You will just have to use trial and error to get the controller gains. Two PIs will do.
 
Come to think of it, I might actually want my inner loop to be a PIDE so I can use the autotune feature, since that works
The are 3 different types of heat exchangers. There are parallel flow, cross flow and counter flow heat exchangers. They all have different equations.
Your drawing shows a parallel flow. Counter flow heat exchangers are the most efficient.
Go down to 18.24 to get into the nitty gritty. Notice the ln() function.
I doubt the info for calculating exp(-beta*x) term but it can be assumed to be a constant we assume x is the length of the HX.
A system id can determine what exp(-beta*x) is but temperature sensors would be required at all the inlets and outlets. Right now there are two.


What bothers me is how the moderating water is mixed with the hot water. It would be better if they were mixed in a tank and then fed to the heat exchanger through V1. No one has addressed the back pressure part at V1. The pressure drop across the valve is proportional to flow^2, Is the valve linear?

NO OP! You have just scratched the surface. You can probably get your system to work by trial and error by using one PID to control the temperature a at the hot water inlet have another PID controlling the temperature of the tank. The PIDs are not going to have linear gains but they should be close enough to linear at one setpoint. The control guru call this the designed level of operation or DLO
You will just have to use trial and error to get the controller gains. Two PIs will do.
I have no idea what type of heat exchanger it is. Yes, they all have different equations and different efficiencies. I drew it super simple for the sake of a simple graphic. It's likely not parallel flow. I don't need the equations though, so it really doesn't matter. Trial and error was the plan anyway.
 
Come to think of it, I might actually want my inner loop to be a PIDE so I can use the autotune feature, since that works

I have no idea what type of heat exchanger it is. Yes, they all have different equations and different efficiencies. I drew it super simple for the sake of a simple graphic. It's likely not parallel flow. I don't need the equations though, so it really doesn't matter. Trial and error was the plan anyway.
In my opinion either both should be PIDE or neither. I'd say make both PIDE, since it has better support for cascade control, and you can try the autotune (good luck).
 
Anyway.
Could someone please sketch out a cascade control diagram for this system? (I can't figure out how it's supposed to work)
If my understanding is correct, this is how the 2 PIDs should interact. Not an official "cascade control diagram", but this is my crude graphic that should show what's going on.
1726148266936.png

The master PID is trying to get the TIT2 temperature to that target setpoint, but it's CV is limited between the min and max allowable TIT2 temperature. Instead of controlling V1 directly, it tells the slave PID what temperature TIT1 should be. The slave PID then takes that temperature setpoint and tries to get TIT1 to that setpoint.

For instance, let's say the current TIT2 temp is 50 degrees, the target is 100 and the TIT1 max is 170.
The master PID is going to increase it's CV, dependent on the gain values, probably all the way up to the TIT1 max allowable SP. As the target temperature for TIT1 increases V1 is going to close more and more until 170 degrees at TIT1 - and it will continue to adjust to keep that 170 degree target. Heat will continue to transfer into the cold side, bringing TIT2 up. The master PID will react accordingly to decrease the CV, again dependent on the gains, as TIT2 approaches the setpoint. As the master CV decreases V1 will open more, decreasing the temperature to whatever that setpoint may be.
 

Similar Topics

Hi, I am trying to automatically regulate a process ( liquid ) in a tube using an ultrasonic sensor, differential level meter, control valve...
3
Replies
4,614
Views
I have to realize with a pid fb41 with cascading you are a beginner, and I tried to find information without the Internet, someone can help me and...
0
Replies
2,229
Views
Hi Folks I am beginner at plc programming and I have got some questions about PID cascade. I look for some programs( I work on Step 7, Tia...
1
Replies
2,020
Views
Hey guys, After spending most of a day Googling looking for the answer, I finally decided to make a thread and ask the experts. I'm trying to...
5
Replies
4,748
Views
Hello!! I'm working on a project that requires a Cascaded PID Loop to control solution temperature in a tank with a water jacket. The tank has...
2
Replies
3,431
Views
Top