EasyManua.ls Logo

Siemens SIMATIC S7-1200 - Page 1306

Siemens SIMATIC S7-1200
1614 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
TeleService communication (SMTP email)
14.1 TM_Mail (Send email) instruction
S7-1200 Programmable controller
1306 System Manual, V4.2, 09/2016, A5E02486680-AK
Example: Internal email server configuration
If you use Microsoft Exchange as an internal mail server, then you can configure the server
to allow SMTP access from the IP address assigned the S7-1200 PLC. Configure the
Exchange management console: Server configuration > Hub transport > Receive connectors
> IP relay. On the Network tab, there is a box named "Receive mail from remote servers that
have these IP addresses". This is where you put the IP address of the PLC that is executing
the TM_MAIL instruction. No authentication is required for this type of connection with an
internal Microsoft Exchange server.
Email server configuration
TM_MAIL can only use an email server that allows port 25 communication, SMTP, and
AUTH LOGIN authentication (optional).
Configure a compatible email server account to accept remote SMTP log in. Then edit the
instance DB for TM_MAIL to put in the TM_MAIL USERNAME and PASSWORD character
strings that are used to authenticate the connection with your email account.
Table 14- 4 Condition codes
STATUS
(W#16#...):
SFC_STATUS
(W#16#...):
Description
0000 - The TM_MAIL operation completed without error. This zero STATUS code does
not guarantee that an email was actually sent (See the first item in the note fol-
lowing this table).
7001 - TM_MAIL is active (BUSY = 1).
7002
7002
TM_MAIL is active (BUSY = 1).
8xxx xxxx The TM_MAIL operation was completed with an error in the internal communica-
tion instruction calls. For more information about the SFC_STATUS parameter,
see the descriptions of the STATUS parameter of the underlying PROFINET
open user communication instructions.
8010 xxxx
Failed to connect: For more information about the SFC_STATUS parameter, see
the STATUS parameter of the TCON instruction.
8011 xxxx Error sending data: For more information about SFC_STATUS parameter, see
the STATUS parameter of the TSEND instruction.
8012 xxxx Error while receiving data: For more information about the SFC_STATUS pa-
rameter, see the STATUS parameter descriptions of the TRCV instruction.
8013 xxxx Failed to connect: For more information for evaluating the SFC_STATUS param-
eter, see the STATUS parameter descriptions of the TCON and TDISCON in-
structions.
8014 - Failed to connect: You may have entered an incorrect mail server IP address
(ADDR_MAIL_SERVER) or too little time (WATCH_DOG_TIME) for the connec-
tion. It is also possible that the CPU has no connection to the network or the
CPU configuration is incorrect.
8015 - Invalid pointer for ATTACHMENT parameter: Use a variant pointer with a data
type and length assignment. For example, "P#DB.DBX0.0" is incorrect and
"P#DB.DBX0.0 byte 256" is correct.
82xx, 84xx,
85xx
-
The error message comes from the mail server and corresponds to error number
"8" of the SMTP protocol. See the second item in the note following this table.
8450
-
Operation does not run: Mailbox is not available; try again later.

Table of Contents

Other manuals for Siemens SIMATIC S7-1200

Related product manuals