Resolving Set PG/PC Interface Errors on Siemens S7-300/400

David Krause13 min read
ProfibusSiemensTroubleshooting
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

Resolving Set PG/PC Interface Errors on Siemens S7-300/400 PROFIBUS

1. Problem Overview

Engineers commissioning or maintaining a SIMATIC S7-300 or S7-400 station frequently hit transient online errors when the programming device is connected to the PROFIBUS DP or MPI port of a CPU such as the CPU 315-2DP, CPU 317-2DP, CPU 319-3 PN/DP, CPU 414-3 PN/DP, or CPU 416-3 PN/DP. Typical messages returned by STEP 7 V5.x or TIA Portal are:

  • "Cannot establish a connection to the target module."
  • "Online: No connection to the target station was established."
  • "Wrong selection of max. nodes" / "Bus address error".
  • "The PC adapter is not responding." or "The driver for the PC adapter could not be loaded."
  • "Interface not accessible / Time-out when setting up the connection."

All of these symptoms share a common root cause family: the Set PG/PC Interface mapping between the access point and the physical driver is incorrect, or the PROFIBUS parameters (transmission rate, bus profile, highest PROFIBUS address, master selection) do not match what is live on the segment. Cycling the rate until the connection lands is not a valid workflow and burns hours of commissioning time.

2. The PG/PC Interface Concept

The Set PG/PC Interface dialog binds a Windows access point to a device driver. STEP 7 and TIA Portal rely on this binding instead of addressing a COM port or USB device directly. The two access points relevant to S7-300/400 are:

Access Point Used By Typical Driver Assignment
S7ONLINE (STEP 7) STEP 7 V5.x, TIA Portal online & diagnostics PC Adapter (PROFIBUS), PC Adapter (MPI), TCP/IP, IE General
CP_L2_1: / CP_L2_2: Legacy DP/DPV1 master applications (e.g., SIMATIC PDM) CP 5611 / CP 5621 / CP 5613 A2 / CP 5623 driver
CP_L4_1: CP 1430 TF / Send/Receive over ISO-on-TCP IE General / ISO Ind. Ethernet

When TIA Portal attempts to "Go online" it queries the OS for the binding of S7ONLINE; if the bound driver does not match the cable that is physically plugged in, the request fails before the first S7 frame is even sent. This is why the official Siemens procedure always begins by verifying the access point, not the baud rate. Reference: Configuring the PG/PC interface - TIA Portal (V20).

Critical: Never use the Windows Control Panel entry "Set PG/PC Interface" blindly. The first tab selects the access point, the second tab selects the driver used. Changing the second tab without re-selecting the first tab has no effect on the online connection.

3. Identifying the Live PROFIBUS Transmission Rate

PROFIBUS DP uses NRZ encoding and supports discrete baud rates. The live rate on the segment is determined by the DP master during the token-passing initialization phase. All slaves and the PG must operate at the same rate or they are invisible to each other.

Baud Rate Max Segment Length (Type A cable) Typical Use
9.6 kbit/s 1,200 m Very old, legacy MPI/PROFIBUS
19.2 kbit/s 1,200 m Legacy
45.45 kbit/s 1,200 m DP on S5 backplanes
93.75 kbit/s 1,200 m PG comms on very long cables
187.5 kbit/s 1,000 m Default for many CPU 31x-2 MPI/DP ports
500 kbit/s 400 m Common DP default for ET 200S, ET 200M
1.5 Mbit/s 200 m Fast DP, typical default for S7-300 31x-2 DP
3 Mbit/s 100 m Fast DP, ET 200pro, ET 200SP
6 Mbit/s 100 m DPV1 / drive I/O (only with CP 5622/5623)
12 Mbit/s 100 m DPV2 / motion (only with CP 5622/5623)

