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 27

ControlLogix Digital I/O Modules User Manual: ControlLogix Digital I/O Modules User Manual, pages 81 to 90

Pages 81 to 90 of 258, from ControlLogix Digital I/O Modules User Manual

The original document is the PDF (7.2 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.

For the Allen-Bradley 1756-OB16E

Page 81

Fast Module Features

Chapter 5

Per Point Timestamping and Change of State With per point timestamping, each input point on the module records timestamps in CIP Sync format at these speeds: • ± 4 µs for inputs < 4 kHz • ± 13 µs for inputs > 4 kHz IMPORTANT

Timestamping functions only in a CIP Sync system. If you are using change of state (COS) in a system using Coordinated System Time (CST), all timestamp values and the GrandMasterClockID input tag are set to zero. To set up CIP Sync time synchronization on the local controller, use the Date/Time tab in the controller properties. For more information about CIP Sync configuration, refer to the Integrated Architecture® and CIP Sync Configuration Application Technique, publication IA-AT003.

You can configure an input point to record a timestamp when the point transitions from On to Off, Off to On, or in both directions. By default, all points are configured to record a timestamp in both directions. You can also configure the module to latch timestamps for an input point’s last transition. When latching is enabled for a specific point, the point records a timestamp in the Pt[x].Timestamp.OffOn or Pt[x].Timestamp.OnOff input tags. The timestamp remains latched, and no new timestamps are recorded for the input point until the timestamp is acknowledged and reset. As a result, you can use the timestamp to determine the speed of a transition that is too fast to be detected by the program scan. To acknowledge a transition and reset a timestamp latch, you set the corresponding bit in these output tags: • Pt[x].NewDataOffOnAck - Acknowledges that the input point has transitioned to an On state and resets the timestamp latch. • Pt[x].NewDataOnOffAck - Acknowledges that the input point has transitioned to an Off state and resets the timestamp latch. The Pt[x].TimestampDropped input tag indicates whether a new timestamp has not been recorded because a previous timestamp was either latched or unacknowledged. Once a timestamp latch is reset for an input point, a new timestamp may be recorded in the Pt[x].Timestamp.OffOn or Pt[x].Timestamp.OnOff input tags upon the next transition. You can configure per point timestamping in three ways: • Timestamping enabled without latching (default configuration) • Timestamping enabled with latching • Timestamping disabled

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

81

Page 82

Chapter 5

Fast Module Features

Follow these steps to configure per point timestamping and enable COS. 1. On the New Module dialog box, click Change to display the Module Definition dialog box.

Opens the Module Definition dialog box.

2. Use this table to choose a connection format and input data type from the Connection and Input Data pull-down menus. IMPORTANT

To enable timestamping, choose Timestamp Data as the input data type.

Connection Format

Input Data

Data Return

Data

Timestamp Data

Module returns input data with COS timestamps in CIP Sync system time.

Data

Module returns input data without COS timestamps. This format is useful when the highest possible throughput is required, and timestamps are not required.

Data with Event

Timestamp Data

Results in two input connections: • Connection to return input data with COS timestamps in CIP Sync system time. • Connection to initiate event tasks. See page 87.

Listen Only

Timestamp Data

These formats have the same definition as those above except that they are Listen-only connections.

Data Listen Only with Event

TIP

82

Timestamp Data

You can change the connection format at any time after creating a new module except when you are online. The AOP applies all the configuration data and create the tags required for the new connection format.

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

Page 83

Fast Module Features

Chapter 5

3. On the New Module or Module Properties dialog box, click the Configuration tab. Timestamp fields only appear on the Configuration tab when you choose Timestamp Data from the Input Data pull-down menu on the Module Definition dialog box.

4. Complete the fields as described in the table and click OK. Field

Description

Configuration Tag

Enable COS/Timestamps Off → On

To enable COS and timestamping for an Off to On transition for a point, check the corresponding checkbox. To disable COS and timestamping for an Off to On transition for a point, clear the corresponding checkbox.

Pt[x].COSOffOnEn

Enable COS/Timestamps On → Off

To enable COS and timestamping for an On to Off transition for a point, check the corresponding checkbox. To disable COS and timestamping for an On to Off transition for a point, clear the corresponding checkbox.

Pt[x].COSOnOffEn

Latch Timestamps

Check the checkbox to latch a CIP Sync timestamp for a COS transition: • When an initial timestamp is latched, timestamps for subsequent COS transitions are dropped. • Once a latched timestamp is acknowledged via the corresponding bit in the Pt[x].NewDataOffOnAck or Pt[x].NewDataOnOffAck tag, the timestamp is overridden upon the next COS transition. IMPORTANT: Timestamps are latched only for points that are enabled for COS and timestamping.

LatchTimestamps

5. If you checked the Latch Timestamps checkbox, use program logic or the Logix Designer tag editor to acknowledge transitions and clear latched timestamps via the Pt[x].NewDataOffOnAck and Pt[x].NewDataOnOffAck output tags. For more information about module tags, refer to Appendix B.

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

83

Page 84

Chapter 5

Fast Module Features

Software Configurable Filter Times To account for hard contact bounce, you can configure Off-to-On and On-toOff input filter times of 0…30,000 µs in Logix Designer. These filters define how long an input transition must remain in the new state before the module considers the transition valid. When an input transition occurs, the module timestamps the transition on the edge of the transition and stores timestamp data for the transition. The module then monitors the input for the duration of the filter time to verify that the input remains in the new state: • If the input remains in the new state for a time period equal to the filter time, the input is recognized and recorded. The module sends timestamp data for the transition and the input’s On/Off state to the controller. • If the input changes state again before the duration of the filter time has elapsed, the module continues to scan that input for up to 10x the filter time. During this continued scan period, one of these events occurs: – In the time period that is 10x the duration of the filter time, the input returns to the transitioned state for the duration of the filter time. In this case, the module sends timestamp data from the initial transition to the controller. – In the time period that is 10x the duration of the filter time, the input never remains in the transitioned state for the duration of the filter time. In this case, the input is recognized, but the module does not consider the original transition valid and drops the timestamp. EXAMPLE

84

A 1756-IB16IF module is configured for a 2 ms filter time for Off-to-On transitions. In this example, three possible scenarios can result after an input transitions from Off to On: • Scenario 1 - The input turns On and remains On for the full 2 ms filter time. The module considers the transition valid and sends the data recorded at the transition to the controller (Figure 9 on page 85). • Scenario 2 - The input turns On but turns Off before the 2 ms filter time elapses. The module continues to monitor the input for 10x the duration of the filter time. Within that time period, the input turns On again and remains On for at least 2 ms. The module considers the transition valid and sends the data timestamped at the original transition to the controller (Figure 10 on page 85). • Scenario 3 - The input turns On but turns Off before the 2 ms filter time elapses. The module continues to monitor the input for 10x the duration of the filter time. Within that time period, the input never remains On for at least 2 ms. The module considers the transition invalid and drops the data timestamped at the original transition (Figure 11 on page 85).

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

Page 85

Fast Module Features

Chapter 5

Figure 9 - Valid Transition with No Bounce

Input remains On for at least 2 ms. The transition is considered valid, and the timestamp is sent to the controller.

Input turns On, and a timestamp is recorded.

0

1

2

3

4

5

6

7

8

Time in milliseconds

Figure 10 - Transition Valid with Bounce Input turns On and remains On for at least 2 ms in the 20 ms time period that is 10x the input filter time. The module sends the timestamp recorded at the original transition point (time 0) to the controller.

Input turns Off before 2 ms elapses. Input turns On, and a timestamp is recorded.

0

1

2

3

4

5

6

7

8

Time in milliseconds

Figure 11 - Invalid Transition

Input turns Off before 2 ms elapses.

The input never remains On for at least 2 ms.

After the 20 ms time period that is 10x the input filter time, the module drops the data recorded at the original transition. If an RPI occurs during this time, the module sends the controller its current valid input data. The data that is sent does not include data from the transition because the input transition has not cleared the filter and been recognized as a valid input.

Input turns On, and a timestamp is recorded.

The next time the input turns On, the module records the transition as timestamp 21.6 once the input passes the filter time. 0

1

2

3

4 … 17

18

19

20

21

22

Time in milliseconds

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

85

Page 86

Chapter 5

Fast Module Features

Follow these steps to configure input filter times. 1. On the Module Properties dialog box, click the Configuration tab. 2. In the Input Filter Time column, enter Off to On and On to Off input filter times from 0…30,000 µs and click OK.

3. Complete the fields as described in this table and click OK.

86

Field

Description

Configuration Tag

Enable Filter

To enable filtering for a point, check the corresponding checkbox. To disable filtering for a point, clear the corresponding checkbox.

Pt[x].FilterEn

Input Filter Time Off → On

Enter an Off to On input filter time from 0…30,000 μs.

FilterOffOn

Input Filter Time On → Off

Enter an On to Off input filter time from 0…30,000 μs.

FilterOnOff

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

Page 87

Fast Module Features

Chapter 5

Dedicated Connection for Event Tasks The 1756-IB16IF input module can initiate an event task over a dedicated second connection in response to four user-defined input patterns. You can define these patterns in real time during a control process by using these output tags: • Event[x].Mask - Defines which input points trigger the event task. • Event[x].Value - Defines whether the masked input points must be in the On or Off state before the event task is triggered. Each pattern can use any of the module’s 16 input points, as shown in tables 19 through 22. In example pattern 1, the input module triggers the event task when input points 0…7 are in the On state. Table 19 - Example Pattern 1 Output Tag

Bit Position 0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

Event[x].Value 1

1

1

1

1

1

1

1 x x x x x x x x

Event[x].Mask

In example pattern 2, the input module triggers the event task when input points 0…7 are in the Off state. Table 20 - Example Pattern 2 Output Tag

Bit Position 0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

1

1

1

1

1

1

1

1

0

0

0

0

0

0

0

0

Event[x].Value 0

0

0

0

0

0

0

0 x x x x x x x x

Event[x].Mask

In example pattern 3, the input module triggers the event task when input points 4, 6, 8, and 10 are in the On state. Table 21 - Example Pattern 3 Output Tag

Bit Position 0

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

0

0

0

0

1

0

1

0

1

0

1

0

0

0

0

0

Event[x].Value x x x x

1 x

1 x

1 x

1 x x x x x

Event[x].Mask

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

87

Page 88

Chapter 5

Fast Module Features

In example pattern 4, the input module triggers the event task when input points 0…3 are in the On state, and input points 12…15 are in the Off state. Table 22 - Example Pattern 4 Output Tag

Bit Position 0

1

2

3

4

5

6

7

8

9

10

1

1

1

1

0

0

0

0

0

0

Event[x].Value 1

1

1

1 x x x x x x

Event[x].Mask

11

12

13

14

15

0

0

1

1

1

1 x x

0

0

0

0

Once you define a pattern, you can disable an event from being triggered without clearing its output data by using the Event[x].Disarm output tag. IMPORTANT

All event masks and event values must be defined in the output tags of the module.

You can change output tag values in program logic while normal module operation continues or through the Logix Designer tag editor. For more information about module tags, refer to Appendix B. To use a dedicated connection to trigger event tasks, you must set the module’s connection format to Data with Event, as shown in Figure 12. For more information about connection formats, see Communication or Connection Formats on page 127. TIP You can change the connection format at any time after creating a new module except when you are online. The AOP applies all the configuration data required for the new connection format. Figure 12 - Event Connection Format

Choose Data with Event from the Connection pull-down menu.

When you choose the Data with Event connection format, the following occurs: • A second connection dedicated to event data only is established with the module. This dedicated event connection reduces controller overhead when using inputs or input patterns to trigger event tasks in the controller. • A new set of event tags is created, as described in Table 46 on page 191.

88

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

Page 89

Fast Module Features

Features Specific to Fast Output Modules

Chapter 5

This table lists features specific to ControlLogix fast digital output modules. Topic

Page

Programmable Fault State Delays

89

Pulse Width Modulation

91

Peer I/O Control (1756-OB16IEF only)

See the Peer I/O Control Application Technique, publication 1756-AT016.

Redundant Output

See Redundant Owners on page 102.

IMPORTANT

Output tag information is sent to the 1756-OB16IEF module only at the RPI rate defined during configuration. For optimal performance, use an Immediate Output (IOT) instruction. For example, the rung shown contains an IOT instruction for a fast output module in slot 3. Add a similar rung to your last routine within the Main Task to mimic normal output tag processing.

Programmable Fault State Delays You can define these states for an output point that is in Fault mode due to a communication failure: • Duration - Defines the length of time that the output remains in the Fault mode state before transitioning to a final state of On or Off. By default, the output remains in the Fault mode state as long as the fault condition persists. • Final state - Defines whether the output transitions to the On or Off state after the duration of the Fault mode state elapses. By default, the output transitions to the Off state. EXAMPLE

You define a duration of 1 second and a final state of On for an output point. If a fault occurs at that point, the output remains in its Fault mode state (Off, On, or Hold) for 1 second before transitioning to the On state.

IMPORTANT

If a connection is reestablished after an output point goes into Fault mode but before the duration time elapses, the settings you specify for the duration and final state no longer apply. For example, if you specify a 10 second duration and a final state of Off, and the fault ends in 3 seconds, the output point never transitions to the final state of Off.

For more information about defining a Fault mode state, refer to Configurable Point-level Output States on page 51. Rockwell Automation Publication 1756-UM058I-EN-P - December 2017

89

Page 90

Chapter 5

Fast Module Features

Follow these steps to configure a fault state delay. 1. On the Module Properties dialog box, click the Points category.

2. Complete the fields as described in this table and click OK. Field

Description

1756-OB16IEF Configuration Tag

1756-OB16IEFS Configuration Tag

Fault Mode Output State Duration

Choose the length of time you want the output to remain in Fault mode state before transitioning to the final state: • 1 second • 2 seconds • 5 seconds • 10 seconds • Forever (default) IMPORTANT: If you choose Forever, the output remains in the Fault mode state until a connection is reestablished. For example, if the Fault mode is Hold, and you specify a duration of Forever, then the output retains its Hold state and does not transition to a Final state if a fault occurs.

Pt[x].FaultValueStateDuration

FaultValueStateDuration

Fault Mode Output State Final State

Choose whether you want the module to transition to an On or Off state after the Fault mode duration time elapses. The default final state is Off. If you chose Forever, you cannot choose a final state. The module retains its current Fault mode state.

Pt[x].FaultFinalState

FaultFinalState

90

Rockwell Automation Publication 1756-UM058I-EN-P - December 2017