beautypg.com

Example customization – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 227

background image

File_RW Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

214

10126

NoDataError - The End Of File was reached, but the record count is zero

10127

TooManyRecords - DataType is not large enough

10128

MaxNotDefined - User must set the maximum number of records that can be added to
structure.

10129

No Carriage return found in CSV buffer. The function searched the file for twice the length
of the specified buffer and was unable to find a carriage return indicating the end of a row.
Either the buffer size is too small, or the data is invalid.

Example Customization

Read_CSV_File must be customized to accommodate your data. Some supporting functions used by
Read_CSV_File (ReadBuffer and ReadValue) do not require customization and can remain in the
File_RW_Toolbox. To effectively use this function, follow these steps:

1) Copy & paste the MyDataStruct and associated datatypes into your project, and rename them to avoid
conflict with MyDataStruct in the File_RW_Template.

2) Modify the "MyData" dataType definition shown above such that it represents the number of columns and the
relevant datatypes. An example follows: