Sort the data – Rockwell Automation 1732E-IB16M12SOEDR EtherNet/IP ArmorBlock supporting Sequence of Events User Manual

Page 74

Advertising
background image

Publication 1732E-UM002A-EN-P - March 2010

66 Using the Module

O.NewDataAck.2 = 1

If Timestamp Latch is disabled, the module sends new data, from
subsequent transitions, to the controller as soon as they occur. The controller
overwrites timestamp data from the last transition, regardless of whether it
saved the data or not.

If the controller does not acknowledge the timestamp data then the NewData
bits in the input tags remains set and the EventOverflow bit is set as well.

Sort the Data

If you need to determine the order of events that occurred in a cascade, you
must use a Sort routine to determine the order of events. Rockwell
Automation offers a sample sort routine that you can use to determine the
order of events in an event cascade.

Visit the Rockwell Automation Sample Code Library at

http://samplecode.rockwellautomation.com/idc/groups/public/documents/
webassets/sc_home_page.hcst.

5. Controller clears data from input 2 on the module.

O.EventAck = 1
O.NewDataAck.2 = 1

Controller tags

Separate array

4. Controller

copies
relevant
data from
controller
tags to a
separate
array.

1. Input 2 transitions

from OFF to ON.

2. Module timestamps

the transition.

3. Module sends input

data to the controller.

1732E-IB16M12SOEDR

ControlLogix controller

I.Fault

I.EventOverlow

I.OffsetTimeStamp

I.EventNumber

I.Timestamp[16].OffOn[2]
I.Timestamp[16].OnOff[2]

I.Data

I.NewData

I.ShortCircuit

I.OpenWire

I.GrandMasterClockID

I.LocalClockOffset

I.Fault

I.EventOverflow

I.OffsetTimeStamp

I.EventNumber

I.Timestamp[16].OffOn[2]

I.Timestamp[16].OnOff[2]

I.Data

I.NewData

I.ShortCircuit

I.OpenWire

I.GrandMasterClockID

I.LocalClockOffset

I.SyncedToMaster

I.SyncedToMaster

Advertising