Co2 Control

If you liked this item, please rate it up on Steam Workshop page.

Author: Jubs

Last revision: 22 Nov, 2024 at 10:14 UTC

File size: 221.06 KB

On Steam Workshop

Description:

This code is designed to control a CO₂ filtration system based on two key factors: the concentration of carbon dioxide (CO₂) in a gas pipe and the pressure in a CO₂ storage tank. Here’s how it works:

Monitoring CO₂ Levels:
The system reads the CO₂ concentration from a pipe analyzer. If the CO₂ ratio falls below a specified minimum level (0.1%), the filtration system is turned off, as there isn’t enough CO₂ to justify filtering.

Monitoring Tank Pressure:
The pressure in the CO₂ storage tank is checked.

If the pressure reaches or exceeds 20 MPa (the upper safety limit), the filtration system is turned off to prevent overpressurization.
If the pressure drops below 15 MPa (the lower threshold), the filtration system is turned on to replenish the tank, but only if the CO₂ ratio is sufficient.
Continuous Operation:
The system continuously loops through these checks, updating the filtration system’s state (on or off) based on the conditions.

By dynamically managing filtration based on CO₂ availability and tank pressure, the system ensures efficient use of resources while maintaining safety and operational limits.