• {{item.name}}
通信与网络组件 {{item.name}}
{{item2.name}}
更多
应用实例与扩展工具

采用开放式通信函数块发送电子邮件

star star star star star
5.0 分
  • 使用操作
文档编号:46817803| 文档类型:应用实例与扩展工具| 发布时间:2023年12月07日
  • 0
  • 123
  • 1333
通过 SMTP 协议发送的电子邮件为全球信息传输提供了一种快捷、廉价和可靠的方法。此外,电子邮件的发送还可以依托现有的基础设施 (因特网) 实现。

SIMATIC S7 stations also allow the use of email as the default mechanism for transmitting error conditions or warnings from industrial plants to a control center or operating staff.


Solution
Nowadays, for security reasons, most email service providers only support an encrypted connection to their SMTP servers.

The following Ethernet ports can be used to set up a secure connection (SMTP over TLS) to an email server and send an email from the user program using the "TMAIL_C" instruction.

  • Ethernet port of S7-1500 CPU (V2.5 and higher version) or S7-1200 CPU (V4.4 or higher version)
  • Ethernet port of the CP of S7-1500 or S7-1200

Fig. 1

Setting up a secure email connection requires the following steps that are described in the application example:

  • Determine and download the provider certificates
  • Allow the email account access by the CPU or CP
  • Activate the security features in the CPU or CP
  • Import the provider certificates into STEP 7 (TIA Portal)
  • Add the provider certificates to the CPU or CP
  • Connect the Ethernet port to the Internet
  • Configure the DNS server
  • Parameterize the TMail system data types in STEP 7 (TIA Portal)
  • Parameterize the "TMAIL_C" instruction
  • Set the S7 CPU's and CP's time

Download
 Documentation (2,6 MB)
  Sample project for TIA Portal V17 (835,8 KB)

Note
The sample project is protected. Log on with following credentials:

  • User name: admin
  • Password: Siemens.1

Archive
The FB "PN_Mail" function block (FB490) allows you to establish a non-secure connection from the following modules to an email server:

  • S7-300/400 CPUs
  • ET200S/IM151 distributed I/O systems
  • ET200PRO/IM154-8 CPUs
  • WinAC computers such as SIMATIC Microbox PCs

In the archive, you will find the documentation and sample projects for sending unsecure emails with the FB "PN_Mail".
  Archive (798,7 KB)
Last Changes

Complete revision


您可以前往全球资源库查看此文档:

https://support.industry.siemens.com/cs/cn/zh/view/46817803

剩余80%未阅读,请登录后下载/查看文档

  • 评论
更多
  • 分享

    扫码分享

提示
您即将前往“全球技术资源库”。
“全球技术资源库”的用户名与本地支持中心(下载中心、技术论坛、找答案、1847工业学习平台)的用户名不通用。如果需要在全球技术资源库下载文档,您需要重新登录或注册。
确定

0元领课点我

信息提示
很抱歉!您所访问的页面不存在,或网址发生了变化,请稍后再试。