🔧 PLC RAM Memory Simulation

Interactive demonstration of bit and word addressing in PLC memory

Input Memory (I)
Bit Address Value Byte Address Word Address Real Address
Output Memory (Q)
Bit Address Value Byte Address Word Address Real Address
Memory (M)
Bit Address Value Byte Address Word Address Real Address
Byte Values (8-bit unsigned integers):
IB0 = 0 | IB1 = 0 | IB2 = 0 | IB3 = 0
QB0 = 0 | QB1 = 0 | QB2 = 0 | QB3 = 0
MB0 = 0 | MB1 = 0 | MB2 = 0 | MB3 = 0
Word Values (16-bit signed integers):
IW0 = 0 | QW0 = 0 | MW0 = 0
IW1 = 0 | QW1 = 0 | MW1 = 0
Real Values (32-bit floating point):
ID0 = 0.0 | QD0 = 0.0 | MD0 = 0.0
Click any bit to toggle its value and see how it affects all data types

🎯 How PLC Memory Addressing Works:

Bit Addressing: I0.0-I0.7, I1.0-I1.7... addresses individual bits in memory (8 bits per byte)

Byte Addressing: IB0, IB1... addresses 8 consecutive bits as a single byte

Word Addressing: IW0 addresses bits I0.0-I1.7 (16 bits), IW1 addresses bits I2.0-I3.7 (next 16 bits)

Real Addressing: ID0 addresses 32 consecutive bits (I0.0-I3.7) as a single 32-bit real number

Key Insight: I0.0 is the least significant bit (LSB) of word IW0. When you change I0.0, you're changing bit 0 of IW0!

Memory Layout: Input (I), Output (Q), and Memory (M) are separate areas in PLC RAM, each with their own bit and word addressing.

📊 PLC Data Types & What They Store:

Examples: Bit = Sensor status, Byte = Small counter, Word = Temperature value, Real = Precise measurements