Smart inserter: Difference between revisions
Line 39: | Line 39: | ||
==== Condition part ==== | ==== Condition part ==== | ||
:[[File:circuit-network-gui.png|400px|thumb|Example condition: "Work only if the count of [[Alien science pack]] is lower than 50."]] | :[[File:circuit-network-gui.png|400px|thumb|Example condition: "Work only if the count of [[Alien science pack]] is lower than 50."]] | ||
This switches the smart inserter on/off. It will work only if all set conditions are true | This switches the smart inserter on/off. It will work only if all set conditions are true; see down. | ||
Condition could be based on red/green circuit (the first two lines, but you need to connect red/green wire to the inserter first!) or logistic network (the last line, but you need a Roboport and the inserter must be inside of the logistic area). | |||
Typical use | Condition could be based on | ||
* red/green circuit (the first two lines, but you need to connect red/green wire to the inserter first!) | |||
* and/or logistic network (the last line, but you need a Roboport and the inserter must be inside of the logistic area). | |||
===== Typical use: Limit input/output of assembly machine ===== | |||
If the circuit- and/or logistic network contains < X items of this type then load (more common: unload) an assembly machine. | |||
As soon as X items are in the network, the assembly machine is not loaded/unloaded any more. | |||
'''Untested:''' Usually it's easier to limit output/unload (and not the loading), so items are not removed from assembly machine and when internal storage of the assembler is full it will stop producing. This is in most cases a bit better, cause it doesn't clog. | |||
There are some '''[[Circuit_network#Examples|examples]]''' in the forum, which will show you some of the common and not so common usages. | There are some '''[[Circuit_network#Examples|examples]]''' in the forum, which will show you some of the common and not so common usages. | ||
===== See also ===== | |||
Please refer to the [[Circuit network]] to see more. | |||
==== Using both ==== | ==== Using both ==== |
Revision as of 13:33, 24 October 2014
More advanced electric inserter. In most cases, the smart inserter will be used to stop production of an item after a certain condition is met (e.g. enough items), when configured as output on an assembly.
Usage
Works at the same speed as a fast inserter. It needs to be configured to work. Configuration is done by opening the inserter interface (right mouse).
Wiring
When used for Circuit network this needs to be wired:
You can use the copy/paste (Shift-RMB for copy and Shift-LMB for paste) to copy the conditions and the connected wire.
The pole needs to be in wiring-reach and and you need to have wires in your inventory.
Configuration
The smart inserter interface has two parts: the "filter" and the "condition".
Filter part
If used (you are not forced to use the filter, it works also by using the condition part only!), the smart inserter moves only items which are in this filter (up to five items can be filtered).
It takes then only "filtered" items from a belt or other stacks (chests, assemblies, etc.). For example, if a belt contains iron and copper plates, and filter is set to iron plate, the inserter will take only iron plates, and don't touches copper plates.
Condition part
This switches the smart inserter on/off. It will work only if all set conditions are true; see down.
Condition could be based on
- red/green circuit (the first two lines, but you need to connect red/green wire to the inserter first!)
- and/or logistic network (the last line, but you need a Roboport and the inserter must be inside of the logistic area).
Typical use: Limit input/output of assembly machine
If the circuit- and/or logistic network contains < X items of this type then load (more common: unload) an assembly machine.
As soon as X items are in the network, the assembly machine is not loaded/unloaded any more.
Untested: Usually it's easier to limit output/unload (and not the loading), so items are not removed from assembly machine and when internal storage of the assembler is full it will stop producing. This is in most cases a bit better, cause it doesn't clog.
There are some examples in the forum, which will show you some of the common and not so common usages.
See also
Please refer to the Circuit network to see more.
Using both
Finally you can use both, filter and condition, so it will only move items of one type if there are less/more than X items of that type in the logistic network (or wires).
Not working by default
This device works only if
- it has a filter set and/or
- it is connected to a Circuit network and/or Logistic network.
When connected to a network, it begins to work immediately, because the "no condition" is a valid condition.
More than one condition
Set one or more conditions, and the inserter will follow the instructions by combining it with logical 'AND'.