Page 1 of 1

[HELP] Power Switch State Check

Posted: Wed Dec 28, 2016 11:21 pm
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

Re: [HELP] Power Switch State Check

Posted: Thu Dec 29, 2016 1:17 am
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).

Re: [HELP] Power Switch State Check

Posted: Thu Dec 29, 2016 7:48 am
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.

Re: [HELP] Power Switch State Check

Posted: Thu Dec 29, 2016 3:25 pm
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.

Re: [HELP] Power Switch State Check

Posted: Thu Dec 29, 2016 4:06 pm
by PandaGOD
Can u guys explain me better? Images?

im kinda noob in circuit network :p

Re: [HELP] Power Switch State Check

Posted: Thu Dec 29, 2016 8:09 pm
by ssilk
General is NOT the Help Board!
Moved.

Re: [HELP] Power Switch State Check

Posted: Fri Dec 30, 2016 7:56 am
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 4290 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

Re: [HELP] Power Switch State Check

Posted: Fri Dec 30, 2016 8:20 am
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 4288 times