Memory Cell Design doesn't work

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
markw
Inserter
Inserter
Posts: 23
Joined: Sun Jul 17, 2016 11:54 pm
Contact:

Memory Cell Design doesn't work

Post by markw »

I am cracking my skull trying to understand the example at: https://wiki.factorio.com/Tutorial:Circ ... _/_Counter, The green inserters are not connected to the memory cell output, only the output of the green inserters is connected to the input of the memory cell. How can this work? Since each inserter needs to compare the value of the memory cell for it's science pack.
When I run my build of this setup, the inserters never have anything but their own single value of 1 pulse to compare against the desired # of science, in this case 16. So the inserters just all keep outputting until the science packs are all used up (or if I had enough science packs the belt would jam. I can add my build blueprint right here?

Code: Select all

0eNrNWuGSoygQfhd/3umWICLkVbamUsaQCXWJWohzOzeVB7j3uCe7JznQTZytwUwju+bmjz2G/r5O03QDnbdod+pFq2Sto81bJKum7qLN17eok891ebLv6vIsok10KnfRJY5kvRffog26PMWRqLXUUowKwz+v27o/74QyA+KrojiJSitZJaIW6vk1MVRCHcpKRHHUNp1BaGrLY1ATVMTRa7QhhmjXHw5CbTv5lwFB6e3vEn/gwvF7Iz+iYvwlH3CLL/nFoZ99oo/4fX3ymT69r59/pp/d16c3fVl3Qhn3upyAvoOYL2Pcu5fKTMvwOYsjM+1aNaftThzLF9koq1RJVfVSb5Uo99tjWe+3dpShNvOtVS8MSPMilJJ7se10Wf1xnSuHhQXIwvSBFjKIhYg80EIOsjB/oIUonRb9t1aJrku0KuuubZROduKkHQbzWXtdBMifgM0RIOxiwP4M+BoVCIG+RBZCkYIoyAKKbJbC7al8AQf25KALOJAnR7GAI/XkYF7573sc/fLlyr3qxkpW4QVJ5FaggfOBF+QRxDw5FmQSVHhyLEglt80IlGNBLrlVISjHglyCiCcH9arwa0V74VXV17KKLZgPz/qB+QIOz/qRLcklnvUjW5JLPOtHhpdvrIaQcWFmAZhAs8ny7dpA4cLMAzDnXEFDdmQZZEeWFSEUGETBoMfgwWQXAocehOcQSAo9Cs8iIOhheBYBB0TIHObHxdK1J6nd6ZpPs+bCIiGhkENCgeQhFAREQQO8TBZXsfg24vp+HHpu9saU1OnvIsDSfFVLpxV8KDud3NkRFLPxQO6bK+pydxJ7h437G8FBqk5vP94ANs+y07JKukqKuhJJa3YR0eges6OwN4j2wFY157ZUpba80b9//zOM+ImbE8L9vUTW81LZ6+Zc2kEP9lM+5eJOC3FKqqPoXMFO38eSCwj5ApEZoKDLlQKSlvKgyxUKoiDgOktn/JCD6+wcAgXX2TmEAlxn5xCmbFUqqY9nYXODieqdrIeovre3pjNZdUKaFlvnWm36tbXML1Lp3ryZInQYkYiyOtoF1QkLs51WXmKCuWmFKke7ot+MatPrtvcGvzidwgOKDV2z2NA0wNJiVUuRd6Dxh8dZ+mOY/f5zw4xi/xpYrFcDW9Xs++p/UANp5u8nup6fTCE9y8pM9YO9RHwL/FwjMvcFmqktdKpvZ7GX/Tm5dZHb5uTsHH+GGHQA/9A8Ii4KFkLBIHsPykOaLqBvUaQhvSMYBQppucAocEjnCEaR+TV12CP67sSvxfMQG/OQZgxsqmhITwlGUYS0YmAULKSjBKPgIY0YEAVLQ/pJMArk11R5RNQz7NeOeoiNWUiLBjZVJKTTBKPIQxo0MAoa0meCUYTcYjL3noixAEw+g8kD2kogT/DUq+7idJWWKUdelXYtq/yyzFpWZV75eS2rwPd6eKazw8H3erMI4Hu9WQTwvd6I8BRHf5r1Zn/D+5XGKC5i9BQPEuKDaF7Eo8R+kDAdRDTIo5bViM2W08r24+t7wmIcEx7jq2yO5YPMrYwGObc4piiiUc7s+8ES87ByZmU86Zrd941rkNk43j6uOPYR81E2WcPI6J2cjTK+ysYTUouzcdz0k+g4MtHTDd7LKeaE85yilGHGLpf/ACUtIVw=
Tertius
Smart Inserter
Smart Inserter
Posts: 1253
Joined: Fri Mar 19, 2021 5:58 pm
Contact:

Re: Memory Cell Design doesn't work

Post by Tertius »

The wiki example shows how to count the items moved by the inserter. The counter is available from any wire connected to one of the outputs of the combinator. The inserter in the example is connected with green wire to the output of the combinator, and the green wire continues to the input of the combinator. So anything pulsed by the inserter reaches the input of the combinator, from where it is forwarded to its output, from where it is available for anyone to use. It's still connected to the input, so the next tick the value is again forwarded to the output, in eternity, so this acts like a memory for the counter value. Anything additionally pulsed by the inserter is added to that counter value.

In your blueprint, you added the feedback loop of the memory cell as red wire. And you connected the inserters to the right with green wire to the input of the memory cell. The output of the memory cell isn't being output to the green wire, it's just connected to the red wire. So the inserters cannot use the values from the memory cell.
You need to replace the red wire feedback wire with a green wire feedback wire, so the output also reaches the inserters to the right, so you're able to use the memorized value in the inserter conditions.
markw
Inserter
Inserter
Posts: 23
Joined: Sun Jul 17, 2016 11:54 pm
Contact:

Re: Memory Cell Design doesn't work

Post by markw »

Ah! thanks. I was fixated on adding the feedback of the memory cell using the same red wire as went into the input. I switched the feedback to green and lo! it works. Much thanks. Its all not as hard as one thinks, but getting one's thinking into line with reality is a challenge. It would be great if these early examples of circuits came with blueprints, I seem to have failed at reading the example wiring correctly.
eugenekay
Filter Inserter
Filter Inserter
Posts: 481
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: Memory Cell Design doesn't work

Post by eugenekay »

markw wrote: Sun Mar 16, 2025 3:39 pmIt would be great if these early examples of circuits came with blueprints, I seem to have failed at reading the example wiring correctly.
It is a Wiki; improvements are welcomed. ;-) I skipped the tutorials myself and figured it out pretty much immediately, so I don’t know what it’s like to not understand the circuit system. It sounds like you have the right type of insight to offer fellow players who might be stuck at the same point.
markw
Inserter
Inserter
Posts: 23
Joined: Sun Jul 17, 2016 11:54 pm
Contact:

Re: Memory Cell Design doesn't work

Post by markw »

It sounds like you have the right type of insight to offer fellow players who might be stuck at the same point.
Hey, the only insight I have on this: the Alt X (reveal mode) causes the combinator to be difficult to see the wiring color unless you know exactly what to look for I guess. With the "reveal" on, and the switch from the red input wire to the green return from the output, as needed by a memory cell, I made the mistake of thinking it was red! I understand that the blueprints keep going out of date, so putting blueprints in is somewhat futile. If I had used my brains I would have figured that that was the issue, but I'm too new to the subject, I need to see it done right once. But hey, one does learn from mistakes, and I learned from this one. Thanks to the quick response too. This is a great forum.
Post Reply

Return to “Gameplay Help”