beautypg.com

Data type: circularbufferstruct, Data type declaration – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 169

background image

Communications Toolbox: DataTypes

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

156

Data Type: CircularBufferStruct

Data Structure used to manage a circular buffer of data used by multiple function blocks.

Data Type Declaration

CircularBufferStruct:STRUCT

StorePointer:INT;

(* FB Output - Pointer updated when new elements added to buffer *)

UsePointer:INT;

(* FB Output - Pointer updated when elements of buffer have been read *)

Size:INT;

(* User Input - Size of circular buffer *)

CmdDelimiters:DelimiterArray;

(* User Input - Delimiters separating Command Strings. Default is carriage

return or carriage return line feed *)

PrmDelimiter:YTB_STRING1;

(* User Input - Delimiters separating parameters within a command. Default is a

comma *)

LastDelimiter:INT;

(* Element used by GetCommand *)

Data:YTB_ByteArray8192;

END_STRUCT;