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
- InProject Organizer, go to .
- Right-click<UDFB-name>, and then selectParameters.
- In<UDFB-name> Parameters, select one of the following:
- New input
- New output
- Specify the name, data type, dimension, and comment for the parameter as needed.
- (optional) SelectMove uporMove downto change the order of the parameters.
- SelectOK.TIP: To delete a parameter, select the parameter, and then selectDelete parameter.
Provide Feedback