SYS_TASK_INFO (STRUCT)

TYPE SYS_TASK_INFO : STRUCT

<description>SYS_TASK_INFO</description>

InOut:

Name

Type

Comment

uiOSHandle

RTS_IEC_HANDLE

<element name=”uiOSHandle” type=”IN”>Operating system handle of a task</element>

iState

DINT

<element name=”iState” type=”IN”>Actual state of the task. See category “Task status definitions” for details.</element>

iOldState

DINT

<element name=”iOldState” type=”IN”>Previous state of the task</element>

TP

SYS_TASK_PARAM

<element name=”TP” type=”IN”>Task parameter, with which the task was created</element>

ulCycleTime

UDINT

<element name=”ulCycleTime” type=”IN”>Last cycle time</element>

ulCycleStart

UDINT

<element name=”ulCycleStart” type=”IN”>Start time of the cycle</element>

ulPriority

UDINT

<element name=”ulPriority” type=”IN”>RTS priority of the task (not OS priority)</element>

ulOSPriority

UDINT

<element name=”ulOSPriority” type=”IN”>Operating system priority of the task</element>

ulInterval

UDINT

<element name=”ulInterval” type=”IN”>Specified interval for the task</element>

ulStackSize

UDINT

<element name=”ulStackSize” type=”IN”>Specified stack size for the task</element>

pFunction

PFSYS_TASK_FUNCTION

<element name=”pFunction” type=”IN”>Function pointer of the task frame</element>

szName

STRING(SYSTASK_MAX_NAME_LEN)

<element name=”szName” type=”IN”>Name of the task</element>

pExceptionHandler

PFSYS_TASK_EXCEPTIONHANDLER

<element name=”pExceptionHandler” type=”IN”>Specified exception handler of the task</element>

Context

RegContext

<element name=”Context” type=”IN”>Current context of the task, if the task is supended</element>

pCppInstance

POINTER TO BYTE

<element name=”pCppInstance” type=”IN”>Internal usage for C++</element>

pOSSpecific

POINTER TO BYTE

<element name=”pOSSpecific” type=”IN”>Optional pointer to operating system specific stuff</element>

ulFeature

DWORD

<element name=”ulFeature” type=”IN”>Features flags of the task. See category “FeatureFlags” for details.</element>