IMDTouchKnowledge BaseShop main store

Troubleshooting

Why a Unified Comfort panel SendEmail needs new runtime values

HMI and touchscreens Published 6 min read

Short answer

A dead SendEmail button with no movement on the Processing status tag is usually the panel's retained SMTP record, not SMTP itself. Start a full download, clear the keep-existing SMTP option in the Load preview Runtime values section, and expect roughly five minutes between sends from the same button.

On this page
  1. Why the SMTP settings never reach the panel
  2. The full download that overwrites the retained record
  3. Reading the Processing status tag
  4. Timing the second press on one button after a working first send
  5. Decisions by symptom
  6. Questions asked

A SendEmail button on a Unified Comfort panel that sends no mail and never moves its Processing status tag is almost never an SMTP fault. The tag sits at its initial value because the send job is never created: the panel is still running the SMTP record it held before the download, and on a newly commissioned MTP panel that record is empty. The fix is a full download with Keep existing configuration for SMTP (email) and email contacts in Runtime deselected in the Runtime values section of the Load preview dialog. Once mail flows, a second behavior appears: a repeat press on the same button does nothing for roughly five minutes. That wait is expected panel behavior, not a new fault. This article gives the download procedure, the status readings that prove it worked, and a timed test that separates the wait from a real delivery failure.

Why the SMTP settings never reach the panel #

On these panels, runtime values are configuration data that lives in the panel's own persistent store and is deliberately shielded from engineering downloads. The SMTP server settings and the email contact list are the members of that set that matter here. The intent is sensible: mail credentials that a site enters once should survive every routine project transfer.

The side effect is the dead button. Everything configured under Runtime Parameters > Email in TIA Portal is stored in the project, and a standard delta download never writes it to the device. If the panel's store holds no server address, the SendEmail function stops before a send job exists. Nothing is queued, so nothing writes the status tag. A working web browser on the panel does not change this: the browser proves the path for web traffic only, and the mail function never got far enough to use any path.

The full download that overwrites the retained record #

The retained record is only replaced when a full download explicitly drops it:

  1. Compile the hardware and software configuration.
  2. Start a full download to the panel; a delta or change-only download never overwrites runtime values.
  3. In the Load preview dialog, open the Runtime values section.
  4. Deselect Keep existing configuration for SMTP (email) and email contacts in Runtime.
  5. Load, and let the runtime restart.

Clearing the option also overwrites the email contacts held in the panel itself, so note any contacts that were entered locally before you download. When the restart finishes, press the button once and watch the tag. Any transition, including a fault value, proves the send job was created and moves the investigation from the panel to the network. If the project sends mail in the simulator while the panel button stays dead, the download above is still the first move; the wider simulation-versus-panel split is covered in HMI email that sends in simulation but not from the panel.

The delta-versus-full distinction is the same one behind why an HMI edit needs a new runtime download, which covers when a revised project needs a fresh transfer.

Reading the Processing status tag #

The function writes an integer to the optional Processing status tag as the job changes state, and the SendEmail documentation lists the values in a table that begins with 2 while the function is being executed. The practical readings:

  • No transition at all: no job was created. The retained record is still in place, or the button event never fired. Recheck the download option, and prove the event fires by incrementing a counter tag in the same script as the function call.
  • A transition that ends in a fault value: the job was created and delivery failed. Check name resolution, outbound mail ports, the account credentials and the panel clock.
  • The executing value that never completes: a session opened and received no terminal response, which points at a firewall or provider dropping the dialogue part-way.
  • A completed value with no mail arriving: the server accepted the message and the loss is downstream, in quarantine, spam filtering or the receiving system's logs.

Two delivery-path details settle most of the fault cases. A consumer mailbox provider authenticates the account with an application password once two-step verification is enabled, and it commonly rejects a message whose sender address does not match the authenticated account. And a panel clock that drifts by more than a few minutes fails certificate validation on encrypted mail sessions, so sync the panel time from a network source rather than setting it by hand.

Keep the first test plain. A body-text email needs no storage; the Runtime Parameters > Reporting settings only matter once the mail carries a generated report file.

Timing the second press on one button after a working first send #

The inputs, from a bench sequence on the panel after the download fix (the timestamps are an illustrative sequence; the deciding constant is the same-button repeat wait reported for these panels):

  • 08:00:10 panel time: first press, mail arrives, status tag runs and completes.
  • 08:01:40, 08:03:20 and 08:04:50: repeat presses, no mail, no status change.
  • 08:05:20: next press, mail arrives again.

The rule in words: the repeat wait is the elapsed time between the first press that sends and the first repeat press that sends again, so the wait equals the working repeat time minus the first working time.

The arithmetic: 08:05:20 minus 08:00:10 = 5 min 10 s.

The result: a dead window of about five minutes on that button, in line with the reported wait. Presses inside the window start no new job, which is why the status tag does not move.

The decision: a repeat press inside the wait window that shows no status change is expected behavior, not an SMTP fault. Space automated notifications from one button beyond the wait window, or interlock the button, setting an internal tag on press and re-arming it from the processing status, so the operator is not left pressing a control that cannot respond. Email is a notification of record, not a time-critical alarm path; the alarm system with acknowledgement handles that.

Decisions by symptom #

What you observe What it decides What to do
Tag never moves before the fix Retained runtime values, no send job Full download with the keep option deselected
Tag never moves after the fix Event not firing, or the option was missed Recheck Load preview; prove the event with a counter tag
Tag moves, ends in a fault value Job created, delivery failed DNS, mail ports, credentials, panel clock
Executing value never completes Session dropped mid-dialogue Retest against a relay on the local network
Completed value, no mail arrives Server accepted; loss is downstream Check quarantine, spam and receiving logs
First press works, repeat silent inside the window The repeat wait Wait it out or interlock the button

Two decisions cover most cases. A dead button with a frozen status tag is the retained SMTP record: run the full download once with the option cleared, and the button sends. A silent repeat press inside the repeat window is normal: build the wait into the notification design. On a classic Comfort panel the same symptom usually presents differently, as an SMTP error code, and that path is covered in the Comfort Panel SendEmail SMTP errors article.

Questions asked

What values does the SendEmail Processing status tag return?

The function writes an integer. The documented table lists 2 while the function is being executed and 4 once it has completed, with the remaining values covering the fault states. A tag that never leaves its configured initial value means the function never started, which points at the retained SMTP record rather than at mail delivery.

Does a working web browser on the panel prove email can be sent?

No. The browser proves the web path, usually through the site proxy. SendEmail opens its own direct connection to the mail server on the mail ports, and on professional networks the outbound mail ports 25, 465 and 587 are blocked by policy more often than not. Test the port from a PC on the panel's own subnet before blaming the panel.

Can the five-minute wait between emails from one button be changed?

No setting for the interval is documented in the function's parameters and no panel setting for it is known. Treat the wait as fixed: schedule automated notifications from the same button with more spacing, or interlock the button so it re-arms from the processing status and shows the locked state on screen.

Do I need the USB flash drive connected to send a test email?

Not for the first test. A plain text email needs no storage medium; the drive matters only when the mail carries a generated report file. The report storage path is configured under the Reporting settings in Runtime Parameters, and the report function writes the file there. Test with body text only, confirm delivery, then add the attachment.

Keep reading

  • Explainer

    Unified Comfort panel OPC UA client and server roles in V17

    From V17, a Unified Comfort Panel offers both an OPC UA server and an OPC UA Data Access client, so it exchanges process data with a third-party controller in either direction. Each connection pairs one server endpoint with one client; two clients cannot talk to each other. Unified PC Runtime adds the connection to OPC UA servers in V17; pick the panel's role from what the controller's specification says it provides.

    HMI and touchscreens

  • Comparison

    Choosing Free Modbus HMI Software for a Windows Panel PC

    For a Windows panel PC that must show Modbus TCP data and alarms, Ignition Maker Edition and VTScada Lite are the only candidates with a free tier and a specific Modbus TCP claim on record. Maker Edition is documented free for non-commercial use only, so production machines bench-test VTScada Lite first or fall back to code-based AdvancedHMI.

    HMI and touchscreens

  • Troubleshooting

    Why TIA Portal V20 finds 0 compatible Unified Comfort panels

    The '0 compatible devices' scan and the 8020AB0019A5FFF4 load error both come from one gap: the WinCC Unified support in TIA Portal V20, the project's HMI device version and the panel image are not all V20. Install the V20 update, set the device version to 20.0.0.2, flash Panel Image V20, and load with the interface set to Ethernet and the panel's IP entered directly.

    HMI and touchscreens