Troubleshooting
WinCC flexible job mailbox screen change from an S7-300
Short answer
The job mailbox area pointer is the path for PLC-triggered screen changes in WinCC flexible: define all four words (DBW40, DBW42, DBW44, DBW46 in DB51), enable the PLC job pointer on the connection, and write 51 plus the screen number from a positive-edge instruction so the pair stands for one or two PLC cycles. ActivateScreen answers panel-side events only; an undefined status word drops the job silently and a continuously held job flashes the egg-timer cursor every second.
On this page
A digital input on the S7-300 changes the screen on the panel through the job mailbox area pointer with controller job 51 — ActivateScreen cannot do it. Define all four words of the area in the data block (DBW40, DBW42, DBW44 and DBW46 in DB51), enable the PLC job pointer on the HMI connection, and write the job number 51 plus the target screen number from a positive-edge instruction so the pair stands for one or two PLC cycles. ActivateScreen is a panel-side function: it answers events the panel sees itself, and a polled boolean tag never reaches it deterministically. Two faults make the job look dead: an area pointer with two of its four words missing from the DB, which the panel drops without any message, and a job held true scan after scan, which shows up as the egg-timer cursor popping up about once a second.
Why ActivateScreen never sees the PLC input #
ActivateScreen runs on the panel and fires on events the panel detects: a key press, a tag crossing a high or low limit, a change value event on a polled tag. That last group looks tempting, but a boolean tag that follows a digital input is only another polled value — whether the panel catches each transition depends on bus load and polling rate, so a change value event is no deterministic trigger for a screen call. The documented path from controller to panel is the job mailbox: the controller writes a job into an agreed area and the panel executes it. Which side owns which action is the division set out in how an HMI and a PLC divide the work in a control system: the panel owns operator actions, the controller owns machine-state actions.
If you would rather hang the change off a tag value, or want both routes shown step by step, the walkthrough on configuring PLC screen changes by tag event or job mailbox in WinCC covers the two approaches side by side.
Configure the job mailbox on the connection #
- In the panel project open project tree > Communication > Connections and select the S7-300 connection.
- On the Area pointer tab enable PLC job.
- Set the start address to the reserved words: DB 51, DBW 40 — the example DB keeps DBW0 to DBW38 for its own data.
- In STEP 7 open DB51 and confirm the interface covers DBW40, DBW42, DBW44 and DBW46 as four WORDs; add whichever are missing.
- Read the number property of every screen you want to call — 1 and 3 in this example.
- Compile the panel project and clear any pointer warnings before the download.
The four words in the data block #
| Word | Content | Side |
|---|---|---|
| DBW40 | Job number, 51 selects a screen by number | PLC writes |
| DBW42 | Parameter: the target screen number | PLC writes |
| DBW44 | Status of the executed job | panel writes |
| DBW46 | Second status word of the area | panel writes |
The area is four words whether or not the controller writes all of them: DBW40 and DBW42 carry the command, DBW44 and DBW46 carry the panel's status. Four words at DBW40 fill bytes 40 to 47 — 4 × 2 = 8 bytes, DBB40 through DBB47 — and no other logic may touch those bytes. A DB that ends after DBW42 leaves the pointer short: the compile passes, the panel reports nothing, and the job is dropped in silence, the same shape as a controller write that fails without an error, diagnosed separately in why a SCADA write to a PLC real address fails silently.
Write job 51 from a positive edge #
Both writes sit behind a one-shot so the job exists for a single scan. In the example the pushbutton is I 0.0 (BOOL), the edge memory M 10.0 (BOOL) starts FALSE, and the pulse bit M 11.0 (BOOL) is TRUE for exactly one scan:
// Network 1: one-cycle pulse from the pushbutton
A I 0.0 // BOOL, pushbutton on the digital input module
FP M 10.0 // BOOL edge memory, FALSE at startup
= M 11.0 // BOOL, TRUE for exactly one scan
// Network 2: the job, written during that one scan
A M 11.0
L 51 // controller job 51: screen selection
T DB51.DBW40 // WORD, job number
L 3 // example target: screen 3
T DB51.DBW42 // WORD, screen number
Two MOVE boxes in LAD behind the same edge contact do the same job. Check the value arithmetic once: 3 × 16 + 3 = 51, so DBW40 reads 16#0033 in a hex monitor and 51 in decimal, and screen 3 sits at DBW42 as 16#0003.
The test that proves the wiring: put a VAT on DBB40 to DBB47, press the input, and DBW40 steps to 51 for one scan line with DBW42 at 3, the panel switches to screen 3 immediately, and the status words at DBW44 and DBW46 move away from 0. Hold the button and nothing re-fires, because the edge memory blocks a second pulse until the input drops and rises again.
The two-cycle rule and the egg-timer cursor #
The WinCC flexible communication manual carries a note for exactly this area: a PLC job must not stand continuously and should not be present for longer than about two PLC cycles. A single-cycle pulse stays inside the limit with margin, and the numbers make the margin concrete: at a 10 ms scan the pulse holds the job for one cycle, 10 ms, half of the 2 × 10 ms = 20 ms that a two-cycle presence would take; at a 5 ms scan the same pulse lasts 5 ms and two cycles come to 10 ms.
Break the rule and the symptom is distinctive. A job pair that stays true — MOVEs running unconditionally every scan, or input logic true with no edge — makes the panel re-arm the same job again and again, and the egg-timer cursor pops up about once a second and disappears, while the screen never settles. The fix is the edge, not a timer.
Symptoms, causes, fixes #
- Job does nothing, panel shows no error. The DB ends after the screen number: DBW44 and DBW46 are undefined, the pointer is short, the panel drops the job silently. Define both words, compile, download again.
- Job does nothing, DB values are correct. The PLC job pointer is not active on the connection. Enable it under the Area pointer tab, set DB51.DBW40, compile, and clear the warnings.
- Egg-timer cursor flashes about once a second. The job pair stands true scan after scan, or the area words past the two commands are undefined. Move both writes behind the edge and define the full four words.
- Panel calls the wrong screen or none. The value at DBW42 is not a screen number in the project. Job 51 takes the integer from the screen's number property — 1 or 3 in this example — never a screen name.
- Status words twitch or unrelated logic misbehaves. Something else writes DBB40 to DBB47. Reserve those 8 bytes for the area pointer alone.
Verify the handshake on the panel #
Build a small system-alarm view on the panel first: a silently dropped job reports nothing, and the alarm view is where a rejected call surfaces. Then judge the sequence online — input rises, DBW40 holds 51 for one scan, the status words update, the screen changes. If tags on the same connection lag, stall or show question marks, the fault is the link rather than the logic, and that diagnosis has its own article in why HMI values show question marks: PLC comms timeouts. One boundary holds whatever the logic does: a screen change is an operator-interface action, not a safety function, so it never belongs inside an emergency-stop or safeguarding chain, and the panel's own keys stay free so the operator can always reach the alarm view.
The decision for each case #
- The controller must change the screen — a digital input, a batch step, a fault bit: job mailbox area pointer, job 51, four words defined, writes behind a positive edge, job present one to two cycles.
- The operator decides the screen: keep ActivateScreen on the key event; the mailbox adds nothing there.
- Both exist in one project: they coexist, because panel events and controller jobs travel different paths into the screen manager.
Questions asked
Does the job mailbox work the same way in TIA Portal and on newer panels?
The mechanism survives: the TIA Portal documentation for Comfort Panels and the WinCC Unified documentation both describe a job mailbox where the controller writes a job number and a parameter into an agreed area and the panel executes it. What changes are the configuration path, the data addresses and the list of supported job numbers, so take those from the documentation matching the panel and version being commissioned instead of reusing DB51.DBW40 from this project.
The status words change but the screen stays — what does that mean?
A status update without a screen change means the panel processed job 51 and rejected the call, and the usual cause is a screen number that no screen owns. Job 51 selects by the integer in each screen's number property, so an unassigned number has no target. Open the screen list, read the numbers, and write one that exists; a screen deleted or renumbered after the PLC code was frozen is the classic case.
How many screens can one job mailbox reach?
Every screen in the project is reachable, one job at a time: the integer at DBW42 selects among all configured screen numbers, so a panel with twenty screens takes twenty values. Only one job stands in the mailbox at once; back-to-back changes need the first job to complete — watch the status words — before the next job number and screen number are written behind a fresh edge.
How fast does the panel react to the job?
The documentation names no fixed reaction time, because the panel reads the mailbox on its own cycle over MPI or PROFIBUS. On a healthy link the change appears immediately at operator speed; judge the handshake by the status words at DBW44 and DBW46, not by a timer in the PLC. If tags on the same connection lag or time out, fix the communication load first — the job waits behind every other transfer on the link.