Memory Cell with Control and Application (Train Filler)

This board is to show, discuss and archive useful combinator- and logic-creations.
Smart triggering, counters and sensors, useful circuitry, switching as an art :), computers.
Please provide if possible always a blueprint of your creation.
Post Reply
cid0rz
Long Handed Inserter
Long Handed Inserter
Posts: 88
Joined: Sun Jul 31, 2016 5:52 pm
Contact:

Memory Cell with Control and Application (Train Filler)

Post by cid0rz »

Hello everyone, finally I came up with something worh sharing. It all started here: viewtopic.php?f=8&t=14584 Then I continued investigating and improoving the system. finally the cell is not too small but it works very well and it is FAST. So I got the memory cell and then came to my mind a possible application which is having different train configurations stored and being able to get a train with those contents. I did a mockup to show the concepts and capabilities of the system. Of course it has some limitations but I plan to work on them. Also if you came up with some suggestion or request I'd be happy to try to implement it (try means guarantee is void xD).

Edit: If you want to use more than 10 cells or you want to use them to store signals (including W,R,E...), or if you want to store negative values and rewrite on busy cells please see new version below.

To set up the memory cell, only 3 combinators must be changed, including the number or signal desired as identifier
cell setup.jpg
cell setup.jpg (218.95 KiB) Viewed 4289 times
Here the blueprint of it:

Code: Select all

H4sIAAAAAAAA/81Xz2+bMBT+VyKOG6lw2qSrKu8y5TCpp1x6qCbkgJNYMzYypmuE8r/POEnHL4MhpN2lamtsP3/f9973XsgnlAeITnyYyX2MobOmKY4FYdJxQyQRzDCT
RBKcwCxjKFJfhDggIRbTgEdrwpDkwnFjnqiPOIPZG5wCd69+3MwPbsCZFJz6a7xDr4QLmJ02+2ol1DvUuRsiEuknZMsQPYfxSoRMEXXc453HxSlw9JmJRExCT/0axUjk
EUAHOi5PZZzaHYRfsdjLHWFbfWK8VwGlTPobwSOfMHUMlCLFB30dw8Ep0hcHOL9gJnCo0NDA7H0SwoUbEBGkROZ/zA5q14sza/owX1OrJyCTdK1ekh9dBtC7mRcR7Lwe
lK93i0uz4hooXX8G0kjkLI9CnRcScQxB/afO6IZQiUUuDxvgtwJjpjFXcKvICQvxmw7M6ql3ZQAjROmUoiguB357Crwe7BmMd/n1Ud9Tm/oObppgdS7lCgutHasH3arX
aEzKjHqldyJB5C7CkgTmpJtp0XhFthYNAPw7amAKYhTs1GMTnG+32rFSn/MYC6106Hzpl6j6Okt1gEVF7Q3QVj4pJcutbR7XEn4IV1NwdbJWRcWqujyYhpWRgzrC82rJ
MaEIzFTMzQB32o9Xz4SmunWZEy2LyIILnGhpNKANoomtA5XrfJt0H7pTBNQY7GsaYFzT2GNK+Z/hrtG/nAI7DX1CNV1+WDW9r0iqSSnGzqfh23uzqlqNHFzXyKvJO9DI
vzUCdFc2GDC8rOVQeNfoqRErNMKNzc33Xhp7Gqeg9VGW188gjvbbWaNGHFUuMYhxR5VZS8fT5tX3LW3TnTmxLbnoHDJG5GL6/5BRn87MIm/xZJuW07PT/CcY2vPHjQfW
TVJtkBiEdqeqL0Z7OVZ/v+zR31f7goGeb92FfZhoC/ZXAPLr9QQ5ty2qlaq9aFkzstOlcXOj0jwlVAeJIdReP0Oq1F6SJK3cdo1RZZoeLqlEB5cE+urK8EQkjs4hN1Nw
eJ+c3Ja9DaZ93piPARStMYXO82r5Q81lk+j3TwXKo8AyFWziP2IW/gV8+9vGVhYAAA==
The current capabilities of the memory cells are:
  • 1tick - writing to cell number # with the wollowing syntax: W(1), #(1), Signal to store
  • 1tick - reading from cell number # + optional writing to another cell # in the same tick + optional modification of the signal with the syntax: R(1),#(-1),[#(1), Signal to add/substract]
  • 1tick - erasing cell(s) with the syntax: E(1),#(1),#(1)....
It shows green light if it is free and yellow if it has something stored. It only needs to be connected on the red cable on the substation and it will write, read and erase from there.

Currently you can't modify the contents of the cell without moving it to another cell but i think it can be implemented if needed.


