1. Problem Overview
After an uncontrolled shutdown of a SIMATIC S7-400H redundant station (CPU 414-4H) communicating with a WinCC V6.x runtime station over Industrial Ethernet through a CP 443-1 and a CP 1613, operators report that specific faceplate controls become unclickable (start/stop for two pumps and the agitator) and one analog value (total flow) renders in gray (no value, no limit supervision). All other process tags continue to update at their normal 1 s/2 s cycle. The S7 connection in the WinCC Channel Diagnosis remains OK and no CPU fault LED is lit. This combination is characteristic of a corrupted or detached tag binding in the WinCC project, not a PLC-level fault.
The phenomenon is well documented in field service: a small set of WinCC tags lose their external link to the S7 data block, while the S7 connection, the CPU, and the I/O remain fully healthy. The symptom survives a WinCC runtime restart, a project reactivation, and a redundant CPU fail-over, which is the definitive fingerprint of a project-side binding defect rather than a hardware or firmware fault.
2. Reference System Configuration
| Component | Part / Designation | Function |
|---|---|---|
| PLC CPU | 6ES7 414-4HJ04-0AB0 (CPU 414-4H) | Redundant high-availability CPU for SIMATIC S7-400H |
| Communications Processor | 6GK7 443-1EX20-0XE0 (CP 443-1) | Ethernet connection, S7 communication, ISO-on-TCP / TCP |
| ET 200M Stations | 6ES7 153-2BA10-0XB0 (IM 153-2) | PROFIBUS DP distributed I/O with 300-series signal modules |
| HMI Runtime PC | WinCC V6.x with CP 1613 (6GK1 161-3AA00) | SCADA runtime, ISO Industrial Ethernet |
| Network | Industrial Ethernet 10/100 Mbit/s | MAC-based ISO transport between CP 443-1 and CP 1613 |
| Power Event | Unplanned plant-wide mains loss | Trigger for the fault pattern |
3. Root Cause Analysis
Three root-cause families explain the field report. They are listed in the order they should be ruled out, since the cost of verification rises from top to bottom.
3.1 Corrupted WinCC tag binding in the graphics designer
The WinCC Graphics Designer stores tag references as numeric internal pointers (the variable ID) inside the picture file (.pdl). If the runtime crashes, the PC loses power, or the WinCC project database is closed abnormally, the pointer-to-tag mapping in PROJECTNAME.dcf can desynchronize. The faceplate still references an ID, but the ID no longer resolves to the same S7 address — or to any address at all. The tag appears in gray because the dynamization in the picture evaluates to "no value" and the picture-level authorization/quality check suppresses the button.
This matches the field pattern: a handful of tags lost, every other tag still updates, communication tests pass, and the project is otherwise functional. Service experience (e.g., the long-standing WinCC V6/V7 behavior reported by integrators) shows that recreating the broken tag resolves the binding permanently.
3.2 Wrong WinCC project assigned to autostart
On Windows startup the WinCC service launches the project listed in AutoStart of the WinCC Explorer. If a different project, a backup copy, or a partially restored project is registered, runtime will use a configuration that does not contain the affected connections. Tag IDs that existed in the original project but not in the autostart project will render as gray. This is the second hypothesis raised during the original field discussion and is quick to check.
3.3 Incomplete user program / dead battery on the CPU 414-4H
On the S7-400H, two backup batteries (one per sub-rack) maintain the retentive bit memories, timers, counters, and the data block contents. A power loss with exhausted batteries wipes DBs that are not marked Non-Retain-protected. The WinCC tag remains valid but reads back zero or undefined values, which the faceplate may interpret as "quality bad" and gray out. The discussion on this exact plant confirmed batteries are healthy, so this branch is closed, but it must still be ruled in/out on every new instance of the symptom.
4. Pre-Diagnostic Checklist
- Confirm the WinCC PC time and the CPU time are within ±5 s. Time jumps of hours after a power loss can cause the WinCC license dongle or the project to refuse activation silently.
- Open WinCC Explorer > Channel Diagnosis and verify the S7 channel reports
Connectedfor every configured connection. - Open WinCC Explorer > Tag Management and sort the affected tags by Quality Code. A persistent
0x80 (Bad / Configuration Error)rules in favor of a binding defect. - From the WinCC PC, ping the CP 443-1 (H1 IP address) and the active CPU's H1 IP. Loss of ping on one CPU but not the other is normal during H sync; loss on both is the problem.
- In STEP 7, go online with both CPUs (CPU 414-4H > H-Sync) and read the diagnostic buffer. Look for
SF / BF / OB85events following the power loss. - Check the WinCC project file's modification timestamp against the backup. If it was modified during the power loss, restore from a known-good backup.
5. Step-by-Step Resolution
The procedure below is ordered from least invasive to most invasive. Each step ends with a verification gate; if the gate fails, proceed to the next step rather than continuing to apply partial fixes.
Step 1 — Verify the autostart project is correct
- On the WinCC PC, open Start > Programs > Siemens Automation > SIMATIC > WinCC > AutoStart Manager.
- Confirm the project path matches the expected runtime project.
- If multiple projects are listed, disable the wrong one and enable the correct one.
- Restart the WinCC Runtime from the system tray icon.
Verification: The four gray controls become active. If not, proceed to Step 2.
Step 2 — Compare offline and online STEP 7 project
- Open STEP 7 and connect to the H-station via the H-Sync partner address.
- Select PLC > Compare Online / Offline for both CPUs.
- If the online program differs (DBs missing or with different initial values), download the offline program to both CPUs in RUN mode if the CPU supports it, otherwise in STOP.
- Verify that the data blocks containing the pump command words (
DBxx.DBD0,DBxx.DBX4.0, etc.) and the total flow (DBxx.DBD12as REAL) match the WinCC tag addresses.
Verification: In WinCC Tag Management the affected tags report Quality Code = 0xC0 (Good). If not, proceed to Step 3.
Step 3 — Force a WinCC project reactivation
- Stop the WinCC Runtime.
- Open WinCC Explorer > File > Open and select the runtime project.
- Select File > Reactivate Project from the menu. This rebuilds the runtime database from the picture files and tag definitions.
- Wait for the activation log to complete with no
ERRORlines (warnings about deprecated tags are acceptable). - Start the WinCC Runtime.
Verification: Re-check the four tags in Tag Management. If the defect persists, proceed to Step 4.
Step 4 — Delete and recreate the affected tags
This is the field-proven last resort for binding corruption. It is invasive because the tag ID changes, so all picture references must be remapped.
- In WinCC Explorer > Tag Management, locate the four tags (e.g.,
CMD_Pump01_Start,CMD_Pump02_Start,CMD_Agitator_Start,TotalFlow). - Export the tag definitions to a CSV via Export > Tags for documentation.
- Delete the four tags. Accept the warning about picture references — they will be relinked in step 5.
- Recreate each tag with the same S7 address, conversion (BYTE / INT / REAL), limits, and scaling. For the total flow as
REAL, verify the Length field reads 4 bytes and the conversion factor matches the engineering unit (e.g., m³/h = raw × 0.1). - Save the project.
- Open every picture that referenced the deleted tags. The reference will show
???in the right-hand Tag column. Re-select the newly created tag of the same name. - For dynamic dialogs that used the tag, reopen the dialog and re-bind.
- Reactivate the project (see Step 3).
Verification: All four controls are now active; start/stop commands change the bit in the DB within one scan; the total flow value updates and color-codes correctly against its limits.
Step 5 — Replace the CP 1613 driver binding (only if Steps 1–4 fail)
- Open Set PG/PC Interface. Confirm the access point
S7ONLINEpoints to theCP 1613driver, not a softnet or TCP/IP fallback. - If the binding flipped to a TCP/IP softnet during the power loss, restore it to
CP 1613 ISO Ind. Ethernet. - Re-establish the S7 connection in Set PG/PC Interface > Diagnostics. The connection should report
Onlineand the partner should be the active CPU 414-4H.
Verification: A bulk read of any DB from the partner CPU returns consistent values.
6. Hardware Health Verification (S7-400H Specific)
Even when the binding is the prime suspect, the underlying hardware must be confirmed healthy to prevent recurrence.
| Check | Procedure | Expected |
|---|---|---|
| Battery voltage | Measure at each of the two battery compartments of the S7-400H sub-racks. Replace if < 2.8 V under load. | > 3.0 V each |
| CPU redundancy state | Online > H-Sync > CPU Diagnostics | State = RUN, Role = Master/Slave (no Standby / Failover) |
| CP 443-1 link | Check the LINK LED on the CP; ping the CP from the WinCC PC | LINK steady, ping < 5 ms |
| ET 200M | BF LED on each IM 153-2; DP slave diagnostics in STEP 7 | No BF; slaves in OK state |
| Diagnostic buffer | CPU > PLC > Module Information > Diagnostic Buffer | No OB85, OB86, OB121 entries after the power loss |
7. Connection and Tag Parameter Reference
For a CP 443-1 ↔ CP 1613 ISO-on-TCP WinCC channel, the following connection parameters must match on both sides. A mismatch is another common cause of "communication OK, but specific tags gray."
| Parameter | CP 443-1 (PLC side) | WinCC Channel S7 (PC side) |
|---|---|---|
| Connection type | S7 connection (ISO-on-TCP / TCP) | TCP/IP or ISO Industrial Ethernet |
| Local TSAP / Port | 10.00 (default), or per project | 00.00 / 102 (default) |
| Partner TSAP / Port | 00.00 / 102 | 10.00 / 102 |
| Partner IP | CP 1613 PC IP | Active CPU 414-4H H1 IP |
| Rack / Slot | 0 / 3 (CPU 414-4H default) | 0 / 3 |
| Connection name | e.g. S7_HMI_1
|
Same string |
When the CPU 414-4H is in H-synchronization, only the master's connection is normally active. The WinCC connection can be configured to the master (IP-A) or to the H-Sync partner address (IP-B); the runtime handles the failover automatically provided the H-Sync Partner Address parameter is set in Set PG/PC Interface or in the WinCC connection editor.
8. WinCC V6/V7 Tag Quality Code Reference
| Hex Code | Meaning | Likely Cause |
|---|---|---|
| 0x00 | Bad - No Communication | Connection down, CP 1613 driver missing |
| 0x40 | Bad - Last Known Value | Connection dropped after last read |
| 0x80 | Bad - Configuration Error | Tag binding corrupted, address mismatch, length 0 |
| 0xC0 | Good | Normal operation |
| 0xC4 | Good - Local Override | Tag forced by test mode |
A sustained 0x80 on only four tags is the diagnostic fingerprint of a binding defect. The fix is Steps 3 and 4 above.
9. Faceplate Authoring Pitfall that Mimics This Fault
When authoring or modifying a WinCC faceplate, an Indirect Tag dynamization (e.g., for a template instantiated with a structure prefix) can lose its base pointer if the structure definition is renamed. The faceplate then evaluates to "0" and the button logic gates itself out. Verify in the picture's Properties > Events dialog that the variable is the correct structure element (e.g., STRUCT.Pump01.CMD_Start) and not a stale internal tag.
If the faceplate is a user-defined type, check that the Type in WinCC Explorer > Graphics > User-Defined Types was not duplicated. Duplicate type IDs can map to wrong instances after a reactivation.
10. System Diagnostics for Future Prevention
To detect binding drift before operators see gray buttons, configure a WinCC diagnostics indicator on a status page and dynamize the color from a script that polls the four critical tags once per second. Green if all four are 0xC0, yellow if any are 0x80, red if any are 0x00. Siemens documents this approach in the System Diagnostics in WinCC Unified manual. While that reference targets WinCC Unified, the same pattern is implemented in WinCC V6/V7 using the WinCC Tag Simulator and a small C-script that writes to a status tag.
Complement the SCADA-side check with a CPU-side heart beat: in OB1, write a free-running counter to a DB (e.g., DB99.DBD0 = MW100 incremented every scan). Configure a WinCC event-triggered read of this counter; if it does not change for 10 s, raise a non-acknowledging alarm. This isolates CPU hangs from binding defects.
11. Troubleshooting Matrix
| Symptom | First Check | Second Check | Final Action |
|---|---|---|---|
| One or two tags gray, others OK | Tag quality = 0x80 | Reactivate project | Delete and recreate tag |
| All tags gray | S7 channel diagnosis | CP 1613 driver binding | Restore PG/PC interface to CP 1613 |
| Tags update but values = 0 | CPU battery voltage | DB retentive settings | Reload DBs and reset retentive flags |
| Tags update on Master CPU only | H-Sync state | WinCC connection partner IP | Set H-Sync partner address |
| Project reactivation fails with "license missing" | USB dongle / soft license | Windows date/time | Correct time, re-license |
12. FAQ
Why do only some WinCC tags go gray after a power failure on an S7-400H system?
A small set of gray tags with otherwise healthy communication indicates a WinCC-side binding defect, not a PLC fault. The Graphics Designer stores tag references as numeric IDs in the picture file, and a power loss can desynchronize those IDs from the tag database. The fix is to reactivate the project, then delete and recreate the affected tags if reactivation alone does not resolve it.
How do I distinguish a corrupted WinCC tag from a genuine S7-400H CPU problem?
Open WinCC Explorer > Tag Management and read the quality code. A persistent 0x80 (Configuration Error) on a few tags while all other tags report 0xC0 (Good) is a binding defect. A burst of 0x00 (No Communication) across all tags points to a CP 443-1 or CP 1613 issue. A value of 0xC0 with stale data points to a CPU battery or DB retentive issue.
Will re-downloading the STEP 7 program to the CPU 414-4H fix the gray tags?
Not by itself if the binding is corrupted. The PLC data will be correct, but the WinCC picture still references a stale tag ID. The reliable sequence is to confirm the PLC program is correct, then reactivate the WinCC project, and only if the tags remain gray, delete and recreate the affected tags and rebind the picture references.
What is the correct CP 1613 / CP 443-1 connection setting for an S7-400H with WinCC V6?
Use an ISO-on-TCP or TCP/IP S7 connection with the WinCC access point S7ONLINE bound to the CP 1613 driver (not the softnet fallback). The partner address must point to the H-master CPU, with the H-Sync partner address configured so runtime fails over automatically when the master changes role.
Can WinCC V6 gray controls be caused by user authorization rather than tag binding?
Yes. If the operator account lost its group membership in the WinCC User Administrator after a project reactivation, start/stop buttons will appear disabled even with valid tags. Verify the operator's group in WinCC Explorer > User Administration and reassign if necessary before deleting and recreating tags.