3.1 Three ways to discover the active rate (no trial-and-error required)

  1. Read it from the project. In STEP 7 V5.5, open HW Config → right-click the PROFIBUS subnet → Object Properties → tab Network Settings. The "Transmission rate" field shows the value the project was compiled with. In TIA Portal, go to Devices & Networks → select the PROFIBUS subnet → Properties > General > Network settings. The Transmission rate dropdown shows the configured value.
  2. Ask a live bus participant. Open Accessible Nodes (STEP 7: PLC → Accessible Nodes; TIA Portal: Online → Accessible devices). The PG broadcasts at each candidate rate until a participant answers. The detected rate is the segment rate. This is the official Siemens recommendation and is documented in TIA Portal V20 documentation.
  3. Use a passive PROFIBUS diagnostic tool. Tools such as the Softnet diagnostics (Profinet Commander), the Amprolyzer, or the PROCENTEC ProfiHub/ProfiTrace listen to the wire without joining the bus and report the active baud rate, the master address, and any diagnostics. The PG is then configured for the rate that the listener reported.

4. The PG/PC Interface Parameters Explained

When the dialog PC Adapter (PROFIBUS) Properties is opened, the following parameters must be reviewed against the live network:

Parameter Correct Setting Wrong Setting Effect
Transmission rate Must match the live bus (see table in §3) "No reply from slave" or random "Cannot establish connection"
Highest PROFIBUS address Must include every active address on the segment; default 126 is safe "Wrong selection of max. nodes" error
PG/PC is the only master on the bus Tick only if the PG is the sole class-1 master (engineering or temporary point-to-point link) Tick ON in a live system with a CPU master: token collisions, "Bus fault", intermittent disconnects
Profile DP for DP segments, Standard for mixed MPI/DP, DP/FMS for legacy FMS masters Standard on a pure DP segment hides slaves, DP on an MPI-only segment times out
Timeout Default 10 s; raise to 30 s on long cables or with many repeaters False negatives on the first attempt, second attempt succeeds

5. Step-by-Step Resolution Procedure

  1. Close STEP 7 / TIA Portal before editing the PG/PC interface, otherwise the binding is locked.
  2. Open Windows Control Panel → Set PG/PC Interface (in modern Windows, type Set PG/PC in Start).
  3. In the first tab, select the access point S7ONLINE (STEP 7). This is the access point used by every online function in STEP 7 V5.x and TIA Portal. Reference: Setting the PG/PC interface (TIA Cloud docs).
  4. Switch to the second tab. For a USB PC Adapter on PROFIBUS select PC Adapter (PROFIBUS) and click Properties.
  5. On the PROFIBUS tab set the rate that matches the live bus (§3). If the rate is unknown, leave it on Auto only for the first discovery, then lock it to the detected value.
  6. Set Highest PROFIBUS address to 126 unless the bus is known to be small (e.g., point-to-point to a single CPU, then 2 speeds up the search).
  7. Tick PG/PC is the only master on the bus only if the laptop is connected directly to the CPU MPI/DP port and no other DP master is active. In a live plant, leave this off.
  8. Confirm with OK → OK. Windows prompts to confirm the change. Click OK; the dialog binds the driver to the access point.
  9. Restart STEP 7 / TIA Portal so the new binding is picked up.
  10. In STEP 7 V5.5: PLC → Accessible Nodes. In TIA Portal: Online → Accessible devices. The CPU must appear with its address.
Critical: Steps 2-9 are exactly the procedure recommended by the Siemens Support entry Entry ID 8686578. If the CPU still does not appear, the issue is no longer the PG/PC interface - move to §7.

6. Driver-Specific Notes per Adapter Family

Adapter Order Number Driver Package Notes
PC Adapter USB (V1) 6ES7 972-0CB20-0XA0 SIMATIC PC Adapter USB A2 RS-232 + USB versions; older units need driver < V1.3 for Windows 10/11
PC Adapter USB A2 6ES7 972-0CB35-0XA0 SIMATIC PC Adapter USB A2 V2.0 Current production; driver included in STEP 7 V5.5 SP4+ and TIA V13+
CP 5611 / CP 5611 A2 6GK1 561-1AA01 / 6GK1 561-1AA02 SIMATIC NET PC Software PCI card, PROFIBUS + MPI; needs SIMATIC NET license (e.g., 6GK1 704-1CW71-3AA0)
CP 5621 6GK1 562-1AA00 SIMATIC NET PC Software PCIe x1; same role as CP 5611, current product
CP 5622 / CP 5623 6GK1 562-2AA00 / 6GK1 562-3AA00 SIMATIC NET PC Software Supports up to 12 Mbit/s, hardware-master capable (DPV1/DPV2)
CP 5711 6GK1 571-1AA00 SIMATIC NET PC Software ExpressCard/34, mobile engineering
IE/PB LINK PN IO 6GK1 411-5AB10 n/a (proxy) Allows routing from Ethernet into PROFIBUS segment

If the driver entry shows a yellow triangle in Device Manager → SIMATIC NET, the user-mode driver is not loaded. The PG/PC interface dialog will then list the adapter with an asterisk or omit it entirely.

7. Field Troubleshooting Matrix

Symptom Likely Root Cause Verification Fix
"Cannot establish connection" on every attempt Wrong access point bound to wrong driver Open Set PG/PC Interface, verify S7ONLINE → PC Adapter (PROFIBUS) Re-bind per §5
Connection succeeds at 187.5 kbit/s only Segment is MPI only, no DP master active Set master tick ON, retry at 187.5 Switch profile to Standard and tick PG is the only master for point-to-point
Random time-outs during download High EMC noise, missing terminator Measure bus voltage on idle segment (should be 0.7-1.1 V differential, see IEC 61158-2) Enable terminating resistors on first and last device; check shield bonding
Adapter is not detected by TIA Portal Driver not installed, USB power issue Device Manager → SIMATIC NET; check yellow triangle Reinstall SIMATIC NET from the STEP 7 / TIA DVD; use a powered USB hub if the laptop port is weak
"Wrong selection of max. nodes" Highest PROFIBUS address below the CPU's address Check CPU MPI/DP address on the panel (default 2) Set Highest PROFIBUS address ≥ 2 (use 126 for safety)
Go-online works in TIA but not in STEP 7 V5.5 TIA captured the access point for its own use Open Set PG/PC, check who owns S7ONLINE Rebind S7ONLINE to PC Adapter (PROFIBUS) (the legacy STEP 7 driver), see Entry ID 11870489
Go-online works in STEP 7 V5.5 but not in TIA TIA needs an additional access point S7ONLINE (TIA Portal) Set PG/PC dialog first tab Create/bind the S7ONLINE (TIA Portal) access point to the same driver, see Entry ID 38717202
Connection succeeds, download fails with "Time-out during upload to PG" PG is class-2 master, no class-1 master present; tick missing Check the only-master tick For a point-to-point link to a single CPU, tick PG/PC is the only master
"No PG/PC on the bus detected" Cable swapped, DP connector not engaged Check connector is locked, both LEDs on the adapter Use a Siemens PROFIBUS FastConnect cable (6XV1 830-0AH10) with PROFIBUS FastConnect stripping tool (6GK1 905-6AA00)

8. Commissioning the Bus for the First Time

If the station is brand-new and never been on PROFIBUS, follow this sequence to avoid the trial-and-error loop:

  1. Configure the CPU's MPI/DP interface in HW Config: address 2, transmission rate 1.5 Mbit/s, profile DP. This is the factory default on every S7-300 31x-2 DP and most 41x/41x-3 CPUs.
  2. Compile and download the hardware configuration. The CPU keeps the rate in non-volatile memory.
  3. Open Set PG/PC Interface → S7ONLINE → PC Adapter (PROFIBUS) → Properties → 1.5 Mbit/s, Highest Station 126, Profile DP, master tick off for the first connection because the CPU itself is the master in DP mode.
  4. Run PLC → Accessible Nodes. The CPU should appear immediately.
  5. Go online, upload the project, and confirm by checking the CPU's diagnostic buffer (RUN/STOP, scan time, errors).

9. When the Rate Is Truly Unknown

