Symbol:
Function: The command opens the “Cross Reference List” view.
Call: “View” menu; “Edit Browse Display Cross References”
The view shows a list of cross references for a symbol in the project. The symbol can be a variable, a POU (program, function block, function), or a custom data type (DUT). The cross reference list provides two basic types of searches:
-
Text search: By specifying a symbol name, the cross references of all symbols in the project are displayed with their names. If multiple symbols with the same are found, then the context menu can be used to restrict the display to individual declarations.
-
Declaration search: The symbol can be selected by means of the Input Assistant or by specifying a qualified path (for example,
Device.Application.PLC_PRG.i
or__POOL.POU.a
). After that, the occurrence locations of this symbol are displayed, even if other symbols with the same name exist.
Input field |
Symbol name (variable name, POU name, DUT name) – Input possibilities:
The following input is valid:
|
![]() |
Open the Input Assistant for selecting a symbol |
![]() |
“Perform search” |
![]() |
Define columns to search for the string |
Input field |
String which is searched for in the selected columns The result locations are highlighted in yellow. Cross references without this string are hidden. |
![]() |
“Show source position of previous cross reference” ([Shift]+[F4]) |
![]() |
“Show source position of next cross reference” ([F4]) |
![]() |
“Limit Results to Current Declaration” Available when multiple declarations have been found for a symbol Restricts the display to the declaration that you have selected in the list |
![]() |
“Show source position of selected cross reference” The focus jumps to the occurrence location of the symbol. |
![]() |
“Print cross reference list” The default dialog for setting up a print job opens. |
The cross references are displayed with the following information: |
|
“Symbol” |
The result locations for the symbols (variables, POUs, or DUTs) are grouped by declaration. The declaration occurrence comprises the root node and the occurrence locations in the project are indented below. Exactly that expression is displayed which has the symbol at the occurrence location. Example: If there is a global variable |
“POU” |
POU name, DUT name; also for example a task name in the case that a POU call is in the task configuration |
“Variable” |
Purely a variable name Example: |
“Access” |
Type of access to the variable at the occurrence location: “Declaration” / “Read” / “Write” / “Call” Special case for pointers An assignment of type |
“Type” |
Data type of the variable |
“Address” |
IEC address in the case that variables are assigned Example: " |
“Position” |
Location of the occurrence in the POU editor, for example line number, network number, declaration part, or implementation part Example: " |
“Object” |
POU name plus full path of the occurrence location in brackets (in the case that this is found in the “Devices” view) Example: " |
“Comment” |
Comment in the case that it is available in the declaration of the variable |
The search yields all result locations in the project and in integrated, uncompiled libraries.
-
Commands in the context menu of the cross reference list