Add parameters to a user-defined function block

Use the
Parameters
window to add and edit the parameters and local variables for user-defined function blocks (UDFB).
The
Parameters
window provides a graphic view of the parameters and local variables.
Rules for UDFB names and parameters are as follows:
  • A UDFB name can contain up to 128 characters.
  • A UDFB can contain a total of up to 128 parameters.
  • A UDFB cannot contain more than 20 input parameters or 20 output parameters.
To add parameters to a UDFB
  1. In
    Project Organizer
    , go to
    Assets
    User-Defined Function Blocks
    <UDFB-name>
    .
  2. Right-click
    <UDFB-name>
    , and then select
    Parameters
    .
  3. In
    <UDFB-name> Parameters
    , select one of the following:
    • New input
    • New output
  4. Specify the name, data type, dimension, and comment for the parameter as needed.
  5. (optional) Select
    Move up
    or
    Move down
    to change the order of the parameters.
  6. Select
    OK
    .
    TIP: To delete a parameter, select the parameter, and then select
    Delete parameter
    .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal