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

The text of a manual · part 10 of 19

ControlLogix Sequence of Events Module 1756-IB16ISOE (24/48V dc), 1756-IH16ISOE (125V dc) User Manual: 7 - Using The Sequence of Events Module in FIFO Mode, pages 87 to 96

Pages 87 to 96 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 87

Chapter

7

Using The Sequence of Events Module in FIFO Mode

What This Chapter Contains This chapter describes how to use the Sequence of Events module in FIFO mode. Table 7.1

Overview of the Mode

For information on:

See page:

Overview of the Mode

7-1

What the Typical Applications Where FIFO Mode is Used?

7-4

Configuring the Module for FIFO Mode

7-4

Retrieving Data in FIFO Mode

7-10

Clearing All Data From the Module’s Buffers At Once

7-20

Changing Between Retrieval Methods

7-20

In First In First Out (FIFO) mode, the Sequence of Events module timestamps multiple input transitions on any CST Capture-enabled inputs. The module stores the timestamp data in an on-board buffer that holds data for up to 160 unique transitions and their timestamps. When an input transitions, the module timestamps the event and records specific input data related to the transition. The owner-controller must retrieve the data from the Sequence of Events module using one of the two methods described later in this chapter. IMPORTANT

1

Keep in mind that, although the Sequence of Events module can store data for up to 160 timestamped transitions in its on-board buffers, if you manage the buffer effectively (i.e., retrieve data in a timely fashion), the module can timestamp an infinite number of input transitions and the controller will be able to retrieve and use the data.

Publication 1756-UM528A-EN-P - April 2004

Page 88

7-2

Using The Sequence of Events Module in FIFO Mode

How Does the On-Board Buffer Work in FIFO Mode?

The Sequence of Events module’s on-board buffer stores data for up to 160 timestamped transitions at one time. For each transition, specific information is recorded, as shown below and described on page 7-10. The on-board buffer has 160 slots to store timestamp information for input transitions. As the transitions occur, the module timestamps them and fills the 160 slots. The first transition fills the first slot, the second fills the second slot and so forth. Figure 7.1 Timestamp Event #

Input # Input State

Timestamp Event #

Input # Input State

The module is installed, wired to input devices and ready to begin operation. At this point, the module’s on-board buffer is empty because no input transitions have occurred.

0110010 1

5 1

Input 5 transitions from OFF to ON. The module timestamps the transition and stores the data in this first slot of its on-board buffer.

Timestamp Event #

Input 1 transitions from ON to OFF.

0110010 1 1100110 2

Input # Input State 5 1 1 0

The module timestamps the transition and stores the data in the next slot of its on-board buffer. Note that the data from the input 5 OFF to ON transition is still stored in the first slot of the module’s on-board buffer. 43805

Publication 1756-UM528A-EN-P - April 2004

Page 89

Using The Sequence of Events Module in FIFO Mode

7-3

Once data is stored on the module, the controller must retrieve it. Typically, the controller retrieves data from the first slot in the on-board buffer; the data in the first slot is also known as the current event. IMPORTANT

The current event is the event for which the Sequence of Events module is currently producing data. The current event is NOT the most recently-timestamped input transition.

After the controller retrieves the current event data, it acknowledges the data and clears it from the Sequence of Events module’s on-board buffers, and the data from the next slot in the buffer becomes the current event (i.e., the module produces this data for the controller). In FIFO mode, generally the following occurs: 1. You configure the Sequence of Events module to operate in FIFO mode via the Communication Format selection. 2. The Sequence of Events module timestamps each transition and stores the data in its on-board buffer. The module can timestamp each transition with a unique CST as long as the transitions occur 25µs apart. 3. The controller retrieves data from the Sequence of Events module as described in the following steps: a. Immediately after the Sequence of Events module timestamps an input transition, it records data in the first slot of its on-board buffer and produces the data for the controller; the data is the current event. The module produces the data from the current event at every subsequent RPI until the controller clears it (as described in step c). b. The controller copies the data from the controller tags to a separate data structure for later use. c. The controller acknowledges the current event in the Sequence of Events module’s buffer by I.EventNumber to O.EventNumber. d. Once the current event is cleared from the Sequence of Events module’s buffer, data for the next transition stored in the buffer becomes the current event, and the module begins producing this data for the controller as described in step a. 4. The Sequence of Events module timestamps input transitions and records the data in its on-board buffer as long as the buffer is not full (i.e., less than 160 input transitions worth of data is stored in the buffer).

