Communication
11.2 PROFINET
Data types for the parameters
The following table shows the parameters of the "TMAIL_C" instruction:
Parameter
REQ
TO_S
(Page 891)
CC
(Page 891)
SUBJECT
TEXT
ATTACHMEN
T
ATTACHMEN
T_NAME
MAIL_ADDR_
PARAM
(Page 890)
888
Declaration
Data type
Input
BOOL
Input
STRING
Input
STRING
Input
STRING
Input
STRING
Input
VARIANT
Input
VARIANT
Input
VARIANT
Memory
Description
area
I, Q, M, D,
Control parameter REQUEST: Acti-
L, T, C or
vates the sending of an e-mail upon a
constant
rising edge.
D
Recipient addresses
STRING with a maximum length of 180
characters (bytes).
For the e-mail address format, please
see the example in the parameter
description.
D
CC recipient addresses (optional)
STRING with a maximum length of 180
characters (bytes).
Same e-mail address format as for the
TO_S parameter. If an empty string is
assigned here, the e-mail is not sent to
a CC recipient.
D
Subject of the e-mail
STRING with a maximum length of 180
characters (bytes).
D
Text of the e-mail (optional)
STRING with a maximum length of 180
characters (bytes). If an empty string is
assigned at this parameter, the e-mail
is sent without text.
D
E-mail attachment (optional)
Reference to a byte/word/double word
field (ArrayOfByte, ArrayOfWord or
ArrayOfDWord) with a maximum length
of 64 bytes. If no value is assigned, the
e-mail is sent without an attachment.
D
E-mail attachment name (optional)
Reference to a character string with a
maximum length of 50 characters
(bytes) to define the file name of the
attachment. If an empty string is as-
signed at this parameter, the e-mail
attachment will be sent with the file
name "attachment.bin".
D
Connection parameter and address of
the e-mail server
To define the connection parameters,
use the structure Tmail_v4 or
Tmail_FQDN (see parameter descrip-
tion).
S7-1200 Programmable controller
System Manual, V4.2, 09/2016, A5E02486680-AK