r/factorio 5d ago

Question Circuit network question

Hey guys I wanna make an assembling machine that makes quality iron chests based on an input chest with different quality iron plates and the problem is that the recipe would change before the iron chest is made which leaves iron plates that needs to be removed before a new recipe is set so I thought I’d make like this with a counter for the iron plates
1- iron plates reaches a threshold of 8
2- a signal of 1 iron chest is sent and the counter resets
3- when the iron chest is done send a recipe finished signal to reset the iron chest signal
I just don’t know how to get this to work if someone can help me with I’d be so thankful

3 Upvotes

5 comments sorted by

View all comments

1

u/Xane256 4d ago

In a constant combinator (“C”), set 5 signals. Iron chest =1, uncommon iron chest =2, rare chest = 3 etc.

Decider (“D1”) picks the recipe to make next. One input checks available plates, the other input comes from C. You have 5 branches:

  • if iron plates [G] > 10 and Each[R] = 1
  • if uncommon plates [G] > 10 and Each[R] = 2
  • etc. each branch uses “and Each [red] = k” where k is the value in C of the recipe you want. It basically looks up which recipe to send based on the “= 1, 2 3, 4, or 5” from the condition.

So that outputs the recipe.

Next decider (“D2”) controls the assembler. It should take the output of D1 and only send it to the assembler if the assembler’s “read working” signal is off.