
Chapter 1 Manage tasks
If you want to Then access the object and attribute
Object Attribute Data Type Description
Determine if an overlap occurred for any
task
FaultLog MinorFaultBits DINT Individual bits that indicate a minor fault:
To determine if Examine this bit
An instruction produced a minor fault. 4
An overlap occurred for a task. 6
The serial port produced a minor fault. 9
The battery/ESM is not present or needs
replacement.(1)
10
Determine if an overlap occurred for a
specific task
Task Status DINT Status information about the task. Once the controller sets one of these
bits, you must manually clear the bit.
To determine if Examine this bit
An EVENT instruction triggered the task
(event task only).
0
A timeout triggered the task (event task
only).
1
An overlap occurred for this task. 2
Determine the number of times that an
overlap occurred.
Task OverlapCount DINT Valid for an event or a periodic task.
To clear the count, set the attribute to 0.
(1) Battery for 1756-L6X, 1769-L2X, and 1769-L3X controllers. ESM for 1756-L7X and CompactLogix 5370 series controllers.
Example:
1. The GSV instruction sets Task_2_Status = Status attribute for Task_2 (DINT value).
2. If Task_2_Status.2 = 1, then an overlap occurred, so get the count of overlaps:
The GSV instruction sets Task_2_Overlap_Count (DINT tag) = OverlapCount attribute of Task_2.
3. If Condition_1 = 1, then clear the bits of the Status attribute for Task_2:
The SSV instruction sets the Status attribute of Task_2 = Zero. Zero is a DINT tag with a value of 0.
18 Rockwell Automation Publication 1756-PM005-EN-P - October 2014
Kommentare zu diesen Handbüchern