Creating a User-Defined Function
Procedure
- Create a Calculation tag. See Creating a Calculation Tag.
- Select the new calculation tag from the tag list, and select the Calculations tab.
- Click the Functions button. The User Defined Functions dialog appears.
- Click the New button. The Edit Function dialog box appears.
- Create your new function. You can build formulas using the wizard, or create it manually by entering functions in the Edit Function box.
- Click the Syntax button to check for errors.
- After you have created your new function, click Update. Your function appears in the list, and is available for use in other calculations.