Lamp showing if an inserter is active

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
uzilan
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Nov 16, 2020 11:40 am
Contact:

Lamp showing if an inserter is active

Post by uzilan »

Id like a simple lamp showing if an inserter is active or not, preferably without repeating the condition that determines if it should be active or not (so it's easier to copy it). The inserter has a small lamp on the top left that is red or green, based on its status. I'd simply like the same lamp, though bigger. How can I achieve that?

uzilan
Manual Inserter
Manual Inserter
Posts: 2
Joined: Mon Nov 16, 2020 11:40 am
Contact:

Re: Lamp showing if an inserter is active

Post by uzilan »

Different colors would be nice, too

User avatar
AmericanPatriot
Filter Inserter
Filter Inserter
Posts: 459
Joined: Sun Feb 16, 2020 12:47 am
Contact:

Re: Lamp showing if an inserter is active

Post by AmericanPatriot »

You could read the hand contents and wire it to the lamp with anything > 0 as the condition.
Sarcasm and insults are generally neither helpful nor appreciated. :D

adjl
Inserter
Inserter
Posts: 24
Joined: Mon May 07, 2018 6:42 pm
Contact:

Re: Lamp showing if an inserter is active

Post by adjl »

AmericanPatriot wrote:
Tue Nov 17, 2020 8:32 pm
You could read the hand contents and wire it to the lamp with anything > 0 as the condition.
This will work to turn on a lamp whenever the hand is full. If you want to colour the lamp, hook it up via a combinator that outputs a coloured signal (Arithmetic: Anything + 0, output in desired colour. Decider: Anything > 0, either output option in your desired colour), with the same condition on the lamp. If you want it to be turned on when the hand is empty, set the lamp condition to Everything = 0.

This will result in the lamp flickering on and off while the inserter operates, though (on when the hand is full, off when it's empty). If you want it to stay illuminated, you'll need to incorporate a timer circuit to sustain the signal for long enough to let the inserter grab another item, along with a reset signal to start the timer again whenever it picks up a new item. That's more complicated, and I believe you'll be looking at a minimum of two combinators (plus the lamp) per inserter.

Unfortunately, none of this will give you direct feedback on the inserter's status (active, waiting for items, waiting for room), if that's what you're looking for. That information can't currently be read directly from the inserter. For that, your best bet will be either to install the Bottleneck mod (gives every machine an indicator light to show whether it's operating normally, output-limited, or input-limited), or to link the indicator lamps to input/output belts/chests and have them turn on when a given ingredient runs out or is backed up (same basic circuit logic, though for detecting input shortages, you may need to configure the lamp manually instead of being able to stamp down a generic blueprint).

SoShootMe
Long Handed Inserter
Long Handed Inserter
Posts: 80
Joined: Mon Aug 03, 2020 4:16 pm
Contact:

Re: Lamp showing if an inserter is active

Post by SoShootMe »

uzilan wrote:
Mon Nov 16, 2020 11:46 am
Id like a simple lamp showing if an inserter is active or not, preferably without repeating the condition that determines if it should be active or not (so it's easier to copy it). The inserter has a small lamp on the top left that is red or green, based on its status. I'd simply like the same lamp, though bigger. How can I achieve that?
Approaching from the opposite direction: set the condition on a decider combinator, then use the output of the combinator to control both lamp and inserter. If you want the lamp to be red/green like the inserter light, you'll need to use a constant combinator too.

Post Reply

Return to “Gameplay Help”

Who is online

Users browsing this forum: No registered users