[HELP] Power Switch State Check

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
PandaGOD
Inserter
Inserter
Posts: 36
Joined: Sat Aug 01, 2015 4:24 pm
Contact:

[HELP] Power Switch State Check

Post by PandaGOD »

Soo, im trying to make some "visual" way of knowing if a power switch is on or off, but since i cant take any output from the power switch directly, i got to use the circuit network.

However, i tryed many ways and i cant find a way (without using accumulators or inserter-chest types of checks) of getting it to work.

Constant Combinators apparently dont need power to work and when a power from a decider/aritmethic combinator os taken, they remain outputting the same, even with power off

Image
Image

Does anyone know a way of checking a state using ONLY circuit network

Yoyobuae
Filter Inserter
Filter Inserter
Posts: 499
Joined: Fri Nov 04, 2016 11:04 pm
Contact:

Re: [HELP] Power Switch State Check

Post by Yoyobuae »

When combinators are out of power the freeze their output signal.

So put a clock combinator setup behind the power switch. Then check if the clock is still running (compare current value with past value).

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2919
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: [HELP] Power Switch State Check

Post by Optera »

Even simpler make half of an RS-Latch. One decider always outputing S = 1 while R = 0 and place another decider always outputting R = 1 in the switched off circuit.
if power is available R will be 1 and if it's off S is 1.

Yoyobuae
Filter Inserter
Filter Inserter
Posts: 499
Joined: Fri Nov 04, 2016 11:04 pm
Contact:

Re: [HELP] Power Switch State Check

Post by Yoyobuae »

Optera wrote:Even simpler make half of an RS-Latch. One decider always outputing S = 1 while R = 0 and place another decider always outputting R = 1 in the switched off circuit.
if power is available R will be 1 and if it's off S is 1.
That's the issue the OP is having, when combinators run out of power they still output the same signals they where generating when power went out. They just don't change those outputs according to inputs anymore.

So a decider which always outputs R=1 will continue outputing R=1, even after being disconnected from power.

PandaGOD
Inserter
Inserter
Posts: 36
Joined: Sat Aug 01, 2015 4:24 pm
Contact:

Re: [HELP] Power Switch State Check

Post by PandaGOD »

Can u guys explain me better? Images?

im kinda noob in circuit network :p

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: [HELP] Power Switch State Check

Post by ssilk »

General is NOT the Help Board!
Moved.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2919
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: [HELP] Power Switch State Check

Post by Optera »

Yoyobuae wrote:
Optera wrote:Even simpler make half of an RS-Latch. One decider always outputing S = 1 while R = 0 and place another decider always outputting R = 1 in the switched off circuit.
if power is available R will be 1 and if it's off S is 1.
That's the issue the OP is having, when combinators run out of power they still output the same signals they where generating when power went out. They just don't change those outputs according to inputs anymore.

So a decider which always outputs R=1 will continue outputing R=1, even after being disconnected from power.
My bad. I never stumbled across this new behavior.

Accommodating for the new behavior using a modified old version of a backup power switch:
2016-12-30-08-55-52-6735818.jpg
2016-12-30-08-55-52-6735818.jpg (124.29 KiB) Viewed 4024 times
Prime the chest with 10-20 plates.
When 0 plates are on the belt the top decider switches to red
When > 0 plates are on the belt the bottom decider switches to green
Using the belt instead of the chest prevents flickering when toggling the switch

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: [HELP] Power Switch State Check

Post by DaveMcW »

Yoyobuae wrote:When combinators are out of power the freeze their output signal.

So put a clock combinator setup behind the power switch. Then check if the clock is still running (compare current value with past value).
power-switch-state.jpg
power-switch-state.jpg (216.28 KiB) Viewed 4022 times

Post Reply

Return to “Gameplay Help”