Troubleshooting WinCC Communication with VIPA 315-2AG23 PLC

David Krause12 min read
SCADA ConfigurationSiemensTroubleshooting
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

Problem Overview

A hydro power plant SCADA installation runs four Siemens SIMATIC S7-315-2 DP CPUs (MLFB 6ES7 315-2AF01-0AB0) connected to a WinCC HMI server over MPI using a CP5611 communication processor on the engineering station. After one CPU was swapped for a VIPA 315-2AG23 (a third-party S7-300 drop-in replacement, sometimes marked with the Siemens-styled MLFB 6ES7 317-2AK14-0AB0 in distributor catalogs), the new controller enters RUN with no diagnostic LED indication, but the WinCC station cannot establish a connection. The PLC does not appear in the S7 channel diagnostic tree and the user program is not being polled.

This article documents the field-proven diagnostic sequence for separating hardware-fault, configuration, and protocol-resource causes when a non-Siemens CPU is dropped into a Siemens SCADA topology.

Affected Components and Versions

Component MLFB / Catalog Number Role Notes
Siemens CPU (original) 6ES7 315-2AF01-0AB0 S7-315-2 DP, integrated MPI/DP 24 work memory, integrated PROFIBUS DP master/slave
VIPA CPU (replacement) VIPA 315-2AG23 S7-300 form-factor, Speed7 core NOT a Siemens product despite VIPA's Siemens-style ordering code
Siemens CP5611 6GK1 561-1AA01 PCI MPI/PROFIBUS card Max 12 MPI nodes, 187.5 kbps default
WinCC V7.x (typical for legacy hydro plants) SCADA server Uses S7 Protocol Suite channel
Vendor warning: The VIPA 315-2AG23 is manufactured by VIPA GmbH (now part of Yaskawa). Although it shares the S7-300 mechanical and most electrical characteristics, it is not a Siemens product. Siemens STEP 7 / TIA Portal hardware catalogs may accept the VIPA GSD or hardware support package, but the diagnostic addresses, the integrated MPI/DP interface firmware, and the OB / SFC behavior are not bit-identical to a Siemens 315-2. Treat it as a separate vendor with its own firmware, support package, and GSD.

Root Cause Analysis

There is no single cause for "RUN LED is on, WinCC cannot connect." The failure tree must be walked top-down. The five most common root causes observed when a VIPA is dropped in for a Siemens 315-2 in a CP5611/MPI WinCC topology are:

  1. MPI address collision or default mismatch. The VIPA may default to MPI address 2 or 0, not the address STEP 7 was projecting (typical hydro-plant scheme uses 8). The CP5611 may already be holding that address on the engineering PC side.
  2. Slot number mismatch. WinCC expects Rack 0 / Slot 2 for a S7-300 CPU. Some VIPA speed7 cores respond to slot 3 or 2 depending on the support package revision.
  3. Baud rate mismatch. CP5611 must match the CPU's MPI bus profile. The VIPA's highest MPI station address and bus baud rate are independent registers; the default 187.5 kbps is correct, but if the project was raised to 1.5 Mbps the VIPA must be set the same way.
  4. OP/PG communication resources exhausted. The CPU has a fixed budget of connection resources for PG/OP (S7-300: max 12 OP connections). Each WinCC channel opens one resource; once a VIPA is configured with too many simultaneously active S7 connections (PG, OP, S7-basic, S7-PG, S7-HMI), the 12th connection attempt returns an S7 protocol error.
  5. Access point of the CP5611. WinCC's S7 channel must be bound to S7ONLINE -> CP5611(MPI) rather than the soft-net card. If a soft MPI or a different physical port is selected, the channel will not open the bus and no error code is reported in the tag list itself — only in the channel diagnosis.

Step-by-Step Diagnostic Procedure

1. Verify physical layer and bus topology

  1. Open Set PG/PC Interface from the Windows Control Panel (on the engineering station).
  2. Select CP5611(MPI) -> S7ONLINE as the access point assignment.
  3. Click Properties, confirm Transmission rate = 187.5 kbps and Highest MPI address = 31 (default).
  4. Click Diagnostics. The MPI network panel must list the live stations. The Siemens 315-2 nodes should appear with their configured addresses; the new VIPA node should also be visible with its actual MPI address (commonly 1 or 2 by default). If the VIPA is not listed, the bus is open or the VIPA's MPI address is outside the scan range.
  5. On the VIPA side, lift the cover over the MPI X1 port. The 9-pin D-sub should be wired identically to the Siemens CPU (pin 3 = data B, pin 8 = data A). Do not add a 24 V terminator; the MPI bus uses passive 220 Ω terminators at both physical ends only.

2. Verify the CPU's MPI address

The Siemens CPU used in the project is set to MPI address 8. The VIPA may ship with 1 or 2. Use the VIPA CPU's mode selector (the small rotary switch on the front) to set the address, or use the VIPA SPEED7 tool / the VIPA entry in STEP 7 hardware catalog to push the configuration. Validate with Set PG/PC -> Diagnostics that the VIPA now reports as Address 8.

