Troubleshooting
Why WinCC Flexible DB writes fail when area pointers do not match
Short answer
WinCC Flexible Runtime holds tag writes back while it retries an enabled area pointer whose DB or M address does not exist in the CPU, so a link that reads as established can still drop every write from the panel. Delete the enabled pointers the PLC program does not use, create the exact DB or M area for the rest, then recompile and retransfer. A general connection error reported as 0x384 is a separate S7 connection fault with its own checks.
On this page
The panel link can sit there established, the alarm view quiet and the screens live, while every value you write from the panel leaves the CPU's DBs untouched. In a WinCC flexible project that combination points first at an enabled area pointer whose DB or M address does not exist in the CPU: runtime keeps retrying that pointer, and while the retry runs it holds your tag writes back. Delete every enabled area pointer the PLC program does not use, create the exact address for the ones it does use, recompile the project and transfer it again. A general connection error reported as 0x384 is a different fault at the S7 connection level, with its own checks near the end of this article.
Why an enabled area pointer stops the writes #
Area pointers are small exchange areas the panel and the CPU keep in step, such as the Coordination bits, configured per connection in the project's communication settings. Every pointer you enable must exist in the CPU at the exact DB number or M address you typed, and the panel documentation names the failure directly: the area pointer is not updated because the address configured for it does not exist. While runtime retries the missing area, it holds tag writes to the CPU back, which is why the connection can read as established while the DBs never move.
Two look-alikes are not this fault. An address the tool refuses while you type the tag is a compile-time problem, covered by fixing invalid bit address errors when adding HMI tags; the area pointer fault compiles cleanly and fails only at runtime. When tags across a screen turn into question marks instead, the connection itself is timing out rather than half-working — why HMI values show question marks walks through that symptom.
Clear every enabled pointer, then recompile and retransfer #
- Open the connection's communication settings in the WinCC flexible project and list every area pointer that is enabled.
- If the PLC program never reads or writes that area, delete the pointer. Removing the pointer alone restores the writes; nothing else on the link needs to change.
- If the program uses the area for its handshake, create the address in the CPU instead: a data block with the exact number the pointer names and at least the pointer's length, or a free range in the M area, then download that block to the CPU.
- Reserve the area inside the PLC program so nothing else writes over those bytes.
- Compile the HMI project.
- Retransfer to the panel or the runtime PC and start runtime again.
- Verify from the CPU side: operate the panel and watch the target DB address in a monitor table. Prove the round trip on a scratch tag with the machine's outputs safe before letting the panel write anything that drives it.
Worked example: a Coordination pointer aimed at a DB the CPU never got #
Say the project enables the Coordination area pointer at DB80.DBW0 and the CPU was last downloaded from a project whose highest data block is DB79. Runtime asks the CPU for DB80 on every cycle, the CPU answers that the block does not exist, and the panel writes wait behind that loop.
The arithmetic: the Coordination pointer is one word long by default, and 1 word × 2 bytes/word = 2 bytes, so the CPU needs DB80 with at least DB80.DBB0 and DB80.DBB1. Create DB80 with 2 bytes, download it, recompile the HMI project and retransfer. The same pointer aimed at M 100.0 needs MB100 and MB101 free instead.
Decision: if the PLC program does not use the pointer, deleting it restores the writes at no cost; if the program uses it, create the block. Either way the writes return as soon as no enabled pointer names a missing address.
What belongs on the runtime station #
The station runs WinCC flexible Runtime with its activation in place, and the license grade must cover the tag count the project uses. From Runtime 2007 on, the S7 communication drivers ship with the runtime, so the S7 link needs no separate SIMATIC NET installation; older runtime versions do need SIMATIC NET installed. The engineering tool itself stays on the engineering PC.
On a panel PC such as the IPC677C, whose hardware configuration uses the CP 1616 onboard entry, the Connections view offers that station's own Softbus interface, and the CP's driver has to be installed before its name appears on the station at all. A runtime on the standard network card connects over TCP/IP instead. A station cloned wholesale from another PC fails in separate ways, and what a copied runtime target PC shows covers that path.
When the alarm is a general connection error 0x384 instead #
That code marks the alarm as a general S7 connection error — 0x384 is decimal 900 — and it means the runtime could not establish or keep the S7 connection at all; it is not a PROFINET IO diagnostic message. Work down this list:
- Reachability: ping the CPU's Ethernet interface address from the panel or runtime PC; both ends must sit on the same subnet and the cable and switch ports must be live.
- Rack and slot: enter the CPU's own position, rack 0 and slot 2 for an S7-300 CPU, even when the path runs through a separate communications processor such as the CP 343-1; the CP's own slot never goes into the connection parameters.
- Interface: the interface named in the connection must match the hardware the station really uses — TCP/IP for a standard network card, the Softbus entry where the station is configured for the onboard CP.
- Port 102: any firewall between station and CPU must pass TCP port 102, the ISO-on-TCP port S7 communication uses.
- Connection resources: a 319-class CPU provides 32 connection resources shared between programming devices, HMI connections and S7 peers; close idle PG and HMI sessions and retest.
- Pointers: retest once with every area pointer off, because a station stuck in the missing-pointer retry loop can raise connection-level alarms alongside the dead writes.
The decision for each fault #
Panel writes dead on a link that reads as established: an enabled area pointer names a DB or M address the CPU lacks. Delete the pointers the program does not use, create the exact areas for the ones it does, recompile and retransfer — the writes come back on the first test after that.
A general connection error 0x384 in the alarm view instead: the S7 connection itself is failing. Fix reachability, rack 0 slot 2, the interface match, TCP port 102 and the connection-resource count, retest with the pointers off, and expect the alarm to clear once runtime holds the S7 connection steady.
Questions asked
Are the System keyboard and Function keyboard area pointers missing from WinCC flexible a problem?
No. Those two pointers belong to the earlier ProTool panel generation, and WinCC flexible does not use them at all, so their absence cannot cause this fault. The pointers that matter are the ones the WinCC flexible project itself enables, and every enabled pointer must exist in the CPU at the exact address it names.
How long is the Coordination area pointer?
One word by default, and the configuration dialog gives no length setting to change it. One word is two bytes, so aim the pointer at two free bytes — for example M 100.0, which occupies MB100 and MB101 — and keep the PLC program from writing over that pair. A DB-based pointer needs the named DB to exist with at least two bytes.
What does general connection error 0x384 mean in decimal?
0x384 converts to 900: 3 × 256 = 768, 8 × 16 = 128, 4 × 1 = 4, and 768 + 128 + 4 = 900. The decimal value adds nothing to the diagnosis. The code marks the alarm as a general S7 connection error, so the fix is the reachability, rack and slot, interface, port 102 and connection-resource checks, with a pointer-free retest last.