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

Devices

Logic Compare

Logik-Vergleich

PrefabStructureLogicCompare Hash-1489728908in the hash lookup
Power paintable Game 0.2.6428.27798

Overview

Logic Compare (StructureLogicCompare) in Stationeers: device, hash -1489728908, 10 W. With build steps, 9 IC10 logic values and connection diagram.

The logic compare is the heart of a controller without a chip. It receives two values on its two data inputs and checks them against each other. The result – true or false – sits in its Setting, which is read only.

What it checks is set by Mode:

ModeNamechecks
0Equalsequal
1Greaterfirst input larger
2Lessfirst input smaller
3NotEqualsnot equal

Mode is readable and writable. There is also a data output and a power port of its own; according to the game data it draws 10 W. It is built from the Kit (Logic Processor).

A typical chain: a Logic Reader delivers the pressure, a Logic Memory the limit 95, the compare is set to Less, and a Logic Writer writes the result into On of a vent.

Two traps: Equals almost never hits with readings, because a sensor value rarely lands exactly on a number – use Greater or Less. And a single comparison has no hysteresis: the device behind it keeps switching back and forth at the limit. How a chip solves this with two limits is shown in Logic without a chip: reader, writer, memory, compare, math.

IC10 and logic

9 logic values, 9 readable and 2 writable.

  • Power R 1
  • Mode RW 3
  • 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 Compare address by name
define DEVICE -1489728908  # StructureLogicCompare
define NAME HASH("Logic Compare")  # 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

1Data2Data3Data4
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 · input
  3. 3Data · output
  4. 4Power

Slots and modes

Modes: 0 = Equals, 1 = Greater, 2 = Less, 3 = NotEquals

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 Processor)

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 (5)

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

LogicUnitProcessor.Input2Index1
LogicUnitProcessor.Input3Index-1
LogicUnitBase.ConnectionTypeFlatExhaustive
LogicUnitBase.Input1Index0
LogicUnitBase.OutputIndex1

See also

Esc
↑ ↓ selectEnter open/ opens search anywhere