Terry, thanks for the response (edit - found my kmap mistake, thanks!). I appreciate everyone's response because I'm very much in the diaper phase of PLCs and anything I can pick up will only help me in the long run.
A little background, these 4 tanks are exisiting. Right now which tank gets filled is purely up to the system operator because the valves are all manual. We have just completed an addition to our facility, and new lines are being run from the new addition to fill these tanks as well. The exisitng lines from our existing facility are to remain manual, the new lines from the addition are going to be automated (these are the valves in my example).
I don't quite understand why we don't just have the PLC control everything from filling to drainig, but because I'm the new guy, I'm still being careful where I step. So I'm trying to work with what has been given too me.
I put the truth table together to try to lay out a path that would give me some direction as to how I could fill each tank in an equal manner, so that after 400 fill cycles, each tank will have been filled 100 times. I know it's probably not the simplest way of going about things.....but I need to learn......hence my consulting of this board to see if I'm even near the right tracks.
Adding analog level sensors, and drain valve sensors would be nice, but thats added cost which I'll have to justify. 4 level sensors, AI card, would add what a couple of grand to the project? I don't have a problem trying to justify the cost, but I'll have to prove that I cannot make the system operate without it.
Basically in my truth table I'm trying to accomplish something similiar to this:
Tank state
0000 All tanks empty
0001
0011
0111
1111 Alarm condition
1110<-+
1101 |
1011 |
0111 --+
But because I have no control over the drain, I have to account for every state the tanks could be in, and from there try to open the valves in an order that produces a similar result. So I may have three tanks filled at once, I may not, reguardless I need to make sure that the valve I open has a tank that is not full. Assuming that the system operator has done their job of draining the tanks when needed. See where I'm going?
A little background, these 4 tanks are exisiting. Right now which tank gets filled is purely up to the system operator because the valves are all manual. We have just completed an addition to our facility, and new lines are being run from the new addition to fill these tanks as well. The exisitng lines from our existing facility are to remain manual, the new lines from the addition are going to be automated (these are the valves in my example).
I don't quite understand why we don't just have the PLC control everything from filling to drainig, but because I'm the new guy, I'm still being careful where I step. So I'm trying to work with what has been given too me.
I put the truth table together to try to lay out a path that would give me some direction as to how I could fill each tank in an equal manner, so that after 400 fill cycles, each tank will have been filled 100 times. I know it's probably not the simplest way of going about things.....but I need to learn......hence my consulting of this board to see if I'm even near the right tracks.
Adding analog level sensors, and drain valve sensors would be nice, but thats added cost which I'll have to justify. 4 level sensors, AI card, would add what a couple of grand to the project? I don't have a problem trying to justify the cost, but I'll have to prove that I cannot make the system operate without it.
Basically in my truth table I'm trying to accomplish something similiar to this:
Tank state
0000 All tanks empty
0001
0011
0111
1111 Alarm condition
1110<-+
1101 |
1011 |
0111 --+
But because I have no control over the drain, I have to account for every state the tanks could be in, and from there try to open the valves in an order that produces a similar result. So I may have three tanks filled at once, I may not, reguardless I need to make sure that the valve I open has a tank that is not full. Assuming that the system operator has done their job of draining the tanks when needed. See where I'm going?
Last edited: