IMD SolutionComputing LibraryShop main store

Troubleshooting

Why MPI works but PROFIBUS does not in a STEP 7 VM

Remote access and virtualization Published 5 min read

Short answer

A working MPI connection proves only the MPI path, not the PROFIBUS path, even when both run through the same USB adapter and CPU interface. Test each layer in turn: adapter mode, VM USB assignment, bus parameters, physical network, then the CPU's MPI/DP interface. In the reported case the cause was an intermittent fault at that interface, so the VM was not the culprit.

On this page
  1. Reading the two symptoms correctly
  2. Why a working MPI path does not clear the DP interface
  3. Isolating the PROFIBUS path one layer at a time
  4. Verifying that the fix holds
  5. The decision for each case
  6. Questions asked

When STEP 7 in a virtual machine reaches an S7 CPU over MPI but gets nothing over PROFIBUS through the same USB adapter, the working MPI connection tells you one thing only: the adapter, the USB pass-through, the guest and STEP 7 can carry MPI traffic. It says nothing about the PROFIBUS path. In the setup that produced this symptom pattern, STEP 7 V5.5 SP3 ran on an XP guest, and the cause turned out to be an intermittent fault on the CPU's MPI/DP interface, not the VM.

Reading the two symptoms correctly #

The reported symptoms were specific and worth separating:

  • MPI access works. The CPU answers on its MPI path through the adapter's MPI mode.
  • PC Adapter (Auto) sometimes detects a network but lists no accessible nodes. Some bus detection occurred, but no node could be addressed. Occasional detection is diagnostically different from a stable failure: it points at an unstable element rather than a plain configuration mismatch.
  • PC Adapter (PROFIBUS) gives no communication at all. The selected PROFIBUS path delivers nothing.

Two distinctions matter here. First, a detected network is not an accessible node: detection means the adapter saw bus activity, not that STEP 7 can address the CPU. Second, the DP in "MPI/DP interface" identifies the CPU as capable of PROFIBUS-DP communication; it does not verify the wiring, the bus parameters, node access or the condition of the interface hardware. The CPU in this case was confirmed DP-capable, and that confirmation alone settled nothing about its DP port.

Why a working MPI path does not clear the DP interface #

MPI and PROFIBUS can share one physical CPU interface while relying on different network configuration and access conditions. The adapter works in whichever bus mode the PG/PC interface configuration selects, and STEP 7 must use settings that match the connected network. An MPI connection therefore cannot rule out a fault that affects only PROFIBUS communication.

The VM adds layers of its own: the host operating system, the VM's USB assignment, the guest operating system and STEP 7 all participate, and a failure at any of them can interrupt access. But because MPI already works through those same layers, the pass-through is proven for at least one mode. The reported resolution, an intermittent fault at the CPU's MPI/DP interface, is consistent with a path that fails inconsistently, and no amount of software setting changes will repair unstable interface hardware.

Isolating the PROFIBUS path one layer at a time #

Work from the known-good MPI baseline and change one factor per test. Keep a short log with the adapter mode, each change and the exact outcome: no network detected, network detected without accessible nodes, or successful CPU access. That record stops intermittent behavior from being mistaken for improvement.

  1. Confirm CPU capability. Verify the exact CPU model against its documentation to establish DP support. In the reported setup the CPU was confirmed DP-capable.
  2. Establish the MPI baseline. Connect in MPI mode, reach the intended CPU and record the adapter selection and communication settings.
  3. Test PROFIBUS mode alone. Select the explicit PROFIBUS adapter entry in the PG/PC interface configuration and attempt access. Record whether the network is detected and whether the CPU appears as an accessible node. If the entry is missing from the list, reinstall the adapter driver package before going further; when the general handling of the USB adapter inside a VM is the issue, the steps in using a USB programming cable inside a Hyper-V VM apply.
  4. Inspect the physical path. Check the adapter connection, bus cabling, connectors and termination against the installed network design. Correct anything loose or damaged before touching software settings.
  5. Check the VM's USB assignment. Confirm the guest sees and keeps the adapter during the test. If it disconnects or re-enumerates, fix USB assignment before blaming STEP 7; a host that crashes under serial-adjacent USB load is a separate fault covered in host blue screen during serial VM connection to a PLC.
  6. Compare configuration with the real network. Verify that the selected interface, bus speed and node configuration match the connected PROFIBUS network, using the project and hardware documentation for the actual values.
  7. Try one controlled speed change only if needed. Note the original value, change only the bus speed, repeat the same access attempt and log the result. No result was reported for this trial in the exchange that produced this case, so treat it as a test, not a fix. Restore the original setting if nothing improves.

