beautypg.com

Yaskawa MotionWorks IEC Toolboxes User Manual

Page 228

background image

File_RW Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

215

The 15 columns of data defined above relate to the data shown in the following Excel file. Notice that the data
has three header rows before the actual data begins. In this case, set the HeaderRows function block input
correctly at UINT#3, otherwise, the data will not be read properly.

3) Initialize the data required for "MyDataStruct" as shown below. Most importantly, set Columns and
MaxRecords.

4) Copy & paste the Read_CSV_File function block into your main project so it can be customized. This will
allow you to retain the original function in the template for future reference. Rename the function to avoid
name conflict with Read_CSV_File in the Toolbox.