Sending An E-Mail - Siemens S7-300 Configuration Manual

Hide thumbs Also See for S7-300:
Table of Contents

Advertisement

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
0.0
+0.0
TO
1)
+42.0
CC
1)
+84.0
FROM
+126.0
SUB
+168.0
Text
+270.0
Attachm
ent
+276.0
Value1
+277.0
Value2
=278.0
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.
Configuring and commissioning S7 CPs for Industrial Ethernet
Configuration Manual, 09/2013, C79000-G8976-C182-13
Type
Start value
STRUCT
STRING[40]
"TO:name.name@t-online.de;"
STRING[40]
"CC:name.name@t-online.de;"
STRING[40]
"FROM:plant.werk2@xyz-
online.de;"
STRING[40]
'SUB:Status Station 7;'
STRING[100]
'TXT:Fault in plant section 2;'
STRING[4]
'BNY:'
BYTE
B#16#27
BYTE
B#16#03
END_STRUCT
2)
2)
Sending process messages by email
8.4 Sending an e-mail
Comment
Recipient
CC recipient
Sender
Subject
Mail text
Here the attachment is
initiated
3)
Attachment/binary
value
3)
Attachment/binary
value
3)
Entry
Mandatory
Optional
Optional
Optional
Mandatory
Optional
Optional
Optional
141

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

S7-400

Table of Contents