0% found this document useful (0 votes)
40 views8 pages

STATUS and SFB - STATUS

This manual provides essential safety information and guidelines for operating Siemens S7-1200 products, specifically focusing on the STATUS and SFB_STATUS parameters related to the 'TM_MAIL' instruction. It outlines the return values, error codes, and proper usage of the product, emphasizing the importance of qualified personnel and adherence to safety precautions. Additionally, it includes legal disclaimers and trademark information relevant to the documentation.

Uploaded by

Uhule Peter
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views8 pages

STATUS and SFB - STATUS

This manual provides essential safety information and guidelines for operating Siemens S7-1200 products, specifically focusing on the STATUS and SFB_STATUS parameters related to the 'TM_MAIL' instruction. It outlines the return values, error codes, and proper usage of the product, emphasizing the importance of qualified personnel and adherence to safety precautions. Additionally, it includes legal disclaimers and trademark information relevant to the documentation.

Uploaded by

Uhule Peter
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

STATUS and SFB_STATUS parameters (S7-1200)

TeleService (S7-1200)

Manual

V20

11/2024
Legal information
Warning notice system

This manual contains notices you have to observe in order to ensure your personal safety, as
well as to prevent damage to property. The notices referring to your personal safety are
highlighted in the manual by a safety alert symbol, notices referring only to property damage
have no safety alert symbol. These notices shown below are graded according to the degree of
danger.

DANGER

indicates that death or severe personal injury will result if proper precautions are not taken.

WARNING

indicates that death or severe personal injury may result if proper precautions are not taken.

CAUTION

indicates that minor personal injury can result if proper precautions are not taken.

NOTICE

indicates that property damage can result if proper precautions are not taken.

If more than one degree of danger is present, the warning notice representing the highest
degree of danger will be used. A notice warning of injury to persons with a safety alert symbol
may also include a warning relating to property damage.

Qualified Personnel

The product/system described in this documentation may be operated only by personnel


qualified for the specific task in accordance with the relevant documentation, in particular its
warning notices and safety instructions. Qualified personnel are those who, based on their
training and experience, are capable of identifying risks and avoiding potential hazards when
working with these products/systems.

Proper use of Siemens products

Note the following:

WARNING

Siemens products may only be used for the applications described in the catalog and in the
relevant technical documentation. If products and components from other manufacturers are
used, these must be recommended or approved by Siemens. Proper transport, storage,
installation, assembly, commissioning, operation and maintenance are required to ensure
that the products operate safely and without any problems. The permissible ambient

2 Manual, 11/2024
conditions must be complied with. The information in the relevant documentation must be
observed.

Trademarks

All names identified by ® are registered trademarks of Siemens Aktiengesellschaft. The


remaining trademarks in this publication may be trademarks whose use by third parties for their
own purposes could violate the rights of the owner.

Disclaimer of Liability

We have reviewed the contents of this publication to ensure consistency with the hardware and
software described. Since variance cannot be precluded entirely, we cannot guarantee full
consistency. However, the information in this publication is reviewed regularly and any
necessary corrections are included in subsequent editions.

Siemens Aktiengesellschaft
Copyright © Siemens 2024.
Digital Industries
11/2024 Subject to change All rights reserved
Postfach 48 48
90026 NÜRNBERG
GERMANY

Manual, 11/2024 3
Table of content

1 STATUS and SFB_STATUS parameters (S7-1200) 6

4 Manual, 11/2024
Manual, 11/2024 5
STATUS and SFB_STATUS parameters (S7-1200)
Description
1
The return values of the "TM_MAIL" instruction can be classified as follows:

W#16#0000: "TM_MAIL" was completed successfully

W#16#7xxx: Status of "TM_MAIL"

W#16#8xxx: An error was reported during the internal call of a communication block or from
the mail server.

The following table shows the return values of "TM_MAIL" except for error codes of the internally
called communication blocks.

