IF_AsyncManager - Init (Method)

Overview

Type:

Method

Available as of:

V1.0.0.0

Versions:

Current version

Task

Initializes the asynchronous mechanism and generates the asynchronous tasks

Description

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 true:

oThe output q_xDone indicates True

oThe output q_xError indicates True 

For the additional tasks, created by this library, the following conditions apply:

oThe priority for each task is set to 31

oThe name of the task is set to TASK_Async<#> (# is a sequential number starting at 1)

NOTE: For a diagnostic of the method Init, it is possible to evaluate in the message logger if a cycle time overrun occurs because of the call up of the method Init. No filter is set which avoids the indication of the messages.

Interface

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

ET_Result

Provides diagnostic and status information as a numeric value.

q_sResultMsg

STRING(80)

Provides additional diagnostic and status information as a text message.