Professional Documents
Culture Documents
1761-Net-Eni - Sending Email Messages Via A Compactlogix Controller
1761-Net-Eni - Sending Email Messages Via A Compactlogix Controller
This is an example application setup for sending email messages from a CompactLogix
controller to an email account. A PLC2 Unprotected Write type message is sent from the
controller to the 1761-NET-ENI, which forwards it on to an email account.
The recommended method of sending an email message is to use an ST file for the source of
the data to be emailed. This will work with SLC, MicroLogix1200, and MicroLogix1500
controllers. In the Logix controller, the ST file type uses a DINT for the .LEN of the string file.
Therefore, the message will not operate as expected. The way around this is to use an INT
file type that simulates an ST file type by using the first word of the array as the length. The
length will be the number of characters to be sent in the email message as shown below.
Word 0 of the array is then set to 8, decimal, for the number of characters in TestData. The
actual data to be sent in the email message is TestData entered in as ASCII starting at word
1.
The following logic will send a message on a false to true transition of the msg_toggle.1 bit. It
will not get sent again until this bit turns off and then back on again.
Page 1 of 3
Page 2 of 3
The Email Server IP Address shown below is only for demonstration. This must be the IP
address for the email server on the network. The email address is shown in the Email routing
tab at node 150. Any message sent to node 50 will be forwarded on to the email address
stored at node 150.
Page 3 of 3