Trigger Event Task (Event); Relay Ladder; Structured Text; Programmatically Determine If An Event Instruction Triggered - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

Program Control Instructions (JMP, LBL, JSR, RET, SBR, JXR, TND, MCR, UID, UIE, AFI, NOP, EOT, SFP, SFR, EVENT)

Trigger Event Task (EVENT)

EVENT(task_name);
Description:
Table 6 - Status Attribute of the TASK Object
Attribute
Data Type
Status
DINT
The EVENT instruction triggers one execution of an event task.
Operands:

Relay Ladder

Operand

Task

Structured Text

The operands are the same as those for the relay ladder EVENT instruction.
Use the EVENT instruction to programmatically execute an event task:
· Each time the instruction executes, it triggers the specified event task.
· Make sure that you give the event task enough time to complete its execution
before you trigger it again. If not, an overlap occurs.
· If you execute an EVENT instruction while the event task is already executing,
the controller increments the overlap counter but it does not trigger the event
task.

Programmatically Determine if an EVENT Instruction Triggered

a Task
To determine if an EVENT instruction triggered an event task, use a
Get SystemValue (GSV) instruction to monitor the Status attribute of the task.
Instruction
GSV
SSV
Rockwell Automation Publication 1756-RM003N-EN-P - October 2011
Type
Format
TASK
Name
Description
Provides status information about the task. Once the controller sets a bit, you must
manually clear the bit to determine if another fault of that type occurred.
To determine if
An EVENT instruction triggered the task (event
task only).
A time-out triggered the task (event task only).
An overlap occurred for this task.
Description
Event task to execute
The instruction lets you choose other types of
tasks, but it does not execute them.
Examine this bit
0
1
2
Chapter 11
481

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents