After inserting a function block, you are automatically prompted to enter an instance name. For the LD/FBD editor, you can change this behavior by deselecting Declare new identifiers under .
-
Enter desired instance name
-
<Return>
The Create new variable dialog opens. The instance name is displayed under Identifier and the function block type under Type.
-
Enter an optional comment under Comment
-
OK
The function block instance is defined in the POU header and displayed in the Variables pane.
-
Assign variables to the function block input and output contacts