Convert PLC variable names

Function: the plugin "Convert PLC variable names" converts the names of the tags from the tag tables of the AML file to a valid PLC variable name. This is done using the conversion rules listed under Options, which you can adapt and expand there using the built-in editor. It is necessary to run the "Prepare PLC variables" plugin beforehand, as it provides the PlcVariableList variable on which the converter is based.

Used variables:

PlcVariableList

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

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

Convert PLC variable names 1:

Options

The variable names derived from the tag names can be automatically adjusted using the integrated variable name converter. A set of rules is used for the adjustments, which is saved in JSON format by default under %userprofile%\Documents\Beckhoff\TE1120 - TC3 XCAD Interface\Plugins\XCADPlugins.CreateGVLWithLinks. The storage location is freely customizable.

The rules contained in the set of rules can be displayed and changed here in the options of the plugin as well as in the Variable Name Converter Rules dialog. The rulebook can also be adapted at file level in the rule file.

Enable extended debug information

Use this checkbox to select whether to output additional information about the name before and after conversion:

  • Convert PLC variable names 2:: detailed information is output.
  • Convert PLC variable names 3:: only errors and warning are output.

Convert PLC variable names 4:/Convert PLC variable names 5: Always show variable name converter rules dialog, before executing the plugin

Use this checkbox to select whether the Variable Name Converter Rules dialog is automatically opened before the plugin is executed.

  • Convert PLC variable names 6:: the dialog will open automatically.
  • Convert PLC variable names 7:: the dialog will not open automatically.

Variable name converter rules file path

In this section you can select the path to the file with the JSON format from which the rules for converting variable names will be loaded.

Note: By default, this path points to the plugin folder in the directory %USERPROFILE%\Documents\Beckhoff\TE1120 - TC3 XCAD Interface\Plugins.

See also