Help with circuit and chests contents comparison
Posted: Wed Mar 01, 2017 3:13 pm
TL;DR
3 chests:
#1 contains 800 units of U
#2 contains 100 units of Pu
#3 is empty
What I need is to make a circuit that checks the condition is #3 has no less than twice the number of Pu in #2 (200 in this case) and while it's true output 1 or 0 otherwise.
I need to take 200 units of U out of #1 and send the rest 600 elsewhere
So, if #2 has 500, I need to have 1000 in #3, if #2 has 10, I need to have 20 in #3 etc.
Basically, I need a circuit that compares the contents of two chests and outputs a signal when the number of units in the second one is less than twice the amount in the first one.
What it takes to have such a network?
Boring stuff:
Hello, I'm trying to automate my nuclear power plant and the problem is as such:
1 spent nuclear fuel can be reprocessed yielding 1 Plutonium + 8 Uranium
The whole output is placed into a chest.
Now I have a filter that takes only plutonium from this chest and places it into another one.
To make another unit of nuclear fuel I need 2 uranium + 1 metal plate + 1 plutonium, therefore, I need to take 2 out of 6 uranium ore from the chest.
I have a arithmetic combinator wired to the chest with plutonium that reads the number of plutonium slags in there and multiplies it by 2.
What I need now is to make a circuit that outputs 1 while the third chest has less than needed units of Uranium.
3 chests:
#1 contains 800 units of U
#2 contains 100 units of Pu
#3 is empty
What I need is to make a circuit that checks the condition is #3 has no less than twice the number of Pu in #2 (200 in this case) and while it's true output 1 or 0 otherwise.
I need to take 200 units of U out of #1 and send the rest 600 elsewhere
So, if #2 has 500, I need to have 1000 in #3, if #2 has 10, I need to have 20 in #3 etc.
Basically, I need a circuit that compares the contents of two chests and outputs a signal when the number of units in the second one is less than twice the amount in the first one.
What it takes to have such a network?
Boring stuff:
Hello, I'm trying to automate my nuclear power plant and the problem is as such:
1 spent nuclear fuel can be reprocessed yielding 1 Plutonium + 8 Uranium
The whole output is placed into a chest.
Now I have a filter that takes only plutonium from this chest and places it into another one.
To make another unit of nuclear fuel I need 2 uranium + 1 metal plate + 1 plutonium, therefore, I need to take 2 out of 6 uranium ore from the chest.
I have a arithmetic combinator wired to the chest with plutonium that reads the number of plutonium slags in there and multiplies it by 2.
What I need now is to make a circuit that outputs 1 while the third chest has less than needed units of Uranium.