Skip to main content

Memory Toggle

memory-toggle
Subcategory
Automation

Overview

Memory Toggle is an automation building that stores a single binary state and outputs that state until explicitly changed. It provides Set (S) and Reset (R) input ports and one output; when the Set port receives a green (active) signal while Reset is red (inactive), the Memory Toggle latches to the ON state and its output becomes green. When the Reset port receives a green signal while Set is red, it latches to the OFF state and its output becomes red. If both inputs are red the stored state persists. If both inputs are green at the same time the output becomes red according to the Memory Toggle truth table.

The device accepts standard Automation Wire signals and reacts to Automation Ribbon inputs the same way a single Automation Wire does: 4-bit ribbon signals are reduced to a single 1-bit value by using the first bit (for example, RGGG on a ribbon is interpreted as a single Red signal). The Memory Toggle can be placed behind buildings and tiles and occupies the same tile space as pipes or wires; like other logic gates, its graphic contains a fourth empty tile that does not host ports and does not block automation wires crossing through that space.

Using a Memory Toggle typically involves two input signals and four logical phases. An activation (Set) pulse turns the output green; afterward, with both inputs red, the toggle holds that green output. A deactivation (Reset) pulse turns the output red; afterward, with both inputs red, the toggle holds the red output. This allows creation of simple latches, toggled states, and one-shot retainers for systems that must remember an event until explicitly cleared.

Practical notes:

  • Connect persistent control states (for example, mode switches or latched alarms) to the Memory Toggle so downstream systems keep their behavior without continuous signals.
  • Drive Set and Reset with momentary pulses (e.g., timers, sensor edges) to change the stored state without needing sustained signals.
  • When wiring with Automation Ribbon, ensure the intended bit is placed in the ribbon’s first bit slot, since only that bit is considered.
  • The fourth graphic tile can be used to route wires cleanly; automation wires may cross through that space without connecting to the gate.
  • The Memory Toggle’s behavior is deterministic and follows its truth table: S=Green & R=Red → Output Green; S=Red & R=Green → Output Red; S=Red & R=Red → Output unchanged; S=Green & R=Green → Output Red.
No related recipes

Other entities of this type

Last updated: