beautypg.com

Function blocks, Communicationchannel, Parameters – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 178

background image

Communications Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

165

Function Blocks

CommunicationChannel

The CommunicationChannel function block is designed to manage an input stream of data from either a serial or
TCP socket communication interface. It collects portions of data from Y_ReadDevice each time that function’s
Done output goes high, and add it to a circular buffer for further analysis. The CommConfig structure must be
initialized by the user to configure the necessary communication parameters.

Parameters

*

Parameter

Data Type

Description

VAR_IN_OUT

B

CircularByteBuffer

CircularBufferStruct

Structure containing a data buffer and other
operational information required to manage the
CircularByteBuffer.

VAR_INPUT

Default

B

Enable

BOOL

The function will continue to execute
while enable is held high.

FALSE

B

CommConfig

CommStruct

Structure containing information to
be used in establishing socket or
serial communication