The major power we gained is to use the red and green wire inputs separately. This enables us to use the EACH wildcard with different wires for its operands. This is used throughout almost all of my examples.
I consider adding this as additional combinator tutorial to the wiki, so I'm interested in feedback and bugfixes for blueprints and descriptions. Or if you have more generic snippets I should add. Or if language can be improved, I'm not native English speaking. I tried to keep everything as generic as possible and not just show how I personally solve the circuit challenges.
It goes from easy to somewhat advanced and specialized.
Basic combinator setups
One or two combinators with simple functionality.The descriptions you see are also added as combinator descriptions everywhere in the blueprints.
Math/basic arithmetic operations
Divide everything from red-wire by everything from green-wire.Can be used for all the other arithmetic operations as well. This wiring and wire selection within the combinator is the basic setup how to use the 2 wires independently throughout all the other examples.
Find the minimum/maximum of 2 inputs
For finding the minimum, the first combinator outputs all signals from green-wire whose values are lower or equal than the corresponding signals on red-wire.The other combinator outputs all signals from red-wire whose values are lower than the corresponding signals on green-wire.
The combined output represents the minimum values of both inputs.
The maximum works the same, just the conditions reversed. Minimum:
Maximum:
Include only filtered items
Arbitrary signals are on red-wire.Filter definition is on green-wire.
Output only signals from red-wire that are also present on green-wire.
Values on green-wire can be any <> 0, don't need to be 1.
Exclude filtered items
Arbitrary signals are on red-wire.Filter definition is on green-wire.
Output only signals from red-wire that are not present on green-wire.
Values on green-wire can by any <> 0, don't need to be 1.
Limit filtered items
Filter everything below or above some limit.On red wire a list of limits for given signals is input.
Output every signal from green wire that's below the limit. Ignore signals from green-wire that don't exist in the filter on red-wire.
Inverse the condition to > to output every signal above the limit.
Example usage: use output as filter for an inserter that's moving only items with less than (or more than) the given amount of items in some storage.
Generic latch (hysteresis)
Activate [signal-check] if input signal [iron-ore] raises above the upper limit (200).[signal-check] stays active until input signal [iron-ore] goes below the lower limit (100).
Signal has to raise above 200 again to activate [signal-check] again.
Reversed functionality: Use < and <= as comparison and exchange higher and lower limit, if you need to activate the output if the input is below the lower threshold and keep it activated until the upper limit is reached.
Counter
Counts things, for example items moved by an inserter.It is reset to 0 if [R]>0 is provided.
Clock
This clock counts from 0 to 100, then starts from 0 again.Feel free to provide a different reset condition with different input signals. The clock counts as long as the conditions render true.
In contrast to clocks from game version 1.1, you're able to provide the +1 increment inline as output signal, so an extra constant combinator is usually not needed.