The goal is to have independent, on-demand storage of these gasses. I'm using Flow Control's custom valves because they're much less bulky and annoying than setting up pumps and combinators.
Looking at the screenshot below as a prototype, what we've got is (hopefully) guaranteed production of each type of gas until storage is full. This, of course, assumes that the sodium hydroxide byproduct doesn't clog up.
The electrolyzer on the left will run until chlorine is full because the excess hydrogen gets stored in the tank but has an overflow valve with a gas vent if there's too much.
The non-return valve on the hydrogen side is to prevent all the storage getting vented.
The electrolyzer in the middle produces both oxygen and hydrogen until the oxygen storage is full, at which point it stops running. Like before, excess hydrogen is vented.
The electrolyzer on the right is for the purpose of producing hydrogen in the event hydrogen storage runs low and both chlorine and oxygen storage is full. If hydrogen is more than 80% full, this electrolyzer shuts off. Excess oxygen which it produces is vented if there's not enough storage for it.
The chemical plant on the right will run until nitrogen is full, at which point it stops running. Excess oxygen is stored if there is room, otherwise it is vented.
As far as I can tell, independent usage of any of these gasses will result in machines kicking in and making more without getting clogged up or running needlessly.
If you happen to spot any errors or know of a more efficient way of doing this, feel free to let me know.
In case anyone wants to tinker with it:
Code: Select all
0eNqdWclu2zAQ/ZWCZykQV1H5gV57L4JCtpmECC2qWpIaQf699BJbsUfkKCdvem8Wzkq/k5UbTdvZZiD378SufdOT+9/vpLdPTe323w271pB78uhGuyEZaert/uP62fmAMuQjI7bZmH/knn5kadzzbtP5J9NMcAyD8/92X1Ecg2rscC1NfDxkxDSDHaw5mnr4sPvTjNuV6YIZZ3Q/GOPy9bPph0DZ+j5gfLOXFnjyKiO78ELpx16TKxJ2JrFNb7ohfHfLoM8MGdnYzqyPPzKAj5/5hq5u+tZ3Q74yDtKrjOklJsb5xuRvdVDtzTh3SyRPPAXEI5frA/KoxTwVRFMuptEQjV5MU0I0Febw6SdB+MmuX8b2z9UTxwdAr9Fikodma9e1yx/HrqnX5lbSRNA0yDIS3ttD0vR1MBESc0mFdv/kDTWPOIGyBFjEwDwBljGwwPj/dIDqq1vE3GkUh8cZKE8mlP2UJUG0wmirJtp2fk67O6pL+a2AWpBAEnScglh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