ok so let's start the show, this is the mockup with the blueprint, I''ll post blueprints as well of smaller parts of the system but i'd recommend putting this which is quite big but has a lot to experiment.
mockup.jpg
mockup.jpg (1.04 MiB) Viewed 4376 times

Code: Select all

H4sIAAAAAAAA/+1dS4/bOBL+K4M+7toDkXpj1nvLnGaBIAiQw2DRcNtKtzBu2yvLmQka+e8r+dEt8VGqIilZds9ckolFSqwq1uOrYnG5+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i5647Rn
SYjSfSy5MkOQaLDPJG6x1feAtBmWrSO07jhAmyVXZtISTRmEIMUYiNTv/ThbMFLQWlB7vnzFqFYNp9CNwqkdmHpgyrs/zibeG6v24IDDDb58w7o+ZgS8YCRmi9lGt43Z
JnjMVmIusUZD3B63X6NBIa6YgFDsHN/y9t9kYIkfHjUXcb6JXn5FBxnAYX351kz0JgHido16lCTBgMnv/sxiKjrGSkoTqix8m2skTjjU+znORqGsiOh0Qg3+IP5vOFL/
VwCqffH+ZUg3xZBusru26ciV9+4A++KlWup4D8jQ+vI92HpYyaJoloXv0iNL8dRNEYecffGeG+quCf8OQkhckTcYkeDx3+6RZAnU7pFA6i73yK6lw5EvNx2biGkawPqK
4QcYm6CPmkl7B4CSdbGJRb/7Mwj/brxg0gYyAoF7P8veAoHHVCcrl2dApAWkFgsU3u4JZylUNo2CseDErZ8MToHT9754JWhPeOsxHOtdP4Rj1Q9yvhvQD3IBhYETf8MK
Quth9OUH3riG8MUrPid6H4scDP2Y5IvD67vvfdK10m4+qubZj0Zn8tX8IVvN7v6zWfyx31ZU+KXIyn2x/un+l2y9/D/y80ZUN/oAAA==
For my project of the train station i made a control unit to run a program through the circuit. It's a clock and then the combinators are set sequentially, the times i chose for isntruction execution (1, 100, 200, 300) are distant to better show how it works. Each time the clock (signal T) reaches those values a pulse with the corresponding isntruction is sent. The program included does the following:
  • clean all the cells
  • write the desired contents of the train as signal to cell #1
  • writes a test signal on 4
  • reads from memory 1 and moves it to 0 (station will start to operate, see below)
  • reads from 4 and add a chest test signal and writes to #2
  • erase 4 is optional so is deactivated
  • read from 2 and write contents of test increased signal to 5
Please note the execution takes 700 ticks and you have to stop the clock or the program will be run again once it reaches 1500 (these values can be changed according to the needs)
CU+array.jpg
CU+array.jpg (976.93 KiB) Viewed 4376 times

Code: Select all

H4sIAAAAAAAA/+VbW2/jNhP9K4EfCymQKMkXbNWXovu8KPKhD4vCkCUmIUpdQNH5NjD830vJcWyRIjW6rOs4j4k0Q/FweOZw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ULH
v0joBGNC50EbOjV0QyPHklE7BlKXqaQkxtXXRH7RLsBoNn2YKpM9aEmyBSzllKLdoWMrMBMXYP6atEhuqp7gHwXDZWlzFmVldRFsbzDlJycOqAbzGJXcJlmJGT+vuDj9
Sy7IcFUHO11c8nCBruFwMTeUXIImubhQAdcUAQMV8ucuwCgQtuRIZLq5k4VYYyUNRQDw+tzkAaZ5npakLbwCaSjAoPko7Os86/+kPNt/Q/z/WRD55TaFfIRsE45KMjbo
oREVehvpF2LKw4p8gXsBzdmlbyytSnL1arRrLQ2JBxnoCqSvJm5CGK6v3L766tgul5KMZE92wgil7z6CHvJKo9AqCXJUWSYfAuP4H1WjvX9B0GGNMT3csKmmc6Mpiwi1
D49V00Wn6ZmaPBotjUYCJ5LZJc8LVYiujJatHY7q8K5j9LIhT90u1HBroH0q4yuIuQgupj2lN6OvmL7k9aV7BWLadPHhgdWDZ8hKYHX2uRtdFAjbhIIDXgNJPU9xfXmT
t5fNE6KEGrjTS1bIei89pUBdJOxsI+qnBR4GawEx7WEtiUNUMZKKfQZqBymqiXvDh7d1qjd50DtAVYupMgraY6SKp3ZLT7FUhRO0MqfqJmjr+6KHBjBUcmAa4JLNru5/
rgDgNTLPcB8PziKfu7ddgbAtywfgNRiYyW+yL9Uz5WCFE7T4mq6qRlwUOzXwjV/UzCdnlmNp61SuH8EuJ2fjr459+frUVOEysAwM5eWFUR51xWqGuUfJy9f8VKYH9L5j
OAwaWog69VdVAV61lR37aa4TVk3dNUCBylOFNBUGdXTVvxEVI8a1e0NRo52O91q12CgEHX+luj+T2TTaYBrOfv+f4MQvDPMty+7WX3CW/Av4ZDQaCDsAAA==
In this picture you can see the control unit and the array at the end of the program. To start the sample program in the mockup just turn on the execution constant combinator. Then when the program finishes you have to STOP manually the execution or put a too high value on the limiter. Otherwise you will execute again. To reset the program to T=0 just use the reset with atention not to leave the reset signal on.