Verifying that the fix holds #

Verification must test repeatability, not one lucky scan. Keep the same adapter, computer, cable, network and project while comparing modes, and where possible compare against a direct installation or another known-good programming station to show whether the VM layer changes the result.

  • MPI baseline: successful access to the intended CPU over MPI, every attempt.
  • PROFIBUS detection: consistent network detection, not occasional detection.
  • Node access: the intended CPU listed as accessible and reachable, not merely a detected bus.
  • Repeatability: the same successful result over repeated attempts, with no unexplained loss of adapter or CPU access.
  • Hardware isolation: if PROFIBUS stays intermittent after configuration and USB checks, test the CPU interface and adapter path with known-good equipment or qualified service procedures. When a replacement adapter cable is needed for this isolation, a USB MPI/DP adapter for the S7-300 is the reference part.

The decision for each case #

  • PROFIBUS mode never detects a network while MPI is solid: fix configuration first. The adapter entry in the PG/PC interface, the bus speed and the node parameters must match the connected network before any hardware is touched.
  • Detection comes and goes, or appears without accessible nodes: suspect the physical layer. Check termination and cabling, then the CPU's MPI/DP interface itself; this is the pattern that traced to the intermittent interface fault here.
  • The adapter disappears from the guest mid-test: that is a VM USB pass-through problem, not a PROFIBUS problem. Fix the assignment first.
  • A lower baud rate changes nothing: restore the original speed and move to hardware isolation of the CPU interface and adapter.

Do not replace hardware only because MPI and PROFIBUS behave differently; confirm the interface by isolating the adapter, the network, the VM and the CPU first. The failure pattern where MPI works while PROFIBUS access is intermittent or absent is collected in more detail in S7-300 MPI/DP connection not showing in accessible nodes.

Questions asked

What does PC Adapter (Auto) detecting a network without accessible nodes mean?

Detection means the adapter saw some bus activity, but STEP 7 could not address or read any node on it. Treat it as a partial result: log whether it repeats, then test the explicit PROFIBUS mode and check bus parameters, termination and the CPU interface. A detected network is never proof of usable access.

Is the virtual machine the likely cause when MPI works over the same USB adapter?

Usually not. The same VM, guest operating system and USB pass-through already carry the MPI traffic, so the pass-through is proven working for at least one mode. Check that the adapter stays assigned to the guest during the test, but put the PROFIBUS network, adapter mode and the CPU's MPI/DP interface ahead of the VM in the isolation order.

Is lowering the PROFIBUS baud rate a confirmed fix?

No. It was suggested in the reported exchange as a diagnostic trial, with no result recorded. Restore the original setting if nothing improves, and keep isolating.

Where is the adapter mode selected in STEP 7?

In the PG/PC interface configuration, under the application access point for STEP 7 online access. The list can show separate entries for the adapter in MPI mode, PROFIBUS mode and Auto mode; if the PROFIBUS entry is missing, the adapter driver package is the first thing to reinstall before testing further.

Keep reading

  • Troubleshooting

    Legacy PLC timeout over a VMware serial port

    The timeout is a port-number problem, not a PLC problem: the host's COM2 never crosses into the guest, which numbers the virtual serial port itself — a guest with one serial port shows COM1. Point the programming software at the COM number the guest lists, then isolate the USB adapter, the cable pinout and the serial parameters one change at a time.

    Remote access and virtualization

  • Troubleshooting

    Host blue screen during serial VM connection to a PLC

    A host blue screen during a VM serial session to a PLC is a Windows 10 host crash in the USB-serial and virtualization stack, not a PLC or guest fault. Capture the stop code and version stack, check whether Workstation 14 is documented for your Windows 10 build (Broadcom lists Windows 10 1903 hosts from Workstation 15.x upward), then upgrade Workstation, refresh VMware Tools, and retest before touching adapter or PLC settings.

    Remote access and virtualization

  • Troubleshooting

    Using a USB programming cable inside a Hyper-V VM

    Hyper-V gives Generation 1 guests no USB passthrough, so a Siemens USB PPI or MPI cable cannot appear inside the VM. Redirect the cable's host COM port over RDP, or move to an Ethernet-to-PPI adapter with an emulation driver on an isolated subnet; fix host-to-guest networking with an internal virtual switch and static IP addresses.

    Remote access and virtualization