Page 1 of 1

Kovarex combinator help needed

Posted: Fri Apr 05, 2024 8:19 pm
by brunzenstein
There is a nifty YT video showing a full primed Kovarex setup - but the BP doesn't work and I could not figure out the setting - probably one knowledgeable in programming could dive in and give old chap (me 76 and still playing Factorio) a helping hand:
https://youtu.be/f-57gGe8Fjs?si=hFymEQvBV5-9lwi1

Re: Combinator help needed

Posted: Fri Apr 05, 2024 9:26 pm
by Loewchen
I don't know about the one in the video, but my setup does the same things, will not overfeed even with productivity modules and is more compact.


Re: Combinator help needed

Posted: Sat Apr 06, 2024 7:33 am
by brunzenstein
Thank you Loewchen - how does your setup work in detail?
Sorry for keep you busy but Im sure many laymen (there are more then experts :-)
are interested in such a effective and tidy build you have provided.

Re: Combinator help needed

Posted: Sat Apr 06, 2024 11:38 am
by Loewchen
What it overall does, is to count how many 235 have been put into the centrifuge and once that value reaches 40 it will stop the 235 input inserter until the recipe is finished.
To do this the 235 input inserter pulses its hand contents to a decider combinator memory that has a condition to reset if there is a 238 signal at any point which the 238 output inserter is setup to pulse.

Re: Combinator help needed

Posted: Sat Apr 06, 2024 12:04 pm
by brunzenstein
Loewchen wrote:
Sat Apr 06, 2024 11:38 am
What it overall does, is to count how many 235 have been put into the centrifuge and once that value reaches 40 it will stop the 235 input inserter until the recipe is finished.
To do this the 235 input inserter pulses its hand contents to a decider combinator memory that has a condition to reset if there is a 238 signal at any point which the 238 output inserter is setup to pulse.
Thank you indeed Löwchen!

Re: Combinator help needed

Posted: Sun Apr 07, 2024 10:56 am
by Loewchen
Crosspost from pm:
Loewchen wrote:
Sun Apr 07, 2024 10:46 am
The Decider combinator becomes a memory cell by connecting its own output back to its input and using "Output = U235 Input count" the currently stored value is sent every tick to the circuit and read back as input again and any pulsed U235 signal from the input inserter will add up on the circuit, essentially counting how much U235 is in the centrifuge.

The "U238 = 0" condition means the combinator will keep doing this until it sees any U238 signal, which it will see once the recipe has finished and the U238 output inserter empties the U238 from the centrifuge at which point the condition is no longer true and the stored U235 value is reset.

There is one problem with this setup that I found yesterday. There is a tiny delay from the time the U235 input inserter pulses its pickup until the value is added up on the circuit network. This means that when U235 aligns perfectly on the belt (and the belt is fast enough) it can happen that the inserter picks up one more U235 until it sees the 40 value and stops. So the centrifuges will overfed over time. This can be prevented completely by either using yellow belt on the input side (which for my setups is not a bottleneck and if it is you can split the setup into two parallel lanes) or setting the inserter capacity to 1 (don't do that)

Re: Kovarex combinator help needed

Posted: Tue Apr 16, 2024 8:13 pm
by Loewchen
Slightly more complicated version that works with any belt speed: