Edit Variables as Text

Variables can be edited as text.

  • Text editing applies to all the variables of a group.
  • Select Edit variables as text from the right-click menu to open a dialog box with all of the variables in the group.
    • From here, variables may be added, deleted, or edited using the IEC 61131-3 format.

Figure 1: Edit Variables as text

The editing dialog contains the basic text-editing functions: Save, Undo, Redo, Cut, Copy, and Paste.

  • When changes are saved, the variables are validated.
  • If there are errors in the declaration, the changes are not saved and errors are listed in the "Errors" section of the dialog box.

Figure 2: Errors caused by editing variables.

Each error includes the group name, the line number where the error occurs, and what the error is.

Double-click an entry to place the cursor at the point of the error.


  • If variables that are used in PDO mapping are renamed or deleted, the mapping is lost when the changes are saved.
    If this occurs, an alert appears.

See Edit Variables as Text using IEC 61131-3 Syntax for more information about editing variables as text.