1. Problem Overview
The Siemens SIMATIC TP277 (6-inch Touch Panel, family 6AV2 124) is widely used as a service and operator interface on smaller machines. Like its larger siblings in the 270/277 series, it supports a built-in SMTP client that can trigger an email when an alarm is raised, a tag threshold is exceeded, or a button is pressed in WinCC Flexible. In the field, a recurring failure mode is the silent no-email condition: the panel accepts the configuration, the project transfers successfully, no warning or error appears at runtime, but the SMTP relay on the LAN never receives a connection attempt from the HMI.
Engineers typically diagnose this as a network problem first, because the symptom is identical to a firewall block, a mis-configured DNS server, or an unreachable SMTP relay. The packet capture shows the panel sending ICMP echoes to the mail server, but no TCP port 25 (or 465/587) traffic. After the network is exhaustively checked, the remaining root cause is almost always the panel's option-bit license: the Sm@rtService option, which gates the SendEMail runtime function, has not been activated on the device, or the wrong license variant has been transferred.
This reference documents the full diagnostic path, the license activation procedure, the WinCC Flexible project configuration for SMTP, and the verification steps that confirm a working email channel. It is written for a controls engineer who has the panel on the bench, the project open in WinCC Flexible 2008 SP3 or later, and a working SMTP relay on the network.
2. TP277 Hardware and Firmware Context
The TP277 ships in two main variants:
- TP 277 6" — 6AV2 124-1MC01-0AX0, 5.7" color TFT, 256 colors or 16-bit (variant dependent).
- TP 277 4" — older 4-inch monochrome variant (less common on email projects).
Firmware revisions encountered in the field include:
| Firmware | Bootloader | Image | WinCC Flexible |
|---|---|---|---|
| V1.x (early) | Boot V1.x | Win CE 5.0 | 2005 / 2007 |
| V2.x | Boot V1.x | Win CE 5.0 | 2007 / 2008 |
| V3.x (latest) | Boot V2.x | Win CE 5.0 | 2008 SP2/SP3 / 2008 SP4 (HSP) |
Email capability is present in all three revisions, but the Sm@rtService runtime function is gated by a license key, not by firmware. A panel that was ordered without the option (MLFB without the -0AX1 / -0AX2 suffix, depending on option model) must receive a license transfer from the configuration PC before the email function becomes executable. This is the single most common root cause of the silent failure described in the problem overview.
3. Sm@rtService License Architecture
Siemens sells the TP277 email/Sm@rtService capability as an option that is licensed per-device. The license is keyed to the panel's serial number and CF card fingerprint (the panel stores its license on the internal flash, with a fingerprint derived from the operating-system partition). The license is delivered as a .zip archive from the Siemens Automation License Manager and must be transferred to the panel via ProSave or directly from WinCC Flexible's transfer dialog.
3.1 License Variants
There are two license generations and two scope types that must match the panel and the configuration tool:
| Generation | License Name | MLFB (typical) | Configuration Tool | Notes |
|---|---|---|---|---|
| Legacy | Sm@rtService for Panels 2005 | 6AV6 671-1AC00-0AX0 | WinCC Flexible 2005 | Used on first-generation TP270 / OP270 / MP270 panels |
| Legacy | Sm@rtService for Panels 2007 | 6AV6 671-1AC00-0AX2 | WinCC Flexible 2007 | Required for TP277 with WinCC Flexible 2007 |
| Current | Sm@rtService for Panels 2008 | 6AV6 671-2AC00-0AX3 | WinCC Flexible 2008 SP2+ | Recommended for current panels; HSP available |
| PC scope | Sm@rtService for PC Runtime | 6AV6 671-1XC00-0AX0 | WinCC Runtime / PC | NOT valid for TP277 — must be a Panel license |
3.2 Verifying the License State on the Panel
- On the TP277, open Control Panel → OP Properties → Add-ons (or Start → Settings → Control Panel → Add-ons depending on firmware).
- The Sm@rtService entry shows Activated or Not activated. The version column shows the licensed generation (2005, 2007, 2008).
- If the entry is missing entirely, the option was never ordered on the device. A license may be ordered retroactively through Siemens and transferred via ProSave.
If the panel reports Not activated, the SendEMail function is bound to return without sending or to raise a system event 0x8004xxxx, depending on the runtime revision. The latter is what produces the "no error, no email" behavior the original poster observed: the call is rejected at license-check time and the system alarm is filtered out of the default alarm view.
4. WinCC Flexible SMTP Configuration
With a valid Sm@rtService license in place, the project-side configuration proceeds as follows.
4.1 Device-Level SMTP Settings
- In WinCC Flexible, open the project tree and select Device → Settings → SMTP.
- Enter the SMTP server hostname or IP. The hostname
mail.ourcompany.comused in the field report is acceptable; an IP literal is also valid and avoids a DNS dependency. - Set the SMTP port. Default 25 for cleartext, 465 for implicit SSL, 587 for STARTTLS submission.
- Authentication: leave blank for open relay, or enter user/password for authenticated submission. Encrypted transfer is configured under Settings → SSL/TLS.
- Sender address:
[email protected](must be accepted by the SMTP server; many relays reject unverified senders).
4.2 Network Adapter Settings
- Control Panel → Network and Dial-up Connections → Onboard Ethernet (or PN_X1 for Profinet variants).
- Set IP, Subnet, Gateway. The panel must be on a routable subnet whose gateway can reach the SMTP server.
- DNS servers: required if SMTP hostname is used. The original report shows the panel resolving
mail.ourserver.comandgoogle.comvia ping, indicating DNS is functional — but a successful ping does not prove that the SMTP port is reachable. Confirm with a port-test step in section 6.
4.3 Alarm-Side Email Trigger
- Open the alarm screen or the Alarm Management → Settings node.
- On the
OnAlarmorOnAcknowledgeevent, attach the system function SendEMail. - Function parameters:
Recipient,Subject,Body,Sender(optional, defaults to device setting).
A button-driven test in the original report ("dummy program with a big button, on-press SendEMail") is the canonical method for isolating alarm-engine issues from network issues. It is the right diagnostic step and is reproduced in section 6.2 as a formal verification procedure.
5. Root Cause Map for Silent Email Failures
The diagnostic tree below maps the symptom ("no email, no error") to its most likely causes. Address in order from the cheapest to the most expensive check.
| Rank | Probable Cause | Verification | Remedy |
|---|---|---|---|
| 1 | Sm@rtService not licensed on the panel | OP Properties → Add-ons | Transfer license via ProSave |
| 2 | Wrong license generation (2005 used on 2008 project) | Compare license generation to WinCC Flexible version | Order correct generation, transfer |
| 3 | DNS not resolving SMTP hostname | Control Panel → Network → DNS test (ping by name) | Use IP literal or correct DNS server |
| 4 | SMTP port filtered by corporate firewall | Wireshark on PC targeting same server:port 25 | Open port on firewall, or use submission port 587 |
| 5 | SMTP relay requires authentication not configured | Send test mail from Outlook with same account | Add username/password in project SMTP settings |
| 6 | SMTP relay rejects unverified sender | Check relay log for rejection 5xx codes | Configure sender address to a relay-accepted account |
| 7 | System event filter hides license error | Enable Show all system events in alarm view | Filter cleared once license is active |
| 8 | Wrong function name in script (case-sensitive on some revisions) | Compare to VBScript SmartTags("") reference |
Use SendEMail exactly as documented |
6. Diagnostic and Verification Procedure
6.1 Pre-flight: License and Network
- Confirm Sm@rtService is Activated in OP Properties. If not, stop and resolve license before continuing.
- From the panel, ping the SMTP server by hostname. The original report shows this step was successful. If ping fails by name, change to IP literal in the SMTP settings.
- From a PC on the same subnet, run
Test-NetConnection mail.ourcompany.com -Port 25(PowerShell) ortelnet mail.ourcompany.com 25. If the PC fails, the panel will also fail; the issue is upstream of the panel. - Wireshark on the panel's switch port: filter on
tcp.port==25while triggering a SendEMail. No SYN packet = the panel is not attempting the connection. Most often this is the license gate; with a valid license, the SYN is sent and the issue becomes SMTP-side.
6.2 Function Test: Button-Driven SendEMail
- Create a screen with a single button.
- On the
OnClickevent, place the SendEMail system function with parameters:Recipient: [email protected] Subject: TP277 Email Test Body: Triggered at &Date &Time from TP277 Sender: [email protected] (optional) - Compile and transfer the project.
- Press the button. Expected: a TCP connection from the panel to the SMTP server on port 25, followed by an SMTP
EHLO,MAIL FROM,RCPT TO,DATAexchange, and a250 OKreply from the server. - Verify delivery in the recipient mailbox or in the relay's queue log.
6.3 Alarm-Driven SendEMail
- After step 6.2 succeeds, attach the same SendEMail function to an
OnAlarmevent. - Define an alarm class with a tag-bound trigger (e.g.,
AlarmTag1 == 1). - Force the alarm in the project simulation or in the live HMI by setting the tag. The email must be delivered within 1–2 seconds of the alarm edge.
- If step 6.2 succeeded but 6.3 fails, the issue is in the alarm wiring, not the SMTP layer. Check the function-list under the alarm's
OnAlarmevent, not under the alarm class's default event.
6.4 License Status Verification via ProSave
- Open ProSave, connect to the panel via Ethernet.
- Under License → Read back license, the panel's active license keys are listed. A non-empty Sm@rtService entry with a valid expiration date (perpetual for option licenses) confirms activation.
- If the list is empty, the license transfer was not persisted. Repeat the transfer with Authorize/Transfer License and reboot the panel.
7. License Transfer Procedure (ProSave)
- On the configuration PC, install the Automation License Manager (part of the TIA / WinCC Flexible installation, also available standalone).
- Launch ALM. The license file (.lic) is imported from the .zip delivery. ALM places it in the license repository and displays the panel's target serial number.
- Open ProSave, set the connection type to Ethernet, enter the TP277's IP, and select the panel type.
- Click Authorize / License → Transfer License to Target Device.
- Select the Sm@rtService license from the repository and click Transfer.
- After a successful transfer, ProSave prompts for a panel reboot. Allow the reboot.
- Re-check OP Properties → Add-ons to confirm the Activated state.
8. Common Error States and System Events
The TP277 raises the following system events around the SMTP runtime. They are visible in the alarm view only when the system-alarm filter is enabled.
| Event ID | Trigger | Meaning | Resolution |
|---|---|---|---|
| 140001 | SendEMail call | Email dispatched to SMTP server | Informational — no action |
| 140002 | SMTP transaction | Email accepted by server (250 OK) | Informational — no action |
| 140003 | SMTP transaction | Server rejected (4xx / 5xx) | Check sender whitelist, auth, content |
| 140004 | SendEMail call | DNS resolution failed | Set DNS server, use IP literal |
| 140005 | SendEMail call | Connection timeout / unreachable | Verify route and firewall |
| 140010 | SendEMail call | Sm@rtService not licensed | Transfer license per section 7 |
When the system-alarm filter is set to Errors and warnings only, events 140001 and 140002 are suppressed. This is why the runtime shows "no error" even when the license is missing and 140010 is being raised — the engineer must enable Show all system events to see the license gate in action.
9. Alternate Trigger: VBScript SendEMail on TP277
TP277 panels with firmware V2.0 and later support VBScript in the function list. A direct script call is sometimes more flexible than the system function for embedding dynamic content:
Function OnButtonPress()
Dim sTo, sSubject, sBody
sTo = "[email protected]"
sSubject = "TP277 Event @ " & Time
sBody = "Tag PressureAlarm = " & _
SmartTags("PressureAlarm") & vbCrLf & _
"Time: " & Now
ShowSystemAlarm "Triggering SendEMail..."
SmartTags("EmailStatus") = 0 ' clear before send
SendEMail sTo, sSubject, sBody
SmartTags("EmailStatus") = 1 ' mark send complete
End Function
This pattern is useful when the original poster-style "big button" test needs to confirm both the function execution path and the SMTP path in a single step. The SmartTags("EmailStatus") tag is a convenient latch for an HMI-visible indicator that the call returned.
10. Firmware/HSP Compatibility Matrix
When a project is built on a newer WinCC Flexible version than the panel was designed for, function availability can regress. The matrix below summarises the supported combinations for the Sm@rtService / SendEMail path:
| Panel Firmware | WinCC Flexible 2005 | WinCC Flexible 2007 | WinCC Flexible 2008 SP2 | WinCC Flexible 2008 SP3 / SP4 |
|---|---|---|---|---|
| V1.x | Yes (license 2005) | Yes (license 2007) | No (no HSP) | No |
| V2.x | Yes | Yes (license 2007) | Yes (HSP) | Yes (HSP) |
| V3.x | No | No | Yes (license 2008) | Yes (license 2008) |
If a project built in 2008 SP3 is transferred to a V1.x panel, the SMTP-related functions are stripped or substituted. Conversely, a 2005-built project transferred to a V3.x panel needs the legacy license even though the configuration tool is current. The license and the configuration generation must be matched.
11. Step-by-Step Recovery (Original Field Scenario)
Recreating the field report from the field report, the most direct recovery sequence is:
- On the TP277: Start → Settings → Control Panel → OP Properties → Add-ons. Confirm whether Sm@rtService is Activated.
- If not activated: obtain the matching license from Siemens. Use Automation License Manager on the configuration PC to import the license file, then ProSave → License → Transfer to Target Device.
- After the transfer and a panel reboot, re-verify Activated in OP Properties.
- Enable Show all system events in the alarm view. This makes 140010 visible in case of regression.
- Trigger the button-driven SendEMail test (section 6.2) and confirm the Wireshark capture shows a TCP SYN from the panel to the SMTP server.
- If the SYN is present and a 250 OK is returned, transfer the same function to the alarm's OnAlarm event and verify end-to-end delivery.
12. Frequently Asked Questions
Why does the TP277 show no error and still not send an email?
The SendEMail runtime function is gated by the Sm@rtService license. When the license is not activated, the call is rejected at the option-bit check. The associated system event 140010 is filtered out of the default alarm view, so the runtime appears error-free. Open OP Properties → Add-ons to confirm the license state.
Which Sm@rtService license do I need for a TP277 with WinCC Flexible 2008 SP3?
Order the Sm@rtService for Panels 2008 option (6AV6 671-2AC00-0AX3 or current equivalent). A 2005 or 2007 license is not compatible with a 2008-built project. A PC Runtime license (6AV6 671-1XC00-0AX0) will not activate on the panel.
Do I need to install an email client on the TP277?
No. The TP277's SMTP client is a built-in component of the WinCC Flexible runtime, not an external mail application. There is no separate email client to install; the relevant capability is the licensed SendEMail function inside the runtime.
The panel can ping the mail server but no TCP port 25 traffic appears on the network — what now?
Confirm Sm@rtService is licensed. With the license active, trigger a SendEMail and capture on the panel's switch port. A SYN packet to port 25 must appear within 1–2 seconds. If the SYN is absent, the call was rejected at the runtime license gate; if the SYN is present and the server replies with RST, the firewall or SMTP relay is rejecting the connection.
Can I use TLS or STARTTLS for the TP277 SMTP connection?
Yes. In the device's SMTP settings, enable SSL/TLS for port 465 (implicit) or STARTTLS for port 587 (submission). The certificate presented by the SMTP server must be trusted by the panel's certificate store; otherwise the connection fails silently. For internal relays, a self-signed certificate must be installed on the panel under Control Panel → Certificates.