Connecting Siemens S7-300 CPU 315 to PC MPI, Ethernet, USB

David Krause10 min read
S7-300SiemensTutorial / How-to
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

Overview: PC-to-S7-300 Communication Paths

The SIMATIC S7-300 family uses several physical interfaces for engineering, programming, and HMI traffic. The exact options available on a given station depend on which CPU 315 variant is installed, because the 315 series spans multiple order numbers with different onboard interfaces. Before selecting a cable or module, identify the CPU's MLFB and verify which ports are physically present on the front panel.

Three practical paths exist for connecting an S7-300 station to a programming PC without a pre-existing MPI cable:

  1. PC Adapter USB/MPI (6ES7972-0CB20-0XA0) — the universal solution for any S7-300 with an MPI/DP port.
  2. CP 343-1 Lean Ethernet communications processor — installed in a free slot of the S7-300 rack to expose a TCP/IP interface.
  3. CP 5612 / CP 5612 A2 PCI or PCIe card — installed in the PC to provide a native MPI/PROFIBUS interface.

A bare RS-232 null-modem cable is not a valid interface for an S7-300 CPU. The CPU does not expose an RS-232 port configured for PG communication. Any attempt to wire a DB9-to-RS-232 directly into the MPI/DP sub-D socket will fail electrically and cannot be interpreted as a programming channel by STEP 7.

Prerequisites and CPU Identification

Confirm the exact CPU before ordering hardware. The front-panel layout differs between variants:

MLFB Onboard Interfaces Notes
6ES7315-2AFxx-0AB0 1 × MPI/DP combined Legacy build; MPI only by default
6ES7315-2AG10-0AB0 1 × MPI/DP combined DP can be configured as PROFIBUS master
6ES7315-2EH13-0AB0 1 × MPI/DP + 1 × DP Distinct DP connector separate from MPI
6ES7315-2FJ14-0AB0 1 × MPI/DP + 1 × PN PROFINET onboard; no CP needed for Ethernet
If the CPU carries an RJ45 PROFINET port (315-2FJ14 or later PN variants), the simplest path is a standard Ethernet patch cable directly into STEP 7 / TIA Portal — no extra hardware required. The remainder of this guide addresses MPI-only variants where the PC lacks a compatible interface.

Required software: STEP 7 V5.5 + SPx (or TIA Portal if the project will be migrated) and the appropriate PG/PC interface driver. The PC Adapter USB driver ships with STEP 7 and installs automatically when the adapter is first plugged in on a system with administrator rights.

Option 1 — PC Adapter USB/MPI (6ES7972-0CB20-0XA0)

The SIMATIC PC Adapter USB A2 is the most flexible, drop-in replacement for the legacy PC/MPI cable. It provides a USB 1.1/2.0 upstream connection to the engineering PC and a 9-pin sub-D downstream connection that can be switched between MPI and PROFIBUS operation.

Parameter Value
MLFB 6ES7972-0CB20-0XA0
Upstream USB Type A
Downstream 9-pin sub-D, MPI or PROFIBUS switchable
Max MPI/PROFIBUS baud 1.5 Mbps (PROFIBUS), 187.5 kbps (MPI default)
Galvanic isolation Yes
Supported OS Windows 7 / 10 / 11 (STEP 7 V5.5 / TIA Portal V13+)
Power USB bus-powered

Wiring

  1. Power the S7-300 rack. The MPI/DP port is active only when the CPU is in RUN, STOP, or power-on with backup.
  2. Connect the 9-pin sub-D end of the adapter to the CPU's MPI/DP socket. Hand-tighten the screws.
  3. Plug the USB end into the PC. Allow Windows to enumerate and load the S7DOS / SIMATIC PC Adapter driver.

STEP 7 Configuration

  1. Open SIMATIC Manager and select Options → Set PG/PC Interface.
  2. Choose PC Adapter (MPI) for MPI access or PC Adapter (PROFIBUS) for DP access.
  3. Set Transmission rate to 187.5 kbps for MPI (default of all S7-300 CPUs) or the configured DP rate for PROFIBUS mode.
  4. Set Highest station address = 31 (MPI default). The adapter typically uses MPI address 0 by default.
  5. Click Diagnostics → Test to verify the bus is reachable. A successful read of the CPU's MPI address confirms the link.
If the diagnostics test returns "Function not supported" or "Timeout", verify that no other PG/HMI is online simultaneously holding the bus token, and confirm that termination is not enabled on the adapter (the adapter has no internal bus terminator, which is correct for a direct CPU-to-PC link).

