ASM.JobOpenEx (FUN)

This function of the CAA_AsyncMan.library will create a new job. A control block for the asynchronous job will be created and initialized. The function will not allocate memory for the parameters being passed via a pointer.  By the identifier the job will be assigned to a registered worker being able to execute the job. This function being executed the state of the job will be set to DORMANT.

The function will return the handle of the job; in case of error CAA.gc_hINVALID will be returned.

Input:

udiId    

UDINT

Unique identifier of job

pParams

CAA.PVOID

Pointer on parameters passed

peError

POINTER TO ASM.ERROR

Pointer to error enumeration variable for diagnosis purposes.

Output:

hJob

CAA.HANDLE

Handle of job