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
- InProject Organizer, go to .
- Under<UDFB-name>, double-clickLocal Variables.
- In theInitial Valuecolumn of the variable grid, enter the new initial value, and then selectEnter.
- SelectSet initial value of instances.
- InSet initial values of instances, select the instances of the UDFB to reset.
- SelectSet.
Provide Feedback