beautypg.com

Communications toolbox, Command streaming overview – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 162

background image

Communications Toolbox: DataTypes

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

149

Communications Toolbox

Communications Toolbox

The Communications Toolbox contains functions to provide advanced communication protocols such as DNS,
SMTP, and FTP. Also included in the toolbox are a set of functions designed to parse a stream of commands and
parameter data from either a serial port or TCP socket into useful machine commands.

Command Streaming Overview

The following graphic shows the organizational flow of functions that are part of the command streaming
feature. Certain components of the Command Streaming code require customization for use in your project.
The following must be copied from the toolbox, pasted, and renamed in your project.

1.

ReName_Communications_Mgr POU

2.

ReNameCommandProcessor

3.

MyMachineStruct and any relevant sub structures. This may be significantly customized based on your

application.

The command streaming tools provided in the Comm Toolbox are designed to interpret commands starting with
a two character command code followed by either delimiter separated parameters or no parameters. Example
commands are provided in this documentation.