Changing the name of an element

It is possible to change the name for an already created →POU, an already created →data type or an already created global-object. If necessary, the corresponding code is refactored as well.

  1. Open the context menu for the element displayed in the application navigator.
    Alternative: Expand the object displayed in the project explorer. Then open the context menu for the displayed sub-level item.

  2. Select the command Rename or Rename Element.

  3. In the dialog, enter the new name and click OK.
    Result: The element and all its usages in the ST-objects, PLC-objects, FBD-objects and/or LD-objects of the current project are renamed to the new name.

    Restriction for renaming a global or external variable

    The corresponding counterpart is not automatically renamed.
    This means: When renaming a global variable, the external variable of the same name is not renamed. Likewise when renaming an external variable, the global variable of the same name is not renamed.