how do I switch between accumulator and steam/coal based machine?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
User avatar
TheRangerLOL
Long Handed Inserter
Long Handed Inserter
Posts: 74
Joined: Fri Sep 18, 2020 11:56 pm
Contact:

Re: how do I switch between accumulator and steam/coal based machine?

Post by TheRangerLOL »

MassiveDynamic wrote: Sun Oct 11, 2020 8:18 pm Actually you don’t need the combinator for this to work. In that example the combinator is changing the “A” signal to “GREEN”. Simply eliminate the combinator and set the switch to operate when “A” < n (where n is your threshold).
Hmm, i guess so huh. I use the green signal for other things so I didn't even notice, haha.
The one and only.
Theikkru
Filter Inserter
Filter Inserter
Posts: 414
Joined: Wed Mar 27, 2019 2:18 pm
Contact:

Re: how do I switch between accumulator and steam/coal based machine?

Post by Theikkru »

JapaneseMom wrote: Sun Oct 11, 2020 6:39 pm[...]
TheRangerLOL wrote: Sun Oct 11, 2020 5:03 pm Your main power grid should be whatever is connected to your factory. The boilers are going to be backup power from now on, right?
yess. so is this connection correct? (ill ask regarding the programming again once the connection already in place)
Screenshot (1292)_LI.jpg
[...]
There are 2 parts to this question, and unfortunately, the answer to both is no. The first part is how you make the connections for power and circuit logic. TheRangerLOL's post answers this part of the question.

The second part of the question is what you connect, and this needs to be split in 2 parts too:

First, you need to make sure the power connections are on the correct sides of the switch. In your screenshot, it looks like you have steam power and your base connected to one side of the switch, but solar power, your accumulators, and the circuit control are all not connected:
SSedit.png
SSedit.png (1.87 MiB) Viewed 1247 times
In order to use steam as a backup, the power switch must be able to disconnect it from everything else, so steam power must be by itself on one side of the switch (with the control circuit, so the control circuit always has power), and everything else (base, solar, accumulators) needs to be on the other side:
bakdemoedit.png
bakdemoedit.png (371.54 KiB) Viewed 1247 times
After that, you have to figure out how to set up the control circuit. How you connect the circuit wires will depend on which logic circuit you use. There are basically 3 different kinds of logic most commonly used, and 2 have been presented in this thread. You need to choose one in order to figure out how to connect the circuit:

Type 1 logic is the simplest, because it doesn't need any combinators (though it may use 1). However, this logic only lets you set 1 threshold for when to turn the backup on and off, and will cause thrashing (fast, repeated switching) of the switch when it reaches that threshold. Type 1 logic is shown in these posts:
Yoyobuae wrote: Wed Oct 07, 2020 7:52 pm[...]
TheRangerLOL wrote: Sun Oct 11, 2020 7:43 pm[...]
Type 2 logic requires 1 decider combinator and 1 arithmetic combinator, and allows you to set 2 power thresholds, 1 to turn on, and 1 to turn off, but it requires some math to calculate the thresholds, and can still cause thrashing of the switch under certain circumstances. Since it hasn't otherwise been described in this thread, I'll stop here:
t2demo.png
t2demo.png (684.14 KiB) Viewed 1247 times
Type 3 logic is what I showed in my example post. This uses 3 decider combinators, and lets you set a low power threshold to turn the backup on, and a high power threshold to turn the backup off. Since the 3rd combinator helps the circuit remember its on/off state, the switch will not thrash:
bakstates.png
bakstates.png (622.01 KiB) Viewed 1247 times
MassiveDynamic
Filter Inserter
Filter Inserter
Posts: 261
Joined: Sun Sep 16, 2018 10:44 pm
Contact:

Re: how do I switch between accumulator and steam/coal based machine?

Post by MassiveDynamic »

Here is a simple no combinator setup using the power switch...


Here is a simple no combinator setup using the offshore pump...


Here is an SR latch version (emergency power turns on at A<40 and off at A>=90) using 3 combinators...
Post Reply

Return to “Gameplay Help”