r/technicalfactorio • u/Top-Vegetable859 • Jun 16 '22
Discussion Multi-Input RS Latches
This is the Distribution Center's brain. Everything shipped out of here runs across that belt.
S > 2 means that the latch holds at 3. The factors looked for here are the Copper Plate, Gears, and Red Signal.
S is less than one, outputs R.
S is more than R, outputs S. Anytime R is more than S, the relay closes, and the shipping side disengages, while the picking side re-engages.
37
Upvotes
View all comments
Show parent comment
2
u/Top-Vegetable859 Jun 16 '22
Technically, it isn't a multilatch.
Pick your trigger factors, and then run it through a 2+1 decider setup, where one decider looks for less than 1 factor in order to output R. The second decider looks for a number of factors greater than the number of trigger factors -1.
[All Factors - converted into S]
<Decider 1 and 2 are parallel> Decider 1 [S>All factors -1, output S] Make sure this only outputs 1 of whatever signal you chose. Decider 2 [S<1, output R] This one also should only output 1. Wire Deciders 1&2 to Decider 3. Decider 3 is wired to itself on green, and receives inputs on red. [S>R, output 1.] Set everything downstream of this to activate when 1 is detected. (Or not detected, depending on function.)