EasyManua.ls Logo

Siemens S7-300 - 8.6 SM 326; DO 10 x DC 24 V;2 A (6 ES7326-2 BF01-0 AB0)

Siemens S7-300
246 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...
Sending process messages by email
8.4 Sending an e-mail
Configuring and commissioning S7 CPs for Industrial Ethernet
Configuration Manual, 09/2013, C79000-G8976-C182-13
141
8.4
Sending an e-mail
Procedure
Proceed as follows to send an e-mail:
1. Make the e-mail data available in a data block.
2. Use the AG_SEND or AG_LSEND program block in the user program.
Requirement
You can send email if the email connection has been set up via the connection configuration.
Use the specified ID to call AG_SEND/AG_LSEND in the connection configuration.
Data block
The entire email, meaning the address information and the message itself, will be set up in
any data block. The example in STL notation below shows the appropriate information for
the required DB structure.
Table 8- 3 Email data block in STL notation
Address
Name
Type
Start value
Comment
Entry
0.0
STRUCT
+0.0
TO
1)
STRING[40]
"TO:name.name@t-online.de;"
Recipient
Mandatory
+42.0
CC
1)
STRING[40]
"CC:name.name@t-online.de;"
CC recipient
Optional
+84.0 FROM STRING[40] "FROM:plant.werk2@xyz-
online.de;"
Sender Optional
+126.0
SUB
STRING[40]
'SUB:Status Station 7;'
Subject
Optional
+168.0
Text
STRING[100]
'TXT:Fault in plant section 2;'
Mail text
Mandatory
+270.0 Attachm
ent
STRING[4] 'BNY:
'
Here the attachment is
initiated
3)
Optional
+276.0 Value1 BYTE
B#16#27
2)
Attachment/binary
value
3)
Optional
+277.0 Value2 BYTE
B#16#03
2)
Attachment/binary
value
3)
Optional
=278.0
END_STRUCT
1) Multiple recipients can be specified. The information must then be separated by a comma.
2) The information in bold will be delivered to the recipient as attachment
3) Data can also be supplied dynamically.

Table of Contents

Other manuals for Siemens S7-300

Related product manuals