Sendemail, Parameters – Yaskawa MotionWorks IEC Toolboxes User Manual
Page 212

Communications Toolbox: Function Blocks
MotionWorks IEC61131-3 Toolboxes: 2013-09-13
199
SendEmail
This function block sends an e-mail via SMTP commands (Simple Mail Transfer Protocol) through a specified
SMTP server. The output is highly configurable including multiple recipients, any message body structure,
specified sender e-mail and name and other features listed below.
Parameters
*
Parameter
Data Type
Description
VAR_IN_OUT
V
MessageData
A user customized data structure for configuring the e-mail
block.
V
MessageBody
YC_BYTE4096
The e-mail body as a 4096 element byte array. If a larger
body is required, this declaration can be changed and the
library recompiled.
VAR_INPUT
Default
B
Execute
BOOL
Upon the rising edge, all inputs are read and
the e-mail(s) is sent. To resend the e-mail or
send a different file, change the value(s) and
re-trigger the execute input.
E
BodyLength
UDINT
The length (number of bytes) of the e-mail
body that will be sent. While not necessary it is
highly suggested, see notes below.
VAR_OUTPUT
B
Done
BOOL
Set high upon successfully sending an e-mail.
B
Busy
BOOL
Set high upon the start of communications with the SMTP