Is it possible with circuit network to balance chests BETWEEN them?
Warehouse A : 100 woods
Warehouse B : 0 wood
Warehouse C : 0 wood
Warehouse D : 0 wood
I want the inserters (between each warehouse) to auto-balance woods in warehouse B, C and D, then stop.
So at the end we have ~25 woods in each (no necessary to be EXACTLY 25).
Is it possible?
[Solved] Balance chests BETWEEN them
-
- Burner Inserter
- Posts: 5
- Joined: Mon Jun 10, 2019 10:16 pm
- Contact:
[Solved] Balance chests BETWEEN them
Last edited by coolfarmer on Fri Jun 21, 2019 1:02 am, edited 2 times in total.
Re: Balance chests BETWEEN them
Arithmetic combinator
Input: Red wire from all warehouses
Output: Red wire to all inserters
Formula: Each / -4 -> Each
Inserter
Input: Red wire from arithmetic combinator, green wire from warehouse
Condition: Wood < -4
If you end up with the last piece of wood cycling around, change the inserter condition to something more negative.
Input: Red wire from all warehouses
Output: Red wire to all inserters
Formula: Each / -4 -> Each
Inserter
Input: Red wire from arithmetic combinator, green wire from warehouse
Condition: Wood < -4
If you end up with the last piece of wood cycling around, change the inserter condition to something more negative.
-
- Burner Inserter
- Posts: 5
- Joined: Mon Jun 10, 2019 10:16 pm
- Contact:
Re: Balance chests BETWEEN them
ALLELUIA! Thanks mate it work very nicely!
-
- Filter Inserter
- Posts: 587
- Joined: Sun Jun 09, 2019 10:40 pm
- Contact:
Re: Balance chests BETWEEN them
As a new player, can you tell me why "negative" here? I'm hoping this helps me understand why a design controlling an inserter based on crate content didn't work out for me.
Re: [Solved] Balance chests BETWEEN them
Negative numbers represent demand (in this case, the average of 4 warehouses). Positive numbers represent supply (in this case, 1 warehouse).
Having a negative target means you accept supply being a bit less than demand.
Having a negative target means you accept supply being a bit less than demand.