Publication 1756-UM528A-EN-P - April 2004

Page 90

7-4

Using The Sequence of Events Module in FIFO Mode

What the Typical Applications Where FIFO Mode is Used?

FIFO mode is intended for use in applications where multiple transitions occur on multiple inputs in relatively rapid succession (i.e., faster than the controller can acknowledge the data as the transitions occur). Because of this intention, the Sequence of Events module uses an on-board buffer to store the data for up to 160 events. The following are example typical applications for FIFO mode: • Sequence monitoring • Process and machine optimization

Configuring the Module for FIFO 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 FIFO mode: • Communications Format • Latch CST • Enable CST Capture

Publication 1756-UM528A-EN-P - April 2004

Page 91

Using The Sequence of Events Module in FIFO Mode

7-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 FIFO mode, you must choose the FIFO communication format, as shown below.

Use this pull-down menu to choose the CST FIFO Mode communication format.

Publication 1756-UM528A-EN-P - April 2004

Page 92

7-6

Using The Sequence of Events Module in FIFO Mode

Using Latch CST in FIFO Mode When enabled, Latch CST prevents the Sequence of Events module from overwriting input data once it is timestamped. This feature is set on a module-wide basis and is enabled by default. Table 7.2 describes how Latch CST affects the module in FIFO mode. Table 7.2 If Latch CST is the following occurs(1):

Enabled

The Sequence of Events module timestamps input transitions as they occur, and stores the data for those transitions in its on-board buffer. If you fail to empty the buffer (as described on page 7-10) faster than it is filled, after 160 timestamped input transitions, the module ignores additional transitions. Once the Sequence of Events module buffer is filled, the next input transition is not timestamped and the I.EventOverflow for the point where the transition occurred is set to one to inform the controller that events occurred but were not timestamped.

Timestamp Event # The Sequence of Events module has timestamped and recorded enough input transitions since the controller last retrieved data, that the on-board buffer is full.

4 2 8 11 9 1 2 7 10

0 1 1 0 0 0 1 1 0

1 0 0 1 1 1 0 159 12 1 1 1 0 0 1 1 160 5

0 1

0110010 1100110 0100010 1100110 1010010 1100110 1010011 0000110 1100101

1 2 3 4 5 6 7 8 9

Timestamp Event # Input 3 transitions for OFF to ON. Because Latch CST is enabled and the Sequence of Events module’s on-board buffer is full, it does not timestamp the transition. All data in the buffer remains the same, and the module increments the I.EventOverflow tag.

Input # Input State

0110010 1100110 0100010 1100110 1010010 1100110 1010011 0000110 1100101

Timestamp data #160

Input # Input State

4 2 8 11 9 1 2 7 10

0 1 1 0 0 0 1 1 0

1 0 0 1 1 1 0 159 12 1 1 1 0 0 1 1 160 5

0 1

1 2 3 4 5 6 7 8 9

Timestamp data #1

The data in the buffer here matches the data in the buffer above.

43806

Publication 1756-UM528A-EN-P - April 2004

Page 93

Using The Sequence of Events Module in FIFO Mode

7-7

Table 7.2 If Latch CST is the following occurs(1):

Disabled

