Factorio

Factorio

View Stats:
ALEX Nov 2, 2024 @ 7:58am
how to start and stop pumping fluids?
I want to start at 0 until full and stop the pump to work until its empty again. How?
Last edited by ALEX; Nov 2, 2024 @ 3:20pm
< >
Showing 1-9 of 9 comments
Fel Nov 2, 2024 @ 8:15am 
You will need a RS latch with circuit network:
https://wiki.factorio.com/Tutorial:Circuit_network_cookbook#Latches
It is a somewhat advanced use of circuit network, so not the best thing to dive into if you are not already somewhat familiar with the combinators and such.
Pr0wn Nov 2, 2024 @ 8:42am 
If I wanted to set that up I would go for an alternative using circuit condition with two chests and inserters bouncing an item back and forth depending on your storage amount, then the pump would work only when the item is in one specific chest.
jagholin Nov 2, 2024 @ 8:53am 
Originally posted by Fel:
You will need a RS latch with circuit network:
https://wiki.factorio.com/Tutorial:Circuit_network_cookbook#Latches
It is a somewhat advanced use of circuit network, so not the best thing to dive into if you are not already somewhat familiar with the combinators and such.
Since 2.0 we have new combinators and this page wasn't updated.

You don't need a complicated network, you just need a single decider combinator. Connect it's input with output(important! this feedback loop we need), connect input to the fluid tank, and output to the pump. The condition should be:

[green signal] > 0 AND [tank fluid] < "full" OR [tank fluid] <= "empty"

The output is

[green signal] = 1

Pump's enabled condition is of course, [green signal] > 0
Last edited by jagholin; Nov 2, 2024 @ 8:54am
LordTyr85 Nov 2, 2024 @ 9:50am 
Originally posted by jagholin:
Since 2.0 we have new combinators and this page wasn't updated.

You don't need a complicated network, you just need a single decider combinator. Connect it's input with output(important! this feedback loop we need), connect input to the fluid tank, and output to the pump. The condition should be:

[green signal] > 0 AND [tank fluid] < "full" OR [tank fluid] <= "empty"

The output is

[green signal] = 1

Pump's enabled condition is of course, [green signal] > 0

Thank you!! I've been meaning of making something like this for gleba stuff to reduce spoilage, but the old way felt too convoluted. this method seems simple enough and incredibly useful!
Fel Nov 2, 2024 @ 9:56am 
Man, I really need to make some time to play 2.0 at least, this is definitely a nice change that will make many things much easier.
ALEX Nov 2, 2024 @ 11:01am 
@jagholin please can you explain how the logic works ? How and why output turn > 0?

The output is

[green signal] = 1
jagholin Nov 2, 2024 @ 11:11am 
I don't know how to make it simpler, a conditional made from 3 parts is not very complicated.
Fel Nov 2, 2024 @ 11:12am 
The basic idea is that at first, green signal would be 0, so the first part before the OR would be false.
Once the tank is empty, the second half of the OR would be true, so green signal would become 1.
Because the output and input are supposed to be linked together, the "green signal" part of the condition would also be 1, and until the tank is full the second part of the AND condition would be true as well, meaning that it would continue to output green signal to 1 until the tank is full.
At that point, the green signal would become 0 again, until the tank becomes empty.
RiO Nov 2, 2024 @ 11:54am 
Originally posted by Fel:
Man, I really need to make some time to play 2.0 at least, this is definitely a nice change that will make many things much easier.

Wait until you start tapping into the potential of processing the red and green wire separately.

Stuff like a signal filter is trivial now.
Set up a decider with:
Input {{each}} (red) > 0 Output {{each}} (green) input count
Connect signal line to filter to green, connect signals to filter by to red. Output contains the green value of the signals present on the red wire.


Want to do a sushi belt with limits per item?
Takes one decider and one constant combinator. Set up the decider with:
Input {{each}} (red) > {{each}} (green) Output {{each}} 1
Set up the amounts desired per product on the constant combinator, connect to the decider via red wire input. Connect the sushi belt (the entire belt - I just love the new 'read entire belt' setting) to the decider's green input. The output will be what you can assign to the filter inserters feeding into the sushi belt and keeping it topped off.
Last edited by RiO; Nov 2, 2024 @ 12:00pm
< >
Showing 1-9 of 9 comments
Per page: 1530 50

Date Posted: Nov 2, 2024 @ 7:58am
Posts: 9