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:
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
Emergency power with delay (Combinators help)
Re: Emergency power with delay (Combinators help)
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.
Re: Emergency power with delay (Combinators help)
After some more trial and error I have something working, yes using the S/R latch (the single combinator version)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.
Improvements are welcomed (Constant combinator is just for simulating power failure)
Blueprint
Last edited by ili on Thu Sep 07, 2017 6:46 pm, edited 1 time in total.
Re: Emergency power with delay (Combinators help)
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.
This helps because there is a quite long delay between cutting off the water supply and the
steam engines stopping.
- impetus maximus
- Smart Inserter
- Posts: 1299
- Joined: Sat Aug 20, 2016 10:07 pm
- Contact:
Re: Emergency power with delay (Combinators help)
2 combinator SR latch.
the blueprint is set to <90 to kick on, and -10 (arithmetic) which will wait till accumulators are at 100 to switch off.
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
Re: Emergency power with delay (Combinators help)
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.
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.
Re: Emergency power with delay (Combinators help)
Yep my setup flickers every minutePacifyerGrey 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.
I don't know why I didn't think of measuring the steam
But it was fun to make and works nicely
Re: Emergency power with delay (Combinators help)
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.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