Pid

ianavina

Member
Join Date
Nov 2013
Location
long beach,ca
Posts
30
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

Hi, I would like to assemble a simulator/practice booster pump system that uses PID to maintain steady water pressure under various outlet demands...
Replies
0
Views
89
Hello, I have a motor that we are sending a RPM Speed Output from 0-100% to the VFD. However, the Motor HP needs to be limited to 6000 HP and the...
Replies
3
Views
95
I have S7 1512C controler for controlling 48 PID temperature loop, the output is PWM. Please I need the best, most efficient way to write the...
Replies
13
Views
626
Hi all, I'm having trouble solving a problem I've been working on for several months, and thought you might like a stab at it. The machine runs...
Replies
22
Views
969
How can I connect PID Output to a valve. In ladder logic program is there any logic do I want to add between valve and PID? PV=SP What will be the...
Replies
7
Views
427
Back
Top Bottom