Problem Identification: Sinumerik 840D PLC Upload Failure
When attempting to upload the integrated PLC program from a Sinumerik 840D controller equipped with a PCU50 using STEP 7 V5.5 and an MPI PC Adapter (6ES7972-0CA23-0XA0 or equivalent), the operator receives a hardware-not-recognized alarm. The fault prevents the standard "Upload Station to PG" operation from completing, leaving the PLC program unreadable through the conventional STEP 7 V5.5 path.
The 840D's integrated PLC is not a stand-alone S7-300 CPU that STEP 7 recognizes out of the box. The PLC is embedded in the NC subsystem and exposes a virtual station type (NCU-specific profile) that STEP 7 V5.5 can only resolve when the matching Hardware Support Package (HSP) from the Sinumerik Toolbox is installed. Without this HSP, STEP 7 aborts the upload with an error referencing an unknown or unsupported module type.
The "BS" suffix referenced in operator queries is ambiguous. Within Siemens nomenclature, 840D controllers are typically designated as 840D Powerline (PL) or 840D sl Solution Line. Both ship with PCU50 (Powerline) or PCU50.3 / newer PCUs (sl) running HMI Advanced or Sinumerik Operate respectively. The "BS" label is commonly a plant-specific or region-specific designation, occasionally interpreted as a user or vendor shorthand for a Powerline variant. The procedures in this article apply to 840D Powerline with PCU50 running HMI Advanced; 840D sl users should adapt to the Sinumerik Operate menu paths described in the HMI series startup section.
Root Cause Analysis
The alarm during PLC upload is generated by one of the following root causes:
| Root Cause | Symptom | Diagnostic |
|---|---|---|
| Missing Sinumerik Toolbox HSP in STEP 7 V5.5 | "Unknown module type" or "Hardware configuration error" during upload | Check STEP 7 HW Config; Sinumerik station not present in catalog |
| MPI baud rate mismatch | Connection timeout / "Cannot establish connection to station" | Verify adapter baud rate (187.5 kbps default for MPI) |
| Incorrect MPI address on PCU | Station not visible in "Accessible Nodes" | Verify PCU MPI address (default 0, PLC default 2) |
| Password-protected PLC blocks | Upload aborts partway with "Access denied" | Attempt "Accessible Nodes" read; check know-how protection in STEP 7 |
| Active NC program locking PLC blocks | Upload returns incomplete blocks | Place PLC in STOP; verify no know-how protection |
| Toolbox / controller SW version mismatch | Upload succeeds but blocks fail CRC compare | Verify SW version on HMI matches toolbox version |
The most frequent root cause for the described alarm is the first item: the STEP 7 V5.5 hardware catalog does not contain the Sinumerik PLC station type, so the S7 upload logic fails to deserialize the system data blocks (SDBs) returned from the controller.
Sinumerik Toolbox and Hardware Support Package (HSP) Installation
The Sinumerik Toolbox is the official Siemens delivery that contains:
- STEP 7 V5.x Hardware Support Packages (HSPs) for the integrated PLC station types
- GSD/GSDML files for PROFIBUS and PROFINET slave configurations
- FB/FC libraries for NC variable access (NC-VAR-Selector, NCK interface blocks)
- HMI ProTool/Pro project templates
- PCIN transfer utility
The Toolbox is sold as a separately orderable item under Siemens part numbers that vary by software version:
| Toolbox Version | Target 840D SW | Typical Order Reference | STEP 7 Compatibility |
|---|---|---|---|
| Sinumerik Toolbox V04 | SW 4.x | Toolbox for SW 4.x | STEP 7 V5.3 + SPx |
| Sinumerik Toolbox V05 | SW 5.x | Toolbox for SW 5.x | STEP 7 V5.4 + SPx |
| Sinumerik Toolbox V06 | SW 6.x | Toolbox for SW 6.x | STEP 7 V5.5 + SPx |
| Sinumerik Toolbox V07 | SW 7.x | Toolbox for SW 7.x | STEP 7 V5.5 + SP4 or later |
Installation procedure:
- Insert the Toolbox DVD or mount the ISO image in the PG/PC.
- Close all STEP 7 components (SIMATIC Manager, HW Config, Symbol Editor).
- Launch
Setup.exefrom the toolbox root directory. - Select "Hardware Support Packages" and choose the HSP matching the controller (e.g., 840D Powerline NCU 561.x, 571.x, or 572.x for 840D sl).
- Restart STEP 7 and confirm the new station appears under SIMATIC 300 > Sinumerik in the HW Config catalog.
Once the HSP is installed, the standard "Upload Station to PG" path recognizes the controller. The complete PLC program and HW Config can be archived to a STEP 7 project on the PG.
Connecting via MPI PC Adapter (6ES7972-0CA23-0XA0)
The MPI PC Adapter is the conventional interface for connecting a PG/PC running STEP 7 V5.5 to a Sinumerik 840D Powerline. The default parameters are:
| Parameter | Value | Notes |
|---|---|---|
| Interface | MPI | PROFIBUS also supported, requires HSP GSD |
| Baud rate | 187.5 kbps | Maximum reliable MPI rate; higher requires PROFIBUS-DP |
| PC MPI address | 0 | Default PG address |
| PLC MPI address | 2 | Default for 840D integrated PLC |
| Highest MPI address | 31 | Token-ring segment size |
| PG/PC is the only master | Off | NCU remains token master |
Set these via STEP 7 > Options > Set PG/PC Interface. Select "PC Adapter (MPI)" and configure accordingly. Use Accessible Nodes (PLC > Accessible Nodes) to verify connectivity before attempting a full upload.
For higher baud rates or PROFIBUS DP communication, the 840D Powerline and 840D sl expose a PROFIBUS interface on the X136 connector of the NCU. Communication interfaces on 840D sl support MPI, PROFIBUS, and industrial Ethernet (TCP/IP) at significantly higher baud rates than the legacy MPI path, but require a Toolbox GSD file to map the NCU station.
Accessible Nodes Workaround (Blocks-Only Upload)
If the Toolbox is unavailable but a PLC backup is urgently required, STEP 7 V5.5 supports a partial upload through the Accessible Nodes view:
- In STEP 7, open PLC > Accessible Nodes.
- Wait for the controller to appear with MPI address 2.
- Select the station, then choose PLC > Upload Station to PG.
- STEP 7 prompts: "Do you want to upload the station configuration?" Choose No.
- STEP 7 uploads only the blocks (OB, FB, FC, DB, SDB, SFB, SFC) without the HW Config.
This produces an incomplete project — the HW Config shows as empty — but the program logic is preserved. The HW Config can be reconstructed manually by inserting an S7-300 station with the correct CPU (CPU 317-2 DP for 840D Powerline or CPU 319-3 PN/DP for 840D sl) and downloading the configuration to re-establish the link.
HMI Series Startup Backup Procedure (Operator-Level Full Backup)
The HMI-integrated series startup function is the recommended method for capturing a complete backup without STEP 7 Toolbox dependencies. It produces an archive containing NC data, PLC program, HMI configuration, and drive parameters.
Procedure for HMI Advanced (840D Powerline + PCU50)
- Access the operator panel and navigate to the Service menu. The default path on HMI Advanced is
Start > Commissioning > Series Startup. - Enter the service-level password when prompted. The active password is configured by the machine builder. If unknown, request it from the OEM; do not guess, as failed attempts may lock the access level.
- Select "Create Series Commissioning Archive" or "Series Startup" (text varies by SW version).
- Choose the archive scope: NC, PLC, Drives, HMI, or "All".
- Select target media: Hard Disk (HMI), USB, or floppy (if equipped).
- Confirm. The system writes files with extensions
.arc(NC),.zipor.bkp(PLC backup), and.ini(configuration).
Typical output file naming on PCU50 hard disk under D:\dh\arc.dir or E:\dh\arc.dir:
-
NC.arc— NC data and machine parameters -
PLC.arc— compressed PLC backup archive containing the STEP 7 project -
HMI.arc— HMI configuration (ProTool/Pro runtime)
To extract the PLC backup from the PLC.arc archive, copy it to a PG/PC and decompress it using WinRAR or 7-Zip. The extracted structure contains the STEP 7 project (S7 project as .zip or uncompressed .s7p) and the hardware configuration as separate files.
Procedure for Sinumerik Operate (840D sl)
- Press the <Menu> key on the operator panel.
- Navigate to
Commissioning > Series Commissioning. - Enter the access level (password).
- Select "Create Series Commissioning Archive".
- Choose the directory and confirm.
File Transfer via PCIN and Removable Media
PCIN is the legacy Siemens tool for serial file transfer between a PG/PC and the Sinumerik HMI/NCU. It supports:
- Serial (RS-232) transfer at 19200 to 115200 baud
- File types: NC programs (
.mpf,.spf), tool lists, R parameters, compensation data - Bidirectional transfer (send and receive)
PCIN is bundled with the Sinumerik Toolbox DVD or can be downloaded from the official Siemens support portal. Launch with default parameters:
COM1: 19200 baud, 8 data bits, no parity, 1 stop bit
Protocol: Xon/Xoff
Procedure:
- Connect a null-modem RS-232 cable between PG/PC (COM1) and the PCU50 COM1 port.
- Start PCIN on the PG.
- On the HMI, navigate to
Services > Data Transferand select "RS-232". - From PCIN, choose Send File / Receive File. Match the direction.
- Monitor progress in the PCIN status window.
For large backups, USB transfer is faster. Most PCU50 systems expose a USB 1.1/2.0 port on the front panel. Mount a FAT32-formatted USB stick, copy the archive directory to it, then transfer to the PG. Avoid NTFS or exFAT — the HMI's USB driver only reliably mounts FAT32.
Network-Based Backup (TCP/IP on 840D sl)
The 840D sl exposes an Ethernet interface on the PCU. Use this for large backups when a network drop is available:
- Configure the PCU50/PCU50.3 IP address via
Services > Networkor via the Windows XP Embedded control panel (PCU50 only). - Establish a Windows share on the PCU or use FTP/SCP if the controller firmware supports it.
- Map the share as a network drive on the PG and copy
D:\dh\arc.dircontents.
The 840D Powerline PCU50 supports standard SMB/CIFS file sharing once the network is configured. The 840D sl with PCU50.3 adds WebServices-based backup endpoints accessible via the Sinumerik Operate interface. Refer to the official Sinumerik 840D sl programming and operating documentation for TCP/IP parameter details.
Firmware and Software Version Compatibility
Version compatibility is the second most common source of upload failures after a missing toolbox. The relationship between controller SW version, toolbox version, and STEP 7 version is:
| 840D SW Version | NCU Type | Required Toolbox | STEP 7 V5.5 SP |
|---|---|---|---|
| SW 4.4 / 4.5 | NCU 561 / 571 | V04 | V5.3 + SP3 or later |
| SW 5.x | NCU 561 / 571 / 572 | V05 | V5.4 + SP3 or later |
| SW 6.x | NCU 572 / 573 | V06 | V5.5 + SP2 or later |
| SW 7.x | NCU 573 / 710 | V07 | V5.5 + SP4 or later |
To read the controller's installed SW version on the HMI, navigate to Diagnostics > Service/Version or Commissioning > Version. The displayed SW string (e.g., "SW 6.4 HF 12") must match the toolbox version installed in STEP 7. Mismatches produce "incompatible SDB" alarms on download and silent corruption on upload.
Verification and Commissioning Checks
After installing the toolbox and re-attempting the upload, verify success with the following checks:
- Open the uploaded STEP 7 project. Confirm HW Config shows the Sinumerik station with the correct NCU and PLC submodule types.
- Cross-reference the program block list (OB1, OB40, OB82, OB100, OB121, OB122) against the controller's online view (PLC > Compare Blocks).
- Verify the PLC diagnostic buffer shows "Cold restart completed" without "incompatible SDB" entries.
- Test round-trip: download the uploaded project to the controller, monitor for "STOP -> RUN" transition without alarms.
- Compare block checksums (CRC) using PLC > Compare Blocks Online/Offline.
- Verify the FB/FC library is present in the project and that no unresolved symbol references remain.
Troubleshooting Matrix
| Alarm / Symptom | Likely Cause | Corrective Action |
|---|---|---|
| "Unknown module" during upload | Missing Toolbox HSP | Install matching toolbox; restart STEP 7 |
| "Cannot establish connection" | MPI address / baud mismatch | Verify address 2, baud 187.5 kbps on PG/PC interface |
| "Hardware configuration mismatch" | Toolbox / controller SW mismatch | Match toolbox to controller SW version |
| "Access denied" on specific blocks | Know-how protection active | Disable in STEP 7 with password; or use series startup archive |
| Upload succeeds but blocks won't compile | Missing FB/FC library from toolbox | Install toolbox libraries into project |
| Series startup archive empty | Service password not entered | Verify access level; re-enter password |
| USB stick not detected | Format incompatibility | Reformat USB stick as FAT32; avoid NTFS/exFAT |
| PCIN transfer stalls | RS-232 cable not null-modem | Replace with proper null-modem cable |
| Accessible Nodes returns no station | PC Adapter driver issue or wrong COM port | Reinstall PC Adapter driver; check USB/COM assignment |
| Blocks CRC mismatch after upload | Active PLC in RUN with online changes | Place PLC in STOP before upload; re-attempt |
Safety and Operational Notes
Per the official Siemens product support portal safety guidance for Sinumerik controllers, observe the following when performing backup and restore operations:
- Place the machine in a safe state (axes stopped, drives disabled) before any series startup or archive write operation.
- Ensure uninterrupted power to the PCU during a series startup archive write — a power loss can corrupt the HMI file system.
- Verify backups on a separate PG/PC before relying on them; never consider a backup valid until the round-trip (restore to identical hardware) has been tested.
- Do not share or disclose the active service password; it grants full read/write access to NC, PLC, and drives data.
FAQ
What is the default MPI address of the 840D integrated PLC?
The default MPI address is 2 for the PLC and 0 for the NCU (NCK). If the machine builder reconfigured the bus, verify via HMI under Diagnostics > Bus Configuration or by scanning accessible nodes in STEP 7.
Can I upload the PLC without the Toolbox?
Yes, via two methods: (1) STEP 7 Accessible Nodes view with "Do not upload hardware configuration" enabled, which uploads blocks only; or (2) HMI series startup archive, which captures the complete backup including PLC, NC, and HMI on the controller's hard disk.
Where does the series startup archive save on the PCU50?
By default, archives save to D:\dh\arc.dir on the PCU50 internal hard disk (or E:\dh\arc.dir if configured). The PLC archive file is named PLC.arc and contains a compressed STEP 7 project.
How do I extract a usable STEP 7 project from PLC.arc?
Copy PLC.arc to a PG/PC and decompress with WinRAR or 7-Zip. The archive contains S7Project.zw1 or uncompressed .s7p files. Open with STEP 7 V5.5 via File > Retrieve.
Why does STEP 7 V5.5 not see the controller after the Toolbox is installed?
The toolbox registers its HSP in the Windows registry. If STEP 7 was running during installation, restart it. Also confirm the PC Adapter is on the correct MPI address (0 for PG) and the controller is not in a higher access level blocking PG operations.