stationeers.de Mod workshop · Dominik1199
DE Sign in
  1. Home
  2. Stationeers wiki
  3. Devices
  4. Logic Reader

Devices

Logic Reader

Logiklesegerät

PrefabStructureLogicReader Hash-345383640in the hash lookup
Power paintable Game 0.2.6428.27798

Overview

Logic Reader (StructureLogicReader) in Stationeers: device, hash -345383640, 10 W. With build steps, 8 IC10 logic values and connection diagram.

The logic reader is the start of almost every logic chain without a chip. It fetches a single value from a device – for example Pressure from a Gas Sensor – and offers it as its own Setting.

How to set it up: Take the Screwdriver in your hand. The reader has two setting points. The first picks the device, the second the logic value. Every click moves one step forward, with the C key held (default binding) one step back. You can only pick devices on the data network at its input, sorted by their name, and only values the chosen device offers for reading. If you change the device, the value selection starts over and Setting is set to 0. The tooltip shows the current choice when you look at the reader.

It has a data input, a data output and its own power port and, according to the game data, draws 10 W. You can only read Setting. On switches it off.

When the target is missing: If no device is chosen, the device is no longer on the input network or it cannot deliver the value, the reader sets Error to 1 and stops updating. Setting then keeps its last value – it drops neither to 0 nor to NaN. A chain behind it therefore does not notice the failure on its own. The same applies without power: without its 10 W, Setting is no longer updated.

It is built from the Kit (Logic I/O). The same kit also builds the writer, batch reader and writer, slot reader and a few other variants.

A chip does not need the reader – it reads the device directly with lbn and gets NaN for a missing device instead of an old value. The reader pays off when you want to solve a small task with no program at all. A complete example is in Logic without a chip: reader, writer, memory, compare, math.

IC10 and logic

8 logic values, 8 readable and 1 writable.

  • Power R 1
  • Error R 4
  • Setting R 12
  • On RW 28
  • RequiredPower R 33
  • PrefabHash R 84
  • ReferenceId R 217
  • NameHash R 268

Example: address by name

Reads Setting, shows the value on the IC housing and writes On. Name the device with the labeller first; devices with the same name are addressed together.

# Logic Reader address by name
define DEVICE -345383640  # StructureLogicReader
define NAME HASH("Logic Reader")  # name in game (labeller)
define TARGET 1  # On 1 = on
alias value r0

start:
yield
lbn value DEVICE NAME Setting 0  # 0 = average of all with this name
bnan value start  # no device with this name
s db Setting value  # show on the housing
sbn DEVICE NAME On TARGET  # set value
j start

Connections

1Data2Data3
Schematic: inputs left, outputs right, waste on top, power and data at the bottom. Position and spacing do not match the model.
  1. 1Data · input
  2. 2Data · output
  3. 3Power

Building and deconstruction

Grid: small grid (0.5 m) · mounting: on wall or floor

  1. 1

    Place

    Take back with Hand Drill

Total material

Deconstruction returns

Built with: Kit (Logic I/O)

Material, fire and recycling

Flammable according to game data: flash point 373.2 K (100 °C); Autoignition 573.2 K (300 °C); burn time 5 s

Raw values from the game code (3)

Field names as in the game code, untranslated. Useful for mods and exact limits.

LogicUnitBase.ConnectionTypeFlatExhaustive
LogicUnitBase.Input1Index0
LogicUnitBase.OutputIndex1

See also

Esc
↑ ↓ selectEnter open/ opens search anywhere