How can I count items unloaded by an inserter?
Posted: Sat Nov 03, 2018 1:19 am
What I'm trying to accomplish with circuit network:
An Iron chest has < 50 plates (and it needs 25 more)
I want the inserter at the source chest (that feeds the belt) to unload exactly 25 plates and put them on the belt headed towards the Iron Chest.
I can't figure out how to get the inserter at the source chest (that feeds the belt) to unload exactly 25 plates (count up to 25) and then stop.
I don't want to wire up the entire belt just to count things on it. There has to be a less tedious and more efficient way...
EDIT: nevermind figured it out (see attached)
explainer for other people since I've never really seen this laid out on youtube or...anywhere.
1. You have the iron chest inserter pulse held items up to a decider (looped back on itself, takes its own output as input and therefore "remembers" it)
2. You have the inserter feeding the belt pulse held items up to a math combinator (held item count * -1) and then wire that over to the decider from step 1
3. When inserter 1 takes something, the storage inserter (#2) receivers the taken item as a filter from decider 1, grabs the items from storage box, and the count of what it grabs are subtracted from the number remembered on decider 1 (which is our current outstanding count of items needed from storage).
An Iron chest has < 50 plates (and it needs 25 more)
I want the inserter at the source chest (that feeds the belt) to unload exactly 25 plates and put them on the belt headed towards the Iron Chest.
I can't figure out how to get the inserter at the source chest (that feeds the belt) to unload exactly 25 plates (count up to 25) and then stop.
I don't want to wire up the entire belt just to count things on it. There has to be a less tedious and more efficient way...
EDIT: nevermind figured it out (see attached)
explainer for other people since I've never really seen this laid out on youtube or...anywhere.
1. You have the iron chest inserter pulse held items up to a decider (looped back on itself, takes its own output as input and therefore "remembers" it)
2. You have the inserter feeding the belt pulse held items up to a math combinator (held item count * -1) and then wire that over to the decider from step 1
3. When inserter 1 takes something, the storage inserter (#2) receivers the taken item as a filter from decider 1, grabs the items from storage box, and the count of what it grabs are subtracted from the number remembered on decider 1 (which is our current outstanding count of items needed from storage).