Ramping an Analog Value

jamaljbenoit

Member
Join Date
Nov 2015
Location
New Iberia, LA
Posts
3
I am kinda stuck and need some assistance. I am working on a project that will control two pump. The PLC controls the speed of the pumps via an Analog Output to a VFD. The pumps are in a lead/lag system that depends on level of a tank. I have all my logic figured out for starting and stopping 1 pump. Whenever the lag pump is called to run, I want to slowly ramp the value of the lag pump to meet the value of the lead pump then continue as same speed. I tried using the RMPS instruction block and came close to getting it to work. Any ideas on how to get this to work? I have attached some screenshots of the code

Pump1.jpg Pump2.jpg Pump3.jpg
 
I typically will just "roll my own". Draw it out on paper first. Graph out X vs Y and put some theoretical data points on it and do some math to see what you need to get there. Then start to code it. A few questions to consider first:Do you want to always ramp over a fixed period of time? Say 30 seconds? Or could that be variable? Or is it more important that you ramp at a constant rate, say 5rpm/sec?

Sounds like your ramp up speed will be a variable, so to determine how you want to ramp your lag pump, what is important? Time? Rate? If you have a fixed time, your ramp rate will change based on what you ramp too. If you need to ramp at a constant speed your time will change to achieve the ramp speed will change. Heck, it may not matter and you just need to choose, or 'sometimes' it might be one or the other, then you'll have to provision for it.

Put it on paper, keep your algebra friend y=mx+b in the room go from there. I find y=mx+b is extremely useful in the process world, I've used it to do quite a bit beyond simple analog scaling. Of course there are plenty of ways to do this but putting it on paper first always makes it easier.

EDIT: At least for me, the pictures are to small can't read the text very well. Try putting the program in a window mode and zoom in on the ladder, then screen capture and upload.
 

Similar Topics

Hello I have a small problem i have done program for hydraulic unit So one regulation valve is controlled in 4-20 mA to extend or retract a...
Replies
6
Views
2,470
help, trying to ramp analog output 1746-no8i one channels sends pressure valve for hydraulic pressure I want to increase pressure at a given...
Replies
5
Views
4,152
The application I am working on calls for the analog out (10vdc) be ramped (variable). So, if the program calls for 350 tons of pressure from 0...
Replies
5
Views
2,079
Hi, I am a PCL nubie! I have only a little PLC programming experience (3 PLCs mostly Boolean stuff) and have bitten more than I can chew this...
Replies
8
Views
3,929
Hi All, I came up with this for ramping the PWM pin on the micro 820. I'm new to ladder logic so I am not sure if this will even work? Once...
Replies
6
Views
349
Back
Top Bottom