Option 2 — CP 343-1 Lean Ethernet Module

If the station has a free slot in the central rack, the CP 343-1 Lean adds an industrial Ethernet interface to an otherwise MPI-only CPU. Once configured, the PC connects over standard TCP/IP with no proprietary cable — and a much longer cable budget than the 50 m limit of passive MPI cabling.

Parameter CP 343-1 Lean (6GK7343-1CX10-0XE0)
Network 10/100 Mbps, RJ45, TCP/IP, UDP, ISO-on-TCP, PROFINET IO device
Slot width 1 slot
Max S7 connections 8 (S7 communication), 1 (PG/OP)
Configuration Via STEP 7 Hardware Configuration
IP assignment Static or via DHCP (recommended: static for engineering)

Installation Procedure

  1. Power down the S7-300 rack. Insert the CP 343-1 Lean into any free slot (slots 4–11 in a typical 0-slot CPU, slots 5–11 with the 315-2DP that occupies slot 2 by default).
  2. Power on the rack.
  3. In SIMATIC Manager, open the S7-300 station and launch HW Config.
  4. From the hardware catalog, locate SIMATIC 300 → CP 343 → CP 343-1 Lean and drag it to the free slot matching the physical position.
  5. Double-click the CP to open its properties. Assign a static IPv4 address, subnet mask, and (if relevant) router. Enable Use the following IP address and enter values in the same subnet as the engineering PC.
  6. Save, compile, and download the hardware configuration to the CPU.
  7. Connect an Ethernet patch cable from the CP's RJ45 socket to the PC's NIC (directly or via switch).

PC Interface Setup

  1. In STEP 7, open Options → Set PG/PC Interface.
  2. Select TCP/IP → Intel(R) ... (or your NIC) bound to the ISO-on-TCP protocol.
  3. Open Accessible Nodes from the target system. The CP's IP and the assigned MPI address should appear.

For further detail on assigning the IP inside HW Config, refer to the Technical Instructions for Configuring an S7 Connection from Siemens Industry Online Support.

If the PC has multiple network interfaces (e.g., a corporate VPN and a local LAN), bind the STEP 7 PG/PC interface explicitly to the NIC connected to the CP — otherwise ISO-on-TCP frames may be routed onto the wrong adapter and the search will time out.

Option 3 — CP 5612 / CP 5612 A2 PCI Card

For a permanently installed engineering workstation, the CP 5612 A2 PCI card (MLFB 6GK1561-2AA00) or its PCIe equivalent (CP 5622, 6GK1562-2AA00) adds native MPI/PROFIBUS to the PC. This eliminates the USB-to-MPI conversion step and supports baud rates up to 12 Mbps on PROFIBUS.

Parameter CP 5612 A2 CP 5622
Bus PCI PCIe x1
MLFB 6GK1561-2AA00 6GK1562-2AA00
Protocols MPI, PROFIBUS DP master, S7-communication Same
Max DP baud 12 Mbps 12 Mbps
Connector 9-pin sub-D female 9-pin sub-D female

Installation Procedure

  1. Power down the PC, install the card in a free PCI/PCIe slot, and attach a PROFIBUS drop cable (with PG connector) from the card's 9-pin sub-D to the CPU's MPI/DP socket.
  2. Boot Windows. The SIMATIC NET driver package installs via the STEP 7 setup if it was not already present.
  3. In Set PG/PC Interface, select CP 5612 (MPI) or CP 5612 (PROFIBUS).
  4. Use Diagnostics → Test to confirm the bus is reachable at the configured baud rate.
Modern 64-bit Windows 10/11 installations require the SIMATIC NET V16+ driver package for CP 5612 A2 compatibility. Earlier SIMATIC NET versions do not sign drivers for current Windows releases and will leave the card unrecognized.

Option 4 — USB-to-MPI Cable (Third-Party)

Generic USB-to-MPI adapters from third parties exist (e.g., Siemens-soft PLC link devices or clones based on the IBH Link S7). These emulate the PC Adapter protocol over USB and present an MPI port to STEP 7.

Compatibility caveats:

  • STEP 7 V5.5 supports the IBH NetLink S7 and similar clones through their own drivers; TIA Portal support is more limited.
  • Maximum baud is typically restricted to 187.5 kbps (MPI native).
  • Not all clones pass the S7 Online diagnostics check; failure modes include "Partner not reachable" with no diagnostic LED.

For production or commissioning use, the genuine Siemens PC Adapter is recommended because it is supported across all STEP 7 and TIA Portal versions and has certified galvanic isolation.

Selecting the Right Option

