DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-280
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
ECOM100 Send E-mail (ECEMAIL) (IB-711)
ECOM100 Send EMail, on a leading edge transition, will behave as an EMail client and send
an SMTP request to your SMTP Server to send the EMail message to the EMail addresses in
the To: field and also to those listed in the Cc: list hard coded in the ECOM100. It will send
the SMTP request based on the specified ECOM100#, which corresponds to a specific unique
ECOM100 Configuration (ECOM100) at the top of your program.
Either the Success or Error bit parameter will turn on once the request is complete. If there is an
error, the Error Code parameter will report an ECOM100 error code (less than 100), an SMPT
protocol error (between 100 and 999), or a PLC logic error (greater than 1000).
Since the ECOM100 is only an EMail Client and requires access to an SMTP Server, you
MUST have the SMTP parameters configured properly in the ECOM100 via the ECOM100’s
Home Page and/or the EMail Setup instruction (ECEMSUP). To get to the ECOM100’s
Home Page, use your favorite Internet browser and browse to the ECOM100’s IP Address, e.g.
http://192.168.12.86
You are limited to approximately 100 characters of message data for the entire instruction,
including the To: Subject: and Body: fields. To save space, the ECOM100 supports a hard
coded list of EMail addresses for the Carbon Copy field (cc:) so that you can configure those
in the ECOM100, and keep the To: field small (or even empty), to leave more room for the
Subject: and Body: fields.
In order for this ECOM100 IBox to function, you must turn ON dip switch 7 on the
ECOM100 circuit board.
DS
Used
HPP
N/A
The Body: field supports what the PRINT and
VPRINT instructions support for text and embedded
variables, allowing you to embed real-time data in
your EMail (e.g. “V2000 = “ V2000:B).
The Workspace parameter is an internal, private
register used by this IBox and MUST BE UNIQUE
in this one instruction and MUST NOT be used
anywhere else in your program.