Variables Table - Toolbar, Context Menu
Note
In variables tables, the selection in drop-down lists is done with a single-click, not with a double-click. |
Toolbar button | Context menu command | Description | |
---|---|---|---|
![]() ![]() | Move UpMove Down | Moves the selected variable(s) or variable group up or down. | |
![]() ![]() | Collapse All Groups Expand All Groups | Collapses/expands all variable groups. The arrow icon in front of the group name shows whether a variable group is expanded or collapsed.
![]() ![]() |
|
- | Select AllCut, Copy, Paste, Delete | Operations are applied to the selected table lines. Default Windows shortcuts can be used for these commands.Multi-selection can be done by pressing the <Ctrl> key or <Shift> key while clicking on the desired table lines. <Ctrl> + <A> selects all table lines. | |
![]() | Create Variable | Creates a new variable. To insert a variable into a specific group, left-click any cell in the desired group and execute the command. | |
![]() | Create Group | Creates a new variable group. The new group is created above the group containing the table line previously selected. | |
![]() | Remove Unused VariablesRemove Unused Global Variables | Removes all local and external variables and FB instance declarations from the 'Variables' table of the current POU. Unused means that the variable or instance is declared in the 'Variables' table but not used in any of the code worksheets in the current POU. | |
![]() | Import CSV | Imports variables from a .csv file (semicolon-separated values) into the grid.Refer to the topic "Importing/Exporting Variables from/to a .csv File" for details. | |
![]() | Export CSV | Exports all declarations contained in the active grid to a semicolon-separated .csv file.Refer to the topic "Importing/Exporting Variables from/to a .csv File" for details.
|
|
![]() | Show Initial Value Configuration | Opens the 'Init Value Configuration' editor below the variables table where members of user-defined data types (ARRAYs and STRUCTs) can be initialized. After selecting the declaration line of the user-defined data type in the variables table, its members can be edited in the grid of the 'Init Value Configuration' editor.The button/command is not available in variables tables of safety-related POUs as they do not support user-defined data types. |
|
- | Cross References | The context menu command is only active if the cross references are collected and up-to-date (![]() |
|
- | Locate in Cross References | The command is only active if the cross references are collected and up-to-date (![]() |
|
- | Show all References | The command is only active if the cross references are collected and up-to-date (![]() For more details, refer to section "Showing cross references out of the code ..." in the "CROSS REFERENCES Window" topic. |
|
- | Go To Instance Editor | Goes to the program/function block instance where the selected variable/FB instance is used (the command is only available in debug mode).The submenu of the command lists all programs/FB instances where the element is used (in the format 'PLC.ProgramInstance' for program instances and 'PLC.ProgramInstance.FBInstance' for FB instances). Selecting an entry opens the code worksheets and 'Variables' worksheet of the POU instance in debug mode. | |
- | Add to Watch WindowShortcut: <Ctrl>+<Alt>+<5> | Inserts the selected variable into the WATCHES window for monitoring/debugging purposes.The command is only available in debug mode, i.e., after selecting an instance of the variables table. | |
- | Add to Logic AnalyzerShortcut: <Ctrl>+<Alt>+<6> | The command is only available in debug mode.Inserts the selected variable into the LOGIC ANALYZER window for recording variable values from the running controller and visualizing them graphically as curves. | |
- | Overwrite/Force | Forces/overwrites the selected variable. Which command is available depends on the variable type. Refer to the topic "Debugging code: Forcing/Overwriting ![]() ×‣ Debugging Safety-Related Code: Forcing/Overwriting ×" for details.The command is only available in debug mode, i.e., after selecting an instance of the variables table. |
|
- | Refactoring | Opens the REFACTORING window in the Cross Function Area. The window shows all references of the object (variable, FB instance, etc.) for which the command was executed. Using the window, you can perform an automatic solution-wide replacement of object properties.For more details, refer to the topic "Refactoring Variables". |