Cascade PID Control in Micrologix 1100

mylespetro

Member
Join Date
Dec 2015
Location
NS
Posts
740
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 implement a cascade PID control loop (level of a tank controlling flow out of the tank) in RSLogix Micro for a Micrologix 1100, but I have very little idea how the instructions work. I mainly work in the Studio 5000 environment and the PID instruction is a little more straight-forward to me there.

I've read up on how the analog values need to be integers in the 0-16383 range, so I've scaled the raw data coming from the level and flow transmitters (6241-31207) to 0-16383 and stored them in separate integer files, N10:0 and N11:0 respectively. I then created two PID instructions, giving them the PID files PD9:0 and PD9:1. I have the PV of the master PID set to the scaled level transmitter value (N10:0), and I tried setting the CV to PD9:1.SPS, but that gives me an error. I'm kind of operating under the assumption that CV is the output, and I thought that the .SPS bit would take that output, but it didn't. Long story short, I'm not sure my syntax/approach to the PID instruction is correct, and I can't figure out how to send the output of the master to the setpoint of the slave. Any help or direction would be great.
 
I think I solved it using a MOV instruction to put the CV value from the master instruction into the setpoint of the slave instruction. I'm a bit too used to indirect addressing using Studio/Logix 5000. If anyone has anything to add, I'd love a bit more insight.
 
I think I solved it using a MOV instruction to put the CV value from the master instruction into the setpoint of the slave instruction. I'm a bit too used to indirect addressing using Studio/Logix 5000. If anyone has anything to add, I'd love a bit more insight.

In general, yes, the CV of the outer loop goes into the SP of the inner loop. However, I wonder why a cascaded loop at all? Couldn't the tank level serve as the PV to the PID that controls the output flow device (pump or valve)? I guess what was missing from your first post is what is the second PV in this cascaded setup?
 
In general, yes, the CV of the outer loop goes into the SP of the inner loop. However, I wonder why a cascaded loop at all? Couldn't the tank level serve as the PV to the PID that controls the output flow device (pump or valve)? I guess what was missing from your first post is what is the second PV in this cascaded setup?

Hey Robert,

In this case, it is a common condensate collection tank from two separate steam turbines that is pumped out by one of two pumps (selectable by selector switch). The second PV is a flowmeter measuring the discharge flow of the pumps. I'm not exactly sure what the reasoning behind cascade control is, but that was what the powers that be decided. I believe it is to be a pretty tightly controlled level in the tank, so that may be it.
 
Couldn't the tank level serve as the PV to the PID that controls the output flow device (pump or valve)?
Good question but that assumes there is a PID that controls the output flow device. If also assumes the outflow of the device is linear with the speed or opening.

I'm not exactly sure what the reasoning behind cascade control is, but that was what the powers that be decided. I believe it is to be a pretty tightly controlled level in the tank, so that may be it.
The outer loop is the level control. The output or CV should be a value proportional to the desired flow rate out of the tank. The inner loop tries to achieve that flow rate.
Both loops only need PI control.
 
The outer loop is the level control. The output or CV should be a value proportional to the desired flow rate out of the tank. The inner loop tries to achieve that flow rate.
Both loops only need PI control.

Yes, that's the way it operates. I was having a logistical problem with sending the output of the master PID instruction to the setpoint of the slave PID instruction, but I figured it out with a MOV instruction.

Thanks again guys
 

Similar Topics

RS5000 vs.20, 1769-L35E Processor, I have had an issue that I have seemed to work out between all of the PID posts I could find here and listening...
Replies
0
Views
5,381
Dear all I would like to ask you for help in solving one algorithm, because I never worked with cascade PID. I have to realize heating valve...
Replies
12
Views
8,317
Process: Adding defoamer to the pulp eases water removal. The pulp goes in a vacuum drum washer, which is a rotating cylinder with a screen all...
Replies
5
Views
3,939
Process: Adding defoamer to the pulp eases water removal. The pulp goes in a vacuum drum washer, which is a rotating cylinder with a screen all...
Replies
0
Views
2,981
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...
Replies
1
Views
1,342
Back
Top Bottom