Task object

The TASK object provides status information about a task. Specify the task name to determine which TASK object you want.
Attribute
Data Type
Instruction
Description
name
STRING
GSV
The name of this task.
instance
UDINT
GSV
The CIP object instance number assigned to this task.
priority
UINT
GSV, SSV
Task execution priority (1 = highest, 15 = lowest); lower values preempt higher values.
inhibited
UDINT
GSV, SSV
When non-zero, the task is inhibited and will not execute until this flag is cleared.
disableAutomaticOutput
DINT
GSV, SSV
When non-zero, the controller does not automatically update outputs at the end of this task's scan.
watchdog_us
DINT
GSV, SSV
Watchdog timeout in microseconds; a major fault occurs if the task does not complete within this time.
rate
UDINT
GSV, SSV
Execution rate of this task in milliseconds (period for periodic tasks; timeout for event tasks).
enableTimeOut
UDINT
GSV, SSV
When non-zero, enables the timeout function of an event task.
lastScanTime
UDINT
GSV, SSV
Duration of the most recent scan of this task, in microseconds.
maxScanTime
UDINT
GSV, SSV
Maximum scan time recorded for this task, in microseconds. Can be reset to 0 via SSV.
maxInterval
ULINT
GSV, SSV
Maximum measured interval between successive executions of this task, in microseconds. Can be reset via SSV.
minInterval
ULINT
GSV, SSV
Minimum measured interval between successive executions of this task, in microseconds. Can be reset via SSV.
overlapCount
UDINT
GSV, SSV
Number of times this task has started a new scan before the previous scan completed (task overlap).
startTime
ULINT
GSV, SSV
Controller system clock value in microseconds at the moment this task last began executing.
status
UDINT
GSV, SSV
Bitmask describing the current operational status of this task (e.g. running, event pending, overlap).
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal