goglfarms.blogg.se

Factorio sr latch
Factorio sr latch













factorio sr latch

This behavior turns the pump on (pulling liquid from the storage tank) when the storage tank exceeds 80% (2,000 of 2500) storage. Pump logic condition is set to "If Tank storage > 2,000 liquid." The pump is facing away from the storage tank. Simple Logic ConditionSmall pump with a red circuit wire running from the pump to the feeding storage tank. (i.e., Set has precedence over Reset condition.) When using the same color wire for the DC1 to DC2 crossover as the inputs and outputs (i.e., all red wire, or all green wire), the SR Latch behaves as if the Set value is true. When both the Set and Reset values are true, behavior is different depending upon wire colors. Any attempts to retest should be performed by setting Set value, then Reset value from the latch starting point. Additionally, the order in which you connect circuit wires can have an impact when the set/reset signals are being transmitted on the wires prior to connecting the wires to the decision combinators. I have updated the content with pictures for v0.13.x to improve comprehension of this content- but I have not retested this behavior in the latest release. Taking the Prototype SR Latch shown above and replicating it across two pair of SR latches, I found something interesting from wire color choice, which could have meaningful implications in more advanced logic. Combination of DC1 and CC2 input remains A=2 (stable, but no change to lamp behavior.) Since DC2 only outputs A=1 when DC2 receives input of A=0, the lamp remains on.įor further cycles, the output of DC2 of nothing continues to be applied against DC1. At this time, The CC2 input A=1 and the DC2 output A=2 are combined to equal A=2. Since this triggers DC1 to output A=1, it is fed back to DC2. This turns the lamp off.Īdditionally, the output of DC2 of nothing is applied against DC1. When CC2 is set to A=1 (Reset condition) then DC2 will output nothing (because the CC2 value output to DC2 is A=1, and DC2 only ouputs A=1 when A=0). Since CC2 is empty and DC2 outputs A=1 when it receives no value, DC2 outputs A=1 and the lamp (A>0) will turn on.Īdditionally, the output of DC2 is applied against DC1, but since the input (A=1) does not meet the DC1 condition, it does not affect the DC1 output behavior. When CC1 is set to A=1 (Set condition) DC1 will output nothing.















Factorio sr latch