Siemens S7 memory card
For 16#CAFE CPU memory card errors after removing and reinstalling the card.
Siemens S7-300 and S7-400 PLC guide for STOP mode, SF/BF LEDs, hardware errors, OB calls, and diagnostic buffer entries in STEP 7 or TIA Portal.
Parts to price first
For 16#CAFE CPU memory card errors after removing and reinstalling the card.
Termination must be switched on at both ends of the DP bus to clear BF faults.
Replace damaged cable or broken shielding that causes DP station failures.
Match the module at the failing slot from the diagnostic buffer entry.
Keep spares; the most common failure point in Siemens servo systems.
The full OEM-style workshop manual has the wiring diagram, test values, and the fault table this guide summarizes. Instant PDF download.
Siemens S7-300 and S7-400 PLC guide for STOP mode, SF/BF LEDs, hardware errors, OB calls, and diagnostic buffer entries in STEP 7 or TIA Portal.
Siemens S7-300 and S7-400 PLCs indicate faults through front-panel LEDs, the diagnostic buffer (accessible via STEP 7 or TIA Portal), and OB (Organization Block) calls in the user program. Understanding these layers is key to fast diagnosis.
| LED | State | Meaning |
|---|---|---|
| RUN | Green solid | CPU executing program |
| STOP | Yellow solid | CPU stopped (no fault) |
| STOP | Yellow blinking | CPU in STOP due to fault |
| SF | Red solid | System/group fault |
| BF | Red solid | Bus fault (PROFIBUS/DP) |
| DC5V | Green solid | 5V internal supply OK |
| FRCE | Yellow | Force mode active |
| MAINT | Yellow | Maintenance required |
SF + STOP blinking together = hardware or software fault — read the diagnostic buffer immediately.
The diagnostic buffer stores the last 100 events including all faults. Access via:
STEP 7 (Classic):
TIA Portal:
| Event Code | Description | Cause |
|---|---|---|
| 16#A502 | Startup complete | Normal — CPU went from STOP to RUN |
| 16#A503 | STOP mode entered | Manual STOP or fault |
| 16#253A | OB not loaded — CPU stops | Missing OB (e.g., OB82 or OB86 not present) |
| 16#2521 | I/O access error | Module missing or failed at accessed address |
| 16#2522 | I/O write error | Output module fault |
| 16#2526 | Timeout on I/O access | Module not responding |
| 16#A29F | Configuration error | Hardware config doesn’t match physical racks |
| 16#4500 | Rack failure | Module in rack not communicating |
| 16#4B00 | PROFIBUS DP station failure | Remote DP device went offline |
| 16#CAFE | CPU memory card error | Remove and reinstall memory card |
The S7 calls specific OBs when faults occur. If the OB is not loaded in the CPU, the CPU goes to STOP mode instead of handling the fault gracefully.
| OB | Trigger | Common Requirement |
|---|---|---|
| OB80 | Cycle time fault (watchdog) | Needed if cycle time can be exceeded |
| OB81 | Power supply fault | Needed for redundant power supply systems |
| OB82 | Diagnostic interrupt | Needed for intelligent I/O modules with diagnostics |
| OB83 | Insert/remove module | Needed for hot-plug capable systems |
| OB84 | CPU hardware fault | Rare, needed for fault-tolerant systems |
| OB85 | Program sequence fault | Load OB to prevent CPU stop on error |
| OB86 | Loss of rack / DP station | Most commonly missing — add empty OB86 |
| OB122 | I/O access error | Load to prevent stop on missing I/O |
Siemens SINAMICS and SINUMERIK alarms use a 5-digit numbering system. The first digit indicates the source: 2xxxx = drive, 3xxxx = NCK, 4xxxx = PLC. View the drive’s own fault code on the BOP-2 operator panel before referencing the CNC alarm — the drive sub-code is often more specific than the CNC alarm description. Alarm 25000 (drive fault) with a sub-code of 30001 means “motor encoder 1 faulty” — check the encoder cable before replacing the motor. Siemens drives with DRIVE-CLiQ communication require the optical cables to be properly terminated — a loose connector produces intermittent 25000 alarms that appear at random.
Prevention: Maintain spare DRIVE-CLiQ cables in your cabinet. They’re the most common failure point in Siemens servo systems.
Before ordering, match the replacement part to the model number, electrical rating, and failure symptom. Check current prices on Amazon - prices and availability change frequently.
Fastest fix for “OB not loaded” stops: Create an empty OB with the required number and download it to the CPU.
The BF LED indicates a PROFIBUS bus fault. Common causes:
Diagnostic: Read the diagnostic buffer for event 16#4B00 — it includes the DP address of the failed station.
The CPU tried to read or write an I/O address that doesn’t exist or belongs to a failed module.
Fix:
Default cycle time on S7-300: 150 ms. S7-400: 6000 ms. If exceeded, OB80 is called. If OB80 is missing, CPU stops.
Fix:
S7-400H fault events include redundancy state changes:
16#673E — Master/standby switchover16#6733 — H system partially degradedThese are not always errors — some are expected during updates or hardware changes. Check if the switchover was planned.
SF (system fault) together with a blinking STOP LED means the CPU went to STOP because of a hardware or software fault. Read the diagnostic buffer immediately in STEP 7 (CPU, Module Information, Diagnostic Buffer tab) or TIA Portal (CPU, Diagnostics, Diagnostic Buffer).
The CPU tried to call an organization block that is not loaded, so it stopped instead of handling the fault. OB86 (loss of rack or DP station) is the most commonly missing one. The fastest fix is to create an empty OB with the required number and download it to the CPU.
The CPU tried to read or write an I/O address that does not exist or belongs to a failed module. Check the physical hardware at the slot in the diagnostic buffer entry, reseat the module, verify the STEP 7 hardware configuration matches the physical rack layout, and replace the module if it has failed.
BF indicates a PROFIBUS bus fault: a DP slave powered off or disconnected, missing termination resistors at both bus ends, damaged cable or broken shielding, a DP address conflict, or a speed mismatch. Diagnostic buffer event 16#4B00 includes the DP address of the failed station.
Load an empty or logging OB80 so the CPU does not stop, increase the maximum cycle time in CPU properties (Cycle/Clock Memory), and optimize scan-heavy code by avoiding large FOR loops in OB1. Default cycle time is 150 ms on S7-300 and 6000 ms on S7-400.