I'm trying to make a scheme that will allocate resources between the warehouse and the factory.
The basic idea is that:
1. If more resources are produced than consumed, the surplus is sent to the warehouse.
2. if resources are consumed more than produced, the warehouse supplies the factory
I can not understand how to configure a logical network to realize this, I ask for help.
I kind of do that with my setups only in a different way. I set up circuits so that machines only take what they need. The materials go through the factory first. This is going to be difficult if you send a large amount of resources onto a one-way belt.
You'd be better off dividing your factory into regions, i.e. weapons, different sciences packs, etc. Then, send materials through multiple paths instead of just one, with the end of the belts leading to storage. This is too complex to explain really but I'm trying. The trick is to not overproduce science packs, which delves into equal science pack distribution between labs. One overproducing science pack can really bog down a ton of resources unnecessarily.
This also leads into lean-manufacturing as well as just-in-time practices.
A good place to start would be to send resources through multiple belts, using circuits to distribute based on the resources required. For example, you would send more iron to elec drills than you would for regular circuits. You could set up circuitry to do math but it seems easier just to eliminate additional logic and just handle things at the point of assembly.
I love coming to these forums, every day I get new ideas! Thank you disentius for both your designs, similar to things I have tried but definite improvements I can't wait to try. And thank you VVSWarHead for the question!
Thank you all for your answers!
I recently found this print, tell me please how the green network works, why the condition of the belts is set to "25" ?
Is it possible to do something, that the belts is turned off, the stack-inserters are also turned off
Green network condition disables routing to storage if there is not much input to saturate the output. Everything else is storage balancer, usually used in train loading/unloading stations to ensure maximum loading/unloading speed - by disabling unloading from chests that have less items than rest or by disabling loading to chests that have more items than rest.