Function Blocks: Updating instances

 

After editing formal parameters in a user-defined function block, each code worksheet where the function block concerned is called must be updated. This is required, for example, after adding or deleting an input or output variable of the function block or after modifying the name of at least one formal parameter.

Update every instance of a modified FB as follows:

  1. In the FBD/LD code worksheet, right-click the function block to be updated 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.

  2. Activate the 'Replace' checkbox.

    Do not edit the instance name or any other setting.

  3. Confirm the dialog.

The FB icon is now updated according to the modified FB declaration. The following rules apply:

UpdateFB.png