Overview
Commissioning a fresh Siemens SIMATIC S7-300/400 network that mixes CPUs and PC stations equipped with CP 5613 (catalog 6GK1 561-3AA00 / A2) PROFIBUS cards requires a specific download sequence. The most common commissioning failure on a greenfield network is the chicken-and-egg problem created by the combined MPI/DP interface on the CPU: once the CPU's hardware configuration is loaded with PROFIBUS-DP enabled, the port stops responding to native MPI download requests. This article provides the field-proven procedure for first-time download on a network of two S7 CPUs and three PC stations with OPC servers, using STEP 7 V5.5 and SIMATIC NCM PC.
Network Architecture
Reference topology for the procedure described in this article. The same logic scales to additional CPUs and PC stations.
Hardware Requirements and CP 5613 Specifications
The CP 5613 (and the more recent CP 5613 A2 and CP 5623) is a PCI / PCIe master card for PROFIBUS and MPI. It is the recommended PG/PC interface for STEP 7 V5.5 and SIMATIC NCM PC installations.
| Component | Catalog Number | Function | Notes |
|---|---|---|---|
| CP 5613 A2 | 6GK1 561-3AA02 | PCI 32-bit, PROFIBUS / MPI / PPI master | Replaces original CP 5613 (6GK1 561-3AA00) |
| CP 5623 | 6GK1 562-3AA00 | PCIe x1 successor | For STEP 7 V5.5 SP2+ and TIA Portal |
| CP 5614 A2 | 6GK1 561-4AA02 | PCI, dual-channel, DP master with fiber | For redundant ring or fiber segments |
| PROFIBUS connector | 6ES7 972-0BA12-0XA0 | 90° connector with PG port, terminating resistor | Termination must be powered from the device |
| PROFIBUS cable | 6XV1 830-0EH10 | Fast Connect, violet, shielded twisted pair | Characteristic impedance 150 Ω |
| Repeater RS 485 | 6ES7 972-0AA01-0XA0 | Segment coupler / signal refresh | Use when segment exceeds 32 nodes or cable limit |
Verify in the SIMATIC Manager PG/PC Interface dialog (Start → SIMATIC → STEP 7 → Set PG/PC Interface) that the CP 5613 driver is installed and visible. The two access points relevant to this procedure are:
- S7ONLINE (STEP 7) — used by SIMATIC Manager to download to the CPU.
- CP_L2_1 — default CP 5613 access point used by NCM PC and the Station Configurator.
PROFIBUS Cabling and Termination
Terminators on a PROFIBUS-DP segment must be powered: the 220 Ω pull-up and 390 Ω pull-down resistor network only forms the correct DC bias when the terminating node (CP 5613 or CPU) is energized. An unpowered terminator behaves as a stub impedance and degrades the signal, especially at 1.5 Mbit/s and above.
| Baud Rate | Max Segment Length | Max Stub Length | Max Nodes/Segment |
|---|---|---|---|
| 9.6 kbit/s | 1 200 m | ... | 32 |
| 187.5 kbit/s | 1 000 m | ... | 32 |
| 1.5 Mbit/s | 200 m | 6.6 m / 1 Mbit/s, 20 m / 500 kbit/s | 32 |
| 12 Mbit/s | 100 m | 0 m (no stubs) | 32 |
PG/PC Interface Selection: CP 5613 MPI vs PC Internal
STEP 7 distinguishes between two interface modes for the CP 5613. The choice controls the first-time download strategy.
| Mode | Access Point | Use Case | What it Speaks |
|---|---|---|---|
| CP 5613 (MPI) | S7ONLINE = CP 5613 MPI | First-time CPU download, firmware update, online diagnosis on a fresh CPU | MPI frames on the MPI/DP port |
| CP 5613 (PROFIBUS) | S7ONLINE = CP 5613 PROFIBUS | Online after DP is enabled, PG functions on a commissioned CPU | DP V0/V1 frames, class 2 master |
| PC Internal | S7ONLINE = PC Internal (local) | Downloading the PC station configuration to the PC's PC image (soft PLC, OPC, NCM routing) | Local SIMATIC interface, not the bus |
The first time you load a fresh CPU, the MPI/DP port is still in MPI mode (factory default). Therefore:
- Set S7ONLINE = CP 5613 MPI in Set PG/PC Interface.
- Open HW Config, assign the CPU's PROFIBUS interface to address 2 (CPU 1) or 3 (CPU 2), set the mode to DP master or DP slave as the project requires.
- Download the hardware configuration. The CPU reboots and the port is now DP.
- Switch S7ONLINE to PC Internal (or to CP 5613 PROFIBUS if you want to go through the bus) for the PC station download.
Bus Parameter Profile Selection
Open Set PG/PC Interface → PROFIBUS Interface CP 5613 → Properties → PROFIBUS. The Bus profile field selects which timing parameters the CP 5613 broadcasts during PG/PC access.
| Profile | Use Case | Trade-off |
|---|---|---|
| Standard | Mixed S7-300/400, S7-200, PG traffic | Most permissive; recommended for first commissioning |
| DP / FMS Universal | Pure DP networks, no S7-200 slaves | Slightly tighter slot times; better for noisy plants |
| User-defined | Forces a specific Tslot, Tset, etc. | Use only if the network analyzer reports errors with the default profile |
For the network in this article, select Standard until all stations are online. After commissioning, run the PROFIBUS diagnostics (Start → SIMATIC → STEP 7 → Commissioning → Bus Diagnostics) to verify zero Faults/1000 messages. If the rate is non-zero, switch to DP / FMS Universal or to user-defined timing.
Prerequisites
- STEP 7 V5.5 (or later SP) installed on every PC station that needs to download a project.
- SIMATIC NCM PC for PROFIBUS installed and licensed (NCM-PC V5.5+).
- CP 5613 driver installed on each PC station. The driver is part of the SIMATIC NET CD and is registered under Start → SIMATIC → SIMATIC NET → Commissioning PC Station.
- The STEP 7 project is fully compiled:
HW Config → Station → Check Consistencymust pass with no errors. - PROFIBUS cable is laid, connectors are crimped (Fast Connect stripping tool 6GK1 905-6AA00), and terminating resistors are switched ON at the two end nodes (and OFF at every other node).
- A unique node address is assigned to every node, in the range 0–126. CPU 1 = 2, CPU 2 = 3, PC 1 = 4, PC 2 = 5, PC 3 = 6 is a workable default.
- The CPUs are in factory state (MRES performed, or factory reset via mode selector to position MRES for 5 s).
Step-by-Step Commissioning Procedure
The procedure has two distinct phases: Phase A downloads CPU hardware and program via MPI; Phase B distributes the PC station configurations via PC Internal / Station Configurator.
Phase A — Load the CPU Hardware Configuration
- On PC Station 1, open Set PG/PC Interface and set S7ONLINE to CP 5613 MPI. Confirm the CP 5613 is the assigned interface.
- Power on CPU 1 only. All other nodes (CPU 2, PC 2, PC 3) are still disconnected from the bus or powered down.
- Open the project in SIMATIC Manager. Open HW Config on CPU 1.
- Right-click the
MPI/DPinterface object → Object Properties → General → Interface → Type: PROFIBUS. Assign address 2, leave transmission speed at 1.5 Mbit/s. - From the HW Config menu, select PLC → Download to Module. Acknowledge the "Stop CPU" warning. The CPU enters STOP, the configuration is loaded, and the CPU remains in STOP if the project specifies it.
- After the download, the port is now DP. Verify with PLC → Accessible Nodes that CPU 1 reports itself at address 2 over PROFIBUS.
- Power down CPU 1. Move the bus connector from CPU 1 to CPU 2. Power on CPU 2.
- In HW Config, switch to the CPU 2 view. Repeat steps 4–6 with address 3.
- Reconnect CPU 1 to the bus. Power on both CPUs.
Phase B — Load the PC Station Configurations
- On PC Station 1, open Set PG/PC Interface and set S7ONLINE to PC Internal (local).
- Open the Station Configurator (Start → SIMATIC → SIMATIC NET → Commissioning PC Station → Station Configurator).
- From the Station Configurator, select Import → Station and choose the project's
.xdbfile for PC Station 1 (it is in the project's PC Station folder, typically namedPC1.xdb). - The Station Configurator now lists CP 5613 at PROFIBUS address 4 and the OPC server (or S7 OPC, or WinCC, depending on what is in the project). The status indicator should turn green.
- From SIMATIC Manager, open the PC Station view and select PLC → Download to PC Station. This pushes the project to the PC's local database (PC Internal) so the OPC server knows which tags to read from which CPU slot.
- Verify with Start → SIMATIC → SIMATIC NET → Commissioning PC Station → Diagnostics that CP 5613 is Active and the OPC server has reached Running state.
- Use OPC Scout (Start → SIMATIC → SIMATIC NET → OPC Scout) to add an OPC item, e.g.
S7:[CPU1]DB1,W0. The quality flag must showGood. - Repeat steps 1–7 on PC Station 2 and PC Station 3, importing the corresponding
PC2.xdbandPC3.xdbfiles. No additional CPU download is required — the project is already complete.
Working with XDB Files
The .xdb file is a serialised snapshot of HW Config for a single PC station. It is produced by SIMATIC Manager → PC Station → Save as XDB and is imported by the Station Configurator on the target machine.
| Step | Where | Action |
|---|---|---|
| 1. Author | Engineering PC | In the project, open the PC station, build HW Config, then Station → Save as XDB |
| 2. Distribute | File share / USB | Copy PCn.xdb to the target PC's project folder |
| 3. Import | Target PC | Station Configurator → Import → Station |
| 4. Download | Target PC | SIMATIC Manager → PLC → Download to PC Station (with S7ONLINE = PC Internal) |
| 5. Activate | Target PC | Restart the Station Configurator service so the OPC server binds to the new configuration |
Baud Rate and Cabling Planning
Use the following inequality to size the bus for a given segment length and number of devices. The PROFIBUS-DP standard (IEC 61158 / EN 50170) defines the maximum stub length as a function of baud rate.
Lsegment ≤ Lmax(baud)
Lstub ≤ Lstub_max(baud)
| Baud | Lmax segment | Lstub_max (per stub) | Recommended? |
|---|---|---|---|
| 9.6 kbit/s | 1 200 m | ... | For very long legacy segments only |
| 19.2 kbit/s | 1 200 m | ... | Slow, useful during commissioning for diagnostics |
| 45.45 kbit/s | 1 200 m | ... | S7-200 default |
| 93.75 kbit/s | 1 200 m | ... | For HMI segments with S7-200 |
| 187.5 kbit/s | 1 000 m | ... | S7-300 default in many projects |
| 500 kbit/s | 400 m | 20 m | Balanced for typical plants |
| 1.5 Mbit/s | 200 m | 6.6 m | Recommended for new plants with CP 5613 |
| 3 Mbit/s | 100 m | 0 m | No stubs allowed |
| 6 Mbit/s | 100 m | 0 m | No stubs allowed |
| 12 Mbit/s | 100 m | 0 m | No stubs allowed; tight cable discipline |
For a commissioning environment where a service laptop will be tapped in and out of the bus through the PG port, stay at or below 1.5 Mbit/s so the stub stays within the 6.6 m budget.
OPC Server Verification
- Open OPC Scout on the PC station. Create a new group named e.g.
Verify_Group. - Add an OPC item:
S7:[S7 connection_1]DB1,W0. The connection name is the one defined in NetPro → S7 Connections. - Right-click the item, Active. The value field populates and the quality becomes
Good (0xC0). - Force a value from the CPU side (VAT or watch table) and confirm the value updates in OPC Scout within the configured update interval (default 100 ms, configurable per S7 connection in NetPro → Properties → S7 Connection → Special Properties).
- If the quality remains
Bad (0x00), the S7 connection has not been compiled. Re-open NetPro, PLC → Compile and Check All, then re-download to the PC station.
Verification Matrix
| Check | Tool | Pass Criterion |
|---|---|---|
| Both CPUs reachable | Accessible Nodes | Both addresses (2 and 3) appear with green status |
| Bus error rate | Bus Diagnostics in STEP 7 | 0 faults per 1000 messages, 0 repeats, 0 lost frames |
| CP 5613 active | Station Configurator → Diagnostics | CP 5613 = "Active" on every PC station |
| OPC items good | OPC Scout | Quality byte = 0xC0 (Good) for every test item |
| CPU in RUN | SIMATIC Manager → Online → Module Information | Operating state = RUN, no diagnostic interrupts |
| Terminator power | Ohm meter / visual LED | Each end-node terminator LED is lit (on connectors that have one) |
Troubleshooting Matrix
| Symptom | Likely Cause | Action |
|---|---|---|
| "Node not reachable" on first CPU download | S7ONLINE set to PC Internal instead of CP 5613 MPI | Switch S7ONLINE to CP 5613 MPI and retry |
| CPU boots, then "Interface failure" SF LED | Bus parameters inconsistent (Standard profile vs DP) | Set all PC stations to the same bus profile |
| CRC error bursts on the bus | Terminator not powered, unshielded cable run, or EMI | Verify terminator switches, re-crimp with Fast Connect, separate from VFD cables |
| OPC Scout items remain Bad | S7 connection not compiled or wrong slot | NetPro → Compile and Check All, re-download to PC station |
| CP 5613 yellow in Station Configurator | Driver not registered, or wrong XDB | Reinstall SIMATIC NET, re-import the XDB |
| One CPU works, the other does not | Address conflict (two nodes with the same PROFIBUS address) | Verify with Accessible Nodes, correct HW Config |
| Download hangs at 50 % | Terminator ON at a middle node | Walk the bus, set termination OFF on every non-end node |
Common Field Pitfalls
- Setting the PG/PC interface to the wrong CP 5613 mode. CP 5613 MPI and CP 5613 PROFIBUS are two distinct entries in the device list. The download dialog uses S7ONLINE, but a separate CP 5613 PROFIBUS access is used by NCM PC. Verify both before starting.
- Forgetting to re-power the segment after reconnecting a node. A connector inserted while the bus is live can present a stub impedance that briefly destabilises the segment.
- Using the S7-200 PPI cable instead of a PROFIBUS cable. The PPI cable is MPI-compatible but does not support 1.5 Mbit/s reliably for first-time CPU download.
- Leaving the default MPI address (0) and the project's address (2) in conflict. If the CPU's MRES is not performed, the previous project may still be active and will reject a download from a different source address.
- Importing the wrong XDB. All PC stations in the project have similar filenames; confirm the PC Station → Properties → Name matches the physical PC before importing.
Post-Commissioning Hardening
- Lock the bus profile in HW Config (Properties → Network → Settings → Do not participate in bus parameter negotiation). This prevents a rogue PG from changing slot times.
- Document every node's address and a sketch of the cable run in the project's
Documentationfolder. - Take a baseline of bus diagnostics (Statistics → Save) and archive it with the project.
- Set the OPC server's update interval to the application requirement (typical 100–500 ms for SCADA, 10–50 ms for tight control loops).
- Schedule a 24 h soak test with the diagnostic counters running; the failure curve (faults/1000 messages vs time) is the best early indicator of connector or cable degradation.
FAQ
Why must the first CPU download go over MPI when the port is labelled MPI/DP?
The combined MPI/DP port starts in MPI mode at power-on. The moment you load a hardware configuration that activates PROFIBUS, the port switches to DP. The next download will then fail over MPI because DP slaves do not respond to class 1 master MPI requests. The first download must therefore be done with S7ONLINE = CP 5613 MPI.
Can I use the CP 5613 MPI access point to talk to a CPU that is already a DP slave?
No. The MPI access point sends MPI frames, which the DP slave port will not service. Switch S7ONLINE to CP 5613 PROFIBUS for any online function on a CPU whose port has been activated as DP.
Do I have to repeat the CPU download on every PC station?
No. The hardware configuration is part of the STEP 7 project. Once CPU 1 and CPU 2 are loaded, every PC station that opens the same project (and imports the right XDB) sees the same CPU data blocks and S7 connections.
What baud rate should I choose for a plant with VFD noise and 150 m of cable?
1.5 Mbit/s is the safe maximum. It supports 200 m segments and tolerates 6.6 m stubs, which is enough for occasional PG tapping. Stay below this only if the bus diagnostics show non-zero repeat rates or if the VFD vendor mandates 500 kbit/s.
What is the difference between Standard and DP / FMS Universal bus profiles?
Standard allows S7-200 slaves and PG-class devices, with longer slot times. DP / FMS Universal tightens the timing for pure DP networks, which improves noise immunity on plant floors with VFD interference. Use Standard during commissioning, then switch to DP / FMS Universal after all nodes are online and stable.
Why does my OPC server stay in Stopped state after importing the XDB?
The Station Configurator and the OPC service read the XDB at startup. If the XDB is imported but the service is not restarted, the OPC server holds the previous (empty) configuration. Restart the Station Configurator service or reboot the PC. The status indicator must turn green and OPC Scout must read Good quality before declaring the station live.