1. Problem Description
The "no valid connection" message is the single most common error reported while configuring Global Data (GD) in NetPro on STEP 7 V5.x (SIMATIC Manager). The error appears either when the user clicks the Select... button in the GD table to pick a connection partner, or when a download of the configured PC station / S7 station is rejected with a similar message. The symptom is consistent across mixed CPU pairings, for example CPU 315-2 PN/DP (6ES7315-2EH14-0AB0) and CPU 314 (6ES7314-1AG14-0AB0), and across all firmware levels that support Global Data.
Unlike a normal S7 connection, Global Data does not require a manually entered S7 connection object in NetPro first. The GD mechanism is implemented directly on top of the MPI/DP layer, which is why STEP 7 expects the connection partner to be discovered from the stations on subnet list rather than from a user-created S7 connection. When no partner is listed, the root cause is almost always one of the following:
- Partner CPU is not placed in the same MPI subnet (or PROFIBUS subnet, when applicable).
- Partner CPU is not configured as a GD participant.
- CPU type or firmware does not support Global Data on the selected interface.
- STEP 7 project has not been compiled, or only one side of the project is open.
- Wrong STEP 7 version for the CPU firmware (CPU newer than STEP 7 knows).
2. Global Data Architecture and Protocol Boundaries
Global Data is a cyclic broadcast of up to 8 packages per GD circle, with a configurable transmission rate of 1 through 255. The maximum user payload per package is 22 bytes for an S7-300 sender and 16 bytes for an S7-400 sender. Each GD circle may contain up to 15 stations when configured over MPI, and up to 32 stations over PROFIBUS (subject to bus parameters).
GD is implemented on the following bus media:
| Bus type | GD supported | Notes |
|---|---|---|
| MPI | Yes (primary) | Default for S7-300 GD configuration. |
| PROFIBUS DP (on the DP interface of an S7-300 with FW 2.0+) | Yes | Requires that the interface is operated as DP master, not as DP slave. |
| PROFINET (PN interface) | No | CPU 315-2 PN/DP cannot be a GD sender/receiver over its PN port. |
| Ethernet CP (CP 343-1, etc.) | No | Use S7 communication or OUC instead. |
GD packages are sent without acknowledgement and without any application-layer retry. The receiving CPU updates the configured receive area only on receipt of a fresh frame. STEP 7 therefore tracks a scan time and an ST (status) bit per receive package; the status bit clears if the frame is missed within the configured scan time multiplied by the configured scan rate.
3. Hardware and Firmware Prerequisites
Confirm the actual catalog (MLFB) and firmware of every CPU that should participate in the circle. The order number printed on the front of the module must match what is installed in HW Config. Open HW Config → right-click CPU → Object Properties → Diagnostic Buffer to read the firmware version that STEP 7 sees.
| CPU | Typical MLFB | GD over MPI | GD over DP | Recommended FW |
|---|---|---|---|---|
| CPU 314 | 6ES7314-1AG14-0AB0 | Yes | No (no DP port) | V3.3 |
| CPU 315-2 PN/DP | 6ES7315-2EH14-0AB0 | Yes (X1 MPI/DP set to MPI) | Yes (X1 MPI/DP set to PROFIBUS) | V3.3 |
| CPU 315-2 DP | 6ES7315-2AF03-0AB0 | Yes | Yes | V2.6+ |
| CPU 317-2 PN/DP | 6ES7317-2EK14-0AB0 | Yes | Yes | V3.6+ |
| CPU 319-3 PN/DP | 6ES7319-3EL00-0AB0 | Yes | Yes | V3.2+ |
The DP interface of the CPU 315-2 PN/DP is X1 (combined MPI/DP). On delivery it is set to MPI. To use GD over PROFIBUS, open HW Config → CPU 315-2 PN/DP → MPI/DP interface → Properties → Interface: PROFIBUS. Once changed, the CPU must be recompiled and downloaded; otherwise the online view of the interface will still report MPI and the GD table will be empty.
4. Software Prerequisites
| Component | Minimum | Recommended for new work |
|---|---|---|
| STEP 7 (SIMATIC Manager) | V5.3 SP3 | V5.6 + HF7 or later |
| Service Pack for CPU 315-2 PN/DP | SP for FW V3.3 | Latest HSP for FW V3.3 |
| NCM PC / S7-PCT | Optional | Not required for GD |
| Siemens Automation License Manager | Present | Present |
STEP 7 V5.6 supports the full line of S7-300 CPUs including the latest firmware variants of CPU 315-2 PN/DP. If a CPU in the rack is newer than the installed STEP 7 version, the module will appear as "unknown CPU" in HW Config, and the GD table will refuse to list it. Install the matching Hardware Support Package (HSP) before continuing; the HSP is delivered as a self-extracting archive and is loaded into HW Config via Options → Install HW Updates.
5. Configuration Order That Prevents the Error
STEP 7 must encounter the partner station during project compilation. If the order is wrong, the GD dialog can compile without errors but no connection partner will be offered. The order below is the only order that reliably exposes a valid partner for a CPU 315-2 PN/DP / CPU 314 combination.
- Insert both stations in the S7 project: SIMATIC 300 Station for the CPU 314, and a second SIMATIC 300 Station for the CPU 315-2 PN/DP.
- Open HW Config on each station, insert the CPU with the correct MLFB and firmware.
- Configure the MPI/DP interface of each CPU with the same Subnet and the same Transmission Rate (default 187.5 kbit/s). Set the MPI address of the CPU 315-2 PN/DP to 2 and the CPU 314 to 3, or whatever addresses are free on the plant MPI bus.
- Save and compile each HW Config (Station → Save and Compile).
- Open NetPro from SIMATIC Manager (Options → NetPro or click the Network button on the toolbar).
- Verify in NetPro that both CPU icons sit on the same MPI subnet. If one is on a different subnet or has no subnet at all, drag it onto the MPI subnet line, or right-click the CPU and Insert New Connection to add a virtual S7 connection that anchors the CPU to the subnet.
- Open the GD table: Options → Define Global Data.
- Fill the GD table with the desired send/receive assignments.
- Compile the GD table (GD Table → Compile). The Save and Compile All button (Ctrl+F9) compiles both HW Config and NetPro/GD together; this is the safer option.
- Download to both CPUs.
6. Step-by-Step: Building the GD Table Correctly
The following sequence is the minimum reproducible procedure on a PC with STEP 7 V5.6 SP1, a CPU 314 (FW 3.3) and a CPU 315-2 PN/DP (FW 3.3) connected via MPI at 187.5 kbit/s.
- In the SIMATIC Manager project tree, select the S7 Program or the SIMATIC 300 Station object, then Options → Define Global Data. The empty GD table opens.
- Click the first row under CPU (the leftmost column). The CPU that owns the current S7 program is preselected.
- Click the second column, Send / Receive. The dialog GD Elements: Choose CPU opens. All CPUs of the same project that are on the same MPI subnet are listed here.
- Pick the partner CPU. If the partner CPU is greyed out, the project is not compiled, the partner is on another subnet, or its CPU does not have GD configured in its object properties.
- Click the row label, R (Receive) or S (Send), and toggle the direction. For a receive, click in the Address column and enter a DB or bit-memory address, e.g.
DB1.DBD0for 4 bytes orM0.0 BYTE 1for one byte. STEP 7 will accept absolute addresses and symbol names from the symbol table. - Add the corresponding row in the partner CPU (second station in the table). The send address of CPU A and the receive address of CPU B are independent; they are not paired by STEP 7.
- Set the Transmission Rate for the circle: 1 through 255. Value 1 is "every cycle", higher values are skip counters. A safe default for control loops is 8; for status broadcasts, 16 or 32 is fine.
- Set the Scan Rate for receive packages (1 through 255). The receiver clears the status bit if no new frame has been received within Scan Rate × Transmission Rate × OB1 cycle time. A scan rate of 3 is a good starting value.
- Click GD Table → Compile (or the toolbar icon). The Status Bar should read No errors.
- Download the configured data: PLC → Download to Target System → All Stations on Subnet. The download dialog lists every station that is reachable. Confirm with the password if the CPUs are write-protected.
6.1. Configuration Parameters at a Glance
| Parameter | Range | Default | Effect on "No Valid Connection" |
|---|---|---|---|
| GD circle number | 1 to n | 1 | Not relevant to the error. |
| Max packages per circle | 8 (S7-300 send), 4 (S7-400 send) | 8 | Compilation aborts if exceeded. |
| Max bytes per package | 22 (S7-300 send), 16 (S7-400 send) | 22 | Compilation aborts if exceeded. |
| Max stations per circle | 15 (MPI), 32 (DP) | 15 | Lowered by bus load. |
| Transmission rate | 1 to 255 | 1 | Affects scan timing, not connectivity. |
| Scan rate | 1 to 255 | 3 | Status bit reset cadence. |
7. Why the Error Is Reported as "No Valid Connection"
GD does not use the S7 connection object, so the Select... dialog in the GD table does not list existing S7 Connections. It walks the NetPro subnet topology and offers any CPU that satisfies three conditions:
- It is part of the same STEP 7 project and not greyed-out (i.e., not a CPU that is unconfigured or off-subnet).
- Its interface object has Global Data enabled. This is on by default for every S7-300 CPU, but can be turned off in HW Config → CPU → Properties → Global Data tab.
- It has at least one free GD receive or send slot in the current circle.
When Select... shows "no valid connection", condition 1 is normally the one that fails. STEP 7's phrasing is a translation of the German original Keine gültige Verbindung, which dates back to STEP 7 V3 and predates the unified Select dialog of STEP 7 V5. The wording was kept for compatibility; the actual condition is "no CPU on this subnet has a free slot".
8. Root Cause Matrix
| # | Observed symptom | Root cause | Resolution |
|---|---|---|---|
| 1 | Select dialog is empty for partner CPU 314 when configuring GD on CPU 315-2 PN/DP. | CPU 315-2 PN/DP is on the PROFINET subnet, not the MPI subnet. | Move the CPU 315-2 PN/DP MPI/DP interface (X1) to the same MPI subnet as the CPU 314. Recompile. |
| 2 | Partner is greyed out, not absent. | Global Data flag disabled in CPU object properties. | Open CPU properties in HW Config, check Use CPU for Global Data communication. Save and recompile. |
| 3 | Partner shows but download reports "No valid connection". | Target CPU firmware is newer than STEP 7 knows. | Install the matching HSP and update the CPU in HW Config. Repeat Save and Compile All. |
| 4 | Compilation reports 0 errors, but online the GD circle is empty. | Project not downloaded to one of the two stations. | Use PLC → Download → All Stations on Subnet and confirm both CPUs accept the configuration. |
| 5 | GD package does not arrive; status bit toggles between 0 and 1. | MPI address conflict; two stations have the same address. | Use Accessible Nodes in the SIMATIC Manager to enumerate MPI addresses. Reassign duplicates. |
| 6 | CPU 314 accepts the configuration but the 315-2 PN/DP rejects it with SF LED. | Different transmission rates on the two interfaces. | Set both MPI/DP interfaces to 187.5 kbit/s. Higher rates (1.5 Mbit/s, 12 Mbit/s) require PROFIBUS cabling rules. |
| 7 | No valid connection appears when a CP (e.g., CP 342-5) is used as the DP master. | The CPU is in DP slave mode on the relevant interface. | GD runs only when the CPU itself is the DP master on that subnet. Reconfigure, or move GD to a different interface. |
| 8 | GD worked on bench; fails after field installation. | Cable length, bus termination, or repeater missing. | Inspect bus termination (two 220 Ω resistors at the ends). Check cable length and repeater location. |
9. Verification Procedure
After the configuration is downloaded, the engineer should validate the GD circle both online in STEP 7 and from the user program. The minimum verification set is the following.
- In the GD table, click View → Scan Rates. Each row has a small indicator: a green check mark means data has been received within the configured scan rate, a red cross means the receiver has not seen a fresh frame. A red cross at the receiver with a green check at the sender indicates one-way bus trouble (cable, termination, or address).
- Open the Module Information on the receiver CPU (PLC → Module Information). The Communication tab lists the number of GD errors. A non-zero value with green checks in the GD table indicates that the receiver was offline during some scans; the error count is the only persistent record.
- From the user program, read the status bit that STEP 7 generates for each receive package. The bit is part of the GD_STATUS data block. A simple OB1 segment is enough:
A DB100.DBX 0.0 // status bit of GD package 1 = M 10.0 // status of incoming GD JC ok S M 11.0 // flag: GD failed BEU ok: R M 11.0 - Read the last received byte stream from the configured receive area and compare to the data the sender is generating. A difference in length or in structure means a mismatch in package definition; the GD protocol does not carry any header that would align the data for you.
- Stop the receiver CPU. The sender must continue to broadcast, and the error counter must increment. This confirms that the sender is broadcasting and not simply echoing back. Bring the receiver back online; the green check mark should return within Scan Rate × Transmission Rate OB1 cycles.
10. Online Diagnostics with STEP 7
Beyond the GD table itself, STEP 7 exposes the live bus state. The most useful diagnostic actions in the order they should be attempted are:
- Accessible Nodes on the PG/PC interface. This enumerates every station on the currently selected MPI/PROFINET subnet. If the partner CPU is not listed here, the bus itself is the problem, not STEP 7.
- PLC → Module Information → Memory → Communication. The number of GD send/receive errors and the current state of the GD protocol are visible here. A persistent error count on the receiver that grows on every scan means the partner is not in the circle.
- Module Information → Diagnostic Buffer. Look for entries with Event ID 0x39xx and 0x3Axx (GD-specific events on S7-300). These are documented in the SIMATIC S7-300 CPU 31xC and CPU 31x: Diagnostic Buffer entry.
- On a CPU 315-2 PN/DP, the SF LED is lit only if a permanent error is present. A flashing SF LED at 0.5 Hz with a single configured GD circle typically means a partner CPU has been removed from the bus. The diagnostic buffer will record this with Event ID 0x3931 ("GD package failure") and the address of the missing station.
11. Migration Considerations: TIA Portal and S7-1500
If the project is being migrated to TIA Portal, or if a S7-1500 is replacing the S7-300, the Global Data concept does not carry over. The migration options are:
- S7-1500 to S7-300: S7-1500 does not support GD. Replace the GD circle with S7 connection PUT/GET blocks in the S7-300 and an S7 client in the S7-1500.
- Both S7-300 in TIA Portal: TIA Portal does not support GD directly, but the legacy S7-300 station can be re-imported and the GD table kept in the SIMATIC Manager project, side-by-side with the TIA Portal project. This dual-tool approach is officially supported as long as the TIA Portal side does not touch the S7-300 stations.
- Both S7-300 in classic STEP 7 V5.6: No change. Stay with the current toolchain.
12. Edge Cases and Field-Proven Caveats
- GD across two MPI segments bridged by an S7-400. Not supported. The router forwards S7 connections but terminates GD.
- GD when one CPU is in RUN and the other is in STOP. The sender will continue to broadcast; the receiver, when restarted, will not accept the configuration until the sender has been downloaded at least once.
- GD and S7 connection coexistence on the same MPI bus. Supported. The S7 connection does not consume GD resources. The GD protocol uses different SAPs (Service Access Points) and does not interfere with S7 communication.
- GD on a CPU in a non-local rack (extension rack). The receive area must be in the process image or in a DB that resides in the load memory of the receiver. The compiler accepts M, I, Q, DB, and PI/PQ areas. The S7-300 restricts M to the first 256 bytes and DBs to 1 through 255 (size up to 16 KB on most CPU 31x variants).
- GD with timestamped data. The GD frame does not carry a timestamp. The user program must add a timestamp using the receiver's local time if cross-station order matters.
- Hot-swapping a CPU. After replacing a CPU 314 with a CPU 314 of the same MLFB but newer firmware, the new CPU does not pick up the GD circle automatically. The configuration must be re-downloaded. Always mark a CPU replacement as a "trigger for full download" in the maintenance procedure.
- GD with redundant MPI cables. Not supported. If the plant requires redundancy, the architecture must change to PROFINET with S7-1500 and an S7 connection with redundancy protocol (S7-REDCONNECT), or to PROFINET with a CP 1628/CP 443-1 Advanced.
13. Commissioning Checklist
| Step | Action | Pass criteria |
|---|---|---|
| A | Inspect MPI cable and termination. | 220 Ω at both ends, no taps, max 50 m at 187.5 kbit/s. |
| B | Open Accessible Nodes. Confirm both CPUs visible. | CPU 315-2 PN/DP and CPU 314 both appear with their configured MPI addresses. |
| C | Open NetPro. Both CPU icons on the same MPI subnet. | Single MPI subnet line connects both icons; no orphan icons. |
| D | Open HW Config on each CPU. Confirm Global Data flag. | Use CPU for Global Data communication is checked. |
| E | Save and Compile All. | Status bar shows "No errors". |
| F | Download to All Stations on Subnet. | Both CPUs accept the download; no SF LED. |
| G | Verify GD table view online. | Green check on every receive row. |
| H | Run test program, observe status bits. | Status bit high; M 10.0 = 1 in OB1; M 11.0 = 0. |
| I | Stop one CPU, observe error counter. | Error counter on the running CPU increments; no SF LED on the running CPU. |
| J | Restart the stopped CPU. | GD table green checks return within 30 s. |
14. Related Siemens Documentation
- STEP 7 V5.6 - Function Manual: Global Data — the canonical reference for the GD table editor and parameter ranges.
- S7-300 CPU 31xC and CPU 31x: Installation — hardware installation rules, MPI/DP interface pinout, bus termination.
- Diagnostic Buffer: S7-300 CPU 31xC and CPU 31x — event IDs for GD errors.
- SIMATIC NET: PROFIBUS Network Manual — bus parameters, repeater rules, transmission rate selection.
15. Frequently Asked Questions
Why does the Select dialog say "no valid connection" even though both CPUs are reachable over MPI?
The Select dialog is not looking for an S7 connection object; it walks the NetPro subnet topology. The error means "no CPU on this subnet has a free GD slot". Open the CPU object properties in HW Config and confirm that Use CPU for Global Data communication is checked, then run Save and Compile All (Ctrl+F9) so the NetPro database reflects the change.
Can I use Global Data over the PROFINET port of a CPU 315-2 PN/DP?
No. Global Data is supported on MPI and on PROFIBUS (when the X1 MPI/DP interface of the CPU is set to PROFIBUS). The PROFINET port (X2) does not support GD. If the plant wiring forces the use of X2, replace the GD circle with an S7 connection and the PUT/GET instructions in the S7-300 program.
What is the maximum payload of a single Global Data package?
An S7-300 sender can send up to 22 bytes per package; an S7-400 sender is limited to 16 bytes per package. A single GD circle can contain up to 8 packages, which sets the practical upper bound for total user payload at 8 × 22 = 176 bytes per sender.
Does the receiver CPU need to be in RUN for Global Data to work?
The sender must be in RUN to broadcast, and the receiver must be in RUN to refresh the receive area. If the receiver is in STOP, the sender still broadcasts, but the configured receive area is not updated. The GD table indicator on the sender side stays green; the indicator on the receiver stays red. This is the simplest test to confirm the bus is healthy in both directions.
After replacing a CPU 314 with a new one of the same MLFB, the GD circle is empty. What happened?
The new CPU does not have the GD configuration; only the user program is restored from the memory card (if present). Run PLC → Download to Target System → All Stations on Subnet from the SIMATIC Manager, or use Save to Memory Card on the original station and reload the card in the new CPU to restore the GD configuration in one step.
Is Global Data supported in TIA Portal?
No. TIA Portal does not expose the GD table editor. The recommended replacements are S7 connection PUT/GET for cyclic data exchange, or Open User Communication (OUC) over ISO-on-TCP / TCP for buffered, event-driven data. If both stations are S7-300 and the existing GD circle is part of an installed base, keep the project in STEP 7 V5.x and let TIA Portal co-exist for the S7-1500 side of the plant.