Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

Call custom functions (QuickFunctions)

  • Last UpdatedJul 23, 2024
  • 1 minute read

Calling a custom QuickFunction differs slightly from calling a predefined standard function:

  • The keyword CALL must precede the QuickFunction name.

  • Results returned by QuickFunctions are always optional; you can use them, but you do not have to.

Call a QuickFunction that does not return a result

  • Use the function name (and parameters, if any) preceded by the keyword CALL in a statement. For example:

    CALL QuickFunctionName(Parameters);

Call a QuickFunction that returns a result

  • Do either of the following:

    • Call the QuickFunction as if it did not return a result (see the preceding procedure).

    • Use the function name (and parameters, if any) preceded by the keyword CALL anywhere in a script where you could use a literal value or a tagname of the relevant data type. For example, in a value assignment:

      ResultsTagname = CALL QuickFunctionName(Parameters);

      Or in a nested function call, using it as a parameter for a standard function:

      OtherStandardFunction(CALL FunctionName(Parameters));

Note: You cannot nest QuickFunction calls so that a QuickFunction is used as a parameter for another QuickFunction. For example, Call QF1(Call QF2()); is not a valid statement.

TitleResults for “How to create a CRG?”Also Available in