If two nodes share MPI address 8 (for example, the engineering PC's CP5611 also defaults to address 8 in older firmware), the bus will produce intermittent 0x31A0 errors. Re-assign the CP5611 to a non-conflicting address (typically 0 or 1) in Set PG/PC Interface -> CP5611 Properties -> MPI Address.

3. Verify the slot number in the WinCC project

Open the WinCC Explorer, navigate to the S7 channel driver, and open the connection properties for the affected PLC. The expected value is:

Station Address = MPI:8
Rack = 0
Slot = 2

For S7-300 the slot is always 2. For S7-400 the slot varies. The VIPA Speed7 core normally responds at slot 2, but in some VIPA support-package revisions slot 3 is required. If you are unsure, run the WinCC Channel Diagnosis tool (Start -> Programs -> Siemens Automation -> WinCC -> Tools -> Channel Diagnosis) and read the projected connection string.

4. Read the S7 channel error code

The hex string reported by the user in the source thread — ProjectedConnectionAddress MPI,8 0,,0,3,02 — must be parsed as bus = MPI, station = 8, rack = 0, slot = 2 (the trailing 0,3,02 decode to connection type=0 (S7), resource=3, slot=02). The fact that the project string is present means WinCC does know about the connection; the failure is at the physical link. Pull the full last-error hex code from:

C:\Program Files\Siemens\Automation\WinCC\Diagnose\S7Protocol\S7ConnXX.log

and from the WinCC Channel Diagnosis scroll-down panel. Common error codes in this scenario are listed in the table below.

Hex code Meaning Typical fix
0x0001 Connection already established Cycle the S7 connection; check for duplicate WinCC projects
0x00FF Bus hardware fault (CP5611 not seated, cable broken, terminator missing) Re-seat card, replace PROFIBUS cable, check 220 Ω at both ends
0x000A / 0x000B Connection resource exhausted on CPU Increase OP/PG connections in CPU properties (see §6)
0x0030 / 0x0031 Bad rack/slot or unknown station address Recheck slot = 2 for S7-300, fix MPI address
0x31A0 / 0x31A1 MPI address conflict / duplicate station Re-assign CP5611 to address 0 or 1
0xE0FE CPU in STOP or unreachable Verify RUN LED; check SFC51 / SZL readback

5. Increase the CPU's communication resources

In STEP 7, open the VIPA's hardware configuration (after installing the VIPA HSP — Hardware Support Package — supplied by VIPA). On the CPU properties dialog, select the Communication tab. The default is:

PG communication: 1 (or 2)
OP communication: 1 (or 2)
S7 basic communication: 0

Raise OP communication to 4 if WinCC has more than one S7 connection opened against this CPU, and raise PG communication to 2 if the engineering station also uses NetPro / STEP 7 online. Total S7 connection resources on the 315-2 class is 12, so do not over-allocate.

6. Force the bus to a known-good baud rate

The default WinCC CP5611 MPI profile uses 187.5 kbps. If the project was raised to 1.5 Mbps at some point in the past, the VIPA's Bus parameters register must match. From STEP 7: PLC -> Properties -> MPI Interface -> Properties -> MPI Bus, set Transmission Rate to the same value as the CP5611. Both ends must match exactly; there is no auto-negotiation on MPI.

Compatibility Matrix: Siemens vs. VIPA 315-2AG23

Function Siemens 6ES7 315-2AF01-0AB0 VIPA 315-2AG23 Notes
Form factor / footprint S7-300 S7-300 (pin-compatible) Direct mechanical drop-in
Integrated MPI interface Yes, X1 Yes, X1 Both use 9-pin D-sub, same pinout
Integrated DP interface Yes, X2 (DP master/slave) Yes, X2 (DP master/slave) GSD may differ for slaves
STEP 7 hardware catalog Native entry Requires VIPA HSP Install VIPA HSP before HW config
OP/PG connections Up to 12 Up to 12 (firmware-dependent) Match WinCC OP reservation
MPI default address 2 2 (VIPA), 1 (some older FW) Verify before powering bus
Slot (WinCC addressing) 2 2 (typical) / 3 (older FW) Re-check if error 0x0030 appears
PROFIBUS DP master Yes Yes, but master stack is VIPA's DP-V0 only on VIPA classic, DP-V1/V2 optional

Verification Procedure

  1. After applying the fixes, re-run Set PG/PC Interface -> Diagnostics; the VIPA must appear with the correct MPI address.
  2. Open the WinCC project, deactivate and re-activate the runtime; the S7 connection status icon should change from disconnected to connected within 30 s.
  3. In the WinCC Channel Diagnosis, the Connection Status column must read OK and Last Error must be empty (or 0x0000).
  4. Force a tag update from the VIPA (e.g., a counter or a hand-acked input); verify in the Tag Management -> Simulation view that the value changes.
  5. Trigger a simulated S7 connection loss by unplugging the MPI connector; verify that WinCC reports a quality code of bad on the affected tags within one polling cycle (typical WinCC cycle is 1 s for fast tags, 5 s for standard).
  6. Reconnect the MPI cable; the connection must auto-recover without restarting the WinCC runtime.

Advanced Diagnostics and Edge Cases

SoftMPI vs. CP5611

On Windows 7 / 10 64-bit installations, the soft MPI driver (the virtual adapter that ships with SIMATIC NET) can be auto-selected by Windows when the CP5611 is installed. If the WinCC S7 channel is bound to SoftMPI instead of CP5611(MPI), every connection attempt will time out because the soft adapter is not a physical bus participant. Lock the access point with Set PG/PC Interface -> CP5611(MPI) -> S7ONLINE as the only enabled selection.

VIPA firmware revision sensitivity

The VIPA 315-2AG23 firmware revision (visible in the diagnostic buffer as the Module identification) determines which MPI bus parameters it accepts. Revision 3.x and later are fully WinCC V7 compatible. Revision 1.x / 2.x may interpret the WinCC S7 connection request as a PG request, not an OP request, and refuse the connection. Use the VIPA SPEED7 Tool to update the firmware to the latest 3.x revision before further troubleshooting.

Connection resource accounting

The total S7-300 connection budget is the sum of PG + OP + S7 basic + S7 routed. WinCC's S7 channel opens one OP connection per configured S7 connection. If the project has two S7 connections to the same VIPA (for redundancy, for example), two OP resources are reserved. The S7 connection diagnostic in the channel diagnosis lists the actual Resource ID of each open connection; if a Resource ID collides with a STEP 7 online session, WinCC will get 0x000A.

PROFIBUS DP interaction

If the VIPA is also used as a DP master and any DP slave drops off the bus, the CPU's OP communication resources can be temporarily blocked. Check the VIPA's diagnostic buffer (open with STEP 7 -> PLC -> Module Information -> Diagnostic Buffer) for DP errors before attributing the WinCC loss to WinCC itself.

Field-Commissioning Checklist

Item Pass / Fail criteria
MPI bus terminated at both ends with 220 Ω Resistance between pins 3 and 8 = 110 Ω (two 220 Ω in parallel)
CP5611 access point bound to S7ONLINE Set PG/PC Interface shows CP5611(MPI) as the only access
CP5611 MPI address not conflicting with VIPA Engineering PC and VIPA on different addresses
VIPA MPI address matches WinCC project Project says 8, VIPA reports 8 in Set PG/PC Diagnostics
WinCC slot = 2 for S7-300 Connection properties show Slot 2
VIPA OP resources >= number of WinCC connections OP resources = 4 minimum for 2-channel WinCC
VIPA firmware revision 3.x or later Reported in module information
WinCC version V7.x or later V6.x is end-of-life and has known VIPA incompatibilities
S7Protocol suite log clean of 0x00FF / 0x000A errors Last-error column reads 0x0000

Standards and Reference Documents

FAQ

Is the VIPA 315-2AG23 a drop-in replacement for the Siemens 6ES7 315-2AF01-0AB0?

Mechanically and electrically yes, but the VIPA is not a Siemens product. It is a third-party S7-300 form-factor CPU with its own firmware, its own hardware support package for STEP 7, and its own PROFIBUS / MPI bus stack. WinCC integration requires that the VIPA's MPI address, slot, and OP connection count match the WinCC project exactly.

Why does the new CPU enter RUN but WinCC still cannot connect?

RUN state means the user program is executing on the CPU; it does not guarantee that an external S7 OP / PG connection is established. The four most common causes are a wrong MPI address (VIPA defaults to 1 or 2, project expects 8), a wrong slot (WinCC expects 2 for S7-300), a CP5611 access point bound to a different adapter, or OP connection resources exhausted (default is 1, raise to 4 for multi-channel WinCC projects).

What is the default MPI baud rate between CP5611 and an S7-300?

187.5 kbps. If the project has been raised to 1.5 Mbps in the past, the VIPA's MPI bus parameters register in STEP 7 must be set to the same value. MPI has no auto-negotiation; both ends must match exactly.

How do I read the S7 protocol error code from the WinCC channel diagnosis?

Open Start -> Programs -> Siemens Automation -> WinCC -> Tools -> Channel Diagnosis, scroll down past the connection list to the Last Error column. The four-digit hex code is also written to C:\Program Files\Siemens\Automation\WinCC\Diagnose\S7Protocol\S7ConnXX.log. Common codes are 0x00FF (bus hardware fault), 0x000A (CPU resource exhausted), 0x0030 (wrong slot), and 0x31A0 (MPI address conflict).

How many OP / PG connections does the VIPA 315-2AG23 support?

The S7-300 class budget is 12 total connection resources, shared between PG, OP, S7 basic, and S7 routed. The VIPA firmware exposes the same 12-resource budget as the Siemens 315-2. Allocate at least 2 PG and 4 OP if WinCC opens two S7 connections to the same VIPA, and avoid exceeding 10 total in a heavily-tagged project.

Back to blog