We are currently experiencing issues with email delivery; this is being resolved as quickly as possible.

stationeers.de Mod workshop · Dominik1199
DE Sign in
  1. Home
  2. IC10 academy
  3. LogicTypes: what devices reveal

Chapter 2 · Devices & loop

LogicTypes: what devices reveal

Temperature, Pressure, On, Setting & co. – which values exist and which units hide behind them.

Lesson 5 of 18 8 min

The third part of l and s is the LogicType: the name of the value you want to read or write. The game knows more than 350 of them. Which ones a device has is listed in its Stationpedia entry under Logic.

The most important ones

LogicTypeMeaningUnit
Onswitched on?0 / 1
Openopen (door, valve)?0 / 1
Locklocked?0 / 1
Settingset point / display valuedepends on device
Modeoperating modenumber, depends on device
TemperaturetemperatureKelvin
PressurepressurekPa
RatioOxygen, RatioCarbonDioxide …gas share0 to 1
Charge, Ratiocharge / fill levelJ or 0 to 1
Powerhas power?0 / 1
Warning

The names are case-sensitive: Temperature works, temperature is an error. The checker in the IC10 coder underlines it right away.

Read or write?

A sensor only measures – you can read its Temperature, but not set it. If you try s d0 Temperature 300 anyway, the chip reports IncorrectLogicType. A display is the other way round: you write Setting, and exactly that number shows up on screen.

Shares are 0 to 1

RatioOxygen returns 0.21 for 21 % oxygen. For a percentage display, multiply by 100:

l r0 d0 RatioOxygen
mul r0 r0 100
s d1 Setting r0

Diagram

LogicTypes of two devices Gas sensor Temperature 296.15 L Pressure 101.3 L RatioOxygen 0.21 L RatioCarbonDioxide 0.004 L LED display On 1 L S Setting 23 L S Color 2 L S Mode 0 L S L = readable · S = writable · temperature in Kelvin, pressure in kPa
Every device has its own list of LogicTypes. Some can only be read (L), some can be written as well (S).

Exercise

Task

A gas sensor is attached to d0, an LED display each to d1 and d2.

  • d1 should show the pressure in kPa.
  • d2 should show the temperature in °C.

Hints

Hint 1

Pressure is called Pressure, the display takes its value through Setting.

Hint 2

For °C read the temperature first, then subtract 273.15.

Esc
↑ ↓ selectEnter open/ opens search anywhere