Actions

Difference between revisions of "Active Vent"

From Unofficial Stationeers Wiki

m
Line 30: Line 30:
 
n = (P * V) / (R * T)
 
n = (P * V) / (R * T)
 
(These do not take into account the constraints imposed by "PressureExternal" and "PressureInternal")
 
(These do not take into account the constraints imposed by "PressureExternal" and "PressureInternal")
 +
 +
'''Note''': In order to get the proper units out of this calculation you need to either use kPa and L, or Pa and M<sup>3</sup>.
  
 
Where (Inward vent):
 
Where (Inward vent):
* P = Min(Room pressure, 10.1325)
+
* P = Min(Room pressure, 10.1325 kPa)
* V = 8000
+
* V = 8000 L
 
* n = Moles per tick
 
* n = Moles per tick
 
* R = Gas constant (8.3144)
 
* R = Gas constant (8.3144)
Line 39: Line 41:
  
 
Where (Outward vent):
 
Where (Outward vent):
* P = Min(Pipe pressure, 10.1325)
+
* P = Min(Pipe pressure, 10.1325 kPa)
* V = Pipe volume
+
* V = Pipe volume in L
 
* n = Moles per tick
 
* n = Moles per tick
 
* R = Gas constant (8.3144)
 
* R = Gas constant (8.3144)

Revision as of 13:09, 22 June 2022

Other languages:
English • ‎español
Active Vent
ItemActiveVent.png
Properties
Stacks Yes (5)
Recipe
Created With Hydraulic Pipe Bender, Fabricator
Cost 5g Iron, 1g Gold, 5g Copper
Active Vent
StructureActiveVent.png
Operation
Power Usage 100W
Construction
Placed with Kit (Active Vent)
Placed on Small Grid
Stage 1
Deconstruction
Deconstructed with Hand Drill
Item received Kit (Active Vent)


Description

Used to move gasses from pipes, by using its inward or outward switches. It needs to be powered to function.

Active vents have a build-in pressure sensor and will use it to try to set the room pressure to the value of the "PressureExternal" parameter. A vent operating in Outward mode will stop when the pressure is greater than or equal to this value. A vent operating in Inward mode will stop when the pressure is less than or equal to this value. It seems to be very good about hitting the target pressure. This parameter is set to its default values every time the mode switch is used, so when adjusting it in MIPS code remember to set the Mode first, and then set PressureExternal. Default values are 101kPa for Outward and 0kPa for Inward.

This reset behavior can be inconvenient on worlds like Loulan whose atmosphere is well above 101kPa. Manually-operated "airlocks" for greenhouses can not pump back up to Loulan atmosphere during the exit cycle. If the pressure is already >101kPa the vent will have no effect, and if it is <101kPa the vent will stop when it reaches 101kPa.

To calculate the moles per tick, use the following equation: n = (P * V) / (R * T) (These do not take into account the constraints imposed by "PressureExternal" and "PressureInternal")

Note: In order to get the proper units out of this calculation you need to either use kPa and L, or Pa and M3.

Where (Inward vent):

  • P = Min(Room pressure, 10.1325 kPa)
  • V = 8000 L
  • n = Moles per tick
  • R = Gas constant (8.3144)
  • T = Room temperature

Where (Outward vent):

  • P = Min(Pipe pressure, 10.1325 kPa)
  • V = Pipe volume in L
  • n = Moles per tick
  • R = Gas constant (8.3144)
  • T = Pipe temperature

Note: The insert slot currently takes any item and seems to have no effect.

Data Network Properties

These are all Data Network properties of this device.

Mode Values

These lists the values and meanings for the "Mode" property of the Active Vent.

Value Meaning
0 "Outward" mode (Pumping gas from the connected pipe network to the outside.)
1 "Inward" mode (Pumping gas from the outside to the connected pipe network.)
2 (Unknown)

Data Parameters

These are all parameters that can be written with a Logic Writer, Batch Writer, or Integrated Circuit (IC10).


Parameter Name Data Type Description
Open Boolean Does not function.
Mode Integer Sets the Active Vent mode to the passed setting. (See Mode Values)
PressureExternal Float Sets the desired room pressure. The vent will stop pumping in order to not go "beyond" this value (where "beyond" has opposite meanings for Inward/Outward). The vent will still consume energy when pressure is reached.
PressureInternal Float Sets the desired pipe pressure. The vent will stop pumping in order to not go "beyond" this value (where "beyond" has opposite meanings for Inward/Outward). The vent will still consume energy when pressure is reached.
Lock Boolean Locks the Active Vent, when set to 1. Unlocks it, when set to 0.
Setting Float Does not function.
On Boolean Turns the Active Vent on, when set to 1. Turns it off, when set to 0.

Data Outputs

These are all parameters, that can be read with a Logic Reader or a Slot Reader. The outputs are listed in the order a Logic Reader's "VAR" setting cycles through them.

Output Name Data Type Description
Power Boolean Returns whether the Active Vent is receiving power and is turned on. (0 for no, 1 for yes)
Open Boolean Returns whether the Active Vent is open. (0 for no, 1 for yes) (Untested)
Mode Integer Returns the setting of the current mode of the Active Vent. (See Mode Values)
Error Boolean Returns whether the Active Vent is currently flashing an error. (0 for no, 1 for yes)
PressureExternal Float Returns the desired external pressure of the Active Vent.
PressureInternal Float Returns the desired internal pressure of the Active vent. (Untested)
Lock Boolean Returns whether the Active Vent is locked. (0 for no, 1 for yes)
Setting Float Returns a range from 0.0 to 100.0. (Assumption) Returns the percentage amount of pumping throughput of the Active Vent.
Maximum Integer Returns 100. (Assumption) Returns the maximum throughput percentage of the Active Vent.
Ratio Float Returns a range from 0.0 to 1.0. (Assumption) Returns the percentage amount of pumping throughput of the Active Vent.
On Boolean Returns whether the Active Vent is set to on. (0 for no, 1 for yes)
RequiredPower Integer Returns the current amount of power needed for the Active Vent.