Return Return Explanation Notes


value value
STATUS* SFB_STATUS
(W#16#...): (W#16#...):

0000 - The processing of "TM_MAIL" A without error


was completed without completion of "TM_MAIL"
errors. does not mean that the
sent e-mail will
necessarily arrive (see
below - note on point 1)

7001 "TM_MAIL" is active (BUSY = Initial call; job has started


1).

7002 7002 "TM_MAIL" is active (BUSY = Intermediate call; job


1). already active

8xxx xxxx The processing of "TM_MAIL" For detailed information


was completed with an error on the evaluation of the
code of the internally called SFB_STATUS parameter,
communication instructions. refer to the descriptions
of the STATUS parameter
of the communication
instructions.

8010 xxxx Error during connection For further information


establishment. on the evaluation of the
SFB_STATUS parameter,
refer to the descriptions

6 Manual, 11/2024
of the STATUS parameter of the "TCON"
instruction.

8011 xxxx Error sending the data. For further information on the evaluation
of SFB_STATUS, refer to the descriptions of
the STATUS parameter of the "TSEND"
instruction.

8012 xxxx Error receiving the data. For further information on the evaluation
of SFB_STATUS, refer to the descriptions of
the STATUS parameter of the "TRCV"
instruction.

8013 xxxx Error during connection For further information on the evaluation
establishment. of SFB_STATUS, refer to the descriptions of
the STATUS parameter of the "TCON" and
"TDISCON" instructions.

8014 - Establishment of a You have possibly entered an incorrect mail


connection is not server IP address (ADDR_MAIL_SERVER) or
possible. a time span that is too short
(WATCH_DOG_TIME) to establish the
connection. It is also possible that the CPU
has no connection to the network or that
the CPU configuration is incorrect.

8016 - Error copying the -


attachment

82xx, - The error message See point 2 in the note.


84xx, originates from the mail
or server and the last three
85xx digits correspond to the
error number of the
SMTP protocol.
The following columns
list several error codes
that can occur:

8450 - Action not executed: Try again later.


Mailbox not
available/not reachable.

8451 - Action aborted: Local Try again later.


processing error

8500 - Syntax error: Error not


recognized. This also
includes the error when
a command string is too
long.

Manual, 11/2024 7
This can also occur when
Check the parameters of "TM_MAIL". Try to
the e-mail server does not
send an e-mail without authentication. To do
support the LOGIN
this, replace the USERNAME parameter with
authentication procedure.
an empty string.

8501 - Syntax error: Parameter or You have possibly entered an incorrect


argument incorrect address in TO_S or CC.

8502 - Command unknown or not Check your entries, in particular the FROM
implemented. parameter. This is possibly incomplete and
you have forgotten "@" or ".".

8535 - SMTP authentication You have possibly entered an incorrect user


incomplete. name or incorrect password.

8550 - Mail server cannot be You have possibly entered an incorrect user
reached, you have no name or password, or the mail server does
access rights. not support your LOGIN. Another cause of
error could be an incorrect entry of the
domain name after the "@" in TO_S or CC.

8552 - Action aborted: Assigned Try again later.


memory size has been
exceeded

8554 - Transmission failed. Try again later.

* The error codes can be displayed as integer or hexadecimal values in the program
editor. For information on switching the display formats, refer to "See also".

Note
Status error

1. An incorrect entry of the recipient addresses does not generate a status error of
the "TM_MAIL" instruction. In this case, there is no guarantee that the e-mail
will be sent to other recipients, even if these were entered correctly.

2. You can find more detailed information on the SMTP error code and other error
codes in SMTP protocol on the Internet or in the error documentation of the
mail server. You can also view the most recent message from the mail server in
your instance DB in the BUFFER1 parameter. If you look under "Data", you will
find the data most recently sent by the "TM_MAIL" instruction.

See also
Switching display formats in the program status

8 Manual, 11/2024

You might also like