Emergency power with delay (Combinators help)

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
ili
Long Handed Inserter
Long Handed Inserter
Posts: 87
Joined: Thu Apr 14, 2016 6:19 pm
Contact:

Emergency power with delay (Combinators help)

Post by ili »

Hi
I have a nuclear power setup and a coal power setup.
I want the coal setup to tern on only if power is low so I made this simple setup to connect the steam setup when needed:
2017-08-19_17-51-59.png
2017-08-19_17-51-59.png (915.55 KiB) Viewed 4667 times
The problem is that it is very "flickery" turning on and of rapidly, So I want to add a delay like so:

If accumulator is below 100% connect steam setup (that what I have now)
If steam setup was activated keep it active for 60 seconds (delay)
If accumulator power go below 100 reset the 60 seconds counter (so the steam setup will not tern off if power is still low)

I wasn't able to make it work myself.
Thank you

twepy
Long Handed Inserter
Long Handed Inserter
Posts: 95
Joined: Tue Apr 28, 2015 6:19 pm
Contact:

Re: Emergency power with delay (Combinators help)

Post by twepy »

What you need to implement is a S/R latch, this allows to set condition to turn it on and a condition to turn it off. For example switch on when the accumulator drops below 90% and switch the coal off when accumulator is at 100%. In this topic you can find some tutorials on combinators and an example of a S/R latch.
Image

ili
Long Handed Inserter
Long Handed Inserter
Posts: 87
Joined: Thu Apr 14, 2016 6:19 pm
Contact:

Re: Emergency power with delay (Combinators help)

Post by ili »

twepy wrote:What you need to implement is a S/R latch, this allows to set condition to turn it on and a condition to turn it off. For example switch on when the accumulator drops below 90% and switch the coal off when accumulator is at 100%. In this topic you can find some tutorials on combinators and an example of a S/R latch.
Image
After some more trial and error I have something working, yes using the S/R latch (the single combinator version)
Improvements are welcomed :D (Constant combinator is just for simulating power failure)
Blueprint
2017-08-19_19-57-56.png
2017-08-19_19-57-56.png (566.29 KiB) Viewed 4654 times
Last edited by ili on Thu Sep 07, 2017 6:46 pm, edited 1 time in total.

Tritano
Burner Inserter
Burner Inserter
Posts: 17
Joined: Tue Sep 22, 2015 5:12 pm
Contact:

Re: Emergency power with delay (Combinators help)

Post by Tritano »

I have seen a neat idea: control the offshore pumps of the steam engine, not the output power.

This helps because there is a quite long delay between cutting off the water supply and the
steam engines stopping.

User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

Re: Emergency power with delay (Combinators help)

Post by impetus maximus »

2 combinator SR latch.
SR.latch.png
SR.latch.png (44.04 KiB) Viewed 4548 times
set the decider to when you want backup to kick on. <90 for example. set the arithmetic to the negative amount you want backup to recharge the accumulators.
the blueprint is set to <90 to kick on, and -10 (arithmetic) which will wait till accumulators are at 100 to switch off.
blueprint string

Engimage
Smart Inserter
Smart Inserter
Posts: 1067
Joined: Wed Jun 29, 2016 10:02 am
Contact:

Re: Emergency power with delay (Combinators help)

Post by Engimage »

The problem with your setup is the low capacity of accumulators. This design you are trying to implement is working fine if you want to implement steam backup for solar power. In this case your accumulator charge decays slowly giving you an opportunity to make a frame for say 50-90% of accu charge and turn steam on if below 50% and turn back off if you reach 90%.

In your case if you want to back up nuclear with steam your single accumulator will get drained in no time so you will still have that flickery anyways but maybe a little less frequent.

Much more effective solution in your case would be measuring amount of steam in nuclear power plant storage (which you should implement between heat exchangers and steam turbines) if the storage is large enough.
This storage would also help you implement nuclear power fine control (for saving nuclear fuel). You can search info about this scenario here on forums. In two words this storage serves as accumulator of steam and you start feeding reactors with fuel only if your steam level falls below certain value. This will save you quite an amount of nuclear fuel in case your factory consumes less than reactor's capacity.
So with this storage implemented you turn on nuclear supply if you get say less 50% steam in storage and you can set up to turn on your steam if you fall below 20% and turn it off if >50%.

Also I would recommend using water pump control as opposed to power switch as it has no issues with blueprinting and it naturally provides "cooldown" as steam egines will consume water in pipes even if pump is turned off.

ili
Long Handed Inserter
Long Handed Inserter
Posts: 87
Joined: Thu Apr 14, 2016 6:19 pm
Contact:

Re: Emergency power with delay (Combinators help)

Post by ili »

PacifyerGrey wrote:The problem with your setup is the low capacity of accumulators. This design you are trying to implement is working fine if you want to implement steam backup for solar power. In this case your accumulator charge decays slowly giving you an opportunity to make a frame for say 50-90% of accu charge and turn steam on if below 50% and turn back off if you reach 90%.

In your case if you want to back up nuclear with steam your single accumulator will get drained in no time so you will still have that flickery anyways but maybe a little less frequent.

Much more effective solution in your case would be measuring amount of steam in nuclear power plant storage (which you should implement between heat exchangers and steam turbines) if the storage is large enough.
This storage would also help you implement nuclear power fine control (for saving nuclear fuel). You can search info about this scenario here on forums. In two words this storage serves as accumulator of steam and you start feeding reactors with fuel only if your steam level falls below certain value. This will save you quite an amount of nuclear fuel in case your factory consumes less than reactor's capacity.
So with this storage implemented you turn on nuclear supply if you get say less 50% steam in storage and you can set up to turn on your steam if you fall below 20% and turn it off if >50%.

Also I would recommend using water pump control as opposed to power switch as it has no issues with blueprinting and it naturally provides "cooldown" as steam egines will consume water in pipes even if pump is turned off.
Yep my setup flickers every minute
I don't know why I didn't think of measuring the steam
But it was fun to make and works nicely

Engimage
Smart Inserter
Smart Inserter
Posts: 1067
Joined: Wed Jun 29, 2016 10:02 am
Contact:

Re: Emergency power with delay (Combinators help)

Post by Engimage »

ili wrote: Yep my setup flickers every minute
I don't know why I didn't think of measuring the steam
But it was fun to make and works nicely
Be aware that for this to work you need some exess steam turbines in your nuclear setup so that they will consume saved steam faster than reactors can produce it. Then steam tanks will be effective buffer to trigger backup. If you lack turbines or have exact amount steam level in tank will not change and won't trigger backup even if power plant is working on max capacity.

Post Reply

Return to “Gameplay Help”