AXC F X152
70 / 112
PHOENIX CONTACT 107708_en_08
8.8 Task handling
Programs and program parts are treated as tasks in PLCnext Engineer. Individual tasks are
coordinated and processed in the Execution and Synchronization Manager (ESM).
The ESM_DATA system variable can be used to retrieve information on the task handling
of the ESM. The ESM_DATA system variable is a system variable organized as a data
structure.
Table 8-6 ESM_DATA system variable (ESM_DAT data structure) and the system variables it contains
System variable Typ e Description
ESM_DATA ESM_DAT Data structure
ESM_COUNT USINT Number of ESMs (one ESM per processor
core)
ESM_INFOS ESM_INFO_ARRAY
Information on ESMs [1 ... 2]
1
[1] ... [2] ESM_INFO
TASK_COUNT UINT Number of tasks that have been configured
for the ESM
TICK_COUNT UDINT Always 0
TICK_INTERVAL UDINT Always 0
TASK_INFOS TASK_INFO_ARRAY
Information on tasks [1 ... 16]
2
[1] ... [16] TASK_INFO
INTERVAL
3
LINT For cyclic tasks: time interval in μs
For acyclic tasks: 0
PRIORITY
3
INT Priority of task
WATCHDOG
3
LINT Watchdog time in μs (0 = no watchdog)
Watchdog time that you define for the sum
of execution duration and delay time. If the
watchdog time is exceeded, the watchdog
will trigger.
LAST_EXEC_DURATION LINT Execution duration of the task in the previ-
ous cycle in μs (including interruptions by
higher priority tasks)
MIN_EXEC_DURATION LINT Minimum execution duration of the task in
μs (including interruptions by higher priority
tasks)
MAX_EXEC_DURATION LINT Maximum execution duration of the task in
μs (including interruptions by higher priority
tasks)
LAST_ACTIVATION_DELAY LINT Delay time of the task in the previous cycle
in μs (delay occurs if higher priority tasks are
pending at the time of task activation)
MIN_ACTIVATION_DELAY LINT Minimum delay time of the task in μs (delay
occurs if higher priority tasks are pending at
the time of task activation)