1. Problem Overview
A Siemens SIMATIC S5-135U multi-CPU rack installed on a Leybold AG polyester rolling machine reports the following message on the programming device (PG) when an engineer attempts to open Program Status on CPU 921:
AS Interface not loaded / CP RAM not plugged in
The CPU continues to run, status variables can still be observed on the PG, and the parallel CPU 922 in the same rack displays Program Status of the ladder logic and status variables without error. The application must continue to control three DC drives that roll polyester yarn from one roller to the next, so the diagnostic effort must be performed on a live line without disturbing the running process.
This article decodes the S5-135U error string, isolates the failure to a missing or unrecognised memory submodule on the CPU 921, walks through the on-line / off-line Program Status procedure, and documents the field checks used to verify the S5-135U analog input and analog output cards that drive the DC motor references.
2. S5-135U System Architecture Reference
The S5-135U is a mid-size SIMATIC S5 PLC with a central rack (CR) and up to three expansion racks (ER) connected by IM 305/IM 306 interface modules. Up to four central processors can be operated in parallel inside the central rack; each CPU executes its own STEP 5 user program and exchanges data through the S5 backplane handshake flags or via coordinated DBs.
| CPU | Typical order number (Siemens 6ES5 ...) | Address space (statements) | Bit memory (M flags) | Memory submodule slot | Notes |
|---|---|---|---|---|---|
| CPU 921 | 6ES5 921-3UA.. / 3UB.. | ~16 K | 2 048 | 1 slot, 32-pin EPROM/RAM | Single-channel, basic instruction set |
| CPU 922 | 6ES5 922-3UA.. | ~32 K | 2 048 | 1 slot, 32-pin EPROM/RAM | Adds extended instruction set and faster scan |
| CPU 928 | 6ES5 928-3UA.. | ~64 K | 8 192 | 1 slot, 32-pin EPROM/RAM | Co-processor support, floating point |
Memory is held on plug-in submodules of the 6ES5 375-x... family (RAM, EPROM, or EEPROM). The submodule is treated as part of the CPU: if the card is missing, defective, or holding an incompatible image, the CPU will not bring the user program into a state that the PG can display under Program Status. The 135U/155U family manual describes the diagnostic LED combinations and the PG status block used to identify this case.
Reference documentation:
- SIMATIC S5-135U/155U CPU 921/922/928 Manual (Siemens Support entry 1085938)
- S5-135U/155U System Manual — Memory Submodules 6ES5 375
- STEP 5 — Programming and Diagnostic Functions
3. Decoding the Error String
The PG message "AS Interface not loaded / CP RAM not plugged in" contains two phrases that the STEP 5 online interface uses to explain why the program image cannot be mapped into the editor:
| Phrase | PG meaning | Hardware meaning |
|---|---|---|
| AS Interface | "Anwender-Schnittstelle" — the user-program interface block that the PG fetches to drive on-line functions (Status, Force, Single Scan) | Equivalent to the on-line symbolic interface inside the CPU that mirrors the loaded STEP 5 program. |
| not loaded | STEP 5 cannot locate the user-program interface in the CPU's on-line image | No valid user program is present, or the program is present but corrupted/mismatched against the PG's expected image. |
| CP RAM | "Central Processor RAM" — the volatile user-memory submodule plugged into the CPU module | The 32-pin RAM card (6ES5 375-...LC.. / 375-...LD..) that holds the user program. |
| not plugged in | STEP 5 detects the absence of a valid RAM image | Submodule missing, contacts oxidised, wrong submodule type, or battery-backed RAM that has been erased (battery exhausted, jumper set to RAM without write protection). |
The fact that the CPU stays in RUN and the parallel CPU 922 still shows Program Status proves that the rack, IM, and I/O are healthy. The fault is local to CPU 921 and its memory submodule.
4. Root Cause Analysis
From the field report, the most probable root causes for the message on a CPU 921 that does still run the process are, in priority order:
- Memory submodule removed or partially ejected. The card is the only carrier of the user program image. If it has been lifted even a few millimetres (loose bezel screw, vibration, recent maintenance), the CPU will hold the process in RUN using the retain image of M/T/Z/P flags, but the PG cannot build the on-line Program Status image.
- RAM battery exhausted / write-protection jumper mis-set. After a power-down the volatile RAM is cleared, the CPU no longer has a user-program image to map to the PG, and "CP RAM not plugged in" is reported even though the slot is physically populated.
- Wrong submodule type installed. A read-only EPROM is acceptable for RUN, but the PG reports the missing "CP RAM" interface when the on-line edit buffer is unavailable. An EEPROM without a fresh write produces the same effect.
- Submodule contacts oxidised. Common in 30+ year old S5 installations. Cleaning the edge connector restores continuity.
- Corrupt program / version mismatch. If the user program on the card was last edited off-line and never re-loaded through the PG, the checksum does not match the on-line interface table that STEP 5 expects.
- PG/STEP 5 project mismatch. The PG project does not correspond to the on-line program block. CPU 922 returns a clean image because its submodule was reloaded together with the PG project; CPU 921 was not.
5. Step-by-Step Diagnosis (No Production Stop)
- Verify the rack status LEDs. On the CPU 921 front panel confirm RUN (green), STOP (off), and that the BAF (battery fault) LED is off. If BAF is lit, replace the lithium backup battery on the CPU before any further action.
- Read the CPU diagnostic buffer from STEP 5. On the PG, PLC → Diagnostic Buffer (or ISTACK for older STEP 5 versions). The interrupt stack identifies whether the user program loaded successfully, the cause of the last warm restart, and any STL/OB error codes.
- Compare the on-line and off-line program identifiers. In STEP 5, open File → Compare Block. If the on-line OB1/FB/DB list returns "no user program", the diagnosis is confirmed: the RAM submodule does not contain a valid STEP 5 image for the PG to map.
-
Physically inspect the memory submodule. With line power locked out and CPU 921 in STOP, remove the bezel screw, slide the card carrier, and verify:
- The 32-pin card sits fully in its socket (no raised edge).
- The part label matches the 6ES5 375-x...LC.. (RAM) or 6ES5 375-x...LA.. (EPROM) family.
- Edge connector pads are clean, not verdigris, and the gold fingers are intact.
- The write-protect jumper on the card is in the correct position (RAM = enabled for writing, EPROM = read-only).
- Reload the program. Insert a freshly prepared EPROM (preferred for permanent production use) or a battery-backed RAM submodule containing the matching STEP 5 project. Use PLC → EPROM → Write to transfer, then perform a Cold Restart from the PG.
- Re-test Program Status. With the project loaded, open a ladder block and press Status. The "AS Interface not loaded / CP RAM not plugged in" message must clear; symbols, setpoints, and current rung values must be visible.
6. CPU 921 vs CPU 922 — Why One Works and the Other Does Not
The S5-135U coordinator uses coordination flags to pass data between the CPUs; the user programs on each CPU are otherwise independent. Therefore, a single CPU reporting CP RAM not plugged in is fully consistent with the other CPU showing healthy Program Status. The differences that matter for the diagnosis are:
| Aspect | CPU 921 | CPU 922 |
|---|---|---|
| Submodule slot | Single slot; one 32-pin card | Single slot; one 32-pin card |
| Battery-buffered RAM | Yes (one lithium cell, typically 3.6 V, e.g. 6ES5 971-0AA00 or compatible) | Yes (similar cell, larger capacity) |
| Program capacity | Smaller; sensitivity to overflow higher | Larger; can absorb extra DBs/FBs |
| On-line edit buffer | Restricted — not all blocks can be modified while in RUN | Extended on-line edit buffer |
| PG interface | AS 511 (TTY) or SINEC H1 via CP 1430 | Same family, plus higher baud options |
If the program on the CPU 922 was reloaded (for example, after a recent modification) and the CPU 921 submodule was not updated, the PG-side project is the one that runs on the line, but CPU 921 carries an older or empty image. The next time an engineer opens the PG project, the version check on CPU 921 fails and the "AS Interface not loaded / CP RAM not plugged in" string is displayed.
7. STEP 5 Online Program Status Procedure
Once the memory submodule is in good order, follow this sequence to enable on-line status on CPU 921:
- Connect the PG to the CPU 921 programming port (front-panel 15-pin D-sub, AS 511 protocol, 9 600 bit/s by default).
- Start STEP 5, open the matching
.S5Dproject file. - Select PLC → Connect → Online. STEP 5 negotiates with the CPU. If a project mismatch is detected, the PG prompts to upload or cancel — upload is the safer option on a running line.
- Open
OB1in the editor. - Press F4 = Status (or click the lightning icon). The status bar at the bottom of the editor shows the Status word:
STATUS / AS-INTERFACE OK / CP-RAM OK. - Verify the rolling of values: I, Q, F, T, C symbols should update at scan frequency.
8. Memory Submodule Verification Procedure
A field engineer should perform the following bench test on the suspect memory card once it is removed from the line. A standalone PG 720 / PG 740 with the S5-EPROM utility, or any modern PG with a USB-to-TTY adapter and STEP 5 V7, is sufficient.
| Part number (6ES5 375-...) | Memory type | Capacity | Typical use on S5-135U |
|---|---|---|---|
| ...0LA11 | EPROM | 8 KB | Small projects on CPU 921 |
| ...0LA12 | EPROM | 16 KB | CPU 921 full image |
| ...0LC11 | RAM (battery backed) | 16 KB | CPU 921/922 on-line development |
| ...0LC12 | RAM (battery backed) | 32 KB | CPU 922/928 |
| ...0LD11 | EEPROM | 16 KB | Modern replacement for RAM |
Bench verification steps:
- Insert the card in the PG's memory submodule slot.
- Read the card with File → Read EPROM → Auto-detect. If the read fails or returns a checksum error, the card is unusable and must be replaced.
- Compare the read content with the off-line project: Block → Compare.
- If the read succeeds and matches, erase (EPROM) or clear (RAM/EEPROM) and re-write from the canonical project file.
- Re-install the card in the CPU 921, perform a cold restart, and re-test Program Status.
9. Program Status Troubleshooting Matrix
| PG message | Meaning | First action | If first action fails |
|---|---|---|---|
| AS Interface not loaded / CP RAM not plugged in | No user-program image found on the CPU's RAM submodule | Verify submodule is seated and the battery is good | Reload the program; replace the submodule |
| CPU not responding | AS 511 address mismatch or cable fault | Check the AS 511 address in PLC → Interface | Test the TTY cable, swap PG port |
| Block not found | PG project refers to a block that was deleted on the CPU | Re-upload from the CPU: PLC → Upload to PG | Re-create the missing block from backup |
| Stop by OB request | Programmed OB call halted the CPU | Read ISTACK and the diagnostic buffer | Correct the OB call in the source project |
| BAF — battery fault | Lithium backup exhausted; RAM will be cleared on next power-down | Replace the lithium cell with the rack powered | Reload the program and verify |
| PEU — parity error | Memory card parity or read error | Re-seat the card; clean the contacts | Replace the card; check for backplane issues |
10. Diagnosing the Motor-Sequencing Fault
The field report also records that "when the start button is pressed the second motor/drive starts first instead of the first one, which does not start." The S5-135U ladder logic is the most probable cause because the I/O is shared with CPU 922, which controls the same machine, and the digital I/O card already tested as faulty has been removed. With Program Status restored on CPU 921, the engineer can confirm the following on-line:
- Open
OB1in Status and trace the start-button input (e.g.I 32.0) through the rung. - Verify that the bit is set when the button is pressed and the contactor-coil output (e.g.
Q 32.0for motor 1,Q 32.1for motor 2) follows. - Compare with the cross-reference list (Cross-Reference menu). If the symbol MOTOR_1_RUN is set, but the output that energises the first contactor is bound to
Q 32.1, the engineer is looking at a wiring/program mismatch, not a hardware failure. - Check the interlock chain: each subsequent drive must be enabled only when the previous drive has reached speed feedback. In a Leybold polyester winder the interlock is typically Speed OK → Permit Tension → Permit Next Roller. A missing interlock in OB1 will cause the second drive to start without the first having been proven healthy.
- Check the analog setpoint path: each DC drive is fed by an analog output from the S5-135U. If the wrong output slot/channel is wired, the second drive will receive the reference intended for the first.
Q 32.0 from the PG's Force dialog (with the operator's consent) and verify that the first motor shaft turns. Repeat for Q 32.1, etc. This will localise a wiring swap without disturbing the line.11. Analog I/O Card Diagnostics
The S5-135U uses analog modules from the 6ES5 4xx family. The most common in a DC-drive rolling application are:
| Order number (6ES5 ...) | Function | Channels | Signal ranges | Resolution | Notes |
|---|---|---|---|---|---|
| 464-8MA11 / 464-8MC11 | Analog input | 4 | ±10 V, 0–10 V, 0–20 mA, 4–20 mA, Pt100 | 12-bit + sign | Most common on 135U analog racks |
| 466-8MC11 | Analog input | 8 | ±10 V, 0–20 mA | 12-bit + sign | Used for large I/O counts |
| 470-8MA11 / 470-8MB11 | Analog output | 4 / 8 | ±10 V, 0–10 V, 0–20 mA, 4–20 mA | 12-bit + sign | Drives DC motor references on rolling lines |
Reference: S5-135U/155U Analog I/O Modules manual (Siemens Support 1108302).
11.1 Verifying an Analog Output Card
- Open Status on the data word feeding the analog output (e.g.
DW 20inDB 50). - Force a known value (e.g.
0for 0 V,2048for +5 V,-2048for -5 V if the module is bipolar, using the canonical S5 scaling: 0 → 0 V, +2048 → +10 V, -2048 → -10 V, ±32767 not used). - Measure the analog output terminal with a calibrated DMM at the field terminals of the module.
- Repeat at the drive input terminals to rule out cable faults.
- If the module output is correct at the terminals but the drive does not respond, the fault is downstream of the analog output (drive enable, wiring, drive electronics).
- If the module output is stuck at zero or saturated, the module is suspect. Swap with a known-good spare and re-test.
11.2 Verifying an Analog Input Card
- Disconnect the field device (or place it in manual) and inject a known signal at the card's terminal block using a calibrator (e.g. 4.000 mA, 12.000 mA).
- Monitor the corresponding input word in Status (e.g.
IW 64). With a 12-bit S5-135U AI module, 4 mA → 0, 20 mA → +2048. Tolerances ± 2 LSB are normal; outside that the card is suspect. - Reconnect the field device and verify the live reading against the calibrator.
- If the reading drifts while the input is constant, the suspected cause is a noisy cable, a missing shield, or a damaged input amplifier on the card.
11.3 Quick Health Check Without Calibrator
If a calibrator is not available on a live line, perform the following indirect check using the drive's own healthy operation as the reference:
- Verify that the AI reading on the tension/load cell tracks the actual draw (the operator can read this from the rolling stand).
Source ambiguity: if the source value reported is the load cell range (e.g. 0–500 daN), compare the AI word against the engineering unit conversion in the STEP 5 code rather than against an absolute mA value. - Verify that the AO to each drive matches the setpoint requested by the program. If a drive is running at half speed despite a 100 % setpoint, the AO scaling is suspect.
- Use the ISTACK and the diagnostic buffer entries for the AI/AO cards. An "analog module not responding" message identifies a backplane handshake problem; a "limit value exceeded" message identifies wiring or transducer scaling.
12. Verification Checklist Before Returning to Production
| # | Check | Method | Pass criterion |
|---|---|---|---|
| 1 | CPU 921 in RUN | Front-panel LED + PG status | Green RUN, no STOP, no BAF, no PEU |
| 2 | Program Status visible | STEP 5 Status on OB1 | "AS-INTERFACE OK / CP-RAM OK" in status bar |
| 3 | Status variables consistent | PG Variable Status | I/Q/F/T/C update at scan rate |
| 4 | Memory submodule | Visual + bench read | Card seated, label matches project, no PEU |
| 5 | Backup battery | BAF LED + date label | BAF off, battery replaced in the last 24 months |
| 6 | Motor 1 / Motor 2 / Motor 3 start sequence | Cross-reference + controlled inching | Each Q 32.x energises the correct contactor |
| 7 | Analog outputs to DC drives | Force a known word, measure at drive terminal | Within ±2 LSB of expected value |
| 8 | Analog inputs from sensors | Calibrator injection or live comparison | Within ±2 LSB of expected value |
| 9 | ISTACK clean | PG diagnostic buffer | No OB request, no analog-module alarm |
| 10 | Program backup | Read EPROM/EEPROM to PG, save to file | Backup file stored on the engineering server |
13. Frequently Asked Questions
What does "AS Interface not loaded / CP RAM not plugged in" mean on a Siemens S5-135U CPU 921?
It means the programming device cannot find a valid user program image in the CPU's RAM submodule. The CPU is still able to run the process from a retain image, but the on-line program editor cannot build a status display. The most likely causes are a missing or loose memory submodule (6ES5 375-...LC.. / LA..), an exhausted backup battery, oxidised contacts, or a project version mismatch between the PG and the CPU.
Why does the other CPU in the same S5-135U rack show Program Status normally?
Each CPU in an S5-135U has its own memory submodule, its own STEP 5 user program, and its own AS 511 programming port. The CPUs share I/O and coordination flags but are otherwise independent. A fault that affects only one memory card will, by definition, affect only one CPU. CPU 922's healthy behaviour confirms that the rack, backplane, I/O, and PG cable are good.
Can I hot-swap the memory submodule on CPU 921 without stopping the line?
No. The S5-135U CPU 921 must be switched to STOP and the rack locked out before the memory submodule is removed. If the user program is on a volatile RAM card, a power-down will clear it; load the program onto an EPROM or EEPROM before any maintenance window. Always replace the lithium backup cell (typically 3.6 V) at the same time.
How do I verify an analog output card on the S5-135U without a calibrator?
Force a known digital word (e.g. 0 for 0 V, +2048 for +10 V on a 12-bit bipolar module) from the PG's Force dialog, then measure the analog output with a calibrated DMM at the module's terminals and again at the drive input terminals. The reading should be within ±2 LSB of the expected value at both points. Repeat for each channel.
The wrong DC drive starts when the operator presses the start button. Is this an S5-135U problem or a drive problem?
On a Leybold rolling line with three DC drives, the start sequence is implemented in the STEP 5 ladder logic of the controlling CPU. The fault is most likely a wiring/program mismatch on the digital outputs (e.g. Q 32.0 swapped with Q 32.1), or a missing interlock in OB1. Use the PG's cross-reference list and the restored Program Status to confirm which rung energises which output before touching the drive.