Deleting FBD-elements or already declared variables

How to delete FBD-elements in the →graphical FBD-editor:

  1. Select the FBD-elements that you want to delete.

  2. In menu Edit or from the context menu of the FBD-editor, select Delete. Alternative: Press the Del-key.
    Variant: From the context menu of the FBD-editor, select Delete (Keep Connections). Alternative: Press the Ctrl+Del.
    Result: The selected FBD-elements are deleted. If you have selected connection points but not the belonging line itself, the connected line up to the next connection point is automatically deleted. In case of the variant, the connected line is kept. When a line cannot be →typed, this line is highlighted as faulty.
    Other consequences:

1.

In this example, the value field containing var1, the AND block and the connector C1 are selected:
images/download/attachments/481067457/LineDelete1-version-1-modificationdate-1636360161211-api-v2.png

2.a.

Delete produces this result:
images/download/attachments/481067462/LineDelete2-version-1-modificationdate-1636360186244-api-v2.png

2.b.

Delete (Keep Connections) produces this result:
images/download/attachments/481067469/LineDelete3-version-1-modificationdate-1636360229726-api-v2.png
A connection point (= the red node) has been inserted at the start or end of the kept line.

How to delete variables already declared within a →graphical editor:

  1. Make the list of declared variables visible.

  2. Select the variables in the list.
    Press Ctrl+A to select all elements in the view. Or press and hold the Shift- or the Ctrl-key to select several variables.

  3. From the context menu, select Delete. Alternative: Press the Del-key.
    If these variables are used within in the drawing field, the usages of the variables are kept (e.g. within a →value field). However, the usages will be highlighted as faulty (possibly after the changes are saved).

Good to know

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/lightbulb.svg It is not possible to delete the declaration of a function block instance within the list of the declared variables. They are automatically deleted, if you delete all calls of the function block instance within the drawing field.

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/lightbulb.svg You are able to only delete a variable for an →action block in the list of the declared variables, if the drawing field does not contain any action block using this variable.