SchedGetNumOfTasks (FUN)

FUNCTION SchedGetNumOfTasks : DINT

<description>

Is called to get the number of all registerd IEC tasks in the scheduler.

</description> <param name=”pApp” type=”IN”>If an application is specified, only the tasks of this application is returned.

If NULL, number of all tasks is returned.

</param> <param name=”pResult” type=”OUT”>ERR_OK or Error code</param> <result>Number of tasks</result>

InOut:

Scope

Name

Type

Return

SchedGetNumOfTasks

DINT

Input

pApp

POINTER TO APPLICATION

pResult

POINTER TO RTS_IEC_RESULT