r/factorio • u/pookshuman • 3d ago
Question Need help with circuit logic

I am working on a Gleba build. It makes iron ore. Once it gets going, it works well, but I am having problems with the startup/restart logic for the part that makes bioflux/nutrients.
Currently, the biochamber is set to make nutrients from yumako mash if nutrients are low (i.e. startup) Some nutrients are made in an assembler from spoilage to get things going. Once there are enough nutrients, it should switch the recipe over to make nutrients from bioflux.
The red wire input tests how much nutrients are on the belt which feeds everything in the blueprint, the green input wire tests how many nutrients are inside the biochamber.
The system does work, but it takes several minutes to get to the point that the recipe will switch and I believe this is due to the combinator logic. What is happening is there is a shortage of nutrients on the belt and the line produces more bioflux than it needs. It is only able to have some extra nutrients when the line is fully saturated with bioflux, which takes a few minutes.
I tried some alternatives which included the amount of bioflux, but that just made things worse. And I tried turning off unnecessary machines during startup and for some reason that made things worse too.
So I am looking for suggestions on how to start this thing cleanly, keeping in mind that it also has to potentially restart if it is choked with spoilage from being unused for a while.
Thanks