Criterion PC Adapter USB CP 343-1 Lean CP 5612 / 5622
Engineering PC is mobile ★ Best
Long cable distance (>20 m) — (≤50 m MPI) ★ Best (≤100 m copper) — (≤50 m MPI)
Multiple PLCs on the bus Limited (single point) ★ Best ★ Best
Cost (low) ★ Best Moderate Highest
PROFIBUS DP at 12 Mbps — (1.5 Mbps max) N/A ★ Best
No free rack slot ★ Best ★ Best

Configuration Verification Checklist

  1. Open Set PG/PC Interface; confirm the chosen interface is the active one (not just installed).
  2. From STEP 7, run PLC → Diagnose/Set → Online → Accessible Nodes. The CPU should appear with its MPI or IP address.
  3. Confirm the CPU's Diagnostic Buffer can be read — this validates two-way communication, not just broadcast.
  4. Trigger a download of a small change (e.g., toggle a single OB100 bit) and verify it writes without stop/abort codes.
  5. If the CP 343-1 Lean is used, verify the connection in HW Config → CP → Connections → Status; the "Established" indicator must show green.

Troubleshooting Matrix

Symptom Likely Cause Corrective Action
"Cannot reach partner" with PC Adapter Baud mismatch, wrong bus profile Force 187.5 kbps MPI in Set PG/PC Interface
CPU not visible after IP set on CP 343-1 Lean IP not downloaded; HW Config not compiled Re-download HW Config; CP may need power cycle
"Function not supported" from CP 5612 SIMATIC NET driver version mismatch Upgrade SIMATIC NET to match OS / STEP 7
Intermittent timeouts on long cable No termination at end of segment Enable MPI terminator on last node or use repeater
USB adapter not detected Driver not installed; STEP 7 not present Re-run STEP 7 setup, choose "PC Adapter" option
Accessible Nodes shows multiple CPUs at same MPI address Address conflict on bus Renumber CPU in HW Config, download, power cycle

Safety and Operational Notes

  • Connecting a PG does not change the CPU's operating mode unless a download is initiated. Downloading a modified hardware configuration may trigger STOP on the target CPU.
  • The PC Adapter is bus-powered. When used on a hub or docking station, ensure the port supplies ≥ 500 mA; some low-power ports enumerate erratically.
  • For hazardous-area S7-300 installations, only the galvanically isolated PC Adapter or CP variants may be used; non-isolated clones can introduce ground loops.
  • Always back up the project (offline archive) before performing any online download that changes hardware configuration.

Can I connect a Siemens S7-300 CPU 315 to a PC with a plain RS-232 cable?

No. The CPU's MPI/DP sub-D port is not RS-232; it carries RS-485 signaling at the MPI protocol layer. Use the Siemens PC Adapter USB A2 (MLFB 6ES7972-0CB20-0XA0), a CP 343-1 Lean Ethernet module, or a CP 5612/5622 PCI/PCIe card instead.

What is the difference between PC Adapter USB A2 and the older PC/MPI cable?

The PC/MPI cable used a legacy serial port and supported baud rates up to 187.5 kbps. The PC Adapter USB A2 (6ES7972-0CB20-0XA0) uses USB, supports up to 1.5 Mbps in PROFIBUS mode, and provides galvanic isolation. The PC Adapter is the current recommended solution.

How do I set the IP address on a CP 343-1 Lean?

Open the S7-300 station in STEP 7 HW Config, double-click the CP, enter a static IPv4 address and subnet mask, save, and download the hardware configuration to the CPU. Restart the CP if it does not respond before STEP 7 finishes the download.

Why does STEP 7 report "Accessible Nodes" with no stations found over Ethernet?

Verify that the CP's IP is in the same subnet as the engineering PC, that the PG/PC Interface is bound to the correct NIC, that the Windows firewall allows S7 communication (TCP port 102), and that the CP has finished booting (link LED green before STEP 7 search).

Is a USB-to-MPI third-party cable supported in TIA Portal?

Support depends on the specific clone. Some clones expose a generic CP 5612 profile and work in TIA Portal with appropriate selection; others only work in STEP 7 V5.5. For consistent results across both environments, use the genuine Siemens PC Adapter USB A2.

What is the maximum cable length between PC and S7-300 over MPI?

Passive MPI cabling supports up to 50 m at 187.5 kbps without repeaters. For longer distances, use a PROFIBUS repeater, a CP 343-1 Lean over Ethernet (up to 100 m copper / much more on fiber media modules), or a PROFINET port if the CPU has one.

Back to blog