The Sequence of Events module timestamps input transitions as they occur, and stores the data for those transitions in its on-board buffer. However, the module can only store the data for up to 160 transitions in its on-board storage buffers. If you fail to empty the buffer (as described on page 7-10) faster than it is filled, after 160 timestamped input transitions, the module overwrites the timestamp from the first transition in its on-board buffer with data from the most recent transition. If the Sequence of Events module overwrites data, it sets the I.EventOverflow bit to one for the point where a timestamp was previously recorded but has been deleted to inform the controller that events have been overwritten.

Timestamp Event # The Sequence of Events module has timestamped and recorded enough input transitions since the controller last retrieved data, that the on-board buffer is full.

Input # Input State

4 2 8 11 9 1 2 7 10

0 1 1 0 0 0 1 1 0

1 0 0 1 1 1 0 159 12 1 1 1 0 0 1 1 160 5

0 1

0110010 1100110 0100010 1100110 1010010 1100110 1010011 0000110 1100101

1 2 3 4 5 6 7 8 9

Timestamp Event #

Timestamp data #1

Timestamp data #160

Input # Input State

Input 3 transitions for OFF to ON. Because Latch CST is disabled, the module timestamps the transition and records the data in slot #1 of its on-board buffer. In this case, the oldest data (i.e., data in slot #1) is automatically deleted from the module. The module sets the I.EventOverflow tag for that point.

0 1 1 0 0 1 0 161 3 1100110 2 2 0100010 3 8 1 1 0 0 1 1 0 4 11 1010010 5 9 1100110 6 1 1010011 7 2 0000110 8 7 1 1 0 0 1 0 1 9 10

1 1 1 0 0 0 1 1 0

1 0 0 1 1 1 0 159 12 1 1 1 0 0 1 1 160 5

0 1

Note that the timestamp data for event #1 has been deleted from the buffer. The timestamp from the most recent transition overwrites the data in slot #1 and becomes the current event sent to the controller. 43807

(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.

Publication 1756-UM528A-EN-P - April 2004

Page 94

7-8

Using The Sequence of Events Module in FIFO Mode

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 on this box to enable the Latch CST feature. Clear the box to disable the feature.

Publication 1756-UM528A-EN-P - April 2004

Page 95

Using The Sequence of Events Module in FIFO Mode

7-9

Using Enable CST Capture in FIFO 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 FIFO mode: • The module is capable of timestamping an unlimited number of transitions. However, at any one time the Sequence of Events module can store the data for up to 160 events in its on-board buffer. You must manage the buffer effectively (i.e., retrieve data) to make sure no events are missed or overwritten. • The controller must retrieve data associated with each input transition from the Sequence of Events module’s on-board buffers. See Retrieving Data in FIFO Mode on page 7-10 to learn how to manage the module’s on-board storage buffer. • When the first transition is timestamped, the module sends the data for that specific event, as well as the status of all the other points on the module, to the controller and at every subsequent RPI until the data is acknowledged. • As subsequent events occur after the first, the module timestamps the transition and records the data for that event in its on-board buffer. 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.

Publication 1756-UM528A-EN-P - April 2004

Page 96

7-10

Using The Sequence of Events Module in FIFO Mode

Managing the Data in FIFO Mode

In FIFO Mode, the Sequence of Events module sends input data for the current event to the controller immediately after the first 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 controller retrieves current event data from the Sequence of Events module in one of two retrieval methods. 2. The controller copies the relevant portions of the current event data to a separate array. 3. At the user’s discretion, controller clears current data from the Sequence of Events module by copying the current event number (I.EventNumber) to the O.EventAck tag, preparing the module send data from the next current event. This process is described in the rest of this section.

Retrieving Data in FIFO Mode In FIFO Mode, the Sequence of Events module automatically sends the controller the data from the first timestamped transition in its buffer. The controller must retrieve the data for the remaining timestamped transitions in the Sequence of Events module’s buffers. The controller can retrieve data in one of the following ways: • Standard Retrieval – By default, the module uses this retrieval method which returns events in order of occurrence. • Retrieval by Point Regardless of retrieval method, the controller retrieves data in the format described in Table 7.3 on page 7-11:

Publication 1756-UM528A-EN-P - April 2004