beautypg.com

Customizing for file versioning – Yaskawa MotionWorks IEC Toolboxes User Manual

Page 230

background image

File_RW Toolbox: Function Blocks

MotionWorks IEC61131-3 Toolboxes: 2013-09-13

217

Customizing for file versioning

The function has the capability to read multiple versions of the same file. For example, assume that initially, the
design requires a data file to contain 4 columns of data to be used as INT. Later, after some machines are in
the field, a design change requires that the data file must now contain 5 columns of DINT. If a version code is
applied as the first row, the function block can determine how to read the file for any number of variations.
That may come later. This will allow the use of older data files as well as newer formats.

Original file specification Modified file specification

To use file versioning, follow the steps below:

1.

Set the VerifyVersion function block input to TRUE.

2.

The first line of the data file must contain a version code. The version code does NOT count as a

header row. See the graphics above showing original and modified file specification

3.

Customize the DataType to reflect the most current data specification.

Original DataType:

Modified DataType: