beautypg.com

Yaskawa MotionWorks IEC Toolboxes User Manual

Page 215

background image

Communications Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

202

As this is a complicated function, additional examples are provided in separate help files listed under "Additional
Examples" and prefixed with "SMTP_". The example shown here sets up the block, creates a message body and
sends an e-mail to external Gmail account.

The variable EmailBodyString is of type YC_STRING256. Below is the configuration of the SMTP_Data structure:

The most basic form of sending an e-mail is simply converting a string to a byte array via the STRING_TO_BUF
function block provided in the PROCONOS firmware library. With the data structure shown above and this
STRING_TO_BUF block, the email is configured and ready for use.

After toggling PrepareMessage, here is the result.