Resolving Siemens STEP 7 V5.5 SP4 Error 13:5581 During HW Catalog Update
Error 13:5581 in SIMATIC STEP 7 V5.5 SP4 (and earlier V5.x service packs) is a failure code returned by the Hardware Configuration (HW Config) "Update Catalog from Internet" function. The dialog opens, attempts to contact the Siemens Industry Online Support (SIOS) server, and aborts with the popup bearing the message text "Error 13:5581" before any Hardware Support Package (HSP) is downloaded. This article documents the meaning of the error, the conditions that produce it, the ordered recovery steps, and the verification checks an engineer should run before the system is considered healthy.
1. Problem Description
The standard symptom chain, reported in the field, looks like the following:
- The engineer opens SIMATIC Manager > HW Config.
- The menu path Options > Update Catalog is selected (or the user clicks the "Install HW Updates ..." button on the toolbar).
- The "Find and Install Hardware Updates" wizard appears with the options Update from Internet and Update from local file system / CD / DVD.
- Selecting Update from Internet produces the popup "Error 13:5581" (sometimes displayed as a numeric code 13:5581 with an OK button and a Siemens red stop icon).
- Reinstalling STEP 7 V5.5 SP4 over the existing installation does not change the behavior.
- Manual HSP import from a local directory is reported as "procedure does not complete."
Affected versions confirmed by field reports include STEP 7 V5.5 SP1, SP2, SP3, and SP4. The condition is platform independent (Windows XP SP3, Windows 7 32/64-bit, Windows Server 2003/2008 R2 have all been reported in support tickets).
2. Error 13:5581 - Technical Meaning
Within the STEP 7 V5.x framework, the high-byte of the colon-separated error code identifies the component that raised the failure, and the low-byte identifies the specific cause. For 13:5581:
| Code field | Value | Meaning |
|---|---|---|
| Component ID (high word) | 13 | Web update / Internet catalog service handler (S7WEBUPD module in S7BIN directory) |
| Sub-error (low word) | 5581 | HTTP transfer / Winsock / TLS handshake failure to support.industry.siemens.com or to the redirect URL handed back by the Siemens update service |
The low-word 5581 historically maps to a generic transport failure inside the S7Webupd / Step7 Web Update ActiveX bridge, which in STEP 7 V5.5 SP4 is built on the Microsoft WinHTTP stack. When the bridge cannot complete a TLS handshake, cannot resolve the DNS entry, or cannot traverse a corporate proxy, the wizard substitutes the friendly code 13:5581 instead of surfacing the raw WinHTTP error (for example, ERROR_WINHTTP_CANNOT_CONNECT 12029, ERROR_WINHTTP_TIMEOUT 12002, or HTTP 407 Proxy Authentication Required).
3. Root Cause Analysis
Five root causes are observed in order of frequency in the field:
- No outbound HTTP/HTTPS from the engineering station. The S7Webupd service attempts a direct connection on TCP 443 to support.industry.siemens.com. If the workstation is on a closed industrial network, on a VPN without split tunneling, or behind a stateful firewall that blocks the Java/ActiveX control the wizard embeds, the connection is refused before the TLS handshake completes.
- Corporate proxy not configured in Windows Internet Options. STEP 7 V5.5 does not read its own proxy setting; it uses the system-wide WinHTTP default proxy, which is populated from Internet Explorer > Internet Options > Connections > LAN Settings. If the proxy is set in the browser but "Bypass proxy server for local addresses" excludes the Siemens host, the update fails.
- TLS / cipher mismatch. Windows XP SP3 and early Windows 7 builds ship with TLS 1.0 only. Siemens discontinued TLS 1.0 on the support portal in stages starting in 2017; if the engineering station cannot negotiate TLS 1.2 (or has an outdated root CA store), the handshake fails and the wizard reports 13:5581.
-
Corrupted local HSP cache. The local cache lives in
C:\Program Files\Siemens\Automation\S7BIN\s7hspcache(or...\S7WBINfor some installs) and in the registry keyHKLM\SOFTWARE\Siemens\Automation\STEP7\HSP. A partially written or truncated cache will cause the wizard to abort with 13:5581 even when network connectivity is fine. - Local HSP import also fails ("procedure does not complete"). This is the strongest indicator that the cause is not network-related at all. It points to a corrupted STEP 7 installation, missing or mismatched Windows redistributables, or a damaged registry hive, and is the case the original poster ultimately described.
4. Prerequisites for Recovery
Before starting the corrective action, capture the following so the fix can be rolled back if needed:
- A full STEP 7 V5.5 SP4 installation DVD or ISO (must be the exact service pack; SP4 cannot be applied on top of SP1 without the intermediate SP2/SP3).
- Administrative rights on the engineering station.
- All HSP files you expect to deploy, downloaded once from a known-good machine to a USB drive or network share. Current HSP collections are published by Siemens under entry ID 23183356 - STEP 7 V5.x Hardware Support Packages (HSPs).
- A backup of the S7 project archives that exist on the workstation.
- License keys (Step7 Professional, optional S7-PLCSIM, S7-Technology, S7-SCL, S7-GRAPH) exported via the Automation License Manager.
5. Solution Path A - Configure the Network Channel
Use this path first when only the Internet update fails and the manual HSP import works.
5.1 Configure the WinHTTP proxy
- Open Internet Explorer > Internet Options > Connections tab > LAN Settings.
- If the network uses a forward proxy, tick Use automatic configuration script or Use a proxy server for your LAN and enter the FQDN and port (typically 8080 or 3128).
- Click Advanced and add
support.industry.siemens.com,*.industry.siemens.com, and*.automation.siemens.comto the exception list only if traffic to those hosts should bypass the proxy. - Click OK twice and close IE.
- Open an elevated command prompt and run:
netsh winhttp import proxy source=ie
This copies the IE proxy into the WinHTTP store that STEP 7 reads. - Verify with:
netsh winhttp show proxy - Test reachability with:
certutil -urlcache -split -f https://support.industry.siemens.com/cs/document/23183356 test.s7hsp
5.2 Enable TLS 1.2 on legacy operating systems
For Windows 7 SP1 without KB3140245, TLS 1.2 client support must be enabled by registry. The relevant keys live in HKLM\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Protocols\TLS 1.2\Client and must contain Enabled=1 and DisabledByDefault=0. For Windows Server 2008 R2 the same update is delivered as KB3140245. After applying the update, reboot before retrying the catalog update.
5.3 Clear the local HSP cache
- Close SIMATIC Manager.
- Stop the service S7WNFSERV (NetPro synchronization) if it is running.
- Rename the directory
%ProgramFiles%\Siemens\Automation\S7BIN\s7hspcachetos7hspcache_old. - Open regedit and export
HKLM\SOFTWARE\Siemens\Automation\STEP7\HSPfor backup, then delete the subtree. - Restart the PC, open HW Config, retry the update.
6. Solution Path B - Install HSPs from a Local Source
If the Internet channel is unavailable but the installation media is intact, this path avoids the Web update entirely.
- On a machine with Internet access, navigate to the Siemens support portal and download the current HSP collection for STEP 7 V5.5 (entry 23183356). The bundle typically ships as
S7HSP5x_*.exeself-extractors. - Copy the extracted
.hspand.xmlfiles to a USB drive or a shared network directory, for exampleD:\Siemens_HSP\. - On the engineering station, open SIMATIC Manager > HW Config.
- Select Options > Install HW Updates.
- In the dialog, choose Update from local file system / CD / DVD and browse to the directory created in step 2.
- Select the HSPs that match the hardware you are commissioning. The dialog shows the version of the catalog already installed; only install a higher version.
- Click Install. A progress bar shows the HSP being merged into the master catalog
STEP7_V55.HSPin the S7BIN directory. - When the dialog returns to idle, close HW Config and re-open it to confirm the new catalog entries appear under the corresponding catalog drawers (e.g. SIMATIC 300 > CPU-300, SIMATIC 400 > CPU-400H).
%ProgramFiles%\Siemens\Automation\S7BIN\STEP7_V55.HSP before installing a new HSP.7. Solution Path C - Repair or Reinstall STEP 7
Use this path when both the Internet update and the local HSP import fail, which is the precise symptom set reported in the source case. The order is: STEP 7 repair, then full STEP 7 reinstall, then OS reinstall as the last resort.
7.1 STEP 7 repair in place
- Insert the STEP 7 V5.5 SP4 installation DVD (or mount the ISO).
- Run
Setup.exefrom the root of the media. - Choose Repair Installation when prompted.
- Accept the default component selection and complete the wizard.
- Reboot and retry the HSP import.
7.2 Full STEP 7 reinstall
- Open Control Panel > Programs and Features and uninstall all STEP 7 components (STEP 7 V5.5, S7-PLCSIM, S7-SCL, S7-GRAPH, S7-Technology, Automation License Manager, S7-PCT, S7-Distributed Safety) in the reverse order they were installed.
- Reinstall from the media in the recommended order: Automation License Manager > STEP 7 V5.5 > SP4 > optional packages.
- Import the exported license keys back via the Automation License Manager.
- Reinstall the current HSP collection from the local source as described in Section 6.
7.3 Operating system reinstall
If the full STEP 7 reinstall does not resolve the 13:5581 / "procedure does not complete" combination, the fault is in the Windows installation (corrupted Winsock catalog, mismatched runtime libraries, root certificate store issues, or a domain policy that is blocking the S7 Web Update service). Re-image the workstation from a known-good Windows 7 64-bit or Windows 10 (with STEP 7 V5.6) image, apply the latest Windows updates, and reinstall STEP 7 from clean media. This is the only reliable remediation when the OS itself is suspect.
8. Verification
After applying any of the recovery paths, run the following checks before signing the workstation back into production:
- Catalog update completes without error. In HW Config, Options > Update Catalog > Update from Internet returns a list of available HSPs and downloads at least one without raising 13:5581.
- HSP appears in the catalog. Open HW Config and confirm a previously missing module (e.g. a CPU 1515-2 PN added through HSP for early STEP 7 V5.5) now appears in the catalog drawer.
- S7 web service is reachable. From the engineering station, browse to https://support.industry.siemens.com in Internet Explorer and confirm the page loads without certificate warnings.
-
WinHTTP proxy is correct.
netsh winhttp show proxyreturns the expected proxy FQDN or "Direct access (no proxy server)". - License keys are valid. Automation License Manager shows the Step7 Professional license and any optional package licenses as green.
- Project round-trip. Open an existing STEP 7 project, perform a download to a test PLC (or S7-PLCSIM instance) and verify that the hardware configuration compiles and downloads without errors.
9. Related Diagnostics Matrix
| Symptom | Likely root cause | First action |
|---|---|---|
| Error 13:5581 on Internet update only | Proxy / TLS / no outbound | Configure WinHTTP proxy (Section 5.1), enable TLS 1.2 (5.2) |
| Error 13:5581 and local HSP import hangs | Corrupted STEP 7 install | Repair then reinstall (7.1, 7.2) |
| Wizard reports "HSP not compatible with this STEP 7 version" | HSP from a different SP was applied | Re-download the HSP collection for the exact SP4 build |
| Catalog update succeeds but new CPU does not appear | HW Config not restarted | Close and re-open HW Config |
| Reinstall succeeds, 13:5581 still appears on first Internet update | OS corruption (Winsock / cert store) | Re-image workstation (7.3) |
10. Field-Proven Caveats
- STEP 7 V5.5 cannot consume HSPs intended for STEP 7 V5.6 or for the TIA Portal (HSP files starting with
S7HSP6x_orHSP_TIA). The wizard silently aborts with 13:5581 when an incompatible bundle is selected. - The "Update from Internet" function relies on the embedded Java runtime in STEP 7 V5.5 (JRE 1.4 era). If the JRE has been disabled by an IT hardening policy, the wizard cannot complete even if network access is fine.
- On Windows 10 1809 and newer, STEP 7 V5.5 SP4 requires the SIMATIC compatibility mode patches. Without them, the S7 Web Update service fails to start and 13:5581 is the visible result.
- Do not run the update wizard while the SIMATIC Logon / Central User Management service is being reconfigured; the dialog shares a registry mutex with that service and can deadlock.
- Always verify the HSP digital signature. Siemens HSPs are signed by "Siemens AG, Industrial Security". Unsigned files are a strong indicator of corruption or tampering and should be deleted.
What does STEP 7 V5.5 SP4 error 13:5581 mean?
It is the Hardware Configuration Web Update service reporting a transport failure when contacting the Siemens Industry Online Support server. The high-word 13 identifies the S7 Web Update component, the low-word 5581 maps to a WinHTTP / TLS / proxy failure, and the wizard displays the friendly code instead of the raw WinHTTP error.
Can I install new HSPs without an internet connection on the engineering station?
Yes. Download the HSP collection for STEP 7 V5.5 (Siemens support entry 23183356) on a separate PC, copy the extracted .hsp and .xml files onto a USB drive or network share, then in HW Config choose Options > Install HW Updates > Update from local file system.
What is the difference between error 13:5581 and error 13:5582?
5581 indicates a transport-layer failure to the Siemens update server (DNS, TCP, TLS, or proxy). 5582 indicates the connection succeeded but the downloaded HSP file failed signature verification or is otherwise corrupt. For 5582, re-download the HSP and verify it is signed by Siemens AG.
My PC has internet access, why does the catalog update still fail with 13:5581?
The most common reason is a corporate forward proxy that is not declared in Windows Internet Options / WinHTTP. Run netsh winhttp import proxy source=ie after configuring the proxy in IE, or use the local HSP import path described in Section 6.
Will reinstalling STEP 7 fix 13:5581 on a Windows 10 PC?
It will if the cause is a corrupted STEP 7 installation or local HSP cache. If the cause is a Winsock or certificate store issue on the Windows image, the failure returns after the reinstall. In that case re-image the workstation from a known-good Windows 10 64-bit image with the SIMATIC compatibility patches, or migrate the project to STEP 7 V5.6 / TIA Portal V16 or later.