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
- InProject Organizer, expandAssets.
- Right-clickUser-Defined Functions, and then selectNew user-defined function.
- InNew user-defined function, enter the UDF name, select the UDF type, and then enter the description as needed.
- SelectCreate.
Provide Feedback