Siemens SIMATIC S7-1500 Function Manual page 110

Hide thumbs Also See for SIMATIC S7-1500:
Table of Contents

Advertisement

Example: Setting up a secure connection to a mail server over IPv4
The following section describes how to set up a secure connection to an IPv4 mail server
with the TMAIL_C communication instruction.
To set up a secure connection via the IP4 address of the mail server, follow these steps:
1. Create a global data block in the project tree.
2. Define a tag of the data type TMAIL_V4_SEC in the global data block.
The example below shows the global data block "MailConnDB" in which the tag
"MailConnectionSEC" of the data type TMAIL_V4_SEC is defined.
Figure 6-26
Data type TMAIL_V4_SEC
3. Set the connection parameters of the TCP connection in the "Start value" column. Enter
the IPv4 address of the mail server, for example, for the "MailServerAddress".
Note
Connection parameter Interface ID
Note that as of instruction version V5.0 of TMAIL_C instruction in the TMAIL_V4_SEC
data type, you need to enter the value "0" for the Interface ID. In this case, the CPU itself
searches for a suitable local CPU interface.
Communication
Function Manual, 11/2019, A5E03735815-AH
Open User Communication
6.11 Secure Open User Communication
109

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents