I've read the combinator 101 and thought i understood it but I'm lost. All I want to do is count up and count down.
basically for example everytime an inserter places an iron plate on an assembly belt i want to count up and when an iron plate is placed into a factory to make something i want to count down. I want to then limit iron plates in that assemly area to say just 1000 plates so the supply is cut off at that time or turned on if the count goes below 500.
i dont know if this is the right place for this question but I hope someone can help.
Thanks, tired of banging my face on the table.
Please Help with combinators
Re: Please Help with combinators
Connect both ends of an arithmetic combinator together. Set it to: Each + 0 → Each. This is your memory cell.
Connect every inserter adding plates, to your memory cell. Set the inserter's circuit network to "Read hand contents", "Pulse".
Connect every inserter removing plates, to a new arithmetic combinator. Set the inserter's circuit network to "Read hand contents", "Pulse". Set the new arithmetic combinator to Each * -1 → Each. Connect the new arithmetic combinator output to your memory cell.
Now your memory cell counts up and down. And it is already wired to your supply inserters, so you can set them to operate when iron < 500.
Connect every inserter adding plates, to your memory cell. Set the inserter's circuit network to "Read hand contents", "Pulse".
Connect every inserter removing plates, to a new arithmetic combinator. Set the inserter's circuit network to "Read hand contents", "Pulse". Set the new arithmetic combinator to Each * -1 → Each. Connect the new arithmetic combinator output to your memory cell.
Now your memory cell counts up and down. And it is already wired to your supply inserters, so you can set them to operate when iron < 500.
Re: Please Help with combinators
Thanks Dave. I will try this tonight. I figure it was something simple but I kept hitting a brick wall with everthing I tried.
- brunzenstein
- Smart Inserter
- Posts: 1117
- Joined: Tue Mar 01, 2016 2:27 pm
- Contact:
Re: Please Help with combinators
Screenshot?DaveMcW wrote:Connect both ends of an arithmetic combinator together. Set it to: Each + 0 → Each. This is your memory cell.
Connect every inserter adding plates, to your memory cell. Set the inserter's circuit network to "Read hand contents", "Pulse".
Connect every inserter removing plates, to a new arithmetic combinator. Set the inserter's circuit network to "Read hand contents", "Pulse". Set the new arithmetic combinator to Each * -1 → Each. Connect the new arithmetic combinator output to your memory cell.
Now your memory cell counts up and down. And it is already wired to your supply inserters, so you can set them to operate when iron < 500.
- impetus maximus
- Smart Inserter
- Posts: 1299
- Joined: Sat Aug 20, 2016 10:07 pm
- Contact:
Re: Please Help with combinators
[edit3!]brunzenstein wrote:
Screenshot?
derp! why didn't i try that in the first place?DaveMcW wrote:Use the same color wire for everything connected to the memory cell.impetus maximus wrote:there is probably a way to do it without it, but i couldn't find a combination of red and green wires that would work.
Last edited by impetus maximus on Sun Mar 12, 2017 7:08 pm, edited 3 times in total.
Re: Please Help with combinators
Use the same color wire for everything connected to the memory cell.impetus maximus wrote:there is probably a way to do it without it, but i couldn't find a combination of red and green wires that would work.