stockklion.blogg.se

Factorio sr latch
Factorio sr latch











factorio sr latch factorio sr latch

Once you connect the inputs up to the accumulators one of the following three cases happens: Therefore R>S fails and no output is generated, leading to the switch being turned off. If the accumulator drops below 20% the latch sees 1S 0R and we start over again with the latch sending 1S.Īfter setting up the decider combinator in question has no input values, e.g. If the accumulator drops below 90% but remains above 20%, the latch sees 0S 0R and takes no action. If the accumulator remains above 90%, the latch will continue to see 0S 1R and take no action. 1S is not greater than 1R (they are equal), so the latch no longer sends 1S. The latch is sending 1S, so it's seeing 1S 1R. Once the accumulator rises above 20 but is still below 90, set/reset sends 0S and 0R. 2S is greater than 0R, so it keeps sending 1S. So at this point the latch is seeing 2S, one from the set/reset, one from itself. So if Accumulator is 0R, the latch decider outputs 1S. But it also outputs to itself as well as whatever it is you're controlling. If Set is greater than Reset, output Set, 1S. Then the SR latch combinator compares the inputs from those two combinators. (if Accumulator 90% full, output 1R).Ĭollectively I'll call these the set/reset and treat them as a single unit. Output nothing.įirst decider combinator takes raw input to determine if the Set condition has been met. S > R, output = SĪccumulator at 91%: Top input R. S > R, so output is SĪccumulator rising to 50%: Top input empty (because S has stopped). One output goes to the switch, one goes to its own input.Ĭurrent state of the SR latch: Top input S, bottom input S. Output emptyĪccumulator at 19%: R value 0. Switch offĪccumulator falling to 50%: Top input empty (because R has stopped). SR Latch output 0 because S > R is false. Otherwise output nothingĪccumulator at 100%: S output 0. It's almost fully charged so the reset signal becomes active. Two minutes later the input signal stops because accumulator is recharging. Next tick it will output S=1 (to the green wire). Let's say the S input turns on at time t=1. Two minutes (2*60*60) choose below just as an example. I shall count time (t) in these updates (ticks). The circuit logic updates like everything else in the game 60 times per second. Looking only at the combinator marked RS latch, and the red and green wires it is connected to.













Factorio sr latch