Pid

hello
im havinf a difficult time tryong to figure out how to make a plc tell a vfd how fast or slow to run a pump based on level of a tank.

I have a micrologix 1100 ser b with 2 analog output and inputs
a 4-20ma level sensor
and im using rslogix500

so far all ive been able to do is setup up my SCP
to read my tank level

from there I want to set a specific level as a setpoint to have my pump maintain the level there either by speeding up or slowing down.

I am open to other simpler solution as well

thanks
 
Have you wrote any PID logic yet? You need to use a PID block , bring in your level as the PV (process variable) and have the PID CV (control variable) write to the analog output that will go to the VFD. Everything needs to be scaled properly as well.
 
example

Ianavina:

Please download and read manual 1763-rm001 from www.ab.com.
Go to chapter 19, look for PD Data File, Input Parameters, Output parameters.
Attached you will find an example I wrote some years ago, it's not for a pump/tank but can serve you as a guide.
 
I would use scaled and then the SP will correspond that to the scaling of the PV (input from tank).u can then scale the CV to match the range of your output card. I haven't used RSLogix 500 in a long time so I'm not 100% sure what functions are available in that PID block.

Note- Setting up a PID is not really where a beginner wants to start learning PLC programming...
 
Maybe you want to control level without PID, by using a "band".
Let's say that your band is 40%-50%, when level is higher than 50% you turn on the pump, when level is lower than 40% you turn off the pump, I'm assuming that you're pumping out of the tank.
 
yes im pumping out of the tanks. yes a "band" might work. the program I have in place now turns the pump on at a certain level and turns it off at a lower level but we still have to manually speed up or slow the pump down. the goal is to have the pump do it on its own
 
you could do a band too. you could either use limit tests, or GRT and LES around your setpoint. You would then move a certain output to the analog output module based on how far away from setpoint it was. there's a lot of ways to skin the cat.
 
yes im pumping out of the tanks. yes a "band" might work. the program I have in place now turns the pump on at a certain level and turns it off at a lower level but we still have to manually speed up or slow the pump down. the goal is to have the pump do it on its own

Though think it again, you can change your VFD speed depending on your level, in other words when level is much higher than hi limit of the band you can increase your speed to a certain value and you can lower that value as you approach lower limit of your band, it's worth a try.

Otherwise, as Mickey said, I did it too. You have to read chapter 19 of 1763-rm001 manual. not once but twice until you understand the whole thing, also look at the example I posted.
 
I have something like that now. im using scp geq and leq to to tell when to turn the pump on and off. so the pump runs in that "band" however how do I make the pump speed up the higher the level or slow the lower the level? I might be missing something
 
You have to connect your analog output module to your VFD. Have you done that yet.
Example, use comparator when level is 60-70 speed is 80%, level 59-50 speed is 70%, when level is 49-40 speed is 50% for example. You have to play with it.
 

Similar Topics

TM221CE24R, Machine Expert Basic, PID Assistant (native block, not scripted). Controlling a steam valve via PWM (%Q0.1) for a slow batch heating...
12
Replies
361
Views
Hello, for the first time in my career, I have a project involving PID control on Mitsubishi FX5U controllers. I’ve spent years working with...
17
Replies
816
Views
Has anyone been working with the Colab Research tool in Google? It showed up in this forum ca. Oct, 2024. It's a way to do modeling, plots, etc...
2
Replies
317
Views
I've put something together here. Archive contents: Project1.exe – approximation/tuning soft csv files initial data examples Comments...
54
Replies
2,850
Views
I am troubleshooting a PID loop on an Allen-Bradley Logix platform (Logix 5000 / Studio 5000). The loop is reacting violently to any error...
28
Replies
1,420
Views
Top