[Help needed] Multiple Fluid Selector Circuitry

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
GluAp
Long Handed Inserter
Long Handed Inserter
Posts: 51
Joined: Mon Jan 07, 2019 6:28 am
Contact:

[Help needed] Multiple Fluid Selector Circuitry

Post by GluAp »

Hi there.

At the moment I'm playing Pyanodons mod set. You will encounter a lot of fluids that work as fuel for machines.
Since 2.0 makes fluids sharing the same pipeline possible I wanted to try to make it work.
My basic setup is composed of a fluid buffer tank with up to 8 pipe connectors where up to 7 are inputs.


Problem:

If I just use unregulated Pumps for the input of different fluids, it will only switch between fluids when the currently used one inside the buffer tank runs completly empty, resulting in this fluid blocking the other fluids and highly limiting throuput, as the currently used fluid is produced in smaller quantities and trickles into the buffer tank.

My idea:

Do some circuit magic. Basically a fluid selector combined with a simple RS latch.

Chose highest level available fluid that is higher than upper treshhold S, empty into tank until lower threshold R is reached. Between S and R don't consider the other fluids.
Switch to next highest fluid and do the same. Repeat.

I want it to be scalable and have the amount of logic not depend on the amount of different fluids. Further the fluids can't be hardcoded into the logic.

I used the selector combinator for finding the highest input fluid and I can do the RS-latch. But I can't make it happen to select only the highest level fluid, since that status will change when the level of the fluid decreases.

So I would need a memory cell that works with a constant (as in not pulsed) input signal and outputs the type of the currently used fluid until my reset point R is reached. So this part of the logic needs to consider the selector combinator output when the logic has R(eset) state and ignore it, while in S(et) state.

But I haven't seen a thing like that and I'm not able to figur this out myself. Do you have an idea?

I made an example setup where the steel chest resembles the missing piece of logic.
Fluid Selector.png
Fluid Selector.png (4.26 MiB) Viewed 88 times
Post Reply

Return to “Gameplay Help”