Rockwell Automation Logix5000 Controllers Tasks, Programs, and Routines Programming Manual User Manual

Page 55

Advertising
background image

Manage event tasks Chapter 2

The GSV instruction sets Task_Status (DINT tag) = Status attribute for the event task. In the Instance Name attribute,

THIS means the Task object for the task that the instruction is in (that is, Task_1).

If Task_Status.0 = 1 then an EVENT instruction triggered the event task. In the continuous task, the EVENT runs to set

up the watch position for the first time.

The JMP instruction causes the controller to jump to the Arm LBL instruction. This skips all the logic of the routine

except the rung that arms the axis for the watch position (MAW instruction).

Other logic

The MAW instruction runs each time the task runs and arms Axis_1 for the watch position.

The OTU instruction sets the EN bit of the MAW instruction = 0.

The MAW instruction is a transitional instruction.

To run the MAW instruction, its rung-condition-in must go from false to true.

By first clearing the EN bit, the instruction responds as if its rung-condition-in changed from false to true.

The MAW instruction arms the axis for the watch position.

The controller does not clear the bits of the Status attribute once they are set. To use a bit for new status information,
you must manually clear the bit.
If Task_Status.0 = 1 then clear that bit.

The OTU instruction sets Task_Status.0 = 0.
The SSV instruction sets the Status attribute of THIS task (Task_1) = Task_Status. This includes the cleared bit.

Rockwell Automation Publication 1756-PM005-EN-P - October 2014

55

Advertising