nobodx wrote:Is there a smarter / better way to control your factory storage with less than a single constant combinators (to set the max items) + 2 decider combinators for each items you want to control ?

first way: connect lamp (or green inserter) directly to the storage chest and write necessary restriction in lamp/inserter
+ the simplest setup
- if you want to change item limitation you will need to change it in every lamp/inserter

second way: use negative values inside constant combinator and condition >0 in lamp/inserter
+ changing limitation can be done only in constant combinator
- not so simple as previous, requires 1 constant combinator

nobodx wrote:Is there a smarter / better way to control your factory storage with less than a single constant combinators (to set the max items) + 2 decider combinators for each items you want to control ?

I wanted to control my entire factory from a central (constant combinatorial) place.
Eg I set it to 1000 solar panels, and my multiple assembler start to fill up my chests to 1000 panels.
Currently I use smart inserters, but I don't want to change countless inserters every time I upgrade my factory

nobodx wrote:I wanted to control my entire factory from a central (constant combinatorial) place.
Eg I set it to 1000 solar panels, and my multiple assembler start to fill up my chests to 1000 panels.
Currently I use smart inserters, but I don't want to change countless inserters every time I upgrade my factory

then the constant combinator emitting the negative value you want is simpler.

in the inserter the values will be added together and if the result is less than 0 you still need some made

Thanks for this post. I was finally able to get my terminus station logic worked out. Fun, but exhausting.

Images

This logic accounts for:

Multiple stations with the same name (trains go to other stations when another is deactivated).

Stations should be deactivated when full.

Trains should not be trapped in stations.

Should reset when falls below specified limits.

This uses the RailLogicSystem mod to detect the signal status and to toggle the track on/off. Blueprint: https://www.dropbox.com/s/u2u2mtivejgvs ... print?dl=0
The center of the logic system left of the two lights forms a RS-Latch, which toggles the track switch. The image shows the system in "set" mode, where the station is full and no trains are allowed in.
The "reset" comes when the bottom AND gate reports true. The AND gate inputs from the combinator (red line going to large pole) and a timer which pulses every second. When the amount of storage in the system drops below a certain value, the latch resets and trains can come in.
The only way the station can shut down is if the top AND gate is true. Those inputs are: the amount goes above a certain value (combinator to right of lights) and the train leaves the station (signal detector to pulse generator).

Also a big thanks, just tested it on a small scale and it is working wounderfull. All I need is combinator, and (literally) tons of red wires to connect all my inserters and countless more wires to connect all my storage chests. Maybe it's time to build a red wire production

nobodx wrote:Also a big thanks, just tested it on a small scale and it is working wounderfull. All I need is combinator, and (literally) tons of red wires to connect all my inserters and countless more wires to connect all my storage chests. Maybe it's time to build a red wire production

If you play with mods at all, you might wanna check out my logistic combinators mod (link in my sig). It has the gui of a constant combinator where you select signals, but then the values for those signals are copied from the logistics network, so they let you do combinator logic on logistics network numbers, saving you from wiring hoards of chests if what you want is just a total of all storage.

What subject(s) do you recommend studying to understand the principles of your concepts? Factorio has changed forever ever since I stumbled upon the Build Code Circuit you coded for Negative Root. Thanks!

GopherAtl wrote:EverythingEverything tests just that - every signal it's getting. The condition will be true only if it was true for every one of those signals. For example, a decider with "everything > 10" with it's input connected to a constant combinator outputting only "iron plates = 11" will test true. Add a second signal to the constnat combinator, "copper plates = 1", and now it will test false, because it is getting a copper plates signal, and it is not greater than 10. Change it to 11 as well, and the condition will be true again.

Now, remember when I said 0 values tend not to actually be sent as signals? Here's where that's important. If you have 1 copper and 10 iron, the "everything>10" test will fail, but if you take away that 1 copper, the test will pass. 0 copper is no copper signal, and will not be considered in the test at all! Bear this in mind, as it sometimes limits the usefulness of "everything" as a setting.

Not sure if I've grasped everything but could you not fix the "0 is no signal" problem for everything by adding a Constant Combinator for everything you're testing for that puts out 1? E.g. add one that puts out 1 for iron and one that puts 1 one for copper to the network in your example and raise your testing value by 1.

A simpler S-R latch design: two binary (0/1) signals (A and B) being fed into one signal decider combinator which feeds back into itself. Because the signals need to be binary you require additional decider combinators when hooking up chests.

Screen Shot 2015-10-03 at 13.15.14.png (311.09 KiB) Viewed 8685 times

The condition on the light is "A > 0". It holds the S or R signal, which ever was active first. I don't think it can flicker either.

I think that I copied it from one of the FFF, though it might have been this forum itself.

I use the setup from my previous post to control how much cracking is going on at my chemical plant. The output of the S-R latch (C1) is attached to a pump (C2) which controls how much of the cracked product is put into the next storage tank. By controlling the output of the cracking plants instead of the input the system becomes more responsive.

I have added some extra components to not make it jumpy when the fluid levels keep changing. The lights are used to see if Set, Reset, or Output is active.

Signal A (set) is defined as "Light Oil > Petroleum Gas", outputting A = {0,1}. Before the amount of Light Oil is put into the decider I first subtract 500. This creates a small buffer so that the oil refineries can have some time to catch up.

Signal B (reset) is defined as "Petroleum Gas > 2.4K", outputting B = {0, 1}. The reason that I create this signal using a constant is to ensure that a reset signal can be generated, by not including the ever changing levels of Light Oil.

I could have probably used a couple fewer wires if I hadn't used the storage tank contents as the binary output signals, but had actually used A/B.

goku90504 wrote:I only recently bought the game (had it about a week or two now) and I've gotten a free play map to all research complete but I can't find combinators in my production list ?

What version of the game are you playing? If you are on the "stable" branch you will not have access to them, try this link to download the experimental (but currently pretty stable) builds https://www.factorio.com/download/experimental

Big thanks to the OP for making this guide, very useful, i just made my first network(an alarm system to warn when coal runs low in the boilers). A few hours ago i thought i would never understand what those combinators do

The guide is great! Thank you!
How about we do some sketches like the attached one. I think that makes it easier to understand.
How you think?
I used this Programm (free) for it: https://www.yworks.com/products/yed