‘Project’ ‘Show cross reference’

With this command you open a dialog box which makes possible the output of all application points for a variable, address, or a POU. For this the project must be compiled (‘Project’ ‘Build’ ‘Project’ ‘Build’).

At  ‘name’ enter the name (e.g. “ivar”) or path (e.g. “PLC_PRG.fbi.ivar”) of the element for which you want to get listed the cross references (input assistant <F2> can be used). If you specify “*”, all elements will be regarded. Also just a partial string followed by “*”, e.g. “INT_*” can be specified in order to get listed all elements, the names of which start with this string.

If the project has been changed since the last compile, the term “(Not up to date)” will be displayed in the title bar of the dialog. In this case any cross references which have been created recently will not be regarded in the list unless you do a re-compile!

By clicking on the button ‘Cross References’ you get the list of all application points. Along with the POU and the line or network number, the variable name and the address binding, if any, are specified.

The Domain space shows whether this is a local or a global variable; the Access column shows whether the variable is to be accessed for ‘reading’ or ‘writing’ at the current location.

If the element is used within the address range of a structure or an array, this position will also be listed (Example: A variable wVar of type WORD is assigned to %MW2. A variable arrVar of type ARRAY [0..2] OF WORD is assigned to %MW0. If you call the cross reference list for wVar, arrVar[2] will be found). The same is true for structures.

If an element is used within a visualization, the visualization name will be shown in column “POU”. However note the following concerning placeholders within a visualization: The cross reference list only regards variable name strings, which are already entered in the configuration of a visualization element, not however any names, which are generated during compilation of the project due to placeholder replacements !!

When you select a line of the cross reference list and press the button ‘Go To’ or doubleclick on the line, then the POU is shown in its editor at the corresponding point. In this way you can jump to all application points without a time-consuming search.

In order to make processing easier, you can use the ‘Send to message window’ button to bring the current cross reference list into the message window Message window and from there change to the respective POU.

../_images/f60dbf6dc6d9d9530a317d315ccfa09c1

Direct call of a cross reference list out of a POU editor or a watchlist:

The cross reference list can be generated directly out of the editor (ST, FUP, KOP, AWL, CFC, AS), which is used to work on a POU, or out of a watchlist Watch- and Recipe Manager. In this case in online as well as in offline mode the command ‘Show cross references’ Show cross references is available in the context or “Extras” menu, when a variable is selected in the editor or the watchlist.