To test the one tick speed I made a fast program you can test (this after the other please xD):

Code: Select all

H4sIAAAAAAAA/+1ZS2+jPBT9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b9iGxnYvWmjoHu86eFPd/Z6pKshdVevR3oacmxuM3pVn/Jdti7H
rqNahyrR1S/V11fx1/48oZlQXRXPjF1sV6lbm0TlpC0NSn1+to3FdY6taTy2p+trmyLV3u72TSr4UqBE0fEssMwFewqfMYv/AeKEY6OWIgAA
Then I modified a cell to connect it to the station, it has no Read on it so it can only be written or reset.
Stationcell.jpg
Stationcell.jpg (908.51 KiB) Viewed 4376 times

Code: Select all

H4sIAAAAAAAA/9Vc34+bOBD+V6o83kGFiSFZVdzLqW9970N1ikjwJtYRyBmz11W0//sZQhJ+GPAYk/T6srtgj2e++WYYj6FR+ilOd2H8aROc+fuJBIttnJMTowlfWFHI
w+BMEk45JVlwPifhUYzI8m3GQ07TZGGd0owWvwXnn4GNPOs9sFcf1i5NErIrrotZPxZo8VdwZiQSEkph7xsaBd7S2lG2yykv/kIfVu3eC/oo/lnVgkKcWDDh9i49bmkS
8pS1V15+vqz92fuwIsouiwduoQlnabzZkkP4RlMWnF9pzAkrrMnoPgnjq91vlPE8jBdWZWR5094zQpJFYVGe8ABZNInIz6BQT8lIDLUDX+xYP86Om3bZMYxjOw6Pp7ZS
bg3criJXL4o7UTXplbKMb1T0+lbqdIElcMSvx1PICmCCRSBu5RkRcuNU2MlZTtRAd4VNpb3Nqy8NX4gVd3/bNMkIEzC2LF6aMJhycrxa+xpm3OYsTLJTyri9JTHvN/yP
RU3PON3TjNOdvTsQIYORf3Lxs0/jkjfVmM2dIZW3B5SpiIEdRxWjGinUJiDToJJYMIEJaI40ocnejhiNY7OwIgCscnWuEdcAVnF1F7A6C+ltMVfZi45pn2zp3r4BcUpj
ouiPQeYY1/JIIpoftRRVc50D8FwXssqNngZlIAtLUZCtPeQcI8+Gum9EYqKJnfH0ZIA6xnNOazGTnIFEew2kW4IBLwhJbm2QgSzBxv1wr0Gns8T4475IxvbltlGKYIjH
alW6dj6BlBV1o6H88MzHKSHxxTajHvBAMXPXQQZIRHY0ImxgN+AXa3nje4FK0h2gDFKDf60jh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oIlZCQnPVDIGOsVCiVUERapVkq6
u0/3AaX2d1Nbmu/qVbb6xrGz4a+9ZNjzaSsqkVMY57UGQjiITBDZ7RNS/2Sk9f6kmOfUJ/kQ4lah7EAriWud7TQV9mFCliNCBr8ru2jQ0Fzhs1D18Qg43u2Oh1TY05BE
E5B0gIZKxkOq50mGmpAxhhWgCp4kw0QIjUUQoPqcJMM3IGNlQMbagIwXExwzQlQTTEUmqIpM8AyZIDwywVZkgq7IBF/RGGF3OXsjkX35QLyZ8ldi4rIv3YsJ+wOXzisq
Blde6g7Oc/TmrfWm+XrTsN40PUz0ENFbS88wPRT1XKZJEE0+Ij1AkB4iSA8SVzNmynl+fd6qNq/2YaqkCMTACrfRRZT8dwbdpLO6j2fpNi1Sm+xcqDas9Xmu2MewcN+R
fUntL3V91CYudSdi3YnufeKHRXfl3vbc/6JN9W799TNRa2Boz1PjOrnYncahuBQs/iRxfHul7uMLIzxnyafNF5JE/wGOnFijGUoAAA==
Once it is written the station will start providing the materials to fill the train with the corresponding sent quantities. It will modify the value stored on the special cell as it provides the materials and final state will be your train carrying what you asked on the program :shock: , +-1 item of error :oops:

