ASM.WorkerRegister2 (FUN)

This function of the CAA_AsyncMan.library will register a worker for the identifier appointed. The worker has to implement the interface ASM.IWORKER2.

The return is the error code of the executed function.

Input:

udiId

UDINT

Unique identifier the worker shall be registered for.

pwiItf2

POINTER TO ASM. IWORKER2

Interface to be registered.

Output:

eError

ASM.ERROR

Error enumeration variable for diagnosis purposes.