Function Blocks: Modifying the Instance Name

 

You can modify the instance name of a function block used in the FBD/LD code by selecting it from the list of declared instance names. Proceed as follows:

  1. Declare the new instance name to be assigned in the local vari­ables worksheet of the POU by adding a declaration line, typing an instance 'Name', and selecting the function block as 'Type'. Refer to the topic "Variables/FB Instances: Declaring in Variables Work­sheets" for details.

  2. In the FBD/LD code worksheet, right-click the function block to be modi­fied and select 'Object Properties...' from the context menu.

    The 'Function/Function Block' dialog appears. The combo boxes 'Group' and 'Name' are inactive because the object is already created.

  3. Select the new instance name from the 'Instance' combo box.

  4. Confirm the dialog.