Symbols

Independent input/output PLC-variables are shown in the BA Manager and can be linked with any terminals (variables) with the same bit-size. These variables are listed separately (inputs and outputs) and are available under Application ProgramSymbols in the navigation tree.

How do I add a user-defined input/output variable?

Add a PLC-variable in the Application Program via TwinCAT PLC Control. Arrays and structures are also supported. The position of the variable within the project is irrelevant.

Symbols 1:

The variable must be in the input or output image.

Example

VAR
(* will be displayed *)
    Var1 AT %IX5.3 : BOOL;
    Var2 AT %I* : INT;
    Var3 AT %QB17 :WORD;
    Var4 AT %Q* : REAL;
(* will not be displayed *)
    Var5 AT %M* : BOOL;
    Var6 : UINT;
END_VAR

Var1 to Var4 are displayed in the BA Manager.
Var5 is not displayed, since it is in the memory image.

Var6 is not displayed since the memory location is not in the input or output image. For further information on creating variables and allocating memory locations please refer to the TwinCAT PLC Control documentation.

Recompile the project so that the *.tpy file is recreated.

Re-read the *.tpy file in the BA Manager by selecting Application Program for the corresponding controller in the navigation tree and click on Rescan in the Settings-menu in the Information and settings panel on the right.

The symbols are now listed in the Navigation tree.
Symbols 2:

How do I configure a user-defined symbol?