ASM.JobOpen (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 and memory will be allocated for the parameters of the job. 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

peError

POINTER TO ASM.ERROR

Pointer to error enumeration variable for diagnosis purposes.

Output:

hJob

CAA.HANDLE

Handle of job