Export global variables as CSV file

Use Project > Export > Variables as CSV file > Global variables to create a text file in the CSV (Character Separated Values) format. This means that the individual entries are separated by commas ‘,’ or semicolons ‘;’. (The separator can be set under Extras > Options > Program options > CSV export).With these text data, information about variables can later be imported in external programs, e.g. for process visualization.

  1. Project > Export > Variables as CSV file > Global variables
  2. Select the desired options for the export file, see table below
  3. Export
  4. Select path
  5. Enter file name
  6. Select file type
    Two file formats are available:
    • Unicode UTF-16 format (default). This is the recommended format with correct representation of all Unicode characters. This format can only be imported with Control FPWIN Pro version 5.31 or higher.
    • Multibyte (Multi-Byte Character Set, MBCS) format. This format can be imported with all earlier versions of Control FPWIN Pro.
  7. OK

A text file is created that contains all global variables in Control FPWIN Pro7 with their name and address.

Each variable includes the following entries in the text data: class, name, IEC address, FP address, type, initial, comment.

The following options are available in the dialog:

Option

Description

Assign

Assigns the entry selected in the list on the left to the entry selected in the list on the right. The assignment will be indicated using a field number. Multiple selection in the list on the right is possible. Entries selected in the list on the right also appear in the Customize column title text box so that they can be renamed.

Remove

Removes the assignment selected in the list on the right. "Unassigned" will be displayed next to the item.

Save export configuration

Saves the export configuration to a file.

Load export configuration

Loads the export configuration from a file.

Reset to default configuration

Applies the standard values to all settings.

Export column title as first line

Select this option to write a header into the CSV file. This header contains the entries Field 1; Field 2; Field 3 etc. or the customized names.

Only export variables with explicit address

Select this option to export variables only that own an explicit address entered in the global variable list.

Export array variable declarations

Select this option to export array variable declarations.

Export array elements as single variables

Select this option to list all elements of an array in the export file.

Only for arrays with fewer than n elements

Define a limit here if you do not want to export large arrays. Only arrays that contain elements less than the limit will be exported.

Export DUT variable declarations

Select this option to export DUT variable declarations.

Export DUT elements as single variables

Select this option to list all elements of a DUT in the export file.

Export

Starts the export process

Cancel

Closes the dialog without exporting.

Example

VAR_GLOBAL;g_aiVar;%MW5.0;DT0;ARRAY [0..2 OF INT;[3(0);""

VAR_GLOBAL;g_aiVar_0;%MW5.0;DT0;INT;0;"" (first array element)

VAR_GLOBAL;g_aiVar_1;%MW5.1;DT1;INT;0;"" (second array element)

VAR_GLOBAL;g_dut1;%MW0.0;WR0;BOOL16_OVERLAPPING_DUT;;""

VAR_GLOBAL;g_dut1.w0;%MW0.0;WR0;WORD;0;" Word 0 " (first DUT element)

VAR_GLOBAL;g_dut1.i0;%MW0.0;WR0;INT;0;" Word 0 " (second DUT element)

NOTE

In order to have access to data unit types or arrays, which are not supported directly, their individual elements are exported as variables to the CSV file.

Modified on: 2020-10-01Feedback on this pagePanasonic hotline