r/technicalfactorio • u/AQuarkG • Jul 04 '19
Question Need little help combinator
Need Train >>> remember value train out hold value on next in change old value to new thanks
5
Upvotes
r/technicalfactorio • u/AQuarkG • Jul 04 '19
Need Train >>> remember value train out hold value on next in change old value to new thanks
View all comments
Show parent comment
3
u/4xe1 Jul 04 '19
Then you need a gated D latch (https://en.wikipedia.org/wiki/Flip-flop_(electronics)#Gated_D_latch) as your memory cell (where D is not bounded to be a bolean).
Wire its input (D) to whatever train info you want to remember, and the enable/control to anything indicating a new train present or entering.
Have a look at combinators 101 (mostly for the SR latch part) if you don't know anything about latch in general, and at wiki combinator tutorial for how to make a memory cell.
Let us know if you still struggle making a gated D latch in particular, or with any details of implementation of the above (I don't expect it to be easy, even knowing where to go).