Create global PLC variable list

Function: the "Create global PLC variable list" plugin optionally adds only one global variable list or a separate global variable list for each tag table in the AML file, if several exist. In the first case all PLC variables are added to the one variable list. In the second case, the PLC variables are distributed according to the affiliation of their tags to the tag tables.

For the default tag table named "TagTable" you can predefine the name of the corresponding global variable list. For all other variable lists the Table-Name tag is used automatically.

It is necessary to run the "Prepare PLC variables" and "Create PLC project" plugins beforehand, as they provide the first two of the variables mentioned below.

Used variables:

PlcVariableList

Dictionary of the tags from the tag tables of the AML file with the associated PLC variables

PlcOpenXmlProject

PLC project in PLCopen XML format

SolutionFolderPath

Path to the TwinCAT Solution folder

ProjectAmlFolderPath

Path to the _AML folder below the project

XCAD_DTE

XCAD DTE Analyzer

Calling up the settings: open the dialog XCAD Interface Options and switch to the XCAD Interface Options tab.

Create global PLC variable list 1:

Options

Tag Table handling

Via these radio buttons you can select whether a separate global variable list for each tag table or only a global variable list should be added to the PLC project:

  1. A separate global variable list is added for each tag table in the AML file and the PLC variables are distributed according to the assignment of their tags.
  2. Only one global variable list is created and all PLC variables are added to this list.

Default global PLC variable list name

Here you can specify the name to be used for the global variable list of the default tag table named "TagTable".

See also