In other languages: Čeština Deutsch Français Русский Українська 简体中文

Decider combinator: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
No edit summary
(Removed opinion on necessity of usage - this kind of information belongs on a circuit network (tutorial) page, the page of a combinator is the wrong place for it.)
Tag: Undo
(12 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Languages}}
{{Languages}}
{{:Decider combinator/infobox}}
{{:Infobox:Decider combinator}}


The {{PAGENAME}} is part of the circuit network and one of three types of combinators available in the game. It is used to make comparisons of signals on the network. Signals can be compared using "is greater than" (>), "is less than" (<), "greater than or equal to" (>=), "less than or equal to" (<=), "is equal to" (=) and "is not equal to" (!=).
The Decider combinator is part of the circuit network and one of three types of combinators available in the game (with the other two being the [[constant combinator]] and [[arithmetic combinator]]). It is used to make comparisons of signals on the network. Signals can be compared using "is greater than" (<span style="color:#00FF00">></span>), "is less than" (<span style="color:#00FF00"><</span>), "greater than or equal to" (<span style="color:#00FF00">>=</span>), "less than or equal to" (<span style="color:#00FF00"><=</span>), "is equal to" (<span style="color:#00FF00">=</span>) and "is not equal to" (<span style="color:#00FF00">!=</span>).
Input contacts are to the left in the above picture, outputs on the right.
Input contacts are to the left in the above picture, outputs on the right.
[[File:decider_combinator_anim.png]]


== Function ==
== Function ==
The internal logic process has three steps:
The internal logic process has three steps:


1) Values for each individual input signal(s) (items of the same name) on the red and green wires are summed within the combinator.
# Values for each individual input signal(s) (items of the same name) on the red and green wires are summed within the combinator.
 
# The decider combinator GUI specifies a "first" input signal, a comparison (>, <, =, >=, <=, !=), and a "second" input signal or constant.
2) The Decider combinator GUI specifies a "first" input signal, a comparison (>, <, =, >=, <=, !=), and a "second" input signal or constant.
# If the comparison returns true, the output is a new signal with a value of 1, or copying an input signal to the ouput.
 
3) If the comparison returns true, the output is a new signal (any name) with either the input value of the selected signal, or 1.
 
4) Using the Everything output with input -> output will pass all nonzero input values to the output as long as the condition is true. Using the Everything output with "1" will output 1 ONLY for all non-zero inputs.


5) The Each input will re-apply the comparison for each input signal individually, and will pass the selected output for each input that passes the conditional.
Further notes:


6) The Everything input functions as a logical AND, and will return true only if ALL non-zero inputs pass the conditional.
* Using the Everything output with input -> output will pass all nonzero input values to the output as long as the condition is true. Using the Everything output with "1" will output 1 ONLY for all non-zero inputs.
* The Each input will re-apply the comparison for each input signal individually, and will pass the selected output for each input that passes the conditional.
* The Everything input functions as a logical AND, and will return true only if ALL non-zero inputs pass the conditional.
* The Anything input functions as a logical OR, and will return true if ANY non-zero input passes the conditional.
* When "Input Count" is selected the "Parameters" don't affect the value of the output, only the summed input signals do.


7) The Anything input functions as a logical OR, and will return true if ANY non-zero input passes the conditional.
The decider combinator can handle [[Circuit network#Logic signals|logic signals]].


The decider combinator can handle [[Automatic control/Virtual signals#Special signals|special signals]].
With both the arithmetic and decider combinator, there is one tick (60th of a second) of latency before the output signal is ready to be used as an input into a circuit network.
 
With both the Arithmetic and Decider combinator, there is one tick (60th of a second) of latency before the output signal is ready to be used as an input into a circuit network.


== History ==
== History ==
Line 49: Line 49:
== See Also ==
== See Also ==
* [[Arithmetic combinator]]
* [[Arithmetic combinator]]
* [[Constant Combinator]]
* [[Constant combinator]]
* [[Combinator Tutorial]]  <-- Description of Combinator Logic Gates
* [[Tutorial:Combinator tutorial|Combinator tutorial]]  <-- Description of Combinator Logic Gates
* [[Circuit network]]
* [[Circuit network]]
* [[Circuit-network_Cookbook|Circuit Network Cookbook]]
* [[Tutorial:Circuit network cookbook|Circuit network cookbook]]
 
{{LogisticsNav}}
{{LogisticsNav}}
{{C|Circuit network}}

Revision as of 16:43, 22 March 2019

Decider combinator.png
Decider combinator

DeciderSprite.png

Recipe

Time.png
0.5
+
Copper cable.png
5
+
Electronic circuit.png
5
Decider combinator.png
1

Total raw

Time.png
8
+
Copper plate.png
10
+
Iron plate.png
5

Recipe

Time.png
0.5
+
Copper cable.png
5
+
Electronic circuit.png
5
Decider combinator.png
1

Total raw

Time.png
14.25
+
Copper plate.png
22.5
+
Iron plate.png
10

Map color

Health

150

Stack size

50

Energy consumption

1 kw (electric)

Mining time

0.1

Prototype type

decider-combinator

Internal name

decider-combinator

Required technologies

Circuit network (research).png

Produced by

Assembling machine 1.png
Assembling machine 2.png
Assembling machine 3.png
Player.png

The Decider combinator is part of the circuit network and one of three types of combinators available in the game (with the other two being the constant combinator and arithmetic combinator). It is used to make comparisons of signals on the network. Signals can be compared using "is greater than" (>), "is less than" (<), "greater than or equal to" (>=), "less than or equal to" (<=), "is equal to" (=) and "is not equal to" (!=). Input contacts are to the left in the above picture, outputs on the right.

Decider combinator anim.png

Function

The internal logic process has three steps:

  1. Values for each individual input signal(s) (items of the same name) on the red and green wires are summed within the combinator.
  2. The decider combinator GUI specifies a "first" input signal, a comparison (>, <, =, >=, <=, !=), and a "second" input signal or constant.
  3. If the comparison returns true, the output is a new signal with a value of 1, or copying an input signal to the ouput.

Further notes:

  • Using the Everything output with input -> output will pass all nonzero input values to the output as long as the condition is true. Using the Everything output with "1" will output 1 ONLY for all non-zero inputs.
  • The Each input will re-apply the comparison for each input signal individually, and will pass the selected output for each input that passes the conditional.
  • The Everything input functions as a logical AND, and will return true only if ALL non-zero inputs pass the conditional.
  • The Anything input functions as a logical OR, and will return true if ANY non-zero input passes the conditional.
  • When "Input Count" is selected the "Parameters" don't affect the value of the output, only the summed input signals do.

The decider combinator can handle logic signals.

With both the arithmetic and decider combinator, there is one tick (60th of a second) of latency before the output signal is ready to be used as an input into a circuit network.

History

  • 0.15.0:
    • Added additional operators to the Decider Combinator and Circuit Conditions.
  • 0.13.0:
    • Connected wires are highlighted when hovering over a combinator connected to the circuit network.
    • Combinators show input and output in alt mode.
    • More virtual signals for combinators.
    • Constant combinator can be rotated.
    • Decider combinator "input count" option makes the combinator copy the count of the specified output signal from the input signals, instead of copying the count from the condition.
    • New combinator graphics.
  • 0.12.5:
    • Combinators now emit light.
  • 0.12.2:
    • Combinators no longer turn off when no wires are connected.

See Also