Overview
Connecting 15 or more independent WinCC SCADA stations to a central SAP ERP for bidirectional production data exchange is one of the most common greenfield MES/SCADA integration scenarios in discrete manufacturing. The technical challenge is not a single protocol conversion but a layered architecture decision covering network segmentation, firewall placement, data aggregation topology, and licensing model. This guide consolidates the architectural choices for a Siemens WinCC V7.5 SP2 / V8.0 / V8.1 SCADA estate exchanging production orders and actuals with an SAP S/4HANA or SAP ECC backend, with emphasis on the three viable data paths: per-station WinCC Connectivity Pack, a central OPC aggregation server, or a full SIMATIC IT / Opcenter Execution MES layer.
Engineers approaching this problem typically ask two questions in sequence: (1) should the plant LAN connect directly to the office LAN or be separated by an industrial firewall and DMZ, and (2) should SAP pull data from each WinCC station individually or from a single aggregator. The answer to the first question is unconditional (always segment), and the answer to the second depends on tag count, latency targets, and licensing budget.
Problem Decomposition: Data Flows and Trust Boundaries
WinCC to SAP integration involves two asymmetric data flows that drive different architectural choices:
| Direction | Payload | Latency Target | Volume | Direction Driver |
|---|---|---|---|---|
| SAP → WinCC | Production orders, routings, bill of materials, master data, shift calendars | Minutes to hours | Low (kilobytes per order) | Pull from SAP on schedule, or push via IDoc |
| WinCC → SAP | Actual production counts, cycle times, OEE, downtime reasons, quality results | Seconds to minutes for OEE, shift-end for actuals | High (megabytes per shift across 15 stations) | Push from WinCC on event or batch boundary |
The asymmetric latency requirements mean a single monolithic interface rarely fits both flows. Plan order distribution tolerates an overnight batch or hourly poll; actuals reporting usually requires near-real-time event handling for OEE dashboards. Map each flow to the component best suited to its volume and cadence before selecting the integration middleware.
Network Segmentation: Plant LAN vs Office LAN Architecture
Plant LAN and office LAN have fundamentally different objectives. The plant network optimizes for deterministic real-time traffic, broadcast containment, and uptime; the office network optimizes for throughput, mobility, and internet access. Coupling them without a stateful inspection firewall violates the IEC 62443 zone-and-conduit principles documented in the Siemens Industrial Security compendium for PCS 7 and WinCC installations.
Recommended segmentation pattern:
- Plant zone (Level 3 of Purdue model): 15 WinCC stations, optional SIMATIC IT server, OPC aggregation server, engineering stations. Subnet isolated from corporate. Use managed SCALANCE switches with IGMP snooping and broadcast limiting enabled. Default VLAN for plant traffic.
- Industrial DMZ: Hosts the integration middleware (SIMATIC IT historian, SAP Plant Connectivity, or OPC aggregation server with dual NICs). DMZ sits between two firewalls and is reachable from neither side without explicit allow rules.
- Office zone (Level 4/5): SAP application servers, SAP HANA, SAP routers, AD, DNS, end-user workstations.
For a 15-station deployment, the minimum physical segmentation stack is:
- SCALANCE XC-200 or SCALANCE XR-500 ring in the plant (HRP or MRP redundancy).
- SCALANCE S615 or S623 industrial firewall at the plant boundary.
- DMZ switch (SCALANCE XC-200) hosting the OPC or MES server.
- Secondary perimeter firewall (or second instance of SCALANCE S in back-to-back mode) facing the office network.
- Office core switch terminating the SAP VLAN.
Firewall Selection and Industrial DMZ Design
Use a purpose-built industrial firewall rather than an enterprise firewall repurposed for the plant boundary. The Siemens SCALANCE S family (S615, S623, S627) provides DIN-rail mounting, conformal coating options, and preconfigured Siemens automation protocol filtering profiles that natively drop PROFINET, S7, Modbus TCP, and OPC Classic broadcasts at the boundary. Enterprise firewalls (Fortinet, Palo Alto, Check Point) lack DPI profiles for S7 communication and often misinterpret PROFINET frames as malformed packets, generating false positives that interrupt plant traffic.
DMZ design rules for SAP connectivity:
| Rule | Configuration | Rationale |
|---|---|---|
| Firewall #1 (plant side) | Default-deny inbound from DMZ to plant; allow only SAP-to-WinCC plan-distribution port from DMZ host IP to specific WinCC stations on configured TCP port | Prevents lateral movement if DMZ server is compromised |
| Firewall #2 (office side) | Default-deny inbound from DMZ to office; allow only WinCC-to-SAP actual-data port from DMZ host to SAP gateway host | Prevents lateral movement from plant to SAP/BW |
| DMZ host networking | Dual-NIC, no routing between NICs, host firewall (Windows Defender or Linux nftables) enabled with explicit allow list | Removes DMZ server as transit router |
| Address translation | Source NAT the WinCC actuals at firewall #1 so office sees only the DMZ host IP, not plant subnet | Hides plant topology from office IT |
| VPN or IPsec | If the office LAN is across a WAN or MPLS, terminate IPsec on firewall #2 from a SCALANCE S pair, or use the SAP router with SNC | Encrypts production data in transit |
Physical Topology
Reference topology for a 15-station WinCC estate integrating with SAP:
The DMZ is the only host reachable from both sides. Both firewalls default-deny, with explicit allow rules for the SAP RFC destination (typically TCP 33nn where nn is the SAP system number, e.g., 3300 for system 00) on the office side and the WinCC OPC UA port (default 4840) on the plant side.
Data Connectivity Options Compared
Three viable architectural patterns exist for the WinCC to SAP bridge. Each trades licensing cost against integration depth and operational complexity.
| Criterion | Option A: Per-Station Connectivity Pack | Option B: Central OPC Aggregation | Option C: SIMATIC IT / Opcenter Execution MES Layer |
|---|---|---|---|
| Topology | 15 WinCC stations, each exposes OPC UA / WinCC OLE DB / Connectivity Pack to SAP RFC client | One central OPC aggregation server in DMZ pulls from all 15 WinCC stations; SAP reads a single endpoint | Opcenter Execution (formerly SIMATIC IT) in DMZ; bidirectional SAP RFC/BAPI via SIMATIC IT Integration Framework |
| SAP-side complexity | 15 RFC destinations to configure and maintain in SM59 | 1 RFC destination | 1 RFC destination; Opcenter handles mapping |
| Plant-side complexity | 15 Connectivity Pack installations; WinCC UA server enabled on each | 15 WinCC stations configured as OPC UA servers; one aggregation server with OPC UA client | 15 WinCC stations report to Opcenter via SIMATIC IT UAF or historian connector |
| Latency | Lowest (direct SAP to WinCC) | Adds one hop (~50 to 200 ms) | Adds one hop; configurable batching |
| Licensing | 15 × WinCC Connectivity Pack license | 15 × WinCC OPC UA Server (bundled in WinCC V8), 1 × aggregation platform | Opcenter Execution Suite license (per server, per plant) |
| Best fit | ≤ 5 stations, simple order/actuals exchange, no MES reporting | 5 to 30 stations, homogeneous order/actual exchange, no shop-floor routing logic | > 10 stations, complex routing, OEE, genealogy, KPI roll-up, shift hand-over |
| Failure isolation | One station failure = one SAP RFC channel affected | Aggregation server failure = entire plant dark to SAP; aggregator must be HA | Opcenter hot-standby recommended; per-station decoupling |
For a 15-station estate exchanging production plans and actuals with SAP, Option B (central OPC aggregation) is the most common and cost-effective choice when no MES-level logic (routing, genealogy, OEE roll-up) is required. Option C becomes attractive when the customer has committed to a Siemens MES roadmap or already operates Opcenter Execution on another plant. See the Opcenter Execution product page for current MES capabilities.
Option A: Per-Station WinCC Connectivity Pack
The WinCC Connectivity Pack provides standardized OLE DB and OPC access to WinCC runtime and archive data. For SAP integration, the typical pattern is:
- Enable the WinCC OPC UA Server on each station. WinCC V7.5 SP2 and later ship OPC UA Server as a licensed option; WinCC V8.0 and V8.1 integrate it.
- Install an RFC-capable SAP connector on each WinCC station, or have SAP JCo or NCo libraries invoke the WinCC OLE DB provider from a central SAP J2EE cluster.
- Define SAP function modules (BAPIs or custom RFCs) to read order data from WinCC and write actual counts back.
Limitations: SAP JCo or NCo from a J2EE engine reaching across 15 RFC destinations consumes basis-team capacity for SM59 maintenance, transport management, and authorization objects. Avoid this pattern for more than 5 stations.
Option B: Central OPC Aggregation Server
A single Windows Server (VM or physical) in the DMZ runs:
- OPC UA client aggregating tags from 15 WinCC OPC UA Servers (one TCP session per station, port 4840).
- An OPC UA server endpoint exposed to the SAP side.
- Optional internal historian buffer (e.g., WinCC IndustrialDataBridge or a custom .NET service) to ride out SAP maintenance windows.
For SAP-side consumption, three sub-patterns exist:
-
Custom RFC or BAPI: SAP ABAP calls an external program via
CALL FUNCTION ... DESTINATIONusing an RFC destination pointing at the OPC UA bridge (typically via a Java or .NET wrapper around the OPC Foundation .NET Standard stack). - SAP MII / SAP ME: SAP Manufacturing Integration and Intelligence (MII) reads OPC UA natively through its Plant Information Catalog. This is the lowest-friction path when the customer already licenses MII.
- SAP Plant Connectivity (PCo): SAP PCo acts as the OPC UA / MES agent on the DMZ host, exposing a flat management cockpit for tag configuration and agent management. PCo is the canonical SAP-blessed pattern for OPC-based plant data acquisition.
Option C: SIMATIC IT / Opcenter Execution MES Layer
SIMATIC IT was rebranded as Opcenter Execution within the Siemens Digital Industries Software portfolio (SISW). It provides a dedicated MES layer with native bidirectional SAP connectivity through its Production Suite and Integration Framework. Architecture:
- Opcenter UAF (Unified Architecture Framework): Collects shop-floor data via OPC UA from WinCC stations.
- Opcenter Historian: Persists high-resolution actuals.
-
Opcenter Integration Framework: Maps shop-floor events to SAP BAPIs or IDocs (e.g.,
BAPI_PRODORDCONF_CREATE_TTfor production confirmations,BAPI_PRODORD_GET_DETAILfor order distribution).
Order distribution workflow:
- SAP issues a production order via BAPI or IDoc (e.g., LOIPRO / IDoc LOIROU01).
- Opcenter Integration Framework receives and persists the order in its MES database.
- Opcenter pushes the order as a structured message to the target WinCC station via OPC UA write or WinCC OLE DB.
- WinCC dispatches the order to the appropriate S7 PLC.
Actuals reporting workflow:
- WinCC detects a production event (count, scrap, downtime reason).
- WinCC exposes the event via OPC UA / archive.
- Opcenter receives the event and applies routing rules, OEE calculations, and genealogy mapping.
- Opcenter posts the confirmation to SAP via
BAPI_PRODORDCONF_CREATE_TTorBAPI_PRODORDCONF_CANCEL.
For plants with regulatory traceability, OEE reporting, or complex routing requirements, the MES-layer approach is the most maintainable despite higher initial licensing.
WinCC Connectivity Pack Installation and Configuration
Procedure for adding the Connectivity Pack to a single WinCC V8 station (use with Option A or as the OPC UA source for Option B/C):
- Insert the WinCC installation media or mount the installation ISO. Launch
Setup.exein elevated mode. - Select Install components / Additional components.
- Check WinCC Connectivity Pack. On WinCC V7.5 SP2 and later, the OPC UA Server is bundled; on V8.0 and V8.1 it is integrated.
- Confirm installation path (default
C:\Program Files\Siemens\Automation\WinCC\Connectivity Pack). - After installation, verify the service
WinCC Connectivity Pack Serviceis set to Automatic startup and running under theSIMATIC HMIuser account (or a dedicated service account with read access to the WinCC project directory). - Open the WinCC Configuration Studio and navigate to Project Properties > OPC UA Server. Enable the server, set endpoint to
opc.tcp://<station-fqdn>:4840, and assign a security policy (Nonefor DMZ-internal,Basic128Rsa15orBasic256Sha256if crossing trust boundaries). - Configure the WinCC tag database to expose the production tags under a custom namespace (e.g.,
ns=2;s=Plant01.Production.OrderNo). - Test the endpoint with the Siemens OPC UA Scout utility or any third-party OPC UA client (Unified Automation UaExpert) from the aggregation server host.
PKI\trusted\certs folder. Failure to exchange certificates results in BadCertificateUntrusted errors at the OPC UA session layer.Production Plan Exchange (SAP → WinCC)
Distribution of production orders from SAP to WinCC follows the standard SAP production planning flow. The MES layer (or custom RFC) translates SAP orders into WinCC tags.
| SAP Object | Type | Purpose |
|---|---|---|
| Production Order (AUFK / AFKO) | Master data | Order number, material, planned quantity, scheduled start and end |
| IDoc LOIROU01 | ALE distribution | Order release to MES; carried over RFC |
| BAPI_PRODORD_GET_DETAIL | RFC / BAPI | Pull-style order retrieval by MES on schedule |
| BAPI_ROUTING_READ | RFC / BAPI | Routing and operation download for WinCC recipe selection |
| IDoc PORDCR101 | ALE distribution | Order change notifications |
For the SAP to WinCC direction, prefer pull from MES on a scheduled interval (e.g., every 5 minutes via the Opcenter scheduler) over ALE push. Pull avoids the operational complexity of maintaining an ALE distribution model across SAP release changes and gives the MES layer a deterministic view of the order book.
Actual Production Data Exchange (WinCC → SAP)
Production confirmations are posted to SAP via the standard PP-PI confirmations BAPI family:
| BAPI | Use |
|---|---|
| BAPI_PRODORDCONF_CREATE_TT | Time-ticket confirmation (yield, scrap, time) |
| BAPI_PRODORDCONF_CANCEL | Cancellation of a previous confirmation |
| BAPI_PRODORDCONF_GETLIST | Read open confirmations (drift reconciliation) |
| BAPI_PRODORDCONF_DECISION | Final goods receipt / lot decision |
Confirmation batching rule of thumb for a 15-station plant: batch confirmations per shift end and per lot completion; do not post per-cycle. Posting per-cycle saturates the SAP RFC gateway and creates an unrecoverable audit trail of micro-confirmations. Opcenter and SAP PCo both provide configurable buffering for this exact reason.
For each confirmation, populate the following minimum fields:
-
ORDERID— production order number (CHAR 12) -
OPERATION— operation number (NUMC 4) -
PHASE— confirmation phase (1 = partial, 3 = final) -
YIELD— good quantity (DEC 13,3) -
SCRAP— scrap quantity (DEC 13,3) -
EXEC_START_DATEandEXEC_START_TIME -
EXEC_FINISH_DATEandEXEC_FINISH_TIME -
WORKCENTER— HR or equipment work center
OPC UA Server Configuration in WinCC
Beyond the Connectivity Pack install, the OPC UA Server endpoint must be hardened for DMZ placement:
| Parameter | Recommended Value | Notes |
|---|---|---|
| Endpoint URL | opc.tcp://<station-fqdn>:4840 |
FQDN, not IP, for certificate alignment |
| Security Policy | Basic256Sha256 |
Default None is acceptable only inside the plant LAN |
| Security Mode | SignAndEncrypt |
Mutual authentication via X.509 |
| Authentication | Username/password or certificate | Anonymous disabled in production |
| Max session timeout | 600,000 ms (10 min) | Avoids keep-alive floods |
| Max subscription | 100 per session | Limits resource use by misbehaving client |
| Namespace | Custom (e.g., urn:siemens:wincc:plant01) |
Avoid default ns=0 to prevent collisions |
Security Hardening Checklist
- Patch WinCC stations to the current SIMATIC Security Update. Monitor the Siemens ProductCERT advisories feed monthly.
- Apply Windows hardening per the Siemens Industrial Security whitepaper: disable SMBv1, enforce SMB signing, disable guest account, restrict NTLM.
- Replace the default WinCC user
Administratorwith named accounts and enforce password rotation (90-day maximum). - Enable WinCC audit logging and forward events to a central SIEM in the office zone via the SCALANCE S firewall allow list.
- Disable the WinCC WebNavigator external interface unless required; if required, terminate behind a reverse proxy with TLS 1.2 minimum.
- Run the OPC UA endpoint on a dedicated NIC where possible, with Windows Firewall restricted to the OPC aggregation server IP only.
- Use SAP Secure Network Communication (SNC) between SAP and the DMZ host. Configure SNC with X.509 certificates issued by the SAP PSE.
- Restrict SM59 RFC destination authorizations using SAP authorization objects
S_RFCandS_ICF; deny*wildcards. - Log all firewall denials and review weekly.
- Maintain an offline backup of the WinCC project, the OPC UA certificates, and the Opcenter configuration database.
Performance and Sizing
For 15 WinCC stations each holding approximately 2,000 process tags with 500 active production tags per station, the aggregate rate into the OPC aggregation server is calculated as:
tags per second = 15 stations × 500 active tags / 1 s = 7,500 tag updates/s
With OPC UA binary encoding (~150 bytes per data change notification after compression), the bandwidth is:
7,500 updates/s × 150 B = 1.125 MB/s = 9 Mbps
A gigabit plant LAN plus a gigabit DMZ link carries this trivially. Watch points are the OPC UA session count per server (default 50, raise to 200 for the aggregator) and the SAP RFC gateway throughput (default ~100 RFC requests/s, batch to 5 to 10/s with buffering).
| Component | Minimum Sizing | Recommended for 15 Stations |
|---|---|---|
| OPC aggregation server | Windows Server 2019, 4 vCPU, 16 GB RAM, 100 GB SSD | Windows Server 2022, 8 vCPU, 32 GB RAM, 500 GB SSD, dual-NIC |
| SCALANCE S615 pair | One unit, 100 Mbps | Two units in HA (HRP), gigabit |
| Opcenter Execution server (if Option C) | 8 vCPU, 32 GB RAM, 500 GB SSD | 16 vCPU, 64 GB RAM, 1 TB SSD, dedicated historian volume |
| Plant-to-DMZ link | 100 Mbps | 1 Gbps fiber, redundant ring |
| DMZ-to-office link | 100 Mbps | 1 Gbps fiber, redundant path |
For cloud-based SAP analytics on top of the DMZ integration layer, modern platforms such as Microsoft Fabric SAP Table connector provide direct CDS view and SAP table access via the SAP application or message server, allowing replicated OEE datasets to land in OneLake without touching the WinCC estate directly.
Verification and Commissioning
Verify each layer independently before end-to-end testing.
-
OPC UA layer: From a UA client, subscribe to
ns=2;s=Plant01.Station01.OrderNo. Confirm value updates and subscription keep-alive at 1 s interval. -
Firewall layer: From the SAP basis host, attempt
Test-NetConnection dmz-host -Port 33400(SAP RFC). Expect success. From the DMZ host, attemptTest-NetConnection wincc01 -Port 4840. Expect success. From an unauthorized plant host, attempt the same test — expect timeout. -
SAP layer: From SAP, run transaction
SM59→ RFC destination test against the DMZ host. ExpectConnection OK. Then callBAPI_PRODORD_GET_LISTagainst a known order. Expect populated result. -
End-to-end: From SAP, create a test production order via
BAPI_PRODORD_CREATE. Confirm it appears in the target WinCC station within one scheduled poll interval. Trigger a manual count on the WinCC station. Confirm the confirmation reaches SAP viaBAPI_PRODORDCONF_GETLIST. - Failure scenarios: Disconnect the DMZ aggregation server from SAP and trigger 50 production events on WinCC stations. Reconnect. Confirm all 50 events are buffered and posted (no duplicates, no losses).
Troubleshooting Matrix
| Symptom | Likely Cause | Verification | Remediation |
|---|---|---|---|
OPC UA client BadCertificateUntrusted
|
Certificate not exchanged between client and WinCC server | Inspect %ProgramData%\Siemens\Automation\WinCC\OPC UA Server\PKI\rejected
|
Move certificate from rejected to trusted\certs on WinCC, restart OPC UA service |
SAP SM59 connection test fails with PROGRAM_NOT_REGISTERED
|
DMZ host not running the registered RFC server program | Check service status on DMZ host | Start the RFC program; verify gw/rdisp/rfc_service registration |
| Production orders appear in SAP but not in WinCC | SAP pull job not scheduled, or MES routing rule misfiring | Check Opcenter scheduler log; check MES routing configuration | Enable scheduler, fix routing rule destination station assignment |
| WinCC actuals appear in MES but not in SAP | BAPI posting error; SAP authorization missing | Check MES posting log; SU53 on SAP user | Grant missing S_RFC or M_ESSE authorizations; fix BAPI field mapping |
| High latency on actuals reporting (> 5 min) | Confirmation batch interval too long, or SAP RFC gateway saturated | Review batch configuration; monitor /usr/sap/<sid>/DVEBMGS<nr>/work/dev_rfc.trc
|
Reduce batch interval; scale SAP gateway work processes |
| Plant LAN loses connectivity intermittently after WinCC config change | PROFINET broadcast storm triggered by rogue multicast on new OPC UA endpoint | SCALANCE switch port statistics; Wireshark capture on plant core | Enable IGMP snooping; restrict OPC UA endpoint to known aggregation IP via firewall |
Frequently Asked Questions
Should the WinCC LAN connect directly to the SAP LAN?
No. Always segment plant and office networks with an industrial firewall (Siemens SCALANCE S615 or S623) and place any integration middleware in an industrial DMZ. Direct L2/L3 coupling exposes PROFINET and S7 broadcast traffic to office IT and violates IEC 62443 zone-and-conduit principles.
Which is better — per-station Connectivity Pack or a central OPC server?
For a 15-station estate, a central OPC aggregation server in the DMZ is the preferred pattern: SAP maintains one RFC destination instead of fifteen, and the aggregation host can buffer during SAP maintenance windows. Reserve per-station Connectivity Pack for deployments of five or fewer stations.
Does WinCC V8.1 require a separate OPC UA Server license?
WinCC V8.0 and V8.1 bundle the OPC UA Server as part of the standard RT license. WinCC V7.5 SP2 and earlier require the WinCC Connectivity Pack license for OPC UA Server functionality. Verify against the current WinCC licensing documentation on Siemens Industry Online Support.
What OPC UA port does WinCC use?
Default is TCP 4840. Confirm in the WinCC OPC UA Server configuration under Project Properties > OPC UA Server > Endpoint. Adjust to a non-standard port if multiple instances run on the same station.
Which SAP BAPI posts production confirmations from MES?
BAPI_PRODORDCONF_CREATE_TT for time-ticket confirmations (yield, scrap, time) and BAPI_PRODORDCONF_DECISION for final goods receipt and lot decisions. Cancel with BAPI_PRODORDCONF_CANCEL. Always batch confirmations per shift end or lot completion — never per-cycle.
Is SIMATIC IT still the correct product name in 2025?
SIMATIC IT has been rebranded as Opcenter Execution within the Siemens Digital Industries Software portfolio. The OPC UA integration framework and SAP RFC or BAPI mapping concepts remain identical; documentation now lives under Opcenter Execution rather than SIMATIC IT.