Sometimes the laptop must connect to a plant with a non-documented bus. In that case use the Auto mode that is built into the PC Adapter driver:

  1. Set PG/PC Interface → PC Adapter (PROFIBUS) → Properties → Transmission rate = "Auto".
  2. In STEP 7 / TIA Portal, run Accessible Nodes. The driver sequentially tries 9.6 k, 19.2 k, 45.45 k, 93.75 k, 187.5 k, 500 k, 1.5 M, 3 M, 6 M, 12 M until a participant replies. This takes 10-60 s.
  3. Once the CPU is visible, note its address and rate, then close the dialog and switch from Auto to the detected value for fast future connections.
Critical: Auto mode only works if at least one class-1 or class-2 DP node is active and answering. On a CPU-in-stop with a brand-new bus and no slaves, Auto may not return anything. In that case the rate is whatever the CPU was set to in HW Config. Default = 1.5 Mbit/s for S7-300 DP, 187.5 kbit/s for S7-300 MPI, 1.5 Mbit/s for S7-400 MPI/DP.

10. Verification Checklist

  • [ ] S7ONLINE access point is bound to PC Adapter (PROFIBUS).
  • [ ] TIA access point S7ONLINE (TIA Portal) (if used) is bound to the same driver.
  • [ ] Transmission rate equals the live bus rate.
  • [ ] Highest PROFIBUS address ≥ the highest active node.
  • [ ] "PG/PC is the only master" is correct for the network topology.
  • [ ] Profile matches the segment type (DP / Standard / DP/FMS).
  • [ ] USB driver installed, no yellow triangle in Device Manager.
  • [ ] LED on PC Adapter shows ACTIVE (green) when STEP 7 / TIA is open.
  • [ ] Accessible Nodes returns the CPU within the timeout window.
  • [ ] Diagnostic buffer of the CPU shows the last online action, no timeouts reported as OB82/OB86.

11. Safety and Plant-Side Considerations

Going online with an active plant always carries risk. A class-1 DP master that is the laptop will compete with any existing class-1 master, so:

  • Tick PG/PC is the only master only when the bus is electrically isolated from the plant, e.g., the engineer is in the cabinet and the PROFIBUS connector is unplugged from the live trunk.
  • When plugging into a live segment, leave the master tick off and use the Accessible Nodes function, which is a class-2 service that does not take over the token.
  • Never change the CPU's PROFIBUS address or rate online without verifying there is no other class-1 master - the CPU is one of the masters in a DP-V1 segment and parameter change will drop the segment for several seconds.

12. FAQ

Why does the PC Adapter work one day and fail the next on the same CPU?

Almost always the live bus rate was changed (a new drive, a new ET 200SP with DPV2 forcing 3 Mbit/s, or a CPU replaced with a pre-loaded project). Re-run Accessible Nodes in Auto mode to rediscover the new rate, or read the rate from the project in HW Config and lock the PC Adapter to it.

How do I know the right PROFIBUS transmission rate without trial and error?

Read it from the project's HW Config (subnet → Object Properties → Network Settings), or run Accessible Nodes with the PC Adapter set to Auto. The driver will report the detected rate on the first success. Refer to TIA Portal V20 documentation.

Should I tick "PG/PC is the only master on the bus"?

Only for a point-to-point link where the laptop is the sole class-1 master. In a live plant with a CPU acting as DP master, leave it unchecked. With the tick on, you will collide with the CPU's token and the bus will fault.

What is the difference between S7ONLINE and S7ONLINE (TIA Portal)?

S7ONLINE is the legacy STEP 7 V5.x access point. TIA Portal registers its own S7ONLINE (TIA Portal) on installation. Both can be bound to the same physical driver, but if only one is bound, the other tool will fail to go online. Always verify both in the first tab of Set PG/PC Interface.

The CPU does not appear in Accessible Nodes even though the cable LED is on. What now?

Check the CPU's MPI/DP address on the CPU front-panel display and make sure the Highest PROFIBUS address in the PC Adapter properties is at least equal to it. Also check the termination: the bus must be terminated at the two physical ends only, with the terminator power supplied by a node that is powered on. See Siemens Support entry 8686578.

Back to blog