Troubleshooting
Why a KTP700 Basic shows a secure connection error to an S7-1200
Short answer
A KTP700 Basic secure connection error that survives matched clocks, a trusted certificate and a panel image update to 17.0.0.9 is a panel-side failure, not a missing setting. The working laptop simulation proves the S7-1200 and the connection configuration are fine. Capture the exact startup system alarm text next; another IP change or fresh download will not move the fault.
On this page
A KTP700 Basic that throws a secure connection error against an S7-1200 after the clocks match, a certificate has been marked Trusted and the panel image is current is failing on the panel side, and the only next step that can identify the fault is the exact startup system alarm text. The simulation running on the laptop already proves the CPU, the tags and the connection configuration work; the physical panel's runtime, installed image and certificate store are the parts nobody has tested yet. Stop repeating downloads and IP checks, and go read the alarm.
What the working simulation already proves #
An HMI simulation executes on the engineering computer, using its network stack and the project's connection settings. It never touches the panel's operating system, its installed image or its certificate store. That is why a simulation that updates tags normally against a CPU 1214C at firmware V4.1 proves three things and only three things: the CPU serves the connection, the subnet and addressing are right, and the connection parameters in the project are correct.
It proves nothing about the panel. The physical runtime can fail at a later stage — image behavior, certificate handling, the security mode the panel actually supports — while every laptop test passes. This split is the same one behind HMI timeouts that show stale or question-mark values while the project looks correct, which is why the HMI-side symptoms deserve their own diagnosis, as covered in why HMI values show question marks when PLC comms time out. The reported behavior here fits that split exactly: simulation perfect, physical panel dead, so the untested device is the panel.
What each fix you tried rules out #
Each action already taken closes one branch of the diagnosis. Read the list as a map of what is left, not as failures:
- Clocks synchronized on PLC and panel — rules out a certificate rejected because the devices disagreed about the date. It does not validate the certificate's own start and expiration dates, and it does nothing about trust.
- Certificate set to Trusted under Settings → Internet Settings → Check Certificates — establishes trust in that settings context. The alarm persisting afterwards says the failing subsystem is not the one that screen satisfies.
- IP addresses, subnets and network paths verified — rules out addressing. Do not change the IP address again; it is not the fault.
- Panel image updated from 17.0.0.8 to 17.0.0.9 — covers the revision gap inside the V17 image family. The worked example below shows why a further same-family image is not the remedy.
- Fresh downloads to both PLC and HMI — proves the fault survives redeployment, so it lives in certificate state, trust state or mode compatibility, not in a stale project.
What remains is the panel itself. The diagnostic that names the failing stage is the system alarm the panel flashes at boot and then hides.
Capture the startup system alarm before touching anything else #
Do this during a planned stop: capturing the alarm means restarting the panel runtime, and the operator screens go dark while it reboots. Then:
- Add or configure an Alarm Window in the project that includes system alarms, not only application alarms, and download it to the panel.
- Restart the panel under the failing conditions so the boot-time messages occur again.
- Open the alarm buffer, which retains records after the on-screen message disappears, and read it there.
- Record the alarm identifier, the full text, the timestamp and any connection or partner reference, exactly as displayed.
- Separate the messages that clear on their own from the one that stays active after initialization — the persistent one is the fault.
The identifier is what turns a generic "secure connection error" into a specific fault with a documented remedy. Without it, choosing between certificate renewal, trust handling and a security-mode change is guesswork; with it, the vendor's diagnostic documentation names the procedure directly.
Reading the version gap: 17.0.0.8 to 17.0.0.9 #
The inputs, and where each comes from: the panel shipped with image V17.0.0.0 (reported panel firmware), ran 17.0.0.8 before the update and 17.0.0.9 after it (the update performed), the poster identified 17.0.0.9 as the latest image available for this panel, the engineering station runs TIA Portal V21, and the project's HMI device version is in the V17 family — all from the reported case.
The rule in words: compare version fields left to right, and the first field is the compatibility family. A panel image update inside the same first field changes fixes only; it does not change which projects the panel can run, so the question that matters is how far the installed image has moved and whether the fault moved with it.
The arithmetic, written out:
- Fourth field after the update minus fourth field before it: 9 − 8 = 1, so the update moved the panel one revision.
- Fourth field of the installed image minus fourth field of the base image: 9 − 0 = 9, so the panel now runs nine revisions of fixes past the V17.0.0.0 base the fault was first reported on.
- First field of the installed image minus first field of the project's configured device version: 17 − 17 = 0, so the installed image is inside the same V17 family the project expects.
Result: the panel is not running an outdated base image. It runs the newest V17 image named in this case, and it got there through a fresh download on both devices.
The decision, with its threshold: if a same-family image update were the fix, the fault would have moved when the panel stepped onto the ninth revision past base. It did not, so within-V17 image updates are exhausted as a remedy — the alarm identifier is the next action. Only an image whose first field is greater than 17 would be a different case, and that is a compatibility decision to make after the alarm is read, not before.
Trust, validity and renewal are three separate certificate checks #
A certificate binds an identity to a key, and a secure connection can fail on any one of four independent conditions: the peer does not present the expected identity, the identity is not trusted, the certificate is outside its validity interval, or one endpoint does not support the configured security mechanism. Fixing one condition does not fix the others, which is why the fixes tried so far each moved a different condition without clearing the fault.
Two consequences matter here. First, matched clocks do not make an expired certificate valid, and two clocks set to the same wrong date still reject a genuine certificate — so compare the certificate's own start and expiration dates against the real calendar, not against the panel. Second, trust is context-specific: an entry marked Trusted in the Internet settings screen does not by itself satisfy the runtime connection, and the same trap appears on other platforms — a ctrlX CORE showing Not secure purely because its certificate is untrusted fails on trust alone while everything else is correct.
Renewal is a third, different action: it creates and deploys new certificate material rather than accepting existing material. The vendor's support entry on connections failing after the WinCC panel images V17 Update 6 gives exactly two checks for this symptom class — the panel's date and time, and a certificate renewal — and a renewal only works when the new material is redeployed and accepted on both devices afterwards. If instead the alarm reports an unsupported security mode, renewal cannot help, because the panel never had the capability to renew into. The secure-channel timeout on an S7-1200 follows the same shape, as described in why the OPC UA secure channel times out on an S7-1200: the clock and the certificate state interact, and the error text tells you which one to service.
The decision for each remaining case #
With the alarm identifier captured, the case lands in one of four buckets, each with a committed action:
- Alarm names certificate validity or expiration — read the certificate's dates, confirm the panel clock against the real calendar, renew the certificate by the documented procedure, redeploy to the project, and accept the new material on both devices.
- Alarm names an untrusted peer or certificate — trust the certificate the alarm names, in the subsystem the alarm names. Do not re-mark the entry in the Internet settings screen and call it done; that path is already exhausted.
- Alarm names an unsupported or mismatched security mode — this is compatibility, not certificates. Change the connection's security mode in the project to one the panel image supports, then download. Renewing certificates cannot add a capability the panel lacks.
- No persistent alarm captured — widen the Alarm Window to system alarms, reproduce the failure, and read the alarm buffer before changing anything else. Every action taken before this point failed because it guessed at the stage; the identifier ends the guessing.
In this specific case, with clocks matched, a certificate trusted, the image at 17.0.0.9 and downloads repeated clean, three of those buckets are already weakened and the panel-side alarm is the discriminator. Capture it, read it, and service only the stage it names.
Questions asked
Does a working HMI simulation on a laptop prove the PLC connection is healthy?
It proves the CPU serves tags over the laptop's network path with the project's connection settings, which clears the PLC side and the addressing. The simulation runs on the engineering computer's runtime, so it never exercises the panel's installed image, its certificate store or the security mode the physical runtime supports. Treat it as evidence against the PLC, not evidence for the panel.
How do I keep the boot-time system alarms long enough to read them?
The alarm buffer is the answer: it retains alarm records after the on-screen message disappears. Configure an Alarm Window that includes system alarms, download that project to the panel, restart it under the failing conditions, then open the buffer and record the identifier, full text, timestamp and any partner reference for each record before you change anything else.
Should I renew the panel certificate or just mark it Trusted again?
Those are different actions. Marking an existing certificate Trusted satisfies a trust failure only in the context where you marked it. Renewal replaces the certificate material, so it is the remedy for a validity or identity problem, and it only works if the new material is redeployed to the project and accepted on both devices afterwards. Let the alarm text choose between them.
Is another KTP700 Basic panel image update worth trying first?
Not within the V17 family. The panel already moved from 17.0.0.8 to 17.0.0.9, one revision, and now sits nine revisions past the 17.0.0.0 base image the fault was first reported on. The fault outlived that step, so a further same-family image has no case behind it. An image from a later major version is a compatibility change, and it should follow the alarm diagnosis, not precede it.