Copy Relevant Input Data To A Separate Data Structure - Rockwell Automation Allen-Bradley ArmorBlock 1732E-IB8M8SOER User Manual

Ethernet/ip dual port 8-point sequence of events input and scheduled output modules
Table of Contents

Advertisement

1. Input 1 transitions
from OFF to ON.
Rockwell Automation Publication 1732E-UM003D-EN-E - November 2021
Chapter 10
The Module Tags describe the data that is sent for each input. These tags are
sent to the controller the next RPI after the module timestamps a transition on
any input as well as all other RPIs. For detailed descriptions of the tags, see
Module Tags on page
83.

Copy Relevant Input Data to a Separate Data Structure

When the module sends input data to the controller, the data is stored in the
controller tags. We recommend you use a COP or CPS instruction to
programmatically copy new timestamp data from the controller tags to a
separate array in the controller memory. Later, you can combine timestamp
data from multiple modules and use a Sort routine to determine the order of
events, with relative time reference, that occurred in a specific time period.
IMPORTANT When you copy relevant timestamp data from the controller tags to a
separate data structure, make sure you copy enough information for each
timestamp that you can differentiate between timestamps for different
inputs.
Figure 17
shows when to use the COP instruction. In this example, the module
timestamped a transition on input 1 and is sending input data to the controller
at each RPI. The controller copies input data from the controller tags to a
separate data structure.
Figure 17 - COP Instructions
1732E-IB8M8SOER
3. Module sends input data to the
2. Module timestamps the
controller.
transition.
I.Fault
I.Data
I.NewData
I.EventOverflow
I.LocalClockOffset
I.OffsetTimeStamp
I.GrandMasterClockID
I.TimeStampOffOn
I.TimeStampOnOff
I.EventNumber
I.SyncToMaster
Your application determines what input data should be copied from the
controller tags to a separate data structure. Although you can copy all the input
data to another array, typically, only the data from specific tags is copied.
Figure 18
shows an example of ladder logic in which the controller only moves
OFF to ON timestamp data for inputs 0...3 from the controller tags to a
separate data structure named myarray. The data in the myarray structure is
then moved to another array used to sort the data. In this example, 32 bits of
each 64-bit timestamp are moved to the new array.
Use the Sequence of Events Input and Scheduled Output Modules
ControlLogix controller
4. Controller copies
relevant data from
controller tags to a
separate array.
Controller
I.Fault
I.Data
I.OpenWire
I.ShortCircuit
I.NewData
I.EventOverlow
I.EventNumber
I.LocalClockOffset
I.OffsetTimeStamp
I.GrandMasterClockID
I.Timestamp[16].OffOn[2]
I.Timestamp[16].OnOff[2]
I.SyncedToMaster
Separate array
69

Advertisement

Table of Contents
loading

This manual is also suitable for:

Allen-bradley armorblock 1732e-ob8m8sr

Table of Contents