The method Init is used to initialize the AsyncManager and to create the required additional tasks. The number of required tasks is specified by the parameter GPL.Gc_udiMaxNumOfAsyncTasks.
The method Init must be continuously called until one of the following conditions is fulfilled:
The output q_xDone indicates TRUE
The output q_xError indicates TRUE
For the additional tasks, created by this library, the following conditions apply:
The priority for each task is set to 31
The name of the task is set to TASK_Async<#> (# is a sequential number starting at 1)
Output |
Data type |
Description |
---|---|---|
q_xBusy |
BOOL |
Indicates that the initialization is in progress. As long as this output is set to TRUE, the method must be called cyclically. |
q_xDone |
BOOL |
If this output is set to TRUE, the execution has been completed successfully. |
q_xError |
BOOL |
If this output is set to TRUE, an error has been detected. For details, refer to q_etResult and q_etResultMsg. |
q_etResult |
Provides diagnostic and status information as a numeric value. |
|
q_sResultMsg |
STRING(80) |
Provides additional diagnostic and status information as a text message. |