Data type: mydatastruct, Data type declaration – Yaskawa MotionWorks IEC Toolboxes User Manual
Page 222

File_RW Toolbox: DataTypes
MotionWorks IEC61131-3 Toolboxes: 2013-09-13
209
Data Type: MyDataStruct
This datatype MyDataStruct and its two supporting user defined datatypes (MyData and MyDataArray) must
copied and pasted into your main project and customized to meet your specific data format.
Rename it in your main project to avoid naming conflicts, which will cause compile errors.
Data Type Declaration
TYPE
(************************ Structure information relating to a CSV file
****************************)
MyData : STRUCT
XData : LREAL;
YData : LREAL;
ZData : LREAL;
END_STRUCT;
MyDataArray : ARRAY [UINT#0..UINT#300] OF MyData;
MyDataStruct: STRUCT
File: MyDataArray;
Version:STRING;
(* If file versioning is used, apply a unique value to allow the identification of different
file formats. *)
Columns:INT; (
* Configure this value to indicate the number of columns in the data file. *)
Records:INT;
(* This value will be updated by the function as the data is processed. *)
MaxRecords:INT;
(* Initialize MaxRecords to the NUMBER OF ELEMENTS defined in the MyDataArray
definition above. *)
END_STRUCT;
END_TYPE;