stationeers_ic10/cooling_tower_drain.ic10

32 lines
656 B
Plaintext
Raw Permalink Normal View History

2021-09-17 09:37:00 +00:00
# Automatically evacuates cooling-tower when temp
# is below 40C
2021-09-17 09:37:00 +00:00
# needs a volume pump and a gas analyzer
alias Sensor d0
alias Pump d1
2021-09-17 09:37:00 +00:00
alias PipeTemp r0
alias PipePress r1
alias TempGo r2
alias PressGo r3
alias PumpGo r4
2021-09-17 09:37:00 +00:00
define TEMPTHRESH 313.15
2021-09-17 09:37:00 +00:00
# Sets volume pump max capacity
l PipePress Pump Maximum
s Pump Setting PipePress
2021-09-17 09:37:00 +00:00
start:
yield
# Loads cooling-tower pressure and temp
l PipeTemp Sensor Temperature
l PipePress Sensor Pressure
2021-09-17 09:37:00 +00:00
# Checks if temp is below threshold
slt TempGo PipeTemp TEMPTHRESH
sgtz PressGo PipePress
2021-09-17 09:37:00 +00:00
# If cooling-tower has pressure, and temp is safe..
and PumpGo TempGo PressGo
2021-09-17 09:37:00 +00:00
# ...activate pump
s Pump On PumpGo
2021-09-17 09:37:00 +00:00
j start