Space Engineers

Space Engineers

Industrial Overhaul - v1.7.4
Rümmler 16 Apr, 2022 @ 4:51pm
Script for managing heat production / turbines.
Hey there,

thought you might be able to utilise this little script.

The steam turbine is always trying to consume as much steam as possible to produce as much energy as needed. So if you produce less heat than the turbine consumes, you will eventually end up with the turbine triggering ON/OFF all the time.

This script works with a steam buffer tank and turns the turbine ON when the tank is full and OFF when the tank is empty.

1. Subscribe to Easy Commands:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=2698315573

2. Load the script in a programmable block as described on the page

3. Go to "Custom Data" of that block and paste the script down below. Adjust the names of the blocks ("Steam Turbine" and "Steam Buffer Tank") according to the name of your block. Keep the quotation marks, they are part of the script.

4. Hit "run". You should see on the right side in the terminal that the script is currently running.

Addition: If you use more than one block, you can also work with groups. Check easy commands documentation to adjust the script.

The script:

:main
async ManageSteamTurbine
replay

:ManageSteamTurbine
if "Steam Buffer Tank" ratio is 1 tell "Steam Turbine" terminal to apply the "OnOff_On" action
if "Steam Buffer Tank" ratio is 0 tell "Steam Turbine" terminal to apply the "OnOff_Off" action