Setting Up Communication Via E-Mail - Siemens SIMATIC ET 200AL System Manual

Distributed i/o system
Hide thumbs Also See for SIMATIC ET 200AL:
Table of Contents

Advertisement

Open User Communication

6.8 Setting up communication via e-mail

6.8
Setting up communication via e-mail
Setting up a connection for e-mail via the user program
For communication using e-mail, you need to create the data block of the relevant system
data type yourself, assign parameters and call the instruction directly. This procedure is
introduced below.
Procedure for setting up communication using e-mail
A CPU can send e-mails. To send e-mails from the user program of the CPU, use the
TMAIL_C instruction.
Requirement: The SMTP server can be reached via the IPv4 network.
1. Configure an S7-1500 automation system with CPU in the network view of the Devices &
networks editor of STEP 7.
2. Assign parameters to the instruction TMAIL_C, for example enter the subject of the e-mail
in Subject.
3. In a global data block create a variable of the type TMAIL_v4, TMAIL_v6 (only
CP 1543-1) or TMAIL_FQDN (only CP 1543-1).
4. Set the connecting parameters of the TCP connection in the variable in the "Start value"
column. Enter the IPv4 address of the mail server, for example, for the
"MailServerAddress" (for TMAIL_v4)
Note
Connection parameters InterfaceId and ID
Note that you can enter the value "0" for the interface ID and the ID with instruction
version V5.0 or higher of the instruction TMAIL_C in the data type TMAIL_V4_SEC. In
this case the CPU itself searches for a matching local CPU interface or a free connection
ID.
Interconnect the variable to the MAIL_ADDR_PARAM parameter of the TMAIL_C
instruction.
5. Download the hardware configuration and user program to the CPU.
Additional information
The STEP 7 online help describes:
● The system data types
● The instructions for open communication
● The connection parameters
88
Function Manual, 12/2017, A5E03735815-AF
Communication

Advertisement

Table of Contents
loading

Table of Contents