Allow smart inserters to compare the quantity of the same material on two different networks (i.e. are there more iron plates on Red Circuit vs Green?)
Questions:
1. Is there any easy way now (or in 0.13) to have a smart inserter compare the quantities of the same item in 2 chests. (i.e. if iron plates in in this chest > then 2nd chest, stop loading)?
2. The high-throughput buffer system I use works best when the chests are balanced, are there other ways to balance that don't require combinators?
Problem:
My smelting system fully loads a single fast transport belt when running at full speed. I then use fast inserters on both sides to load plates into chests which are, in turn, emptied back onto belts that are load balanced and sent into my main factory. This works great as a buffer system, building up supply when my factory isn't producing much and then dumping it out if my smelting operation gets behind (generally cause I haven't been expanding to new resources fast enough!).
A partial implementation is in this photo (note that fully loading a fast transport belt requires 6 inserters on each side):
High Throughput Balancer
The problem is that when there are wide fluctuations in supply, the chests fill unevenly and therefore can't output a fully loaded belt when one is empty even though other chests might have thousands of plates.Current Solution:
To force them to load evenly, I use smart inserters and tell them to only load if they are less than the next chest in line. But the only comparison you can do with the circuit network is against an absolute value or the value of some other material. As such, my current solution is to use an arithmetic combinator to output the quantity of a chest as a different material (e.g. change iron into copper). Then I can set the smart inserter to only load when the quantity of iron in it's chest is lower than the "copper" in the chest next to it.
This is what a 3 chest system looks like:
Combinator Balancer
The problem is that this requires 11 combinators for a 12 chest system, which is a huge waste of resources and space! I could also do this by switching the 2nd chest's quantity to negative, but it still requires a combinator.Better Solution/Feature Request:
Allow smart inserters to compare values of the same material on two different circuit networks (red vs green)
Am I missing a better solution? Does anyone know if this will be possible in 0.13? If not, I'm going to submit it as a feature request.
Thanks!