How to Lock in a level value for subtracting

jtspeed99

Member
Join Date
Aug 2012
Location
Denver
Posts
5
Rslogix 500
Im trying to subtract 10 from the level of a tank we have and then use a less than or equal compare to start a pump. How can I subtract 10 from the value at a certain time and use that number in the compare? My first guess is use a one shot to subtract 10 from the level value and that should give me a static number for the compare....maybe
 
That's how I would do it. It's simple and clean and very easy to understand what you are doing if anyone needs to troubleshoot. I like it.
 
RSLogix500 is the programming software.....

What PLC are you using ?
 
Suppose Tank Level is in N7:85

Choose an existing unused integer location (eg. N7:121)

SUB, N7:85, 10, N7:121
LEQ, N7:121, {target value}, OTE, {start pump}
 
as the tank level N7:85 drains wont it continue to subtract 10 from the level and never meet the conditions of the LEQ?
 
If the tank level continues to drop after starting the pump, the LEQ will continue to call for the pump to run.

Is the pump emptying the tank, or filling it, or is the pump used elsewhere ?
 
Sorry should have explained better. I want to gravity drain 10% off the current tank level and then start the pump to drain the tank after the 10% gravity drain is complete
 
If you use the one shot to trigger the start also then it would only happen at when you have conditioned it to do so. This could be time based as you had mentioned or other conditions as you need.
 
I want to gravity drain 10% off the current tank level and then start the pump to drain the tank after the 10% gravity drain is complete
Use whatever your indicator is for a "10% gravity-drain level" in front of a one-shot that starts the pump. Use some other indication to STOP the pump when the tank is empty.
 
I just ran this with emulator and it seemed to work well. Use the OSR to subtract 10% from the current tank level and move that number to my LEQ, when that condition is met it triggers N15:15 which will enable my pumps

oneshot.jpg pump.jpg
 

Similar Topics

I'm coming from a background of PLC ladderlogic/rockwell products. I am new to blocks. Can you point me in right right direction? What I would...
Replies
5
Views
1,567
Newbie to level control/somewhat familiar with this PLC. I'm Trying to figure out how to set up a basic level control using s7-300 PID Block...
Replies
12
Views
13,704
In the past, we have used AB 1492 feed thru screw terminals a lot. Lead time on these with our distributor is terrible. Is there an almost...
Replies
1
Views
131
Hello, This product that I have the 1790D-T8BV8B is discontinued, does anyone have the EDS file for it? I wonder if TechConnect will have this...
Replies
8
Views
197
Hi, I have attached herewith one image which our programmer has been used in S7 1500 PLC. Now we need to use the same instructions in S7 1200 PLC...
Replies
4
Views
126
Back
Top Bottom