beautypg.com

Inputbuffermanager, Parameters – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 204

background image

Communications Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

191

InputBufferManager

The InputBufferManager function block manages a circular buffer of incoming data. It is a supporting function
block for the CommunicationChannel function block. A user should not need to access this function directly.

Parameters

*

Parameter

Data Type

Description

VAR_IN_OUT

V

InputBuffer

YTB_ByteArray2048

Byte array containing data to be copied into the
CircularByteBuffer.

V

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

V

Execute

BOOL

Upon the rising edge, all other
function block inputs are read and
the function is initiated. To modify
an input, change the value and re-
trigger the execute input.

INT#0

V

BytesRead

UDINT

Number of bytes to be copied from
InputBuffer to CircularByteBuffer.

UDINT#0

V

ClearBuffer

BOOL

Clears all contents of the circular
buffer and resets StorePointer and
UsePointer

INT#0

VAR_OUTPUT