What Is Memory Bit in PLC: Simple Explanation and Example
memory bit in a PLC is a special internal bit used to store a ON or OFF state inside the controller without linking to a physical input or output. It acts like a small switch inside the PLC program that remembers a condition or status for later use.How It Works
Think of a memory bit as a tiny light switch inside your PLC that you can turn ON or OFF by your program. Unlike physical switches connected to sensors or buttons, this switch only exists inside the PLC's brain. It remembers a state, like whether a machine is running or a process step is complete.
When your PLC program runs, it can set this memory bit ON or OFF based on conditions it checks. Later, the program can read this bit to decide what to do next. This helps the PLC keep track of things that don’t have a direct physical input or output but still need to be remembered.
Example
This example shows how to use a memory bit to remember if a start button was pressed, even after the button is released.
LD StartButton S MemoryBit LD MemoryBit ANDN StopButton OUT Motor
When to Use
Use memory bits when you need the PLC to remember a condition or state that is not directly tied to a physical input or output. For example, to keep a motor running after a start button is released, or to track if a safety check passed during a process.
They are useful in controlling sequences, latching outputs, or storing flags for complex logic without extra hardware.
Key Points
- Memory bits store ON/OFF states inside the PLC program.
- They are not connected to physical devices.
- Used to remember conditions or control logic flow.
- Help create latching or holding functions in automation.