Register an existing script as a user-defined function so you can use it within other scripts. The registered function can be used by a D-Script, Global D-Script, or Extended Script.
From the [Functions] tab's [User
Defined Functions], click [Create]. The [Function Name] dialog box
appears.
Enter the function name, and click [OK].
Restrictions apply
to Function Names. See the following for more details.
22.10.3 Restrictions
on User-Defined Functions
In the [D-Script] dialog box, the
[User Defined Functions] tab appears. Define the [Data Type], [Bit
Length], and enter the expression.
Open the main function (D-script,
Global D-Script, Extended Script), select the user-defined function
to call and click [Call] to place the called function name in the
script expression area.
Click [Close].