Add a user-defined function

Use the
User-Defined Functions
node in
Project Organizer
to create logic programs for controller projects.
User-defined functions (UDFs) define a simple calculation that requires only one output. Once a UDF is created, the UDF is added to the instruction block element and can be reused like other function blocks in
FactoryTalk Design Workbench
.
TIP: The UDF input parameters support the array and structured data types. The UDF output parameter only supports simple data types.
Create UDFs in the following programming languages:
  • Function block diagram (FBD)
  • Ladder diagram (LD)
  • Structured text (ST)
To add a user-defined function
  1. In
    Project Organizer
    , expand
    Assets
    .
  2. Right-click
    User-Defined Functions
    , and then select
    New user-defined function
    .
  3. In
    New user-defined function
    , enter the UDF name, select the UDF type, and then enter the description as needed.
  4. Select
    Create
    .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal