1. Problem Summary
A field service scenario on a Siemens SIMATIC S7-300 CPU 315-2DP station driving a distributed ET 200S rack produced two intertwined symptoms that engineers regularly confuse for a single fault:
- The SCL source blocks in the PLC cannot be re-uploaded to the engineering station in editable form; an Upload station to PG operation returns STL (Statement List) listings that are functionally unreadable.
- Channel 2 of the analog output module 6ES7135-4FB00-0AB0 (a 2 AO U/I module on the ET 200S) collapses to 0 V the moment a forced value at the I/O addresses
PQW120andPQW122rises above 7000 (INT), while channel 1 tracks the forced value without issue.
The two root causes are different but they are correlated. The SCL recovery problem is a STEP 7 V5.x tool-chain limitation, not an automation fault. The AO collapse is hardware-side and is almost always a backplane power-budget deficiency at the ET 200S, a damaged output stage, or a load-side fault on channel 2 alone. Resolving the symptom requires three actions in sequence:
- Add a second PM-E power module to the ET 200S station to raise the backplane current budget.
- Modify the HWConfig in the original STEP 7 V5.x project (or in an Upload station to PG replica) and download only the hardware configuration back to the CPU.
- Validate the program blocks remain intact after the hardware download and re-test the analog output at PQW122.
2. Affected Hardware Components
| Component | Order Number (MLFB) | Role in the Fault Chain |
|---|---|---|
| CPU 315-2DP (target HW) | 6ES7315-2AF03-0AB0 / -2AH14-0AB0 | Central unit; runs the SCL logic that drives PQW120/PQW122 |
| ET 200S Interface (PROFIBUS DP) | 6ES7151-1BA02-0AB0 (IM151-1) or 6ES7151-1AA05-0AB0 | DP slave that hosts the AO module |
| PM-E Power Module | 6ES7138-4CA01-0AA0 (24 VDC) or 6ES7138-4CB11-0AB0 (24-48 VDC) | Single existing PM; suspected undersized for the backplane load |
| 2 AO U/I Module (failing) | 6ES7135-4FB00-0AB0 | Channel 2 outputs PQW122; collapses to 0 V > 7000 INT |
| STEP 7 Engineering Tool | STEP 7 V5.x (SIMATIC Manager) | Source for HWConfig download; not TIA Portal |
The exact MLFB of the CPU 315-2DP in the field can be verified from the on-line diagnostic buffer (Module Information > Identification) before any hardware modification is committed. The MLFB determines firmware dependencies for the HWConfig GSD revision.
3. Why SCL Source Cannot Be Uploaded
STEP 7 V5.x (SIMATIC Manager) stores SCL blocks in two fundamentally different ways:
| Location | Format | Human Readable | Editable After Upload |
|---|---|---|---|
| Offline project (.s7p / S7PROG) | SCL source (.scl) | Yes | Yes |
| Online in the CPU load memory | Compiled MC7 machine code | No (decoded to STL only) | No |
The SCL compiler translates every SCL statement into MC7 instructions, the native code executed by the CPU. When the engineer triggers PLC > Upload Station to PG, the CPU returns the MC7 image; the STEP 7 Sources tab will only display STL. STL decoded from SCL is structurally valid but contains expression trees that are functionally illegible (nested temporary variables, generated CASE ladders, and so on) and cannot be recompiled back to SCL.
Consequence: the only reliable path to recover SCL source is the offline backup archive. If the customer does not have an EKB (STEP 7 project archive) or recent source backup, the SCL logic is effectively lost. The remaining option is to read the STL, comment it, and rewrite the function in SCL or LAD/FBD for any maintenance change.
- Upload the station to PG (online → offline) and accept the STL view.
- Print or PDF the STL listings of every FB/FC/DB and file them in the customer's vault for the next service event.
- Refuse to attempt "SCL decompilation" tools marketed by third parties; these are not supported by Siemens and risk introducing logic errors.
4. Root Cause Analysis: ET 200S Power Budget vs. AO Channel-2 Collapse
The fact that the field symptom is channel 2 only is a strong indicator that the root cause is not the user program. The STEP 7 hardware diagnostics block SFB 52 / SFB 54 or the diagnostic interrupt raised by the AO module is the first place to look on-line.
4.1 Power Module Behavior in the ET 200S
Each PM-E module on the ET 200S backplane supplies a finite amount of current and power to the modules to its right up to the next PM-E or terminator. For a single-PM station that contains, for example:
- 2 AO modules (6ES7135-4FB00-0AB0),
- 4 AI modules,
- Several digital modules,
the cumulative backplane current draw can exceed the 1 A typical limit of a single 6ES7138-4CA01-0AA0. When the analog output stage of channel 2 demands the additional current required to drive the higher DAC count above 7000 INT (approximately 2.53 V on a 0–10 V range, or about 4.83 V on a 1–5 V range), the backplane voltage sags and the output stage shuts down or latches to 0 V to protect itself.
4.2 Output Range Mapping of 6ES7135-4FB00-0AB0
| Configured Range | S7 Integer Range | Engineering Units |
|---|---|---|
| ±10 V | -27648 ... 0 ... +27648 | -10.0 V ... 0 ... +10.0 V |
| 0–10 V | 0 ... 27648 | 0 V ... 10.0 V |
| 1–5 V | 0 ... 27648 | 1 V ... 5 V (live zero) |
| ±20 mA | -27648 ... 0 ... +27648 | -20 mA ... 0 ... +20 mA |
| 0–20 mA | 0 ... 27648 | 0 ... 20 mA |
| 4–20 mA | 0 ... 27648 | 4 ... 20 mA (live zero) |
The 7000-INT threshold where the symptom appears is a function of the load and the power supply, not a function of the DAC itself. A healthy output stage in a properly powered station will track the full 0–27648 INT range linearly.
4.3 Diagnostic Decision Matrix
| Symptom | Likely Root Cause | First Check |
|---|---|---|
| Both channels collapse above a threshold | PM undersized for the station | Measure 24 V at PM output terminals under load |
| Channel 2 only collapses | Output stage of channel 2 damaged, or wiring short/partial short on output 2 | Disconnect load from channel 2; re-test with DMM at AO terminals |
| Channel 2 collapses at specific count (e.g. 7000) | Current limit on the output stage triggered by excessive loop impedance | Measure load impedance; verify within 0–10 V / 4–20 mA range spec |
Channel 2 reads correct value via WR_PARM in OB1, but physical output is 0 V |
Open output stage (burnt final transistor) or blown fuse internal to module | Replace module; if new module behaves correctly, original module is faulty |
Channel 2 OK below 7000, drops above; SCL uses SCALE / UNSCALE blocks |
PM sagging combined with channel 2 being the heavier of two loads | Add second PM-E; re-test |
5. STEP 7 V5.x: Download Hardware Without Touching the User Program
This is the central procedure the customer needs. STEP 7 V5.x provides two distinct download paths, and the choice of path determines whether the user program is preserved.
| Download Path | Initiated From | Effect on User Program | Effect on HW Config |
|---|---|---|---|
| Target system > Download > Entire PLC | SIMATIC Manager project tree (right-click the S7 station) | Overwrites the on-line program with the offline program | Overwrites the on-line HW config |
| Target system > Download to Target | HW Config editor toolbar (icon with the PLC and downward arrow) | User program on the CPU is not touched | Only the HW configuration is replaced |
| Target system > Compile and Download Objects | SIMATIC Manager | Selected blocks only | HW Config is compiled but not downloaded unless selected |
5.1 Prerequisites
- The customer must have a STEP 7 V5.x project that contains the on-line configuration of the S7-300 station. If only the SCL source was on the PC, the project tree must be rebuilt via PLC > Upload Station to PG.
- The CPU's operating mode selector must be in RUN-P or STOP. Hardware download to a CPU in RUN is rejected.
- The PC must have a PROFIBUS or MPI connection to the CPU (USB MPI adapter, CP 5611, CP 5613, or Ethernet routing via the CP 343-1 Lean / Standard).
- The HWConfig must show the current configuration of the ET 200S. If the PC project is stale, the system will refuse to download without first doing an upload.
5.2 Step-by-Step Procedure
- Open the S7 project in SIMATIC Manager. Open HW Config by double-clicking the Hardware object under the SIMATIC 300 station.
- If the offline configuration does not match the actual ET 200S topology, click PLC > Upload Station to PG from inside HWConfig. The tool will read the current PROFIBUS topology and rebuild the racks.
- Insert a new PM-E module into the ET 200S rack. Drag PM-E from the hardware catalog onto the slot immediately to the right of the existing PM, or wherever the engineering topology requires. The catalog entry is SIMATIC ET 200S > Power Modules > PM-E 24 VDC.
- Save and compile the HWConfig: Station > Save and Compile (Ctrl+S). The compiler will report the bus current budget for the ET 200S in the diagnostic window. Verify the configuration is accepted (no red entries).
- Click the Download to Target button in the HWConfig toolbar (the icon resembling a PLC receiving a downward arrow). Confirm the target CPU in the dialog.
- In the Select Node Address dialog, choose the MPI/PROFIBUS/Ethernet route that reaches the CPU. Click OK.
- STEP 7 will warn that a download to a CPU in RUN requires a STOP→RUN transition. Accept the STOP transition. The CPU performs an overall reset on the hardware data area but the user program in load memory and work memory is preserved.
- After the download completes, place the CPU back in RUN-P. The SCL blocks remain online and continue execution.
6. ET 200S Power Module Sizing
Each module in the ET 200S draws a defined backplane current. The cumulative current must be less than the PM-E supply limit, and the cumulative power must be within the PM-E thermal budget.
| Module | MLFB | Backplane Current (typ.) | Power Loss (typ.) |
|---|---|---|---|
| PM-E 24 VDC | 6ES7138-4CA01-0AA0 | Supplies up to 1.0 A | 3.0 W (at 5 A load) |
| PM-E 24-48 VDC | 6ES7138-4CB11-0AB0 | Supplies up to 1.0 A | 3.5 W |
| 2 AO U/I (failing module) | 6ES7135-4FB00-0AB0 | 30 mA (from backplane) | 2.5 W |
| 2 AI U/I | 6ES7134-4FB01-0AB0 | 30 mA | 1.5 W |
| 8 DO 24 VDC/0.5 A | 6ES7132-4BF00-0AA0 | 30 mA | 2.0 W |
| 8 DI 24 VDC | 6ES7131-4BF00-0AA0 | 30 mA | 1.5 W |
| IM151-1 (interface) | 6ES7151-1BA02-0AB0 | 70 mA | 2.0 W |
6.1 Power Budget Example
For a station with 1 IM151, 1 PM-E, 2 AO, 4 AI, 8 DO, 8 DI, the cumulative backplane current is:
I_total = 70 + 30 + 2*30 + 4*30 + 30 + 30 = 320 mA
This is well under the 1 A PM-E limit. However, additional considerations apply:
- Each AO module can drive up to ±10 V into a 1 kΩ load. The output stage current draw from the 24 V supply rises linearly with the output voltage and load current.
- The DC/DC converter inside the AO module has a fixed efficiency curve. At higher output demands, more current is drawn from the PM-E, not less.
- If the field wiring has a partial short on channel 2 (a few kΩ leakage to ground), the AO module's internal current limit activates, the output stage overheats, and the channel folds back to 0 V.
6.2 Recommended Action for the Field Case
- Insert a second PM-E module (6ES7138-4CA01-0AA0) into the ET 200S at the position immediately to the right of the AO module, splitting the load into two sub-segments.
- Save and compile the HWConfig. STEP 7 reports the per-segment current draw; both should be below 0.7 A to leave thermal headroom.
- Download only the hardware configuration from inside HWConfig (see Section 5). Do not issue a full project download.
7. Detailed Diagnosis of the Channel-2 0 V Collapse
If adding the second PM does not resolve the channel-2 symptom, the failure is in the module itself or the wiring. Use the following procedure:
- De-energize the 24 V supply to the ET 200S. Open the front connector of the 6ES7135-4FB00-0AB0 module.
- Inspect the front connector terminals for the channel-2 output (terminal 1 = ANA+ Ch0, terminal 2 = ANA- Ch0, terminal 3 = ANA+ Ch1, terminal 4 = ANA- Ch1 on the 6ES7135-4FB00). Look for discoloration, deformation, or signs of contamination.
- Measure the loop impedance from terminal 1 to terminal 2 with an ohmmeter (channel 0/1 disconnected from the load). A reading of less than 10 kΩ indicates a partial short on the field side.
- Power the station. With the load still disconnected, force PQW122 to 27648 in Monitor/Modify. Measure the voltage at terminals 1 and 2 with a DMM. A healthy output should read 9.95–10.05 V on the 0–10 V range.
- If the output is still 0 V, the output stage of channel 2 is damaged. Replace the module with a 6ES7135-4FB01-0AB0 (the current production successor) or a compatible variant.
8. SCL Source Recovery — Practical Options
Since the on-line upload cannot return SCL, the recovery options are limited. Choose in the order below:
- Customer's EKB or project backup: The fastest path. The customer must locate the last archived STEP 7 project (.s7p or .zip export) that contains the SCL source. Restore and recompile.
- Plant historian or HMI project: If the SCL implements scaling or interlocks that are mirrored in the HMI tag database, the HMI export can serve as a cross-reference.
- Reverse engineering from STL: Read the STL with comments. For each FB, identify input/output interface, scan the temporary variables, and rewrite the equivalent SCL block. This is the least reliable path and must be unit-tested before deployment.
- Vendor support request: If the system integrator is known, request the source archive under the original contract terms.
For long-term serviceability, the customer should adopt a source-controlled archive strategy: every SCL/FB/FC/DB change is committed to a version-controlled folder on the engineering server, with periodic backup to off-line media.
9. Replacement Module and Firmware Considerations
The 6ES7135-4FB00-0AB0 was superseded by 6ES7135-4FB01-0AB0. Engineers should be aware of the following migration notes:
| Item | 6ES7135-4FB00-0AB0 | 6ES7135-4FB01-0AB0 |
|---|---|---|
| Function | 2 AO U/I, 16-bit | 2 AO U/I, 16-bit |
| Output ranges supported | ±10 V, 0–10 V, 1–5 V, ±20 mA, 0–20 mA, 4–20 mA | Same |
| Resolution | 15 bits + sign | 15 bits + sign |
| Diagnostic interrupt | Basic (over-range, wire break) | Extended (group error, channel-specific) |
| Pinout / front connector | 20-pin front connector | 20-pin front connector, pin-compatible |
| STEP 7 HW catalog entry | ET 200S > AO > 6ES7135-4FB00-0AB0 | ET 200S > AO > 6ES7135-4FB01-0AB0 |
HWConfig in STEP 7 V5.5 SP4 or later recognizes both MLFBs. If the engineering station is older than V5.5 SP2, install the HSP (Hardware Support Package) from the Siemens support site before attempting to add the module.
10. Commissioning and Verification Checklist
- Open the project in STEP 7 V5.x. Confirm the CPU is in STOP.
- Open HWConfig. Verify the ET 200S topology matches the field installation (slots, MLFBs, PM-E count).
- Compile. STEP 7 must report zero errors and zero warnings.
- Click Download to Target from inside HWConfig only.
- After the download, place the CPU in RUN-P. Verify the CPU diagnostic buffer shows no configuration errors (SF LED off).
- Open PLC > Monitor/Modify. Confirm the SCL blocks (FCs, FBs, DBs) are still online and have the expected timestamps.
- Force PQW120 to 0, 13824, 27648 and verify channel 0 output: 0 V, 5.0 V, 10.0 V on the 0–10 V range.
- Force PQW122 to the same values. Verify channel 1 output matches within the module accuracy spec (±0.5 % of full scale).
- Disable the force and let the user program write PQW122. Verify the analog output follows the program logic.
- Record the final HWConfig (Export to TXT) and archive with the SCL source as part of the customer documentation set.
11. Common Pitfalls and Field Notes
- Wrong download path: Issuing a download from the SIMATIC Manager project tree wipes the user program. The HWConfig Download to Target button is the only path that preserves the program.
- Memory reset on STOP transition: Some CPU 315-2DP firmware versions (< V2.0) perform a full memory reset on STOP→RUN transitions. The user must check the CPU's firmware via Module Information > Identification. If the firmware is older, a STOP transition erases work memory and the program must be reloaded.
- Force values vs. program values: The 7000-INT threshold observed via Monitor/Modify > Force may differ from the threshold when the user program writes the value. If the symptom only appears with force, the issue is in the forcing mechanism, not the module.
- Watchdog on the AO module: Some 6ES7135-4FB00 modules built before 2010 have a known output-stage latch-up issue. Reference the Siemens FAQ on the module.
- Front connector torque: Screw-terminal front connectors must be torqued to 0.6–0.8 N·m. Loose connections on the AO output cause intermittent 0 V readings.
- Shield grounding: The analog cable shield must be terminated at the cabinet gland, not at the field device, to prevent ground-loop induced errors.
12. Frequently Asked Questions
Why does STEP 7 V5.x upload SCL blocks as unreadable STL?
SCL is a high-level language that the compiler translates into MC7 machine code, the only format stored in the CPU load memory. The Upload Station to PG function returns the MC7 image, which STEP 7 decompiles to STL. The decompiled STL is structurally correct but functionally illegible. The only way to recover the SCL source is from the offline project archive; the on-line upload is intentionally lossy.
Does a hardware download in HWConfig wipe the SCL program in the CPU?
No, provided the download is issued from inside the HWConfig editor using the Download to Target button. The user program in load memory and work memory is preserved. A download issued from the SIMATIC Manager project tree (right-click the S7 station → Target system > Download) does overwrite the on-line program and must be avoided.
Why does channel 2 of the 6ES7135-4FB00-0AB0 output drop to 0 V above 7000 INT?
The most likely causes are: (1) the single PM-E cannot supply the backplane current required by the AO output stage at higher DAC counts, causing the output to latch; (2) a partial short on the channel-2 field wiring that triggers the module's internal current limit; (3) a damaged output stage in channel 2. Add a second PM-E, disconnect the load and re-test, and replace the module if the symptom persists.
Can the 6ES7135-4FB00-0AB0 be replaced with 6ES7135-4FB01-0AB0 without re-engineering?
Yes. Both are 2-channel U/I analog output modules with identical pinouts, identical 16-bit resolution, and identical output ranges. HWConfig in STEP 7 V5.5 SP4 or later recognizes the newer MLFB. Update the HWConfig entry, recompile, and download the configuration. No user program change is required.
What backplane current budget does a single 6ES7138-4CA01-0AA0 PM-E provide?
The PM-E 24 VDC provides a nominal 1.0 A to the ET 200S backplane for the modules to its right up to the next PM-E. For a station with a typical mix of 8–10 modules, a single PM-E is at the upper limit. Adding a second PM-E at the midpoint of the rack reduces each segment to roughly 0.4–0.5 A, providing thermal headroom for analog output stages under load.
Does the 7000-INT threshold in the symptom indicate a software-side scale problem?
No. The 0–27648 INT range of the AO module maps linearly to the configured voltage or current range. The 7000 threshold is a function of the hardware (power supply, current limit, or load impedance), not of the SCL logic. Verify with the load disconnected; if the symptom disappears, the issue is in the field wiring or load device.