Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 9 of 19

ControlLogix Sequence of Events Module 1756-IB16ISOE (24/48V dc), 1756-IH16ISOE (125V dc) User Manual: 6 - Using The Sequence of Events Module in CST Per Point Mode

Pages 73 to 86 of 160, from ControlLogix Sequence of Events Module 1756-IB16ISOE (24/48V dc), 1756-IH16ISOE (125V dc) User Manual

The original document is the PDF (2.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

Filed in the catalog under the Allen-Bradley 1756-IB16

Page 73

Chapter

6

Using The Sequence of Events Module in CST Per Point Mode

What This Chapter Contains

This chapter describes how to use the Sequence of Events module in CST Per Point mode. Table 6.1

Overview of the Mode

For information on:

See page:

Overview of the Mode

6-1

What Are The Typical Applications Where CST Per Point Mode is Used?

6-4

Configuring the Module for CST Per Point Mode

6-4

Managing the Data in CST Per Point Mode

6-8

Module Sends Data to the Controller

6-8

Copying Relevant Input Data to a Separate Data Structure

6-10

Acknowledging Latched Timestamp Data

6-12

Sorting the Data

6-14

Clearing All Data From the Module’s Buffers At Once

6-14

In CST Per Point mode, the Sequence of Events module can be configured to timestamp two transitions per input, one in each direction (OFF to ON and ON to OFF). When specific points that are Enable CST Capture-enabled transition (e.g., input 1 is configured so that Enable CST Capture is enabled for OFF to ON transitions and the input turns ON), the module timestamps the transition with the current CST value on the backplane. The module produces data for the owner-controller when the input filter and chatter detection criteria have been met and at subsequent RPIs.

1

Publication 1756-UM528A-EN-P - April 2004

Page 74

6-2

Using The Sequence of Events Module in CST Per Point Mode

How Does the Module Store Timestamp Data in CST Per Point Mode?

With each timestamped transition, the Sequence of Events module stores data for that point. An overview of how the module stores timestamp data in CST Per Point mode is shown in Figure 6.1: Figure 6.1

The module is installed, wired to input devices and ready to begin operation. All inputs are configured to timestamp any transition that occurs.

Input 0

0000000 0000000

OFF/ON timestamp data ON/OFF timestamp data

Input 1

0000000 0000000

OFF/ON timestamp data ON/OFF timestamp data

Input 2

0000000 0000000

OFF/ON timestamp data ON/OFF timestamp data

Input 15

0000000 0000000

OFF/ON timestamp data ON/OFF timestamp data

Input 0

0000000 0000000

OFF/ON timestamp data ON/OFF timestamp data

Input 1 transitions from OFF to ON.

Input 1

0101100 0000000

OFF/ON timestamp data ON/OFF timestamp data

The module timestamps the transition; the module sends the data to the owner-controller (not shown) and also stores it locally.

Input 2

0000000 0000000

OFF/ON timestamp data ON/OFF timestamp data

Input 15

0000000 0000000

OFF/ON timestamp data ON/OFF timestamp data

Input 0

0000000 0000000

OFF/ON timestamp data ON/OFF timestamp data

Input 1

0101100 0000000

OFF/ON timestamp data ON/OFF timestamp data

Input 2

0000000 1100101

OFF/ON timestamp data ON/OFF timestamp data

Input 15

0000000 0000000

OFF/ON timestamp data ON/OFF timestamp data

At this point, timestamp data for each input is 0 because no input transitions have occurred. Note that only 8 bits of the 64-bit CST timestamp are shown.

Input 2 transitions from ON to OFF. The module timestamps the transition; the module sends the data to the owner-controller (not shown) and also stores it locally. Note that the module continues to store the timestamp for the OFF to ON transition on input 1.

43793

Publication 1756-UM528A-EN-P - April 2004

Page 75

Using The Sequence of Events Module in CST Per Point Mode

6-3

When the Sequence of Events module operates in CST Per Point mode, generally the following occurs: 1. You configure the Sequence of Events module to operate in CST Per Point mode via the Communication Format selection. 2. The Sequence of Events module timestamps each transition for inputs that are Enable CST Capture-enabled. The module can timestamp each transition with a unique CST with 25µs resolution. 3. The module sends all of its input data, including the new data from the most recent transition, to the controller immediately after timestamping the transition and passing the input filter to make sure the transition was valid. 4. You copy new data from the controller tags to a separate data structure for later sorting. 5. Once the data is copied to a separate data structure, you may sort the data in the controller to determine the order of events. Some of these typical events are described in greater detail in the rest of this chapter.

Publication 1756-UM528A-EN-P - April 2004

Page 76

6-4

Using The Sequence of Events Module in CST Per Point Mode

What Are The Typical Applications Where CST Per Point Mode is Used?

CST Per Point mode is typically used in applications that need to determine relative first fault detection after an event cascade occurs. The Sequence of Events module can provide unique timestamps for separate input transitions as long as they occur 25µs apart; you can sort the data resulting from an event cascade to determine where the first input transition occurred in the cascade. You can also use the 1756HP-GPS module to give the stored CST timestamps a real-time reference. For more information on how to integrate the 1756HP-GPS module into your ControlLogix Sequence of Events system, see Appendix B. The following are example typical applications for CST Per Point mode: • Substation automation • Load-shedding/energy management • Emergency shutdown systems

Configuring the Module for CST Per Point Mode

You configure the same general set of configurable features (described in Chapter 5) whether you are using the Sequence of Events module in CST Per Point mode or FIFO mode. However, for some features, the module behavior as dictated by the feature, varies according to operational mode. For example, Latch CST impacts the Sequence of Events module behavior slightly differently in CST Per Point mode than in FIFO mode. You should be aware of the impact the following configurable features have on module behavior in CST Per Point mode: • Communications Format • Latch CST • Enable CST Capture • Universal Coordinated Time (UCT)

Publication 1756-UM528A-EN-P - April 2004

Page 77

Using The Sequence of Events Module in CST Per Point Mode

6-5

Choosing a Communications Format During initial module configuration, you must choose a communication format for the module. The communications format determines what operational mode your Sequence of Events module uses and, consequently, what tags RSLogix 5000 generates when configuration is complete. To operate the Sequence of Events module in CST Per Point mode, you must choose the CST Per Point communication format, as shown below.

Use this pull-down menu to choose the CST Per Point communication format.

Publication 1756-UM528A-EN-P - April 2004

Page 78

6-6

Using The Sequence of Events Module in CST Per Point Mode

Using Latch CST in CST Per Point Mode When enabled, Latch CST prevents the Sequence of Events module from overwriting recorded timestamp data once a transition occurs. This feature is set on a module-wide basis and is enabled by default. Table 6.2 describes how Latch CST affects the module in CST Per Point mode. Table 6.2 If Latch CST is the following occurs(1): Enabled

The Sequence of Events module timestamps two transitions for each input–one for OFF to ON and one for ON to OFF. If similar transitions occur on inputs where a transition has already been timestamped and the data was not yet acknowledged (for more information on acknowledging data, see page 6-12), the module does not timestamp the new transition. When transitions occur that the Sequence of Events module does not timestamp, the module sets the I.EventOverflow tag for that point to inform the controller that an input transitioned but a timestamp was not produced for the transition. Typically, Latch CST is enabled in CST Per Point mode.

Disabled

The Sequence of Events module timestamps each transition for each input as it occurs. In this case, when multiple transitions occur in the same direction on the same input, the module records the new timestamp data, overwriting any previously-recorded data which had yet to be acknowledged (for more information on acknowledging data, see page 6-12). When the Sequence of Events module overwrites data, it sets the I.EventOverflow tag for that point to inform the controller that events have been overwritten.

(1)

This table assumes the transition occurs on inputs that have Enable CST Capture enabled. If Enable CST Capture is disabled, the module does not timestamp transitions on that input and, therefore, Latch CST does not affect module behavior.

IMPORTANT

We suggest you monitor the I.EventOverflow bits to make sure you are aware of when transitions were either not timestamped or when timestamp data was overwritten.

Use the Configuration tab in RSLogix 5000 to enable Latch CST, as shown in the example below.

Click this box to enable the Latch CST feature. Clear the box to disable the feature.

Publication 1756-UM528A-EN-P - April 2004

Page 79

Using The Sequence of Events Module in CST Per Point Mode

6-7

Using Enable CST Capture in CST Per Point Mode Regardless of operating mode, Enable CST Capture causes the Sequence of Events module to timestamp specific input transitions. However, keep the following in mind when using this feature in CST Per Point mode: • Typically, Latch CST is enabled in CST Per Point mode. The configuration of this feature (described on page 6-6) determines whether the module timestamps only the first transition on an input or every transition on an input. • If Latch CST is enabled, the module timestamps only the initial transitions (OFF to ON and ON to OFF) for each input. • Whenever an input transition is timestamped as a valid transition, the module sends updated input data for all inputs to the controller immediately and at every subsequent RPI. Use the Configuration tab in RSLogix 5000 to set Enable CST Capture, as shown in the example below.

Click the Configuration tab. • Click on the individual boxes for each input point to enable CST Capture for that point. • Clear the individual boxes for each input point to disable CST Capture for that point. You can also use these boxes to enable or disable all points simultaneously.

Publication 1756-UM528A-EN-P - April 2004

Page 80

6-8

Using The Sequence of Events Module in CST Per Point Mode

Managing the Data in CST Per Point Mode

In CST Per Point Mode, the Sequence of Events module sends all of its input data to the controller immediately after an input transition has been timestamped and at each RPI. You must manage the data coming from the Sequence of Events module. The following occurs in the process of the managing data coming from the Sequence of Events module in CST Per Point mode: 1. The Sequence of Events module sends data to the controller. 2. The controller copies the relevant portions of the input data to a separate array. 3. At the user’s discretion, the controller clears latched timestamp data from the Sequence of Events module via the O.EventAck and O.NewData tags, preparing the module to timestamp the next transition. This process is described in the rest of this section.

Module Sends Data to the Controller Figure 6.2 shows an example of the Sequence of Events module sending data to the controller. In the example, the following occurs: 1. Input 1 transitions from OFF to ON. (The input has Enable CST Capture enabled.) 2. The Sequence of Events module timestamps the transition. 3. The module sends its input data, including the transition timestamp from input 1, to the controller. Figure 6.2 Sequence of Events module

1. Input 2 transitions from OFF to ON.

2. Module timestamps the transition.

ControlLogix controller

3. Module sends input data to the controller.

0000000 0000000 0101100 0000000 0000000 0000000

0000000 0000000

42793

Publication 1756-UM528A-EN-P - April 2004

I.Fault I.Data I.NewData I.EventOverlow I.ReturningUCTTime I.EventNumber I.Timestamp[16].OffOn[2] I.Timestamp[16].OnOff[2]

Page 81

Using The Sequence of Events Module in CST Per Point Mode

6-9

Table 6.3 describes the data that is sent for each input. These tags are sent to the controller immediately after the module timestamps a transition on any input and at each RPI. Table 6.3 Input Tags in CST Per Point Mode Tag name:

Set on a Per Point or Description: Modulewide basis:

I.Fault

Per point(1)

Indicates if a fault has occurred for the input. 0 = no fault 1 = fault – The fault can be chatter or communication fault as described below: • Chatter - The Sequence of Events module can detect chatter on individual inputs and will set the appropriate tag to 1 when chatter exists on an input. For example, if the module has detected chatter on input 4, I.Fault.4 = 1. • Communication fault - The controller sets this tag to 1 for all 32 bits if a communication fault occurs on the module. This tag clears when the fault that causes the condition no longer exists.

I.Data

(1)

Per point

Status of the input point. This data is filtered if the Input Filter feature is used on the module. Thus, an input change must pass through the filter before it is seen in this tag. 0 = input is OFF 1 = input is ON For example, if input 3 is ON, I.Data.3 = 1.

I.NewData

Per point(1)

Flag indicating if new timestamp data was detected on the input. 0 = no new timestamp data on the input 1 = new timestamp data on the input (since last acknowledged) Because input data for all inputs is sent immediately after each timestamped transition and at each RPI, this tag is useful to quickly determine on which input the transition occurred. For example, if the Sequence of Events module sends new input data to the owner-controller and I.NewData.5 = 1, you know that at least one of the timestamps for input 5 (i.e., I.Timestamp[5].OffOn or I.Timestamp[5].OnOff) has new data. This tag only clears when the controller acknowledges the new data or all events on the module are reset. For more information, see page 6-12.

I.EventOverflow

Per point(1)

Set for an input when the module either: • Does not timestamp a transition on the input – The module has Latch CST enabled and a similar transition has already been timestamped on this input but has not been cleared via the EventAck and NewDataAck output tags (see page 6-12). or • Overwrites previously-recorded timestamp data for the input – The module has Latch CST disabled and multiple transitions occur on the input. In this case, timestamp data from new transitions are recorded before previously-recorded transitions were cleared from the input via the EventAck and NewDataAck output tags (see page 6-12). This value is cleared if the module is reset.

Publication 1756-UM528A-EN-P - April 2004

Page 82

6-10

Using The Sequence of Events Module in CST Per Point Mode

Table 6.3 Input Tags in CST Per Point Mode Tag name:

Set on a Per Point or Description: Modulewide basis:

I.ReturningUCTTime

Modulewide

Indicates if timestamps are in UCT format rather than CST. 0 = CST format 1 = UCT format For more information on UCT format, see Appendix B.

I.EventNumber.x

Modulewide

Running count of the timestamped transitions; this tag increments by one with each new transition that the module timestamps. In CST Per Point mode, this tag has lesser importance than in FIFO mode. This value is cleared if the module is reset, as described on page 6-14.

I.Timestamp[16].OffOn[2]

Per point

Timestamp value (in CST or UCT format) with an input’s OFF to ON transition. This tag is a 16 x 2 32-bit array. There is a 64-bit timestamp per point. This value is cleared after the data has been acknowledged via the O.EventAck and O.NewData tags. For more information on clearing timestamp data, see page 6-12.

I.Timestamp[16].OnOff[2]

Per point

Timestamp value (in CST or UCT format) with an input’s ON to OFF transition. This tag is a 16 x 2 32-bit array. There is a 64-bit timestamp per point. This value is cleared after the data has been acknowledged via the O.EventAck and O.NewData tags. For more information on clearing timestamp data, see page 6-12.

(1)

This tag is a 32-bit tag. The lower 16 bits represent the 16 inputs on the Sequence of Events module.

Copying Relevant Input Data to a Separate Data Structure When the Sequence of Events 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’s memory. Later, you can combine timestamp data from multiple Sequence of Events modules and use a Sort routine to determine the order of events, with relative time reference, that occurred in a specific time period. IMPORTANT

Publication 1756-UM528A-EN-P - April 2004

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.

Page 83

Using The Sequence of Events Module in CST Per Point Mode

6-11

Figure 6.3 shows when to use the COP instruction. In this example, the Sequence of Events 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 6.3 Sequence of Events module

1. Input 2 transitions from OFF to ON.

2. Module timestamps the transition.

ControlLogix controller 3. Module sends input data to the controller.

0000000 0000000 0101100 0000000 0000000 0000000

0000000 0000000

42796

I.Fault I.Data I.NewData I.EventOverlow I.ReturningUCTTime I.EventNumber I.Timestamp[16].OffOn[2] I.Timestamp[16].OnOff[2]

Controller tags 4. Controller copies relevant data from controller tags to a separate array.

I.Fault I.Data I.NewData I.EventOverlow I.ReturningUCTTime I.EventNumber I.Timestamp[16].OffOn[2] I.Timestamp[16].OnOff[2]

Separate array

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 6.4 shows an example of ladder logic in which the controller only moves OFF to ON timestamp data for inputs 0 to 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. Figure 6.4

Publication 1756-UM528A-EN-P - April 2004

Page 84

6-12

Using The Sequence of Events Module in CST Per Point Mode

Acknowledging Latched Timestamp Data In most cases, Latch CST is enabled when the module operates in CST Per Point mode. This means that once the module timestamps an input transition, the module will not timestamp another transition in the same direction on the same input until you acknowledge the data from the first timestamped transition; when you acknowledge data, you clear it from the Sequence of Events module. To clear data from the Sequence of Events module, you must acknowledge them via the module’s output tags. You can clear data in the following ways: • Clear latched timestamp data for specific inputs – As data is acknowledged, it is cleared from the module, and the module will once again timestamp the first new transition for the input in the cleared direction(s). To clear timestamp data for specific inputs, you must complete the following steps: 1. Write to the EventAck tag (i.e., O.EventAck) in the input point’s output word. • 0 = clear only the falling edge timestamp (i.e., I.Timestamp[x].OnOff) • 1 = clear only the rising edge timestamp (i.e., I.Timestamp[x].OffOn) • 2 = clear both the falling and rising edge timestamps 2. Change the NewDataAck tag (i.e., O.NewDataAck) to a rising edge (i.e., set the tag =1). • If the bit = 0, change the bit to 1. • If the bit = 1, change the bit to 0, wait for at least one RPI, and change the bit to 1. The corresponding I.EventOverflow and I.NewData tags are also cleared. • Clear all latched data for the Sequence of Events module – This transition erases all timestamp data from the module, clearing data from all inputs simultaneously. Once the data is cleared, the module timestamps the first transition in each direction for each input and sends the data to the controller (assuming those inputs are configured with Enable CST Capture enabled in each direction). To clear all data for the module, transition the O.ResetEvents tag to 1. – If the bit = 0, change the bit to 1. – If the bit = 1, change the bit to 0, wait for at least one RPI, and change the bit to 1. Publication 1756-UM528A-EN-P - April 2004

Page 85

Using The Sequence of Events Module in CST Per Point Mode

6-13

Figure 6.5 shows when to clear data from the Sequence of Events module. In this example, the Sequence of Events module sent input data to the controller, and the controller copied the relevant input data to a separate structure. Now, the controller must clear the data from the Sequence of Events module. In this example, to clear data from the Sequence of Events module, the controller writes the following to the Sequence of Events output word: • O.EventAck.2 = 1 • O.NewDataAck.2 = 1 Figure 6.5 Sequence of Events module

1. Input 2 transitions from OFF to ON.

2. Module timestamps the transition. 0000000 0000000 0101100 0000000 0000000 0000000

0000000 0000000

ControlLogix controller

3. Module sends input data to the controller. I.Fault I.Data I.NewData I.EventOverlow I.ReturningUCTTime I.EventNumber I.Timestamp[16].OffOn[2] I.Timestamp[16].OnOff[2]

Controller tags 4. Controller copies relevant data from controller tags to a separate array.

I.Fault I.Data I.NewData I.EventOverlow I.ReturningUCTTime I.EventNumber I.Timestamp[16].OffOn[2] I.Timestamp[16].OnOff[2]

Separate array

5. Controller clears data from input 2 on the Sequence of Events module. O.EventAck.2 = 1 O.NewDataAck.2 = 1

42793

If Latch CST is disabled, the controller does not need to clear timestamp data. In this case, Sequence of Events 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.

Publication 1756-UM528A-EN-P - April 2004

Page 86

6-14

Using The Sequence of Events Module in CST Per Point Mode

Sorting the Data

Eventually, you will 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. For more information, see Appendix E, Using Sample RSLogix 5000 Projects with the Sequence of Events Module.

Clearing All Data From the Module’s Buffers At Once

If necessary, you can reset the events in the Sequence of Events module, in effect clearing all data from previously timestamped transitions. In other words, when all data is cleared from the module’s buffers, all of the module’s input tags return to 0. To reset events in the module’s buffer, transition the O.ResetEvents tag to 1 as described below: • If the bit = 0, change the bit to 1. • If the bit = 1, change the bit to 0, wait for at least one RPI, and change the bit to 1. Once the data is cleared, the module begins timestamping input transitions again and storing them in its on-board buffer.

Chapter Summary and What’s Next

Publication 1756-UM528A-EN-P - April 2004

In this chapter, you read about using the Sequence of Events module’s features. Chapter 7 describes Using The Sequence of Events Module in FIFO Mode.