Reset the initial value of a user-defined function block

When the definition of a user-defined function block (UDFB) changes, reset the initial parameter values. Use
Set initial values of instances
to update all or the selected instances.
When a new instance of a UDFB is created, it inherits the default initial values from the current UDFB definition.
For projects in
FactoryTalk Design Workbench
, the UDFB definition must be the same for all existing instances to complete the build process. The UDFB parameter values change when:
  • New parameters are created.
  • The initial value of the existing parameters changes.
  • The data type of parameters changes.
  • The name of the parameters change.
To reset the initial value of a UDFB
  1. In
    Project Organizer
    , go to
    Assets
    User-Defined Function Blocks
    <UDFB-name>
    .
  2. Under
    <UDFB-name>
    , double-click
    Local Variables
    .
  3. In the
    Initial Value
    column of the variable grid, enter the new initial value, and then select
    Enter
    .
  4. Select
    Set initial value of instances
    .
  5. In
    Set initial values of instances
    , select the instances of the UDFB to reset.
  6. Select
    Set
    .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal