LF PowerGrid
Logic & Sensors

Logic Gates

AND, OR, XOR gates and Memory Cell for building automated circuits.

Loading Logic Gates...

Overview

Logic gates are the core building blocks for automation in LF PowerGrid. They take two input signals and produce one output based on boolean logic. Combined with sensors and switches, they let you build anything from simple interlocks to complex automated systems.

Specifications

PropertyValue
TypePassthrough
Throughput Capacity20 u/s
Self Consumption0 u/s
Ports2 in / 1 out
Is SourceYes (drives downstream loads)
Weight1,200 g
Class NamesLFPG_AND_Gate, LFPG_OR_Gate, LFPG_XOR_Gate

Gate Types

GateOutput ON when...Use Case
ANDBoth Input 0 AND Input 1 are ONTwo-factor verification, safety interlocks
ORInput 0 OR Input 1 (or both) are ONMultiple triggers for same action
XORExactly one input is ON (not both)Airlock doors, alternating systems
Memory CellToggled by input pulse, holds stateToggle switches, flip-flop circuits

LED Indicators (4 LEDs)

  • LED 1: Input 0 status — green when receiving power
  • LED 2: Input 1 status — green when receiving power
  • LED 3: Output — green when gate is open and has input, red when gate is closed but has input, off when no input
  • LED 4: Gate type symbol (AND/OR/XOR icon on the device)

Wiring Examples

Security Door (AND — two-factor)

Remote Switch
Motion Sensor
AND Gate
Door Controller

Door only opens when someone toggles the remote AND is physically present.

Multi-Trigger Alarm (OR)

Motion Sensor
Laser Detector
OR Gate
Speaker

Alarm sounds if either sensor detects something.

Airlock (XOR)

Pressure Pad A
Pressure Pad B
XOR Gate
Door Controller A
Door Controller B

Only one door can be open at a time.

Toggle Light (Memory Cell)

Switch V1
Memory Cell
Ceiling Light

Each press of the momentary switch toggles the light on/off permanently.

Chained Logic

Sensor A
Sensor B
Switch
AND Gate 1
AND Gate 2
Device

Three-input AND: all three must be ON. Chain gates for complex conditions.

Tips

  • Logic gates consume 0 u/s — they're free to use and don't drain your power budget.
  • They pass through up to 20 u/s to downstream devices. For higher loads, place the gate before a splitter.
  • The Memory Cell is your best friend for toggle behavior — convert any momentary signal into a persistent on/off state.
  • Chain multiple gates to create complex conditions (3+ inputs).