beautypg.com

Yaskawa MotionWorks IEC Toolboxes User Manual

Page 225

background image

File_RW Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

212

STRING#'flash/user/data/mydata.csv'

V

Separators

SeparatorList

Optional. If unconnected, the default
separator is a comma (BYTE#44) to detect
each value column by column. If a different
or multiple characters must be treated as a
value separator, populate the SeparatorList
with up to four byte values equating to the
ASCII value of the separators.

Comma
(BYTE#44)

V

HeaderRows

UINT

Optional. If connected, the value indicates
the number of rows this function block must
ignore before starting to look for actual
data.

UINT#0

V

VerifyVersion

BOOL

Optional. If TRUE, this function block will
expect the first line of the file to contain a
version code for identifying the data format
of the file, i.e columns, datatypes, etc.. This
allows for future changes to the
MyDataStruct while retaining the ability to
parse older files created before a change
was made to the structure of the file.

FALSE

V

BufferSize

UDINT

Specifies the number of bytes in the file to
process at one time. If unconnected, the
default is 2048 bytes. BufferSize can be
adjusted up or down if necessary to
accommodate various file sizes and will
depend upon the CYCLIC task in which the
Read_CSV_File function block is executed.

UDINT#2048

VAR_OUTPUT

E

Done

BOOL

Set high when the commanded action has been completed
successfully. If another block takes control before the action is
completed, the Done output will not be set. This output is
reset when execute goes low.

B

Busy

BOOL

Set high upon the rising edge of the 'Execute' or 'Enable'
input, and reset if Done, CommandAborted, or Error is true.

B

Error

BOOL

Set high if error has occurred during the execution of the
function block. This output is cleared when 'Execute' or
'Enable' goes low.

B

ErrorID

UINT

If Error is true, this output provides the Error ID. This output
is reset when 'Execute' or 'Enable' goes low.

V

ErrorRow

INT

If Error is true and pertains to a problem with the source data,
this value will indicate the location of processing when the
error occurred.

E

ErrorCol

INT

If Error is true and pertains to a problem with the source data,
this value will indicate the location of processing when the
error occurred.