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
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.
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.
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
1)
"TO:name.name@t-online.de;"
1)
"CC:name.name@t-online.de;"
+84.0 FROM STRING[40] "FROM:plant.werk2@xyz-
Sender Optional
'TXT:Fault in plant section 2;'
+270.0 Attachm
STRING[4] 'BNY:
Here the attachment is
3)
Optional
+276.0 Value1 BYTE
2)
Attachment/binary
3)
Optional
+277.0 Value2 BYTE
2)
Attachment/binary
3)
Optional
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.