Customizing for file versioning – Yaskawa MotionWorks IEC Toolboxes User Manual
Page 238

File_RW Toolbox: Function Blocks
MotionWorks IEC61131-3 Toolboxes: 2013-09-13
225
5) To customize the function block, go to the variables grid and rename the datatype used as the VAR_IN_OUT
to the datatype you customized in step 2 above (Use the name as modified from ST code line 23 above).
6) Locate the comments near the middle of the Write_CSV_File function indicating the area to be customized.
Modify the lines that convert binary data from the MyDataStruct structure to STRING data for the file.
Customizing for file versioning
The function has the capability to write multiple versions of the same structure. For example, a portion of the
data from the structure can be written to one file, and a different set of data can be written to another file.
To use file versioning, follow the steps below:
1) Set the 'Version' function block input to a unique value (Non zero).
2) Customize the DataType to reflect the most current data specification.
Original DataType:
Modified DataType:
3) Customize the Write_CSV_File function block to determine if a specific version if the file should be written.
Original code:
Modified code:
4) Customize the Write_CSV_File function block to write multiple versions.