Delete Variables from the Variable Selector

Deleting variables from the
Variable
Selector
also removes these variables from the dictionary instance for the program, controller, or device.
IMPORTANT: The preferred method to create variables is from dictionary instances to avoid potential mistakes like inserting a variable in an unintended scope.
To delete a variable
  1. Access the
    Variable
    Selector
    by doing one of the following:
    • For graphical POUs (FBD or LD), drag an element requiring the selection of a variable, like a variable, coil, or contact. The
      Variable
      Selector
      displays (when the
      Automatically
      invoke
      the
      Variable/Block
      Selector
      option is set to True). Also double-click an element in the language container to invoke the
      Variable
      Selector
      .
    • For textual POUs (ST), right-click in the language container, and then click
      Variable
      Selector
      (Ctrl+I).
    • When mapping variables for communication protocols, click
      Add
      Variable
      or vrs_vrs2.
In the variables grid, right-click the variable to delete, and then click
Delete
.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal