6 inputs to 1 belt with the circuit logic to add in a science bottle when a lab uses one.
How to use:
1 - Plop down the blueprint.
2 - Make a loop with belts and put down labs. I prefer to put them in a line, anything works as long as it's a loop.
3 - Connect all the inserters which place science bottles to labs with wire to the one inserter that comes with the blueprint. (it's also placing science bottles to lab)
4 - Shift - right click to copy the circuit logic from the inserter (that is placing bottles to labs) that comes with the blueprint and then shift - left click to paste the logic to all the other inserters you've placed.
5 - To start the perpetual machine, drop a science bottle to the belt by using "Z". and when it's used another will be thrown in from the inputs.
More labs you use the more bottles you want to drop to the belt, say if you have 40 labs, you can just drop in a 300 of each bottle on the belt and whenever any of them are used a new one is added of the same kind. (Or if it's huge and you're lazy, just belt in the bottles at first, the system staggers them naturally). This will allow a theoretical 100% uptime for all the labs.
How it works:
1 - The circuit memorizes what's in the belt. That will be state 0. Add in things to the belt to modify what's the state 0.
2 - When something gets taken away from the belt by an inserter that is connected to the circuit, the state will be -1 for whatever item that was taken. In this case any kind of science bottle. Say a the labs took away 12 red bottles. 4 blue ones and a single military one from the belt. The circuit adds 12 reds and so on and nothing more nothing less. Get to state 0.
3 - Because the input only happens when things are gone, it's pretty much 100% uptime if you place enough bottles at state 0. I think this is simpler and easier to customize than the usual 6 sushi belt like: https://www.youtube.com/watch?v=WDRiklzGg8Q
This is more of a simple customization tutorial on this kind of circuit logic and a demonstration, rather than the perfect solution. (it's a pretty good solution though). You can add in 1 more input to make it work with 7 science packs all the same, but you can logistics bots at that point so, eh, why bother.