Please note this is not a working station but a mockup so i only got the items i needed in the requesters and I only have 1 wagon. I think anyways if you understood how it works you can adapt it to your needs. I'll work to make a functional version for me and I'll try to improve some aspects I'm not completely happy with. For example having more memory addresses and the possibility to modify the memory content but this is a working platform that can be used. I'd also like to implement some system that allows me to run a program once and then stops and reset everything, maybe somebody has a suggestion, I've not look in depth to the combinator contraptions thread but I will now that i have some basics. I'd appreciate any kind of feedback, bugs, and of course, if you find a use for them I'd be more than happy to know about it.
Last edited by cid0rz on Fri Sep 16, 2016 9:20 pm, edited 3 times in total.

User avatar
Deadly-Bagel
Smart Inserter
Smart Inserter
Posts: 1498
Joined: Wed Jul 13, 2016 10:12 am
Contact:

Re: Memory Cell with Control and Application (Train Filler)

Post by Deadly-Bagel »

Would be so useful if we had the option of limiting inserters to stack size of 1 regardless of research, ideally part of a circuit condition so for example if you want 100 items in a chest you tell the inserter to limit stack size once count > 96.
Money might be the root of all evil, but ignorance is the heart.

cid0rz
Long Handed Inserter
Long Handed Inserter
Posts: 88
Joined: Sun Jul 31, 2016 5:52 pm
Contact:

Re: Memory Cell with Control and Application (Train Filler)

Post by cid0rz »

Hello again, I was working to implement my cells with a display (viewtopic.php?f=193&t=32489) so then I realized I will need all the letters and maybe more addresses, since i was not very satisfied with 0-9. Then I changed everything xD. The philosophy is the same so there is an array of cells with addresses consisting on a number signal (0-9) with the quantity corresponding to a multiple of 2, so 1(2), 3(4), 2(16) are 3 cells of an array of 3 columns and at least 2 rows for 1, 3 rows for 3 and 5 rows for 2. Due to this adress system it is only possible to read/write on different columns because 2 adresses of the same column will produce an error. 2 columns are minimum recommended for useful application.

To change the adress of the cell you have to configure the primary adresses (in blue) for the column and the secondary adress (in red) for the row:
adresses.jpg
adresses.jpg (391.9 KiB) Viewed 4159 times
The main isntructions are now: Write with the blueprint book signal, read and optional write to another adress with the blueprint signal and erase with the deconstruction panel signal.

The current capabilities of the memory cells are:

1tick - writing to cell number X(#) with the following syntax: Blueprintbook(1), X(#), Signal to store
1tick - reading from cell number X(#) + [optional writing to another cell Y(#) in the same tick + optional modification of the signal] with the syntax: Blueprint(1), X(-#),[Y(#), Signal to add/substract]
1tick - erasing cell X(#) with the syntax: Deconstructionplanner(1), X(#)

It shows green light if it is free and yellow if it has something stored. It only needs to be connected on the red cable on the substation and it will write, read and erase from there.

Here I have a control unit with some programs (red), and righr blue group, the start and reset as in previous version (please see above) and a reset for all the array (now is for 5 rows but can be extended)
CU.jpg
CU.jpg (330.25 KiB) Viewed 4159 times
I post attached the blueprints since otherwise this would take too much space: first cell of column 1, second cell of column 2, the control unit and a test setup with control unit plus 2 columns that is what i recommend to see how it works. I dont have so much time to go into detail but in case you have any question I'll try to answer.

As I said i used this system to control Xeteth display. if you are interested I can also blueprint all the setup but it is quite huge
Attachments
cidkampeador - testsystem.txt
(9.55 KiB) Downloaded 126 times
cidkampeador - advCU.txt
(3.72 KiB) Downloaded 117 times
cidkampeador - cell22.txt
(1.3 KiB) Downloaded 114 times
cidkampeador - cell1.txt
(1.33 KiB) Downloaded 122 times

cid0rz
Long Handed Inserter
Long Handed Inserter
Posts: 88
Joined: Sun Jul 31, 2016 5:52 pm
Contact:

Re: Memory Cell with Control and Application (Train Filler)

Post by cid0rz »

Hello, today I was re-testing the display and now it's working very good. As I saw somebody downloaded the cells, pelase find attached a working display with the 2 column arrays of memory cells. Now the program that is set up will store the misterious words on column 2 and then copy them to column 1. Once column one detects it has content, it starts printing the words on the display. Enjoy!
Attachments
cidkampeador - Smartdisplay.txt
(28.23 KiB) Downloaded 123 times

Post Reply

Return to “Combinator Creations”