registerFunction

[ Function ]

function registerFunction(
    name: string,
    func: (...args: any[]) => any
): void;

Registers a function created within a TwinCAT HMI project in the framework.

Parameter

Name

Type

Description

name

string

The name with which the function is registered in the framework.

func

(...args: any[]) => any

A reference to the function to be registered.

Return value

Type

Description

void

No return value

registerFunction 1:

Available from 1.8