Problem Details
An S7-300 system built around a CPU 315-2DP (typical catalog number 6ES7 315-2AH14-0AB0) must communicate with a PG/PC for programming, diagnostics, and online test work. The reported configuration attempts to bridge roughly 20 m or more between the PLC and the engineering station using:
- Two PROFIBUS bus connectors,
6ES7 972-0BB52-0XA0(90° cable outlet, with PG socket, without programming device diagnostic LEDs). - A PC Adapter,
6ES7 972-0CB20-0XA0(USB PC Adapter, RS-232 on the PLC side; predecessor of the A2 generation). - A standard Cat 5 / Cat 6 LAN patch cable cut and terminated directly into the PROFIBUS D-sub connectors, in place of a proper PROFIBUS DP cable.
Symptoms observed in this scenario include:
-
Online > Accessible Nodesreturns no partner or returns an MPI/PROFIBUS address mismatch. - STEP 7 / TIA Portal reports "The interface is not accessible" or "No connection to the target module".
- Frequent bus faults (SF / BF on the CPU, BF flashing on the PC Adapter LED bar) when the cable length exceeds a few metres.
- Repeating "Error establishing connection to the target module" even though the Windows USB driver enumerates the PC Adapter.
The root cause is not the PC Adapter, the bus connector, or the CPU — it is the substitution of Ethernet twisted-pair cable for PROFIBUS DP cable across a 20 m run.
Root Cause Analysis
PROFIBUS DP and Ethernet 100BASE-TX share the same physical medium — a 100 Ω differential pair on RJ45 — but they are not electrically compatible at the segment level. Three physical-layer differences drive the failure.
1. Cable Construction Mismatch
PROFIBUS DP cable (violet, type A) per IEC 61158-2 / EN 50170 specifies a specific impedance, capacitance, and a tinned-copper braided shield with at least 60 % coverage. The reference cable type is:
- Impedance: 135–165 Ω at 3–20 MHz (typical 150 Ω).
- Capacitance: ≤ 30 pF/m.
- Loop resistance: ≤ 110 Ω/km.
- Shield: tinned copper braid, ≥ 60 % optical coverage.
- Conductor: solid 0.64 mm (22 AWG), stranded 0.34 mm² typical.
A Cat 5/6 LAN patch cable is specified at 100 Ω ± 15 Ω at 100 MHz. The impedance mismatch distorts the RS-485 edge transitions used by PROFIBUS, increasing jitter and ISI until the eye diagram collapses. The LAN cable also uses an aluminium/Mylar foil + drain wire shield (FTP/UTP) rather than a low-resistance braid, so high-frequency common-mode noise couples directly into the bus.
2. Shield Bonding and Ground Reference
Each 6ES7 972-0BB52-0XA0 bus connector exposes a shield clamp that must bite into the PROFIBUS cable braid and route the drain to the D-sub metal shell. Cutting an RJ45 and soldering the four used pairs into the connector bypasses the shield clamp entirely. The shield then either floats or makes contact through the drain wire only, defeating the EMC design that lets PROFIBUS survive in 24 V cabinet environments.
3. PC Adapter Power Path
The PC Adapter 6ES7 972-0CB20-0XA0 (and its successor 6ES7 972-0CB20-0XA0-class devices) draws its 24 V supply from pin 2 of the MPI/DP D-sub on the CPU side through the bus cable. When the cable is hand-wired from a LAN patch lead, the power pin may be left open or connected to the wrong conductor. The PC Adapter then boots but the RS-485 driver never enables, producing the "interface is initialising indefinitely" condition.
Specifying the Correct Cable and Limits
Use only PROFIBUS cable type A. Siemens sells it as 6XV1 830-0EH10 (standard), 6XV1 830-0EH10-0BB0 (trailing), and 6XV1 830-3FH10-0BB0 (festoon). At a minimum, any cable carrying 9.6 kbit/s to 12 Mbit/s PROFIBUS traffic must meet:
| Baud rate | Max segment length (type A) | Repeater needed |
|---|---|---|
| 9.6 kbit/s | 1200 m | No |
| 19.2 kbit/s | 1200 m | No |
| 45.45 kbit/s | 1200 m | No |
| 93.75 kbit/s | 1200 m | No |
| 187.5 kbit/s | 1000 m | No |
| 500 kbit/s | 400 m | No |
| 1.5 Mbit/s | 200 m | Recommended after 100 m |
| 3 Mbit/s | 100 m | Recommended |
| 6 Mbit/s | 100 m | Recommended |
| 12 Mbit/s | 100 m | Recommended |
For the 20 m run described in the source, the constraint is not distance — it is the cable itself. With proper PROFIBUS DP cable, the segment runs cleanly at any baud rate the CPU 315-2DP supports (up to 12 Mbit/s).
Solution Path A: Stay on PROFIBUS, Replace the Cable
If the application must remain on PROFIBUS DP or MPI, this is the minimum-change path.
Parts List
| Item | Catalog number | Quantity |
|---|---|---|
| PROFIBUS cable, violet, sold by metre | 6XV1 830-0EH10 |
25 m (≥ 20 m run + service loop) |
| PROFIBUS bus connector with PG socket, 90° outlet | 6ES7 972-0BB52-0XA0 |
2 (already on hand) |
| PC Adapter USB A2 (recommended upgrade) | 6ES7 972-0CB20-0XA0 |
1 |
Termination
Enable the terminating resistor in the bus connector at each end of the segment. On the 6ES7 972-0BB52-0XA0, this is the slide switch on the connector body — ON at the two physical ends, OFF on every connector in between. Never insert a terminator in the middle of a segment.
Wiring at the Connector
- Strip 25 mm of the violet jacket.
- Fold the braid back over the jacket; do not cut it off.
- Insert the cable into the connector body so the braid is clamped by the shield clamp.
- Strip the red and green core insulation by 6 mm.
- Insert into the D-sub terminals: Pin 3 = B-line (red), Pin 8 = A-line (green).
- Tighten the strain relief and verify the connector shell makes 360° contact with the braid.
Solution Path B: Move to Ethernet with a CP 343-1
If the 20 m run will grow, if the PC needs a permanent connection, or if the panel PC has no PROFIBUS card, switching the S7-300 onto Industrial Ethernet is the field-proven choice. This also removes the PC Adapter from the equation.
Required Hardware
| Item | Catalog number | Function |
|---|---|---|
| CP 343-1 Lean | 6GK7 343-1CX10-0XE0 |
10/100 Mbit Ethernet for S7-300, TCP/UDP/MRP-capable on later firmware |
| CP 343-1 | 6GK7 343-1EX30-0XE0 |
Adds ISO-on-TCP, PROFINET IO controller, web diagnostics |
| CP 343-1 Advanced | 6GK7 343-1GX31-0XE0 |
Adds FTP, email, security/RADIUS |
| Standard Cat 5e patch cable | — | RJ45, ≤ 100 m |
Commissioning Steps
- Insert the CP into a free slot of the S7-300 rack. Slot 4–11 are typical; consult the CPU hardware catalog for the exact PIC/Slot rule.
- Configure the CP in STEP 7 HW Config (or TIA Portal device configuration). Assign an IP address (e.g.,
192.168.0.10) and subnet mask (255.255.255.0). - Enable the S7 connection in the CP properties — only the S7 connection is needed for PG/PC programming over Ethernet.
- Set the PC Ethernet adapter to the same subnet (e.g.,
192.168.0.20). - In STEP 7, select TCP/IP > Network card as the PG/PC interface and create an S7 connection to the CPU.
Solution Path C: Keep the PC Adapter, Power It Externally
If the PC Adapter must remain and the LAN cable has already been installed, the PC Adapter can be powered from a separate 24 V source. This does not fix the cable impedance mismatch, but it lets the operator confirm whether the PC Adapter itself is functional before any rework.
- Provide a regulated 24 V DC (± 5 %) supply at the PC Adapter's MPI connector (pin 2 = 24 V, pin 7 = 0 V on the PC Adapter's MPI D-sub, per the
6ES7 972-0CB20-0XA0manual). - Limit cable length to under 5 m while diagnosing.
- If the bus remains unstable, the cable itself must be replaced — there is no software workaround.
When to Upgrade the Adapter
The 6ES7 972-0CB20-0XA0 is the older USB A2 generation. The current USB version is the PC Adapter USB A2 with catalog number 6ES7 972-0CB20-0XA0 (variant with USB 2.0 isolation), and the higher-tier CP 5711 (6GK1 571-1AA00) provides USB-isolated MPI/PROFIBUS at 12 Mbit/s plus PROFINET. The CP 5711 is the recommended replacement when the bus will be used for production diagnostics rather than commissioning only.
Configuration of the CPU 315-2DP Interface
Before re-trying any of the three paths, verify the DP interface parameters on the CPU itself. From STEP 7 HW Config > CPU 315-2DP > Properties > MPI/DP interface:
| Parameter | Recommended value | Notes |
|---|---|---|
| Interface mode | MPI / DP master or DP slave | DP master for token passing; MPI for PC Adapter only |
| Address | 2 (default) | Must not collide with any DP slave |
| Baud rate | 1.5 Mbit/s for 20 m | Up to 12 Mbit/s supported |
| Highest DP address | 126 | Leave at default unless master polling must be limited |
| Bus profile | DP (EN 50170) | Not PROFIsafe on this CPU variant |
Verification Procedure
After applying Solution Path A or B, run the following verification sequence. Each step gates the next.
- Bus physical check. With power off, measure between pins 3 and 8 at each end. With termination ON at both ends, you should read 220 Ω ± 10 % (two 220 Ω terminators in parallel, equivalent 110 Ω across the bus). With termination ON at only one end, read 220 Ω. With termination OFF everywhere, read high impedance (kΩ range).
- Shield continuity. Measure resistance between the D-sub shell at one end and the shell at the other end. Must be < 1 Ω. Then measure shell-to-PE at the cabinet — must also be < 1 Ω.
- No shield loops. Confirm the shield is bonded to PE at exactly one point per cabinet, never at both ends of a long external run.
- STEP 7 online test. Open Online > Accessible Nodes. The CPU 315-2DP must appear with its MPI/DP address and a green status dot. If the device shows with a yellow warning triangle, the baud-rate auto-detect has not converged — drop the baud rate and retry.
- Diagnostic buffer. From the online CPU, open PLC > Diagnostic Buffer. The buffer should be free of "DP bus fault" and "station failure" entries after five minutes of operation.
- Loopback test (PROFIBUS only). Temporarily insert a PROFIBUS DP terminator at the far end of the run, leave the near end unterminated, and check that the CPU 315-2DP BF LED goes dark. If it stays lit, the wiring is reversed on one end (Pin 3 ↔ Pin 8 swap).
Troubleshooting Matrix
| Symptom | Likely cause | Fix |
|---|---|---|
| BF LED on, no online nodes | A/B lines reversed on one connector | Swap Pin 3 / Pin 8 on the offending connector |
| BF LED flashing at 1 Hz | No terminator, or terminator on a middle node | Enable terminators only on the two physical ends |
| BF LED off, but no online nodes | Baud rate mismatch between PC Adapter and CPU | Set PC Adapter to "Auto" only when the CPU has the slowest node on the bus; otherwise fix the baud rate |
| Online test fails at > 500 kbit/s on LAN cable | Wrong cable type, impedance mismatch | Replace with PROFIBUS cable type A |
| PC Adapter LED does not light | 24 V missing on pin 2 of MPI connector | Power the adapter from external 24 V or upgrade to CP 5711 |
| Diagnostic buffer: "Distributed I/O: station failure" | DP slave address conflict or broken segment | Re-check addresses 0–126, re-terminate, retest with ohmmeter |
| STEP 7 reports "interface not accessible" on Ethernet | CP 343-1 not configured, or firewall on Windows blocks ISO-on-TCP port 102 | Configure CP, allow TCP 102 in Windows Firewall, ping the CP |
Long-Distance and Future-Proof Considerations
For distances beyond 100 m on PROFIBUS, insert a PROFIBUS Repeater (6GK1 500-0AB10) or an OLM (Optical Link Module) pair for fibre conversion. For distances beyond 100 m on Ethernet, simply use fibre media converters — S7-300 with a CP 343-1 Advanced and an SCALANCE XC-200 switch gives 100 m copper plus up to 80 km on single-mode fibre with the right SFP.
Where the S7-300 must coexist with newer S7-1500 or ET 200SP stations, plan to migrate the CPU 315-2DP onto PROFINET — the DP interface on the 315-2DP is PROFIBUS only, and the migration path is to add a CP 343-1 and replace DP slaves with PROFINET devices over time.
Can I really use a Cat 5 LAN cable for PROFIBUS DP?
No. PROFIBUS DP requires cable type A with 150 Ω impedance, braid shielding, and a defined capacitance. LAN cable is 100 Ω, foil-shielded, and will fail above 500 kbit/s at 20 m. The link may appear to work at 187.5 kbit/s over a few metres, but it will not meet IEC 61158-2 and will fail EMC testing.
What is the maximum length for a PC Adapter USB A2 to a CPU 315-2DP?
With PROFIBUS cable type A and 1.5 Mbit/s, the segment can run to 200 m without a repeater. The PC Adapter itself supports all PROFIBUS baud rates from 9.6 kbit/s to 12 Mbit/s. Use the lowest baud rate that the bus will tolerate to maximise margin on noisy sites.
Do I need a PROFIBUS card in the PC if I use a CP 343-1?
No. The CP 343-1 connects the S7-300 to Industrial Ethernet, and the PG/PC uses its standard Ethernet adapter. STEP 7 selects the TCP/IP > Network card interface instead of the PC Adapter. ISO-on-TCP uses TCP port 102, so any firewall on the engineering station must permit that port.
Where do I enable the PROFIBUS terminator on the 6ES7 972-0BB52-0XA0?
The slide switch on the connector body. Set it to ON only on the two physical ends of the segment; OFF on every connector in between. With both ends ON, an ohmmeter across pins 3 and 8 should read 110 Ω (two 220 Ω resistors in parallel).
Should I upgrade from the 6ES7 972-0CB20-0XA0 to a CP 5711?
For commissioning only, the USB A2 is adequate. For permanent diagnostics or production-floor use, the CP 5711 (6GK1 571-1AA00) provides 12 Mbit/s, galvanic isolation, and PROFINET in a single USB device. It is the field-recommended replacement.