Globale_Variablen (GVL) ¶ InOut: Scope Name Type Initial Comment Constant RESERVED_RANGE BYTE 10 Range from 0..10 is reserved for system! IECTASK_BASE_PRIORITY BYTE 32 Range from 32 to 64 is reserved for IEC tasks IECTASK_RANGE BYTE 32 COMMTASK_PRIORITY BYTE 64 Range from 64 to 96 is reserved for communication tasks COMMTASK_RANGE BYTE 96 MAXTASK_PRIORITY BYTE 255 TASKID_INVALID DWORD 16#FFFFFFFF SYSTASK_MAX_STRING_LEN UDINT 20
POUs ¶ SysTaskCreate (Function) SysTaskDestroy (Function) SysTaskEnd (Function) SysTaskGetCurrent (Function) SysTaskGetInfo (Function) SysTaskGetPriority (Function) SysTaskResume (Function) SysTaskSetPriority (Function) SysTaskSleep (Function) SysTaskSuspend (Function)
SysTaskCreate (FUN) ¶ FUNCTION SysTaskCreate : UDINT InOut: Scope Name Type Comment Return SysTaskCreate UDINT Input stName STRING Name of the task byPriority BYTE Priority of the task udiInterval UDINT Interval in milliseconds pfFunction DWORD Function pointer, must be generated with function SYSGETIECFCTPOINTER pArgument DWORD Address of argument for task
SysTaskDestroy (FUN) ¶ FUNCTION SysTaskDestroy : BOOL InOut: Scope Name Type Comment Return SysTaskDestroy BOOL Input udiTaskId UDINT Task ID of the task
SysTaskEnd (FUN) ¶ FUNCTION SysTaskEnd : BOOL InOut: Scope Name Type Comment Return SysTaskEnd BOOL Input udiExitCode UDINT The exit code for the calling task udiTaskId UDINT Task ID of the task
SysTaskGetCurrent (FUN) ¶ FUNCTION SysTaskGetCurrent : UDINT InOut: Scope Name Type Return SysTaskGetCurrent UDINT Input bDummy BOOL
SysTaskGetInfo (FUN) ¶ FUNCTION SysTaskGetInfo : BOOL InOut: Scope Name Type Comment Return SysTaskGetInfo BOOL Input udiTaskId UDINT Task ID of the task pSysTaskInfo POINTER TO SYSTASKINFO pointer for structure to fill
SysTaskGetPriority (FUN) ¶ FUNCTION SysTaskGetPriority : BYTE InOut: Scope Name Type Comment Return SysTaskGetPriority BYTE Input udiTaskId UDINT Task ID of the task
SysTaskResume (FUN) ¶ FUNCTION SysTaskResume : BOOL InOut: Scope Name Type Comment Return SysTaskResume BOOL Input udiTaskId UDINT Task ID of the task
SysTaskSetPriority (FUN) ¶ FUNCTION SysTaskSetPriority : BOOL InOut: Scope Name Type Comment Return SysTaskSetPriority BOOL Input udiTaskId UDINT Task ID of the task byPriority BYTE The priority