Spoilage removal and circuitry counting

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
mike5533
Burner Inserter
Burner Inserter
Posts: 5
Joined: Mon Nov 13, 2023 7:28 pm
Contact:

Spoilage removal and circuitry counting

Post by mike5533 »

I need some help with circuitry design.

I am using a sushi-belt design for science packs. The issue I'm having is when I switch to a science which doesn't use the agricultural science pack, they (the ag-sci) time out and spoil. I am counting the packs going onto the belt so it doesn't overload. When the ag-sci time out, either on the belt or inside the Lab, they spoil and are then skimmed with a filter splitter and burned.

The issue is the counter goes up by the inserter placing the ag-sci on the belt but if it spoils on the belt the counter doesn't go down. That is what I am having an issue with. I would like to have the ag-sci counter go down if a spoiled one is removed. Any assistance would be greatly appreciated.

Thanks
eugenekay
Fast Inserter
Fast Inserter
Posts: 170
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: Spoilage removal and circuitry counting

Post by eugenekay »

You can use the “Pulse” count mode on your Spoilage output Belt. Count how much goes out to the Furnaces, and then use an Arithmetic Combinator to Multiply by “-1” before adding it back onto your Input Count circuit.

Good luck!
mike5533
Burner Inserter
Burner Inserter
Posts: 5
Joined: Mon Nov 13, 2023 7:28 pm
Contact:

Re: Spoilage removal and circuitry counting

Post by mike5533 »

Thanks, I'll give that a go.
SirSmuggler
Fast Inserter
Fast Inserter
Posts: 109
Joined: Tue May 24, 2016 1:55 pm
Contact:

Re: Spoilage removal and circuitry counting

Post by SirSmuggler »

If you are willing to simplyfy a bit, just reading the belt content (belt set to read content hold and read the entire belt) should do the trick, no need to keep track of adding or removing stuff as you allways know the exact number of things on the belt.
mike5533
Burner Inserter
Burner Inserter
Posts: 5
Joined: Mon Nov 13, 2023 7:28 pm
Contact:

Re: Spoilage removal and circuitry counting

Post by mike5533 »

SirSmuggler wrote: Fri Dec 20, 2024 7:09 am If you are willing to simplyfy a bit, just reading the belt content (belt set to read content hold and read the entire belt) should do the trick, no need to keep track of adding or removing stuff as you allways know the exact number of things on the belt.
The belt is 232 pieces. I've never thought of reading the entire thing. Interesting thought. I haven't implemented the previous suggestion as I'm building a large (to me) foundry factory. It definitely piques my interest. Thanks for that. Any downsides from reading that many belt contents?

*** EDIT ***
Just gave it a go, and did that ever work perfectly.
Thank you for that, it never even crossed my mind to monitor the entire belt for contents.
I'm still going to figure out the circuitry as a learning exercise, but your suggestion was as simple as you suggested. Thank you.
Post Reply

Return to “Gameplay Help”