Yaskawa MotionWorks IEC Toolboxes User Manual

Page 208

Advertising
background image

Communications Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

195

2.

Data type MyMachineStruct (VAR_IN_OUT ‘MachineData’) is only an example structure. A custom

structure must be designed to uniquely match the needs of the application. An example is shown below.

3.

Change the ‘MachineData’ DataType in the CommandProcessor function block to match your structure

name.

4.

Initialize the configuration elements in CircularByteBuffer.

a.

a. CmdDelimiters are used to mark the end of a complete command. Up to four characters can

be specified. Typically, <cr>, which is BYTE#13 or <cr><lf>, which is BYTE#13 BYTE#10 are
used. If CmdDelimiters not specified, will default functionality will automatically accept Carriage
Return or Carriage Return & Line Feed.

b.

b. PrmDelimiter specifies the character that separates individual parameters within a command.

If PrmDelimiter is not specified, the function will automatically default to a comma, (BYTE#44).

c.

c. Size must represent the defined size of the DataType definition for the CircularBufferStruct’s

“Data? Element. If Size not specified, it will default to zero and the InputBufferManager function

Advertising