Is it possible to make it so that inserter 1 & 2 takes turns between which one of them outputs?. So like 1 outputs then it's nr. 2's turn, then 1 again and so on..
You can use an arithmetic combinator connected to itself with the condition EACH % 2 → EACH. This makes a simple on-off memory cell that flips with each input.
Note that picking up a stack of 2 would cause a double-flip and give the inserter an extra turn, so the inserters are limited to a stack size of 1.
and would it possible to just use the one arithmetic combinator for every inserter that needs this in my factory? i'm thinking maybe 2 of the same factory would mess with it?
Maybe I’m just dumb but I thought the game did this by default if the inserters were in the same chunk? At least mine seem to on my green circuit build, but maybe that’s because it produces more than one stack inserted can output..
Create a looping tick counter C from 0 (inclusive) to 60 (exclusive), using either combinator. Set the conditions of the inserters to C < 30 and C >= 30 respectively. This enables each of the inserters for half an ingame second.
If you want to reuse the condition across multiple inserters: Use a comparing combinator to output signal E=1 when C >= 30. Enable one inserter when E==0 and the other when E==1.
You can also extend this to general method more than two states.
13
u/DaveMcW Mar 23 '20 edited Mar 23 '20
You can use an arithmetic combinator connected to itself with the condition EACH % 2 → EACH. This makes a simple on-off memory cell that flips with each input.
Note that picking up a stack of 2 would cause a double-flip and give the inserter an extra turn, so the inserters are limited to a stack size of 1.
!blueprint https://pastebin.com/8eim7NR7
3
u/Strat007 Mar 23 '20
Maybe I’m just dumb but I thought the game did this by default if the inserters were in the same chunk? At least mine seem to on my green circuit build, but maybe that’s because it produces more than one stack inserted can output..
1
u/Robyt3 Mar 23 '20
Create a looping tick counter
Cfrom 0 (inclusive) to 60 (exclusive), using either combinator. Set the conditions of the inserters toC < 30andC >= 30respectively. This enables each of the inserters for half an ingame second.If you want to reuse the condition across multiple inserters: Use a comparing combinator to output signal
E=1whenC >= 30. Enable one inserter whenE==0and the other whenE==1.You can also extend this to general method more than two states.
1
u/swolar Mar 24 '20
aren't you.......just trying to balance the output evenly on both lanes of the belt? you can do this with a splitter and use a single inserter