Solid-state equipment has operational characteristics differing from those of electromechanical equipment. Safety
Guidelines for the Application, Installation and Maintenance of Solid State Controls (publication
your local Rockwell Automation sales office or online at
http://www.rockwellautomation.com/literature/) describes some
important differences between solid-state equipment and hard-wired electromechanical devices. Because of this difference,
and also because of the wide variety of uses for solid-state equipment, all persons responsible for applying this equipment
must satisfy themselves that each intended application of this equipment is acceptable.
In no event will Rockwell Automation, Inc. be responsible or liable for indirect or consequential damages resulting from
the use or application of this equipment.
The examples and diagrams in this manual are included solely for illustrative purposes. Because of the many variables and
requirements associated with any particular installation, Rockwell Automation, Inc. cannot assume responsibility or
liability for actual use based on the examples and diagrams.
No patent liability is assumed by Rockwell Automation, Inc. with respect to use of information, circuits, equipment, or
software described in this manual.
Reproduction of the contents of this manual, in whole or in part, without written permission of Rockwell Automation,
Inc., is prohibited.
Throughout this manual, when necessary, we use notes to make you aware of safety considerations.
WARNING: Identifies information about practices or circumstances that can cause an explosion in a hazardous
environment, which can lead to personal injury or death, property damage, or economic loss.
SGI-1.1 available from
ATTENTION: Identifies information about practices or circumstances that can lead to personal injury or death,
property damage, or economic loss. Attentions help you identify a hazard, avoid a hazard, and recognize the
consequence
SHOCK HAZARD: Labels can be on or inside the equipment, for example, a drive or motor, to alert people that
dangerous voltage can be present.
BURN HAZARD: Labels can be on or inside the equipment, for example, a drive or motor, to alert people that
surfaces can reach dangerous temperatures.
IMPORTANT
Allen-Bradley, Rockwell Software, Rockwell Automation, RS Logix, R SLogix 5000, RSLogix 500, CompactLogix, Compact I/O, ControlLogix, MicroLogix , and TechConnect are trademarks of Rockwell Automation, Inc.
Trademarks not belonging to Rockwell Automation are property of their respective companies.
Identifies information that is critical for successful application and understanding of the product.
Summary of Changes
This manual contains new and updated information. Changes throughout this
revision are marked by change bars, as shown to the right of this paragraph.
New and Updated
Information
This table contains the changes made to this revision.
TopicPages
Changes were made to differentiate between the available high speed
counters modules.
8Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Preface
Use this manual if you are responsible for designing, installing, programming, or
troubleshooting control systems that use Compact I/O and/or MicroLogix 1500
or CompactLogix controllers.
Packaged Controller
Functionality
Additional Resources
Both the 1769-L24ER-QBFC1B and 1769-L27ERM-QBFC1B packaged
controllers provide the same high-speed counter (HSC) functionality as the
1769-HSC except for the input frequency.
While many features of the 1769-HSC module are available with the embedded
high-speed counters, some of the features of the 1769-HSC module are not
available with the embedded high-speed counters of the CompactLogix packaged
controllers. Features not available on the embedded high-speed counters include
rate/timer functions and limited output range control (4 ranges instead of the 16
available with the 1769-HSC module). Specific differences between the
1769-HSC module and the packaged controller functionality are noted
throughout this manual.
The CompactLogix Packaged Controllers Quick Start and User Manual,
publication
procedures, and tag descriptions for the embedded high-speed counters.
These documents contain additional information concerning related products
from Rockwell Automation.
ResourceDescription
CompactLogix System User Manual,
publication 1769-UM007
Compact I/O 1769-ADN DeviceNet Adapter User
Manual, publication 1769-UM001
Compact I/O Selection Guide, publication
CompactLogix Packaged Controllers Quick Start and
User Manual, publication
MicroLogix 1500 Programmable Controllers User
Manual, publication
MicroLogix Programmable Controllers Family Selection
Guide, publication 1761-SG001
Industrial Automation Wiring and Grounding
Guidelines, publication
Product Certifications website,
IASIMP-QS010
1764-UM001
1770-4.1
http://www.ab.comProvides declarations of conformity,
1769-SG002Describes the 1769 Compact I/O modules.
Describes how to install, use, and program
your CompactLogix controller.
Describes how to install, and use the
1769-ADN DeviceNet adapter.
Provides a quick start and information on
how to install, use, and program your
CompactLogix packaged controller.
Describes how to install, use, and program
your MicroLogix 1500 controller.
Provides an overview of the MicroLogix
1500 system.
Provides general guidelines for installing a
Rockwell Automation industrial system.
certificates, and other certification details.
You can view or download publications at
http://www.rockwellautomation.com/
literature/. To order paper copies of technical documentation, contact your local
Allen-Bradley distributor or Rockwell Automation sales representative.
Rockwell Automation Publication 1769-UM006E-EN-P - July 20139
Preface
Notes:
10Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Chapter 1
Module Overview
The 1769-HSC module is an intelligent counter module with its own
microprocessor and I/O that is capable of reacting to high-speed input signals.
The module can interface with up to two channels of quadrature or four channels
of pulse/count inputs. The signals received at the inputs are filtered, decoded,
and counted. They are also processed to generate rate and time-between-pulses
(pulse interval) data. Count and rate values can then be used to activate outputs
based on user-defined ranges.
IMPORTANT
For the 1769-L23E-QBFC1B and 1769-L23-QBFC1B packaged controllers
HSC functionality, there is no processing to generate rate or timebetween-pulses data. Only count data is used to activate outputs based
on ranges.
The module counts pulses at up to 1 MHz (250 kHz for the packaged
controllers) from devices such as proximity switches, pulse generators, turbine
flowmeters, and quadrature encoders. The module has four on-board, high-speed
switching outputs. These outputs can be under user program or direct module
control, based on the count value or frequency.
The 1769-HSC module is compatible with MicroLogix 1500 packaged
controllers (1764-LSP/C and 1764-LRP/C modules, firmware revision 6.0 and
later), CompactLogix controllers (generic profiles required for firmware revisions
prior to 11.0), and the 1769-ADN/B DeviceNet adapter.
TopicPage
Counters12
Inputs12
Outputs12
Hardware Features13
Status Indicators14
Rockwell Automation Publication 1769-UM006E-EN-P - July 201311
Chapter 1Module Overview
Counters
Inputs
The module is capable of counting pulses in either direction (forward, reverse, up,
down). A maximum of four pulse counters (or two quadrature counters) are
available. Each 32-bit counter can count to ±2 billion as a ring or linear counter.
In addition to providing a count value, the module provides a rate value up to
±1 MHz, dependent upon the type of input (the L23 packaged controller’s HSC
module functionality does not provide rate values). The rate value (as modified
by scalar) is the input frequency to the counter. When the count value is
increasing, the rate value is positive. When the count value is decreasing, the rate
value is negative.
Counters can also be reset or preset to any value between user-defined minimum
and maximum values. Preset can be accomplished from the user program or at a
Z-input event. The Z-input can also generate a capture value and/or freeze (gate)
the counters.
The module features six, high-speed differential inputs labeled ±A0, ±B0, ±Z0,
±A1, ±B1, and ±Z1. These inputs support two quadrature encoders with ABZ
inputs and/or up to four discrete count inputs. In addition, x1, x2, and x4
encoder configurations are provided to fully use the capabilities of high
resolution quadrature encoders. The inputs can be wired for standard differential
line driver output devices, as well as single-ended devices such as limit switches,
photo eyes, and proximity sensors. Inputs are optically isolated from the bus and
from one another, and have an operational range of 2.6…30V DC.
Outputs
Sixteen outputs are available: four on-board (real) and twelve virtual bits. All
16 outputs can be individually controlled by the module or by the user control
program.
The four on-board (real) outputs are DC sourcing, powered by a user-supplied
(5…30V DC) power source. These outputs are electronically protected from
current overloads and short-circuit conditions. Overcurrent status is monitored
and fed back to the user program. Output states are determined by a combination
of output data, configuration data, ranges, and overcurrent status.
Output Control Example on page 44 for a description of how the module
See
determines output status.
12Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module OverviewChapter 1
Hardware Features
1
5a
5
5b
The module’s hardware features are illustrated in Figure 1. Refer to Chapter 3 on
page 45 for detailed information on installation and wiring.
For information about the packaged controllers’ hardware features, see the
CompactLogix Packaged Controllers Quick Start and User Manual,
publication
Figure 1 - Hardware Features
02
13
A0 B0
IN OUT
A1 B1Z0Z1
High Speed Counter
Do Not Remove RTB Under Power
Unless Area is Non-Hazardous
Ensure Adjacent
Bus Lever is Unlatched/Latched
Before/After
Removing/Inserting Module
5Removable terminal block (RTB) with finger-safe cover
5aRTB upper-retaining screw
5bRTB lower-retaining screw
6aMovable bus connector (bus interface) with female pins
6bStationary bus connector (bus interface) with male pins
7Nameplate label
8aUpper tongue-and-groove slots
8bLower tongue-and-groove slots
9aUpper DIN-rail latch
9bLower DIN-rail latch
10Write-on label for user identification tags
45271
Rockwell Automation Publication 1769-UM006E-EN-P - July 201313
Chapter 1Module Overview
Status Indicators
02FUSE
OUT
IN
13
AOBOZO
A1B1Z1
High Speed Counter
OK
45272
The front panel of the 1769-HSC module has a total of 12 status indicators.
For information about the packaged controllers’ status indicators, see the
CompactLogix Packaged Controllers Quick Start and User Manual,
publication
Table 1 - Diagnostic Indicators
IndicatorStatusDescription
0 OUTAmberON/OFF logic status of output 0
1 OUTAmberON/OFF logic status of output 1
2 OUTAmberON/OFF logic status of output 2
3 OUTAmberON/OFF logic status of output 3
FUSERedOvercurrent
OKOffNo power is applied
A0AmberON/OFF status of input A0
A1AmberON/OFF status of input A1
B0AmberON/OFF status of input B0
B1AmberON/OFF status of input B1
Z0AmberON/OFF status of input Z0
Z1AmberON/OFF status of input Z1
ALL ONPossible causes for all status indicators to be On include the following:
IASIMP-QS010.
Red (briefly)Performing self-test
Solid greenOK, normal operating condition
Flashing greenOK, module in Program or Fault mode
Solid red or amberHardware error. Cycle power to the module. If problem persists,
Flashing redRecoverable fault. Reconfigure, reset, or perform error recovery.
• Bus error has occurred—controller hard fault. Cycle power.
• During load upgrade of controller—normal operation. Do not cycle power during the
load upgrade.
• All indicators flash on briefly during powerup—normal operation.
replace the module.
Non-critical versus Critical Module Errors on page 113. The
See
OK indicator flashes red for all of the error codes in the
Configuration Error Codes table on page 117.
14Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Chapter 2
Module Operation
This chapter details the operation of the 1769-HSC module. We strongly suggest
that you review this information before configuring your module.
TopicPage
Counter Defaults15
Module Operation Block Diagrams16
Number of Counters18
Summary of Available Counter Configurations18
Input Filtering20
Operational Mode Selection21
Input Frequency28
Counter Types28
Modifying Count Value29
Rate/Timer Functionality32
Output Control36
Counter Defaults
When the module powers up, all output array and configuration array values are
set to their default values. Refer to
Chapter 4 on page 65 or Appendix D on page
149 for default values. All input array values are cleared. None of the module data
is retentive through a power cycle.
Power cycling the module has the following effects:
• Clears stored counts and configurations
• Clears faults and flags
• Turns outputs off
Rockwell Automation Publication 1769-UM006E-EN-P - July 201315
Chapter 2Module Operation
Module Operation Block
Diagrams
To provide an overview of the module operation, the block diagrams indicate
relationships between module functions and configuration parameters.
Inputs
The following diagram illustrates how the inputs function.
Input
Filtering
Decoded
NumberOfCounters
Operational Mode
Pulse
Direction
DirInvert
DirInhibit
Discrete Input State
Count
Min/Max and Linear/Ring
Overflow (ResetOvf)
Underflow (ResetUdf)
Store
CtrnConfig.StorageMode_0
RisingEdgeZ (reset REZ)
ZInhibit
ZInvert
Enable
CtrnEn
CtrnConfig.StorageMode_1
InputStateZn ‘gating’
Direct Write
HiLimOrDirWr
LoadDirectWrite
ToThisCounter
Preset
CtrnSoftPreset
CtrnConfig.StorageMode_2 and Rising Edge Z
Automatic PresetWarning (Preset Warning)
(1) Resets.
Pulse Interval
(1)
(1)
(2) Does not apply topackaged
controller.
(1)
(1)
(2)
See page 32 to
determine howandwhen
to use to calculate rates.
(3)
Rate
Update Time
Scalar
Hysteresis
Rate Valid
Overflow
Underflow
Preset
Direct Write
(3) Does not apply to
packaged controller.
16Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module OperationChapter 2
Outputs
The following diagram illustrates how the outputs function.
Mode
Discrete
On Mask
Off Mask
Feedback
Object Value
Current Count
Current Rate
Ranges
High Limit
Low Limit
Type
Invert
Counter
Active
Output Control
Range Enable
Run
Program
Fault
Mode (Program/Fault/Run)
Overcurrent
Overcurrent Flags
OverCurrentLatchOff
OverCurrentLatchOff
(1)
Output Real Only)
ResetBlownFuse
Readback (Real and Virtual)
Hold Last State
Program Mode
Fault Mode
User-defined Safe State
Program State
Fault State
Safe State Run
Program State Run
Fault State Run
Program to Fault Enable
(1) In the packaged controller, the Type parameter is fixed at Count because the
rate measurement is not supported.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201317
Chapter 2Module Operation
Number of Counters
Summary of Available
Counter Configurations
The module has six input points: A0, B0, Z0, A1, B1, and Z1. Through these
inputs, the module can function with 1, 2, 3, or 4 counters depending upon the
number of counters and the operational mode configuration of the input points.
The table summarizes the input configurations available for all counters, based on
the number of counters.
No. of CountersCounterOperational ModeGate or Preset Functionality
1 Counter0AnyAll
1 through 3Not available
2 Counters0AnyAll
1AnyAll
2 and 3Not available
3 Counters0AnyAll
1Pulse/Internal DirectionAll
2Pulse/Internal DirectionNone
3Not available
4 Counters0Pulse/Internal DirectionAll
1Pulse/Internal DirectionAll
2Pulse/Internal DirectionNone
3Pulse/Internal DirectionNone
18Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module OperationChapter 2
The counter options and operating modes are summarized in Figure 2.
Figure 2 - Summary of Available Counters
AO
BO
ZO
A1
Z1
AO
BO
ZO
A1
B1
Z1
Counter 0
Any Mode
Counter 1
Not Available
Counter 0
Any Mode
Counter 1
Pulse
Internal
1 Counter
3 Counters
Counter 2
Not Available
Counter 3
Not Available
(1)
Counter 2
Pulse
Internal
Counter 3
Not Available
(1)
B1
AO
ZO
A1
Z1
AO
BO
ZO
A1
B1
Z1
Counter 0
Any Mode
Counter 1
Any Mode
Counter 0
Pulse
Internal
Counter 1
Pulse
Internal
2 Counters
4 Counters
Counter 2
Not Available
Counter 3
Not Available
(1)
Counter 2
Pulse
Internal
Counter
Pulse
Internal
(1)
B1
BO
45273
(1) The number of counters is defined by the NumberOfCounters bits in word 0 of the configuration array.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201319
Chapter 2Module Operation
Input Filtering
In many industrial environments, high frequency noise can be inadvertently
coupled to the sensor wires. The module can help reject some noise by means of
built-in filters. Inputs are filtered by means of user-selectable, low-pass filters
set up during module configuration.
The available nominal pulse width filters are shown in the table.
The input state bits (InputStateA0 through InputStateZ1) reflect the
filter’s inputs, but are NOT affected by the signal inhibit or invert
operations described on page 30.
Frequency
(1)
Pulse WidthEquivalent
Frequency
(1)
(1)
(1) Equivalent frequency assumes a perfect 50% duty cycle and are for reference purposes only. Hence, the no-filter setting is guaranteed to pass 4 MHz even though the
module’s maximum is 1 MHz. This lets the sensor and wiring to attenuate the pulse to 25% duty cycle while the module maintains pulse recognition.
(1) Equivalent frequency assumes a perfect 50% duty cycle and are for reference purposes only. Hence, the no-filter setting is guaranteed to pass 4 MHz even though the
module’s maximum is 1 MHz. This lets the sensor and wiring to attenuate the pulse to 25% duty cycle while the module maintains pulse recognition.
(1)
Pulse WidthEquivalent
IMPORTANT
Frequency
The built-in filters are simple, averaging, low-pass filters. They are
(1)
Pulse WidthEquivalent
Frequency
(1)
designed to block noise pulses of width equal to the values presented in
Table Filter Pulse Width and Frequency. Applying full amplitude, 50%
duty cycle signals that are of frequency above the selected filter’s
threshold frequency can result in an average value signal of sufficient
amplitude to turn the input on. A transition from no input to the full
amplitude, 50% duty cycle signal (or back to no signal) can result in
inadvertent input transitions.
(1) Low-pass filters block frequencies above the threshold frequency.
20Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module OperationChapter 2
Operational Mode
Selection
A count channel’s operational mode configuration selection determines how the
A and B inputs cause a counter channel to increment or decrement. The six
available mode selections are the following:
• Pulse/External Direction Input
• Pulse/Internal Direction Input
• Up and Down Pulse Input
• X1 Quadrature Encoder Input
• X2 Quadrature Encoder Input
• X4 Quadrature Encoder Input
IMPORTANT
The operational mode selection is limited by the number of counters
selected.
• With two counters selected, Counters 0 and 1 can be assigned any
operational mode.
• With three counters selected, Counter 0 can be assigned any mode,
but Counters 1 and 2 can only be configured as pulse/internal
direction.
• With four counters selected, all counters must be configured for the
pulse/internal direction mode.
See
Figure 2 on page 19 for the operational modes available for the counters,
based on the number of counters configured.
Direction Inhibit and Direction Invert Output Control Bits
These bits apply to all of the counter modes.
TIP
When set, the Direction Inhibit bit disables any physical input from
affecting count direction.
When set, the Direction Invert bit changes the direction of the counter in
all operational modes.
When Direction Inhibit is set, then Direction Invert is the direction.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201321
Chapter 2Module Operation
Pulse/External Direction Mode Selection
In this mode, the B input controls the direction of the counter, as shown in
Figure 3. If the B input is low (0), the counter increments on the rising edges of
input A. If the input B is high (1), the counter decrements on the rising edges of
input A.
TIP
Two Output Control bits let you modify the operation of the B input from
your control program or during configuration. The Direction Inhibit bit,
when set (1), disables the operation of the B input.
The Direction Invert bit, when set (1), reverses the operation of the
B input, but only if the Direction Inhibit bit is not set. If the Direction
Inhibit bit is set, then the Direction Invert bit controls counter direction:
• When the Direction Inhibit bit is set (1) and Direction Invert = 0, count
direction is up (forward).
• When the Direction Inhibit bit is set (1) and Direction Invert = 1, count
direction is down (reversed).
Figure 3 - Pulse/External Direction Mode (direction inhibit = 0, direction invert = 0)
Encoder or Sensor
Sensor or Switch
Count Pulse
Count Pulse
Direction Control
Input A
Input B
Input Z
Direction Control
High = Decrement
Low = Increment
22Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Count
Table 2 - Pulse External Direction Counting
Module OperationChapter 2
Direction
Inhibit Bit
000 or open1
010 or open-1
100 or open1
110 or open-1
Direction
Invert Bit
Input A (count)Input B (direction) Change in
Count Value
1-1
0, 1, Don’t care0
11
0, 1, Don’t care0
11
0, 1, Don’t care0
1-1
0, 1, Don’t care0
See Direction Inhibit and Direction Invert Output Control Bits on page 21 for
more information.
Pulse/Internal Direction Mode Selection
When the Pulse/Internal Direction mode is selected, the status of the Direction
Invert bit, as controlled by the user program, determines the direction of the
counter. The counter increments on the rising edge of the module’s A input
when the Direction Invert bit is reset (0). The counter decrements on the rising
edge of the A input when the Direction Invert bit is set (1).
Table 3 - Pulse Internal Direction Counting - Counters 0 and 1
Direction
Inhibit Bit
Don’t care0Don’t care1
Don’t care1Don’t care-1
Table 4 - Pulse Internal Direction Counting - Counters 2 and 3
Direction
Inhibit Bit
Don’t care0Don’t care1
Don’t care1Don’t care-1
Direction
Invert Bit
Direction
Invert Bit
Input A (count)Input BChange in Count
Value
0, 1, Don’t care0
0, 1, Don’t care0
Input AInput B (count)Change in Count
Value
Don’t care0, 1, 0
Don’t care0, 1, 0
Rockwell Automation Publication 1769-UM006E-EN-P - July 201323
Chapter 2Module Operation
Up and Down Pulses Mode Selection
In this mode, the counter channel increments on the rising edge of pulses applied
to input A and decrements on the rising edge of pulses applied to input B. When
set, the Direction Inhibit bit causes both A and B to increment. When set, the
Direction Invert bit causes B to increment and A to decrement. When the
Direction Invert and Direction Inhibit bits are both set, both A and B
decrement.
TIP
When both inputs transition simultaneously or near simultaneously, the
net result is no change to the count value.
24Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Table5-UpandDown Counting
Module OperationChapter 2
Direction
Inhibit Bit
000, 1, 1
010, 1, -1
100, 1, 1
110, 1, -1
Direction
Invert Bit
Input A (count)Input B (direction) Change in
Count Value
0, 1, -1
0
0, 1, 1
0
0, 1, 1
0
0, 1, -1
0
X1 Quadrature Encoder Mode Selection
In this mode, when a quadrature encoder is attached to inputs A and B, the count
direction is determined by the phase relation of inputs A and B. If A leads B, the
counter increments. If B leads A, the counter decrements. In other words, when B
is low, the count increments on the rising edge of input A and decrements on the
falling edge of input A. If B is high, all rising transitions on input A are ignored.
The counter changes value only on one edge of input A as shown in Figure 5.
TIP
When both A and B transition at the same time, instead of in the defined
90° phase separation, the quadrature signal is invalid.
For more information see
Direction Inhibit and Direction Invert Output
Control Bits on page 21 and their effect on Quadrature signals on page 27.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201325
The X2 Quadrature Encoder mode operates much like the X1 Quadrature
Encoder except that the resolution is doubled as shown in Figure 5 on
page 26.
X4 Quadrature Encoder Mode Selection
The X4 Quadrature Encoder mode operates much like the X1 Quadrature
Encoder except that the resolution is quadrupled, as shown in Figure 5 on
page 26.
Figure 6 shows how Direction Inhibit and Direction Invert affect the counter.
26Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module OperationChapter 2
Figure 6 - Operation Using Various Direction Inhibit and Direction Invert Settings
Quadrature
Encoder
Forward Rotation
A
B
DirectionInhibit = 0; DirectionInvert = 0
X1 Count Pulse
X2 Count Pulse
X4 Count Pulse
DirectionInhibit = 0; DirectionInvert = 1
A
B
Z
Input A
Input B
Input Z
Reverse Rotation
X1 Count Pulse
X2 Count Pulse
X4 Count Pulse
DirectionInhibit = 1; DirectionInvert = 0
X1 Count Pulse
X2 Count Pulse
X4 Count Pulse
DirectionInhibit = 1; DirectionInvert = 1
X1 Count Pulse
X2 Count Pulse
X4 Count Pulse
Rockwell Automation Publication 1769-UM006E-EN-P - July 201327
Chapter 2Module Operation
Input Frequency
Counter Types
Maximum input frequency is determined by the input configuration as shown in
the table.
Input ConfigurationInput Frequency
1769-HSC Module
X4 Quadrature encoder250 kHz250 kHz
X2 Quadrature encoder500 kHz250 kHz
All other configurations1 MHz250 kHz
Input Frequency
Packaged Controller
Each of the four possible counters can be configured to stop counting and set a
flag at its limits (linear counter) or to rollover and set a flag at its limits (ring
counter). A counter’s limits are programmed by the CtrnMaxCount and
CtrnMinCount words in the module’s configuration array. Both types are
described below.
Linear Counter
Figure 7 illustrates linear counter operation. In linear operation, the current count
(Ctr[n].CurrentCount) value remains between, or equal to, the
user-programmed minimum count (CtrnMinCount) and maximum count
(CtrnMaxCount) values. If the Ctr[n].CurrentCount value goes above (>) or
below (<) these values, the counter stops counting, and an overflow/underflow
bit is set. The overflow/underflow bits can be reset using the
CtrnResetCounterOverflow and CtrnResetCounterUnderflow bits.
Figure 7 - Linear Counter Diagram
Minimum Count Value
Underflow and Hold
0
Count Up
Counter Value
Count Down
Maximum Count Value
Overflow and Hold
Pulses are not accumulated in an overflow/underflow state. The counter begins
counting again when pulses are applied in the proper direction. For example, if
you exceed the maximum by 1000 counts, you do not need to apply 1000 counts
in the opposite direction before the counter begins counting down. The first
pulse in the opposite direction decrements the counter.
28Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module OperationChapter 2
Ring Counter
Figure 8 demonstrates ring counter operation. In ring counter operation, the
current count (Ctr[n].CurrentCount) value changes between user-programmable
minimum count (CtrnMinCount) and maximum count (CtrnMaxCount)
values. If, when counting up, the counter reaches the CtrnMaxCount value, it
rolls over to the CtrnMinCount value upon receiving the next count and sets the
overflow bit. If, when counting down, the counter reaches the CtrnMinCount
value, it rolls under to the CtrnMaxCount value upon receiving the next count
and sets the underflow bit. These bits can be reset using the
CtrnResetCounterOverflow and CtrnResetCounterUnderflow bits.
Figure 8 - Ring Counter Diagram
Modifying Count Value
Maximum Count Value
Rollover
Count Down
Minimum Count Value
Count Up
The count value (Ctr[n].CurrentCount) can be stored, reset, or preset using the
Z-input, CtrReset bit in the configuration array, control bits in the output array,
or overwritten using a Direct Write command.
Table6-Available Z Functions
SettingFor function
(1)
Store
HoldWhileZ=1,hold counter at its current value
Preset/ResetOn rising edge of Z, preset the count value to the value in the preset word
(1) If both a store and preset function are configured, the stored count is captured before the preset operation
takes place.
On rising edge of Z, store count in the Stored Count input word
IMPORTANT
Rockwell Automation Publication 1769-UM006E-EN-P - July 201329
Because only the Z-inputs are used for external gating and presetting,
these functions are not available for Counters 2 and 3, which do not have
Z-inputs. All options are always available for Counters 0 and 1,
regardless of input operational mode.
Chapter 2Module Operation
Counter Enable/Disable
The counter can be enabled or disabled using the CtrnEn control bit. Be aware
that disabling the counter does not inhibit any current count loading functions
(for example, preset or direct write) or any Z function.
Z Input Functions
There are three Z input functions: store, gate, and Z preset.
Store
The Z-input can be used to capture the current count value even when the
counter is counting at full 1 MHz speed.
Gate
The Z-inputs can be used to gate (hold) the counter at its current value regardless
of incoming A or B inputs. A gating function is typically one that lets pulses reach
the counter (gate open) or not (gate closed).
Z Preset
Preset can be programmed to occur based on the actions of the Z-input signal.
Inhibit and Invert
The Z-input signals can be inverted and/or inhibited, depending on the user
configuration of the CtrnZInvert and CtrnZInhibit output control bits. If the
signal is inhibited, the invert bit is the Z signal for the actions described above.
For an explanation of those bits, see
Z Inh - Z Inhibit (CtrnZInhibit) on page 93.
and
Z Inv - Z Invert (CtrnZInvert) on page 93
Direct Write
You can arbitrarily change the current count value (Ctr[n].CurrentCount) to the
direct write control value (Range12To15[n].HiLimOrDirWr). This ability
applies to ranges 12…15. The direct write value takes effect when the Load Direct
Write bit (Range12To15[n].LoadDirectWrite) transitions from 0 to 1.
If you attempt to preset and load direct write to a counter at the same time, only
the preset (CtrnPreset) will take effect.
30Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module OperationChapter 2
Preset/Reset
Preset sets the counter to a zero or non-zero value you define. Reset the counter
by setting this value (CtrnPreset) to zero.
Counter Reset
Refer to page 73 in Chapter 4 for details on performing a default counter reset for
the CMX 5370 L2 packaged controller and the 1769-HSC/B module only. The
L23E packaged controller and the 1769-HSC/A module do not have this
functionality.
Soft Preset
Preset can be programmed to occur by setting the appropriate output control bits
via your control program. Setting the CtrnSoftPreset bit in the output array
causes the counter to be preset, changing the count to the value in CtrnPreset.
Z Preset
Preset can be programmed to occur based on the actions of the Z-input signal.
Autopreset
If the module is configured such that CtrnMaxCount < Ctr[n].CurrentCount or
CtrnMinCount > Ctr[n].CurrentCount, then the module will automatically
change Ctr[n].CurrentCount to the CtrnPreset value and set the
CtrnPresetWarning bit.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201331
Chapter 2Module Operation
Rate/Timer Functionality
To ensure maximum accuracy, the module offers two different methods to
calculate the rate.
• Per Pulse = 1/Pulse Interval
• Cyclic = Number of Pulses/User-defined Time Interval
You select the method used, depending upon the pulse speed as defined below.
These are continuously available regardless of input operational mode.
IMPORTANT
The Rate/Timer Functionality information does not apply to the
L23E packaged controller.
The pulse interval rate method is very accurate for slower rates, that is, when the
pulse interval (or time between pulses) is large compared to the system clock
timer (1 μs). A timer is used to measure the time between two successive pulses.
The inverse of this value is the pulse interval rate. The pulse interval rate cannot
be read directly from the module. It needs to be calculated. The calculation can be
performed in the user control program.
This method is not as accurate for higher pulse rates. When the pulse interval
shrinks, two factors can distort the per pulse calculation. If the pulse interval is
close to the measuring timer’s clock frequency, 1 MHz, the granularity of the time
increments has a greater effect on rate inaccuracy. In addition, the rate can be
calculated many times over the course of a single backplane scan. As a result, the
rate data obtained at a backplane scan is only that of the very last pair of pulses
and disregards the other rate calculations that have occurred during that interval.
This can result in rate inaccuracy if the pulses are unevenly spaced.
Cyclic Rate Calcu
The module continuously calculates rates for each of its four possible counters,
regardless of operational mode (for example, up/down count). The 32-bit signed
integer rate from each counter is reported in the Ctr[n].CurrentRate words of the
input array.
In this method, the rates are calculated at the end of a counter’s configured cycle
time. This is configured via the CtrnCyclicRateUpdateTime configuration
word/menu. Valid entries are 1…32,767 ms. The number of net counts, net
change in Ctr[n].CurrentCount, during that period is converted into a rate value,
providing an average pulse rate.
lation Me
thod (current rate)
32Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module OperationChapter 2
The generalized rate calculation is Rate = count/ time.
IMPORTANT
The rate calculation is based on net counts. If a counter goes up 500
counts and down 300 counts, the net count is 200. Therefore, changes in
direction and speed affect the Ctr[n].CurrentRate value.
The cyclic method is better suited to high pulse rates.
Hysteresis Detection and Configuration
Because physical vibration can cause an encoder to generate pulses that you do
not wish to consider as valid motion, a hysteresis value is used to eliminate a
certain number of pulses in either direction as vibration-generated. These pulses
are not used to calculate the Ctr[n].CurrentRate value. You program the
minimum number of counts that are considered to be valid motion, using the
CtrnHysteresis configuration word/menu. If the change in counts over the
update time cycle is equal to or less than the minimum number of programmed
counts, the Ctr[n].CurrentRate is reported as zero.
This concept is not used to alter actual count values.
IMPORTANT
Hysteresis does not depend on the direction of the change in count.
Therefore, creeping, a slow change in count in one direction only, can
also be reported as zero frequency when it falls below the hysteresis
threshold.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201333
Chapter 2Module Operation
Scalar
You can configure the CtrnScalar value to scale or convert the raw rate value to
application-specific information, such as RPM (Revolutions Per Minute). Setting
CtrnScalar to 1 leaves the rate value in cycles per second (Hertz).
The actual rate equation is the following.
Current Rate =
TIP
1000 x count
CyclicRateUpdateTime x Scalar
To configure the Ctr[n].CurrentRate value to show an RPM value, set
CtrnScalar to (counts per revolution)/60.
For example, where Ctr0CyclicRateUpdateTime = 80, the encoder has 360
counts per revolution, and the change in Ctr[0]. CurrentCount is 96.
Scalar =
RPM =
360 counts/revolution
60 sec/min
1000 Cyclic Rate Update Time/sec x 96 counts
80 Cyclic Rate Update Time x 360 counts/revolution
60 sec/min
= 200 RPM
Rate Valid
The Ctr[n].RateValid bit indicates calculation integrity. When the bit is set, it
indicates that the accompanying Ctr[n].CurrentRate value is accurate.
The Ctr[n].RateValid bit is reset when the overflow or underflow events have
occurred, that is, at rising edges of Ctr[n].Overflow or Ctr[n].Underflow bits. It
also happens when the count is abruptly modified via a preset (CtrnSoftPreset,
CtrnCtrPresetWarning or Z based preset event) or direct write
(Range12To15[n].LoadDirectWrite). When this occurs, the Ctr[n].CurrentRate
value is frozen at the last known good value so that effects of erroneous rates will
not propagate to range comparisons. The value remains frozen until the current
cycle time plus one more cycle time are elapsed (this can be up to twice the
CtrnCyclicRateUpdateTime). If the overflow/underflow occurrence lasts for
more than one cycle time, the value is frozen that entire time plus up to two more
cycle times.
Ensure that another overflow/underflow does not happen during this recovery
time. The rate will remain invalid until a full update time has occurred with no
such events. If the Ctr[n].RateValid bit is seldom or never set, the CtrnMinCount
and CtrnMaxCount values can be configured too close to each other.
34Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module OperationChapter 2
Rate Method
Selectio
n
By knowing when to use each method, an optimal rate determination can be
made.
TIP
Fractional rates are not reported by the module, but can be calculated
from Ctr[n].PulseInterval in your control program.
Use the following information to choose the appropriate calculation method. In
general, consider the effect of having the count off by ±1 in each method at
frequencies of interest to see if the resulting inaccuracy is acceptable.
Per Pulse Method Example
If the frequency of interest has 100 counts (of the 1 μs clock) between pulses, an
error of 1 count results in a 1-in-100, or 1%, error. If there are 1000 counts
between pulses, then the error is 1-in-1000, or 0.1%. Error for a variety of pulse
values is shown below.
Table 7 - Per Pulse Errors
Actual 1 µs
Internal
(1)
Pulses
21500 kHz1 MHz100%
910111 kHz100 kHz11.1%
1011009.901 kHz10.000 kHz1.00%
10011000999 Hz1000 Hz0.10%
999910,000100.01 Hz100.00 Hz0.010%
99,999100,00010.00010 Hz10.00000 Hz0.001%
Reported
Pulses
Real FrequencyReported
Frequency
% Error
(1) 1.9999 can be rounded to 2 and so on.
Cyclic Method
Because the update time is programmable, there is more flexibility in choosing the
correct fit when using the Cyclic Method.
Error estimates are shown below for a variety of update times.
Table 8 - Maximum Cyclic Rate Errors
CyclicRateUpdate
Time x Scalar
1N/AN/A20.02%2.011%0.210%
10N/A20.11%2.020%0.210%0.030%
10020.01%2.110%0.220%0.031%0.012%
10003.010%0.310%0.040%0.013%0.010%
10,0001.210%0.130%0.022%0.011%0.010%
Rockwell Automation Publication 1769-UM006E-EN-P - July 201335
Frequency
100 Hz1 kHz10 kHz100 kHz1 MHz
Chapter 2Module Operation
Output Control
All 16 outputs can be controlled by any of the four counters or by the user’s
control program, via the output mask function. Output states are determined by
count, rate (not supported in packaged controller), ranges, mask configuration
data, overcurrent status, and safe state settings and conditions.
The 16 outputs are made up of four real (physical) outputs and 12 virtual
outputs. The status of the real and virtual outputs is available to the user
program. The real outputs are electronically protected from overloads.
IMPORTANT
To turn outputs on, you must use both the Output On Mask and
the Output Off Mask.
Masks
You can use an Output On Mask or an Output Off Mask.
Output On Mask
Using the Output On Mask, all of the module’s outputs can be turned on directly
by the user control program, like discrete outputs. A bit that is set in the mask
turns on the corresponding real or virtual output.
Output Off Mask
The Output Off Mask has veto power over any output. It can turn any or all of
the module’s outputs off. When a bit in this mask is set to 0, the output will be
turned off. Each bit is logically ANDed with the Output On Mask and masks of
active and enabled ranges. If the bit in this mask is set to 1, the output can be
turned on or off by the ranges, or the Output On Mask. The final result is
available as the Readback.n bit.
36Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module OperationChapter 2
Ranges
For the 1769-HSC module and the embedded HSC in the CMX 5370 L2
packaged controllers, up to 16 dynamically configurable ranges are available.
Ranges activate outputs based on the current count value or the current rate
value. Each range is programmed with a type, counter number, two limit values,
an invert bit, and an output mask.
For the embedded HSC in the L23E packaged controller, up to four dynamically
configurable ranges are available. Ranges activate outputs based on the current
count value. Each range is programmed with a counter number, two limit values,
an invert bit, and an output mask.
Each range is programmed with high and low limits for the chosen value. The
range’s invert bit indicates whether the range is active between or outside the
range limits. When the chosen value fulfills the configuration parameters, the
range is active as indicated in the input array. When a range is active and enabled
(RangeEn.n = 1), the range turns on all outputs indicated by the Range Output
Mask except those that are prevented from being enabled by the other factors
such as Output Off Mask or Overcurrent. The status of a range is provided by the
range active status word, where 1 equals range active and zero equals inactive.
TIP
Ranges can be disabled while the module is running using the RangeEn.n
bit in the output file. However, even a disabled range will report when it
is active or not. For example, an unprogrammed range has limits of 0, and
points to the Ctr[0].CurrentCount value. If this value is 0, that range is
reported as active.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201337
Chapter 2Module Operation
Count Range
In a non-inverted count range, the outputs are active if the count value is within
the user-defined range. In an inverted count range, the outputs are active if the
count value is outside the user-defined range. Valid limits for the range are
-2…2 billion regardless of programmed minimum and maximum values.
Figure 9 shows all ranges referring to one counter. The module is capable of
individually assigning each range to any counter. Each counter can also have a
combination of count and rate ranges.
Figure 9 - Count Range Example
-200,000106,000
Range 4
Stop Value
On
Output 0
Off
Output 1
Output 2
Output 3
Table 9 - Count Range Example Values
0
Ctr[0].CurrentCount
Range 1Range 2Range 4
Start Value
Outputs
Range 3
(2)
(Range[n].OutputControl word)
(1)
1514131211109876543210
Range
Range Counter Number
Range Type
Range Low Limit
1010-7000-5000000000000000000010
2010-10004500000000000000000101
3010-40003000000000000000001002
4010-90009000100000000000010010 and 3
(1) For Range Type, 0 = count range and 1 = rate range.
(2) Bits 0…3 are real outputs. Bits 4…15 are virtual outputs.
38Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Range High Limit
Range Invert Bit
Outputs Affected
Rate Range
Module OperationChapter 2
IMPORTANT
The Rate Range information does not apply to the packaged controller.
In a non-inverted rate range, the outputs are active if the rate measurement is
within the user-defined range. In an inverted rate range, the outputs are active if
the rate measurement is outside the user-defined range. The input rate can be up
to 1 MHz in either direction.
Figure 10 shows all ranges referring to one counter. The module is capable of
individually assigning each range to any counter. Each counter can also have a
combination of count and rate ranges.
Figure 10 - Rate Range Example
-1,000,0001,000,000
Range 4Range 1Range 2Range 4
Range 3
On
Output 0
Off
0
Ctr[0].CurrentRate
Output 1
Output 2
Output 3
Table 10 - Rate Range Example Values
(2)
Outputs
(1)
Range
Range Counter
Number
Range Type
Range Low Limit
1001-7000-5000000000000000000010
2001-10004500000000000000000101
3001-40003000000000000000001002
4001-20,000 20,000100000000000010010and3
(1) For Range Type, 0 = count range and 1 = rate range.
(2) Bits 0…3 are real outputs. Bits 4…15 are virtual outputs.
Range High Limit
(Range[n].OutputControl word)
1514131211109876543210
Range Invert Bit
Outputs Affected
Rockwell Automation Publication 1769-UM006E-EN-P - July 201339
Chapter 2Module Operation
Overcurrent
If the module detects a real output point overcurrent condition, it reports it to
the input file and turns off that output. You can also program the module to
latch each of the four real outputs off, emulating a physical fuse, or to
automatically reset. The 12 virtual outputs do not have this function.
When the OvercurrentLatchOff bit is set and an overcurrent situation occurs,
even momentarily, the associated real output is latched off until the
ResetBlownFuse bit transitions from 0 to 1.
If the OvercurrentLatchOff bit is reset and an overcurrent situation occurs, the
output turns off for 1 second and is then retried (auto-reset). The module
continues to attempt to turn the output back on until the overcurrent situation is
no longer detected and the output is successfully turned back on.
IMPORTANT
The outputs will be on momentarily while they are retried. The length of
time they are on depends on the magnitude of the load.
Safe State Control
The 1769-HSC module combines the Hold Last State and User-defined Safe
State options with a safe-state run alternative that lets the module to continue to
control outputs under program or fault states
available in the packaged controllers.
Only the physical outputs are affected by safe state settings and conditions.
Virtual outputs, inputs, and counting are not affected by program or fault states.
Hold Last State (HLS)
This condition applies depending on the mode of the controller. When the hold
last state option is set, the module holds the outputs at the state they were at just
before the control system transitioned from Run to Program or Run to Fault.
HLS sets the module according to the values configured for Program mode
(described on
page 76) and Output Fault mode (described on page 77).
(1)
. These Safe State options are not
User-defined Safe State (UDSS)
In this configuration, the module sets the outputs to a user-defined safe state
when the control system transitions from Run to Program or Run to Fault.
UDSS sets the module according to the values configured for Output Program
Value (described on
(1) The module continues to update the input array and count inputs in all modes. The operation of the outputs will
vary according to mode, configuration, and the capabilities of the controller or bus master.
40Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
page 77) and Output Fault Value (described on page 78).
Module OperationChapter 2
Program State Run (PSR)
Program State Run lets you specify that the output should continue to be
controlled by the module as if it were in the Run state. That is, events on the
module or changes in the output image will affect the physical outputs without
regard to the Program_HLS or UDSS state indicated. When this bit is set, the
corresponding OutnProgramMode and OutnProgramValue bits are ignored.
PSR sets the module according to the value configured for Output Program State
Run, as described on
ATTENTION: Selecting this option lets outputs change state while ladder
logic is not running. You must take care to assure that this does not pose a
risk of injury or equipment damage when selecting this option.
page 76.
IMPORTANT
The prescan initiated by some controllers could have an effect on the
outputs. To overcome any changes in physical output states caused by
this, retentive output instructions (for example, latch or unlatch) should
be used when bit manipulations are done on the output image of this
module in ladder logic.
This applies to a wide range of bits when Program State Run is selected,
because presetting a counter, enabling a range, changing a mask, and
changing module configuration array settings can cause ranges and
outputs to change state.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201341
Chapter 2Module Operation
Fault State Run (FSR)
Similar to Program State Run, Fault State Run lets you specify, on a bit basis, that
the output should continue to be controlled by the module as if it were Run state.
That is, events on the module or changes in the output image will affect the
physical outputs without regard to the Fault_HLS or UDSS state indicated.
When this bit is set, the corresponding Fault mode and fault value bits are
ignored.
FSR sets the module according to the value configured for Output Fault State
Run, as described on
page 77.
ATTENTION:Selecting this option lets outputs change state while
ladder logic is not running. You must take care to assure that this
does not pose a risk of injury or equipment damage when selecting
this option.
IMPORTANT
The prescan initiated by some controllers can have an effect on the
outputs. To overcome any changes in physical output states caused by
this, use retentive output instructions (for example, latch or unlatch)
when bit manipulations are done on the Output image of this module
in ladder logic.
This applies to a wide range of bits when Fault State Run is selected,
because presetting a counter, enabling a range, changing a mask, and
changing configuration array settings can cause ranges and outputs to
change state.
42Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module OperationChapter 2
Program to Fault Enable (PFE)
The ProgToFaultEn bit lets you select which data value (Program Value or Fault
Value) to apply to the output when the Output State Logic state Prog_HLS
changes to indicate Fault_HLS.
If PFE is 0, the module leaves the Program value applied. If PFE is set to 1, the
Fault value is applied.
TIP
If the module is in a safe state such as Program or Fault which is
configured to turn an output ON and excessive current is drawn from the
output, the output will still turn off according to the programmed
OverCurrentLatchOff bit configuration.
The module’s Default Safe State configuration is all zeros, resulting in the
following:
• Program State = UDSS
• Program Value = OFF
• Program State Run = No
• Fault State = UDSS
• Fault Value = OFF
• Fault State Run = No
• PFE = leave program value applied
Output Control Example
The following example illustrates the module’s output control flow. The
following conditions are reflected in the
• Range 0 is enabled and active.
• Range 1 is disabled.
• Range 2 is enabled but not active.
• An overcurrent condition exists on real output 3.
• OvercurrentLatchOff is set.
• The system is in Run mode.
Output Control Example on page 44:
Rockwell Automation Publication 1769-UM006E-EN-P - July 201343
Chapter 2Module Operation
Table 11 illustrates the step-by-step logical operations that are performed to
determine the final output state. For example, Range 1 values do not affect the
output because Range 1 is disabled, and the Output Off Mask causes some of the
outputs to change to zero because it takes priority over the range masks.
The output parameters shown have been discussed in the previous sections.
Table 11 - Output Control Example
Output ParameterMask InformationLogical Operation Result
Range 00 001011011010001OR0001011011010001
Range 10 010111111110010OR0001011011010001
Range 20 100000000001100OR0001011011010001
Output On Mask0 100101010101000OR01 011 110111 1 1 001
Output Off Mask1 111000011111100AND0101000011110000
Program State
Values
Fault State Values- -----------11 1 1 Override0 101000011110000
Final Output State0 101000011110000
------------11 1 1 Override0 101000011110000
(1)
(1) Bolded text indicates that these values have changed.
Readback/Loopback
The Readback/Loopback function is the feedback of the module’s outputs via its
input array. This 16-bit image includes both real (4) and virtual (12) outputs.
If the module’s output is OFF due to overcurrent, both the Overcurrent status
flag and the Readback bit will indicate the condition being 1 and 0, respectively.
Conversely, should the output be ON due to any module control, such as UDSS,
this will be indicated by Readback.
44Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Chapter 3
Installation and Wiring
This chapter explains how to install and wire the 1769-HSC module.
TopicPage
Power Requirements47
General Considerations47
System Assembly49
Mount the Module50
Replace the Module within a System53
Field Wiring Connections54
IMPORTANT
ATTENTION: Environment and Enclosure
This equipment is intended for use in a Pollution Degree 2 industrial environment, in overvoltage Category II
applications (as defined in IEC 60664-1), at altitudes up to 2000 m (6562 ft) without derating.
This equipment is considered Group 1, Class A industrial equipment according to IEC/CISPR 11. Without appropriate
precautions, there can be difficulties with electromagnetic compatibility in residential and other environments due to
conducted and radiated disturbances.
This equipment is supplied as open-type equipment. It must be mounted within an enclosure that is suitably designed
for those specific environmental conditions that will be present and appropriately designed to prevent personal injury
resulting from accessibility to live parts. The enclosure must have suitable flame-retardant properties to prevent or
minimize the spread of flame, complying with a flame spread rating of 5VA, V2, V1, V0 (or equivalent) if non-metallic.
The interior of the enclosure must be accessible only by the use of a tool. Subsequent sections of this publication may
contain additional information regarding specific enclosure type ratings that are required to comply with certain
product safety certifications.
In addition to this publication, see the following:
For information about installing and wiring the packaged controllers,
refer to the CompactLogix Packaged Controller Installation Instructions,
publication 1769-IN082.
• Industrial Automation Wiring and Grounding Guidelines, publication 1770-4.1, for additional installation
requirements
• NEMA Standard 250 and IEC 60529, as applicable, for explanations of the degrees of protection provided by
enclosures
Rockwell Automation Publication 1769-UM006E-EN-P - July 201345
Chapter 3Installation and Wiring
North American Hazardous Location Approval
The following information applies when operating this equipment
in hazardous locations.
Products marked "CL I, DIV 2, GP A, B, C, D" are suitable for use in Class I
Division 2 Groups A, B, C, D, Hazardous Locations and nonhazardous
locations only. Each product is supplied with markings on the rating
nameplate indicating the hazardous location temperature code. When
combining products within a system, the most adverse temperature code
(lowest "T" number) may be used to help determine the overall
temperature code of the system. Combinations of equipment in your
system are subject to investigation by the local Authority Having
Jurisdiction at the time of installation.
EXPLOSION HAZARD
• Do not disconnect equipment unless
power has been removed or the area is
known to be nonhazardous.
• Do not disconnect connections to this
equipment unless power has been
removed or the area is known to be
nonhazardous. Secure any external
connections that mate to this
equipment by using screws, sliding
latches, threaded connectors, or other
means provided with this product.
• Substitution of any component may
impair suitability for Class I, Division 2.
• If this product contains batteries, they
must only be changedin anarea known
to be nonhazardous.
Informations sur l’utilisation de cet équipement en environnements
dangereux.
Les produits marqués "CL I, DIV 2, GP A, B, C, D" ne conviennent qu'à une
utilisation en environnements de Classe I Division 2 Groupes A, B, C, D
dangereux et non dangereux. Chaque produit est livré avec des marquages
sur sa plaque d'identification qui indiquent le code de température pour les
environnements dangereux. Lorsque plusieurs produits sont combinés dans
un système, le code de température le plus défavorable (code de
température le plus faible) peut être utilisé pour déterminer le code de
température global du système. Les combinaisons d'équipements dans le
système sont sujettes à inspection par les autorités locales qualifiées au
moment de l'installation.
RISQUE D’EXPLOSION
• Couper le courant ou s'assurer que
l'environnement est classé non
dangereux avant de débrancher
l'équipement.
• Couper le courant ou s'assurer que
l'environnement est classé non
dangereux avant de débrancher les
connecteurs. Fixertous les connecteurs
externes reliés à cet équipement à
l'aide de vis, loquets coulissants,
connecteurs filetés ou autres moyens
fournis avec ce produit.
• La substitution de tout composant peut
rendre cet équipement inadapté à une
utilisation en environnement de Classe
I, Division 2.
• S'assurer que l'environnement est
classé nondangereux avant de changer
les piles.
ATTENTION: Prevent Electrostatic Discharge
This equipment is sensitive to electrostatic discharge, which can cause internal damage and affect normal operation.
Follow these guidelines when you handle this equipment:
• Touch a grounded object to discharge potential static.
• Wear an approved grounding wriststrap.
• Do not touch connectors or pins on component boards.
• Do not touch circuit components inside the equipment.
• Use a static-safe workstation, if available.
• Store the equipment in appropriate static-safe packaging when not in use.
WARNING: Hazardous Location Enclosure
When used in a Class I, Division 2, hazardous location, this equipment must be mounted in a suitable enclosure with
proper wiring method that complies with the governing electrical codes.
46Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Installation and WiringChapter 3
Power Requirements
The modules receive power through the Compact bus interface from the
5V DC/24V DC system power supply. The maximum current drawn by the
modules is shown in the table.
Module Current Draw5V DC24V DC
425 mA0 mA
WARNING: When you insert or remove the module while backplane
power is on, an electrical arc can occur. This could cause an explosion in
hazardous location installations.
By sure that power is removed or the area is nonhazardous before
proceeding. Repeated electrical arcing causes excessive wear to contacts on
both the module and its mating connector. Worn contacts can create
electrical resistance that can affect module operation.
WARNING: Removable Terminal Block (RTB) Under Power
When you connect or disconnect the removable terminal block (RTB) with field
side power applied, an electrical arc can occur. This could cause an explosion
in hazardous location installations.
Be sure that power is removed or the area is nonhazardous before proceeding.
General Considerations
Compact I/O is suitable for use in an industrial environment when installed in
accordance with these instructions.
Selecting a Location to Reduce Noise
Most applications require installation in an industrial enclosure to reduce the
effects of electrical interference. The module is highly susceptible to electrical
noise. Electrical noise coupled to the inputs will reduce the performance
(accuracy) of the module.
Group your modules to minimize adverse effects from radiated electrical noise
and heat. When selecting a location for a module, position the module away from
the following:
• Sources of electrical noise, such as hard-contact switches, relays, and AC
motor drives.
• Modules that generate significant radiated heat, such as the 1769-IA16
module. Refer to the module’s heat dissipation specification.
In addition, route shielded, twisted-pair analog input and output wiring away
from any high voltage I/O wiring.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201347
Chapter 3Installation and Wiring
Protect the Circuit Board from Contamination
The printed circuit boards of the modules must be protected from dirt, oil,
moisture, and other airborne contaminants. To protect these boards, we
recommend installing the system in an enclosure suitable for the environment.
Keep the interior of the enclosure should clean and the enclosure door closed
whenever possible.
Power Supply Distance
You can install as many modules as your power supply can support. However, the
module has a power supply distance rating of four, which means that it can not be
more than four modules away from the system power supply.
The illustration provides an example of determining power supply distance.
MicroLogix 1500 Controller
with Integrated System
Power Supply
Power Supply Distance
Power Supply Distance
Compact I/O
Compact I/O
1 2 34 5 6 78
OR
Adapter
Compact I/O
I/O Communication
4321123
Compact I/O
Compact I/O
Compact I/O
Compact I/O
Compact I/O
System
Power Supply
Compact I/O
Compact I/O
Compact I/O
Compact I/O
Compact I/O
45274
Compact I/O
End Cap
End Cap
48Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Installation and WiringChapter 3
System Assembly
The module can be attached to an adjacent controller, power supply, or I/O
module. For mounting instructions, see
Panel Mounting on page 50, or
DIN Rail Mounting on page 52.
To work with a system that is already mounted, see
Replace the Module within a
System on page 53.
Refer to the illustration when assembling the Compact I/O system.
A
D
E
C
B
B
F
G
45275
1. Disconnect the power.
2. Check that the bus lever of the module (A) is in the unlocked
(fully right) position.
3. Use the upper and lower tongue-and-groove slots (B) to secure the
modules together.
4. Move the module back along the tongue-and-groove slots until the bus
connectors (C) line up with each other.
5. Use your fingers or a small screwdriver to push the bus lever back slightly to
clear the positioning tab (D).
6. Move the module’s bus lever fully to the left (E) until it clicks, making sure
it’s locked firmly in place.
ATTENTION: When attaching I/O modules, it is very important
that the bus connectors are securely locked together to provide
proper electrical connection.
7. Attach an end cap terminator (F) to the last module in the system by using
the tongue-and-groove slots as before.
8. Lock the end cap bus terminator (G).
IMPORTANT
A 1769-ECR right- or 1769-ECL left-end cap must be used to
terminate the end of the serial communication bus.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201349
Chapter 3Installation and Wiring
Mount the Module
Use these procedures to mount your module.
ATTENTION: During panel or DIN-rail mounting of all devices, be sure
that all debris (metal chips, wire strands) is kept from falling into the
module. Debris that falls into the module could cause damage at
powerup.
Minimum Spacing
Maintain spacing from enclosure walls, wireways, adjacent equipment, and so
forth. Allow 50 mm (2 in.) of space on all sides for adequate ventilation,
as shown.
To p
SideSide
Host Controller
Compact I/O
Compact I/O
Compact I/O
Compact I/O
Compact I/O
End Cap
Bottom
Panel Mounting
Mount the module to a panel by using two screws per module. Use M4 or #8
panhead screws. Mounting screws are required on every module.
ATTENTION: This product is intended to be mounted to a well-grounded
mounting surface such as a metal panel. Additional grounding
connections from the power supply's mounting tabs or DIN rail (if used)
are not required unless the mounting surface cannot be grounded. Refer
to Industrial Automation Wiring and Grounding Guidelines, Rockwell
Automation publication 1770-4.1, for additional information.
50Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Installation and WiringChapter 3
Figure 11 - Compact I/O Module with CompactLogix Controller and Power Supply
Mounting Hole
Dimension
50 mm
(1.97 in.)
40 mm
(1.58 in.)
(2.32 in.)
118 mm (4.65 in.)
(2.32 in.)
122.6 mm (4.83 in.)
59 mm59 mm
Important: Hole spacing tolerance: ±0.04 mm (0.016 in.).
Figure 12 - Compact I/O Module with MicroLogix 1500 Base Unit and Processor
Mounting Hole
Dimension
35 mm35 mm
(1.38 in.)
70 mm
(2.76 in.)28.5 mm
(1.38 in.)(1.38 in.) (1.38 in.) (1.38 in.)
DIN Rail Center Line
14.7 mm
(0.58 in.)
168 mm
(6.62 in.)
147 mm
(5.79 in.)
(1.38 in.)
35 mm35 mm35 mm35 mm
35 mm
(1.38 in.)
35 mm
(1.38 in.)
(1.12 in.)
147.4 mm (5.81 in.)
28.5 mm
(1.12 in.)
132 mm (5.19 in.)
45198
118 mm (4.65 in)
(2.32 in.)(2.32 in.)
122.6 mm (4.83 in.)
59 mm59 mm
DIN Rail Center Line
Important: Hole spacing tolerance: ±0.04 mm (0.016 in.).
Rockwell Automation Publication 1769-UM006E-EN-P - July 201351
13.5 mm
(0.53 in.)
14.7 mm
(0.58 in.)
147.4 mm (5.81 in.)
132 mm (5.19 in.)
45199
Chapter 3Installation and Wiring
Panel Mounting Procedure By Using Modules as a Template
This procedure lets you use the assembled modules as a template for drilling holes
in the panel. Due to module mounting hole tolerance, it is important to follow
these procedures:
1. On a clean work surface, assemble no more than three modules.
2. Using the assembled modules as a template, carefully mark the center of all
module-mounting holes on the panel.
3. Return the assembled modules to the clean work surface, including any
previously mounted modules.
4. Drill and tap the mounting holes for the recommended M4 or #8 screw.
5. Place the modules back on the panel, and check for proper hole alignment.
6. Attach the modules to the panel using the mounting screws.
TIP
7. Repeat steps
If mounting more modules, mount only the last one of this group
and put the others aside. This reduces remounting time during
drilling and tapping of the next group.
1 through 6 for any remaining modules.
DIN Rail Mounting
The module can be mounted on the following DIN rails:
• EN 50 022 - 35 x 7.5 mm (1.38 x 0.3 in.)
• EN 50 - 35 x 15 mm (1.38 x 0.59 in.)
1. Before mounting the module on a DIN rail, close the DIN rail latches.
2. Press the DIN rail mounting area of the module against the DIN rail.
The latches will momentarily open and lock into place.
Figure 13 - DIN Rail Mounting Dimensions
DimensionHeight
B
A
A118 mm (4.65 in.)
B59 mm (2.325 in.)
C59 mm (2.325 in.)
C
52Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Installation and WiringChapter 3
Replace the Module within
a System
The module can be replaced while the system is mounted to a panel or DIN rail.
1. Remove power, referring to the Warning on
2. Remove terminal block or disconnect input and/or output wiring from the
module.
3. Remove the upper and lower mounting screws from the module (or open
the DIN latches using a screwdriver).
4. On the module to be replaced and the right-side adjacent module (or end
cap if the module is the last module in the bank), move the bus levers to the
right (unlock) to disconnect the module from the adjacent modules.
5. Gently slide the disconnected module forward.
If you feel excessive resistance, make sure that you disconnected the
module from the bus and that you removed both mounting screws (or
opened the DIN latches).
TIP
6. Before installing the replacement module, be sure that the bus lever on the
right-side adjacent module is in the unlocked (fully-right) position.
It may be necessary to rock the module slightly from front
to back to remove it, or, in a panel-mounted system, to
loosen the screws of adjacent modules.
page 47.
7. Slide the replacement module into the open slot.
8. Connect the modules together by locking (fully-left) the bus levers on the
replacement module and the right-side adjacent module or end cap.
9. Replace the mounting screws (or snap the module onto the DIN rail).
10. Replace the terminal block or connect the input and/or output wiring to
the module.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201353
Chapter 3Installation and Wiring
Field Wiring Connections
Consider these system wiring guidelines when wiring your system.
General Guidelines
• Make sure the system is properly grounded.
• Input and output channels are isolated from the 1769 Compact bus. Input
channels are isolated from one another; output channels are not.
• Shielded cable is required for high-speed input signals A, B, and Z. Use
individually shielded, twisted-pair cable for lengths up to 300 m (1000 ft).
• Group this module and other low voltage DC modules away from AC I/O
or high voltage DC modules.
• Route field wiring away from any other wiring and as far as possible from
sources of electrical noise, such as motors, transformers, contactors, and
AC devices.
• Routing field wiring in a grounded conduit can reduce electrical noise.
• If field wiring must cross AC or power cables, make sure that they cross at
right angles.
Terminal Block Guidelines
• For optimum accuracy, limit overall cable impedance by keeping cable as
short as possible. Locate the module as close to input devices as the
application permits.
• Tighten terminal screws with care. Excessive tightening can strip a screw.
Grounding Guidelines
• This product is intended to be mounted to a well-grounded mounting
surface, such as a metal panel. Additional grounding connections from the
module’s mounting tabs or DIN rail (if used) are required only when the
mounting surface is non-conductive and cannot be grounded.
• Keep shield connection to ground as short as possible.
• Ground the shield drain wire at the 1769-HSC module, input end only.
Refer to the Industrial Automation Wiring and Grounding Guidelines,
publication 1770-4.1, for additional installation requirements.
54Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Installation and WiringChapter 3
Considerations for Reducing Noise
In high-noise environments, the 1769-HSC module inputs can accept ‘false’
pulses, particularly when using low frequency input signals with slowly sloping
pulse edges. To minimize the effects of high frequency noise on low frequency
signals, perform the following:
• Identify and remove noise sources.
• Route input cabling away from noise sources.
• Use your programming software to select low-pass filters on input signals.
Filter values depend on the application and can be determined empirically.
• Use devices which output differential signals, such as differential encoders,
to minimize the possibility that a noise source will cause a false input.
Remove and Replace the Terminal Block
When wiring the module, you do not have to
remove the terminal block. If you remove the
terminal block, use the write-on label on the side of
the terminal block to identify the module location
and type.
SLOT # _____
MODULE TYPE ______
To remove the terminal block, loosen the upper- and lower-retaining screws. The
terminal block will back away from the module as you remove the screws. When
replacing the terminal block, torque the retaining screws to 0.46 N•m (4.1 lb•in).
Wire the Finger-safe Terminal Block
When wiring the terminal block, keep the finger-safe cover in place.
Upper Retaining Screw
Wiring the
Finger-safe
Terminal Block
Lower Retaining Screw
Rockwell Automation Publication 1769-UM006E-EN-P - July 201355
Chapter 3Installation and Wiring
Follow these steps.
1. Loosen the terminal screws to be wired.
2. Route the wire under the terminal pressure plate.
You can use the bare wire or a spade lug. The terminals accept a 6.35 mm
(0.25 in.) spade lug.
TIP
The terminal screws are non-captive. Therefore, it is possible to
use a ring lug (6.35 mm (0.25 in.) maximum outside diameter with
3.53 mm (0.139 in.) minimum inside diameter) with the module.
3. Tighten the terminal screw making sure the pressure plate secures the wire.
Recommended torque when tightening terminal screws is 0.68 N•m
(6 lb•in).
TIP
If you need to remove the finger-safe cover, insert a screwdriver
into one of the square, wiring holes and gently pry the cover off. If
you wire the terminal block with the finger-safe cover removed,
you will not be able to put it back on the terminal block because
the wires will be in the way.
Wire Size and Terminal Screw Torque
Each terminal accepts up to two wires with these restrictions.
Wire TypeWire SizeTerminal Screw
2
SolidCu-90 °C (194 °F) 0.32... 2.1 mm
Stranded Cu-90 °C (194 °F) 0.32... 1.3 mm
(22...14 AWG) 0.68 N•m
2
(22...16 AWG) 0.68 N•m
Torque
(6 lb•in)
(6 lb•in)
RetainingScrew
Torque
0.46 N•m
(4.1lb•in)
0.46 N•m
(4.1 lb•in)
56Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Installation and WiringChapter 3
Wire the Modules
After the module is properly installed, wire the modules by using this procedure.
To provide proper operation and high immunity to electrical noise, always use
shielded wire.
ATTENTION: To prevent shock hazard, care should be taken when wiring
the module to signal sources. Before wiring any module, disconnect
power from the system power supply and from any other source to
the module.
Do not wire more than two conductors on any single terminal.
Cut Foil Shield
and Drain Wire
Signal Wire
Signal Wire
Signal Wire
Drain Wire
Foil Shield
Cable
Signal Wire
Follow these steps to wire your module.
1. At each end of the cable, strip some casing to expose the individual wires.
2. Trim the signal wires to 5 cm (2 in.) lengths, stripping about 5 mm (0.2 in.)
of insulation away to expose the end of the wire.
ATTENTION: Be careful when stripping wires. Wire fragments
that fall into a module could cause damage at powerup.
3. At the 1769-HSC module input end of the cable, twist the drain wire and
foil shield together, bending them away from the cable, and apply shrink
wrap, grounding the shield at this end.
4. At the other end of the cable, cut the drain wire and foil shield back to the
cable and apply shrink wrap.
5. Connect the signal wires to the terminal block, connecting the other end
of the cable to the input device.
6. Repeat steps
Rockwell Automation Publication 1769-UM006E-EN-P - July 201357
1 through 5 for each channel on the module.
Chapter 3Installation and Wiring
Terminal Door Label
A removable, write-on label is provided with the module. Remove the label from
the door, mark the identification of each terminal with permanent ink, and slide
the label back into the door. Your markings (ID tag) will be visible when the
module door is closed.
Terminal Block Wiring
The input and output terminals are shown below. Both inputs and outputs are
isolated from the 1769 Compact bus.
DANGER
Do Not Remove RTB Under Power
OUT 0
OUT 2
OUT DC COM
A0-
B0-
Z0-
A1-
B1-
Z1-
OUT DC 5V/24V DC
OUT 1
OUT 3
A0+
B0+
Z0+
A1+
B1+
Z1+
Unless Area is Non-Hazardous.
OUT 0
OUT 2
OUT DC
COM
A0-
B0-
Z0-
A1-
B1-
Z1-
OUT DC
5/24V DC
OUT 1
OUT 3
A0+
B0+
Z0+
A1+
B1+
Z1+
Ensure Adjacent
Bus Lever is Unlatched/Latched
Before/After
Removing/Inserting Module
1769-HSC
45276
58Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Installation and WiringChapter 3
Wire Diagrams
The following pages show wiring examples for a differential encoder,
single-ended encoder, and discrete device.
Inputs
The module utilizes differential inputs. Therefore, two input terminals are
required for each input point. For example, the A0+ and A0- terminals are
required for input point A0. Each input point is isolated from other input points,
the 1769 Compact bus, and the entire output terminal group.
The inputs are compatible with standard differential line driver output devices as
well as single-ended devices such as limit switches, photo-eyes, and proximity
sensors. Examples of differential and single-ended circuits are shown in
Figure 15.
and
Figure 14 - Differential Encoder Wiring
(1)
VS
Cable
GND
+VDC
COM
Power
Supply
Figure 14
A
A
B
Allen-Bradley
845H Series
Differential
Encoder
B
Z
Z
Shield
Shield/Housing
Connect only if housing is electronically
isolated from the motor and ground.
(1)
Refer to your encoder manual for proper cable type. The type of cable used should be twisted pair, individually
shielded cable with a maximum length of 300 m (1000 ft).
A1(+)
A1(–)
B1(+)
B1(–)
Z1(+)
Z1(–)
Earth
Module Inputs
Rockwell Automation Publication 1769-UM006E-EN-P - July 201359
Chapter 3Installation and Wiring
Figure 15 - Single-ended Encoder Wiring
(1)
VS
GND
(2)
R
A
B
Cable
Allen-Bradley
845H Series
Z
Single-ended
Encoder
Shield
Shield/Housing
Connect only if housing is electronically
isolated from the motor and ground.
(1)
Refer to your encoder manual for proper cable type. The type of cable used should be twisted-pair, individually
shielded cable with a maximum length of 300 m (1000 ft).
(2)
External resistors are required if they are not internal to the encoder. The pull-up resistor (R) value depends on
the power supply value. The table below shows the maximum resistor values for typical supply voltages. To
calculate the maximum resistor value, use the following formula:
VDC Vmin–
--------------------------------------------=
R
Imin
where:
R = maximum pull-up resistor value
VDC = power supply voltage
Vmin = 2.6V DC
Imin = 6.8 mA
Power Supply Voltage (V DC)Pull-up Resistor Value (R), Max
5352
121382
243147
Earth
+VDC
COM
A1(+)
A1(–)
B1(+)
B1(–)
Z1(+)
Z1(–)
Power
Supply
Module Inputs
(1)
(1) Resistance values can change, depending upon your application.
The minimum resistor (R) value depends on the current sinking capability of the
encoder. Refer to your encoder’s documentation.
60Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Installation and WiringChapter 3
Figure 16 - Discrete Device Wiring
+VDC
Power
COM
Proximity Sensor
VS
OUT
COM
VS
OUT
COM
VS
OUT
COM
Solid-state
Switch
(1)
R
Photo-electric Sensor
with Open Collector
Sinking Output
(1)
External resistors are required if they are not internal to the sensor. The pull-up resistor (R) value depends on
the power supply value. The table below shows the maximum resistor values for typical supply voltages. To
calculate the maximum resistor value, use the following formula:
VDC Vmin–
--------------------------------------------=
R
Imin
where:
R = maximum pull-up resistor value
VDC = power supply voltage
Vmin = 2.6V DC
Imin = 6.8 mA
Power Supply Voltage (V DC)Pull-up Resistor Value (R), Max
5352
121382
243147
Supply
A1(+)
A1(–)
B1(+)
B1(–)
Z1(+)
Z1(–)
Module Inputs
(1)
(1) Resistance values can change, depending upon your application.
The minimum resistor (R) value depends on the current sinking capability of the
sensor. Refer to your sensor’s documentation.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201361
Chapter 3Installation and Wiring
Outputs
The four output terminals must be powered by a user-supplied external source.
User-power range is from 5…30V DC. See the Output Specifications in
Appendix A on
page 124.
There is no isolation between the outputs, but the outputs are isolated from the
inputs and the 1769 Compact bus.
Electronic Protection
The electronic protection of the 1769-HSC module has been designed to
provide protection for current overload and short-circuit conditions. The
protection is based on a thermal cut-out principle. In the event of a short-circuit
or current overload condition on an output channel, that channel will turn off
within milliseconds after the thermal cut-out temperature has been reached.
Overcurrent Autoreset Operation
The module detects overcurrent situations and reports them to the backplane in
the OutnOverCurrent bits of the input array. When the overcurrent condition is
detected, the outputs are turned off.
The module can latch outputs off to emulate the behavior of a physical fuse. Use
the OvercurrentLatchOff bit to enable or disable this feature. When the
OvercurrentLatchOff bit is set and an overcurrent situation occurs (even
momentarily) the physical output will be latched off until the ResetBlownFuse bit
is cycled from off to on (rising edge triggered). During the latched off time, the
Readback.n bit in the input array also shows that the output is off.
If the OvercurrentLatchOff bit is not set, the output will be turned off for 1
second and then be retried (if still directed to be on). Retries will repeat until the
overcurrent situation is corrected.
The four physical outputs can be latched off only. The virtual outputs are
not affected.
IMPORTANT
During the retry period, the physical output and the Readback.n bits will
be on briefly (until the overcurrent causes them to shut off again). Take
this into consideration and configure your
system accordingly.
TIP
62Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Correct short-circuit and overload conditions as soon as possible. If
short-circuit and overload conditions occur for extended periods, damage
can occur.
Installation and WiringChapter 3
Transistor Output Transient Pulses
The maximum duration of the transient pulse occurs when minimum load is
connected to the output. However, for most applications, the energy of the
transient pulse is not sufficient to energize the load.
ATTENTION: A transient pulse occurs in transistor outputs when the
external DC supply voltage is applied to the output common terminals (for
example, via the master control relay). The sudden application of voltage
creates this transient pulse. This condition is inherent in transistor
outputs and is common to solid state devices. A transient pulse can occur
regardless of the controller having power. Refer to your controller’s user
manual to reduce inadvertent operation.
Figure 17 illustrates that the duration of the transient is proportional to the load
current. Therefore, as the on-state load current increases, the transient pulse
decreases. Power-up transients do not exceed the time duration shown below, for
the amount of loading indicated, at 60 °C (140 °F).
Figure 17 - Transient Pulse Duration as a Function of Load Current
Time - Duration of Transient Pulse (ms)
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0.0
10009008007006005004003002001001
On-State Load Current (mA)
Rockwell Automation Publication 1769-UM006E-EN-P - July 201363
Chapter 3Installation and Wiring
Output Wiring
Basic wiring
(1)
of output devices
ATTENTION: Follow these guidelines:
• Miswiring of the module to an AC power source or applying reverse
polarity will damage the module.
• Be careful when stripping wires. Wire fragments that fall into a module
could cause damage at powerup. Once wiring is complete, make sure the
module is free of all metal fragments.
Figure 18 - Output Device Wiring
OUT DC
CR
OUT 0
OUT 2
OUT
DC COM
5/24V DC
OUT 1
OUT 3
A0-
B0-
Z0-
A1-
B1-
Z1-
(2)
to the module is shown in Figure 18.
+DC
CR
CR
A0+
B0+
5/24V DC
Z0+
A1+
B1+
Z1+
-DC
45200
(1) Recommended Surge Suppression - The module has built-in suppression which is sufficient for most applications, however, for
high-noise applications, use a 1N4004 diode reverse-wired across the load for transistor outputs switching 24V DC inductive
loads. For additional details, refer to the Industrial Automation Wiring and Grounding Guidelines, publication
(2) Sourcing Output - Source describes the current flow between the I/O module and the field device. Sourcing output circuits
supply (source) current to sinking field devices. Field devices connected to the negative side (DC Common) of the field power
supply are sinking field devices. Field devices connected to the positive side (+V) of the field supply are sourcing field devices.
Europe: DC sinking input and sourcing output module circuits are the commonly used options.
64Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
1770-4.1.
Chapter 4
Module Configuration, Output, and Input Data
After installing the 1769-HSC module, you must configure it for operation by
using the programming software compatible with the controller, such as
RSLogix 500 or RSLogix 5000 software.
Configure the Module
TIP
Normal counter configuration is done using programming software. In
that case, it is not necessary to know the meaning of the bit location.
However, some systems let the control program change configuration.
Information on programming the module by using specific controllers and
software is contained in the following appendices.
ControllerSoftwareSee
CompactLogix ControllerRSLogix 5000
MicroLogix 1500 ControllerRSLogix 500
Appendix B on page 131
Appendix C on page 141
The table describes the topics in this chapter.
TopicPage
Configure the Module65
Configuration Array66
Output Array88
Input Array98
The module uses three arrays: configuration array, output array, and input array.
You configure the module by establishing settings in the configuration and
output arrays. The input array shows the data that the module sends to the
controller.
IMPORTANT
Rockwell Automation Publication 1769-UM006E-EN-P - July 201365
Both the configuration array and output array settings affect the module
configuration. Changing certain configuration parameters from defaults
can necessitate changing other values to avoid configuration errors.
Chapter 4Module Configuration, Output, and Input Data
Configuration Array
The configuration array, which consists of 118 words (46 words for the packaged
controller), lets you specify how the module’s counters will function. The default
value is all zeros with the exception of the following:
• NumberofCounters (see
• CtrnMaxCount (see
• CtrnMinCount (see
• CtrnScalar (see
page 80)
• CtrnCyclicUpdateTime (see
TIP
IMPORTANT
Normal counter configuration is done using programming software. In
that case, it is not necessary to know the bit location. However, some
systems let the control program change configuration. Refer to your
controller’s documentation for details.
When changing configuration values, verify that only valid configurations
are created for the module. For example, changing NumberofCounters
from its default of 1 to 0 requires that Ctr1MinCount and Ctr1MaxCount
also be set to 0, and so forth.
See the Configuration Error Codes table on page 117 if you encounter
configuration errors.
page 75)
page 78)
page 79)
page 81)
Word 0 contains general configuration bits. Word 1 contains the filter settings.
Words 2 through 5 refer to the physical outputs. Words 6 through 45 are counter
configuration words. Words 46 through 117 are range configuration words. More
detailed descriptions of the configuration words and bits follow the configuration
array below.
IMPORTANT
Certain values (noted below) cannot be changed while a counter or range
is enabled. Attempting to do so will cause a configuration error and the
entire configuration array will be rejected until the error is eliminated.
Counter reset function = 0: reset enable (default), 1: reset disable. See page 73 for details.
15141312111009080706050403020100
(1)
Disable
Not
Filter_B1Not
used
Not usedOut
Not usedOut3PVOut2PVOut1PVOut0PVOutput Program Value
For the 1769-HSC/B module only. Bit 12 is Counter 0 reset disable; Bit 13, Counter 1 reset disable; Bit 14, Counter 2 reset disable; Bit 15, Counter 3 reset disable.
NumberOf
Counters
Filter_A1Filter_Z0Not
used
Not usedPFENot usedCtr
Filter_B0Not
used
Out
Out1
Out0
3
PSR
2
PSR
PSR
Out3PMOut2PMOut1PMOut0PMOutput Program Mode
PSR
Rst
Filter_A0Filter Selection
used
Function
OCLOGeneral Configuration
Bits
and Output Program
State Run
66Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module Configuration, Output, and Input DataChapter 4
These configuration bits apply to the 1769-HSC/B module and the CMX 5370
L2 packaged controller embedded HSC.
Configuration Array Word 01514 1312 1110 09080706 050403020100
General Configuration BitsIndividual Counter
Reset Disable
(1) For the 1769-HSC/B module only. Bit 12 is Counter 0 reset disable; Bit 13, Counter 1 reset disable; Bit 14, Counter 2 reset disable; Bit 15, Counter 3 reset disable.
Counter reset function = 0: reset enable (default), 1: reset disable. The 1769-HSC/A module does not use bits 12…15 in the configuration array. See page 73
for details.
(1)
OCLO - Overcurrent Latch Off (OverCurrentLatchOff)
When set, this bit causes the module to make any overcurrent activity latch the
corresponding output off, simulating a physical fuse. When OCLO = 0, it
automatically resets. The rising edge of RBF resets the output.
IMPORTANT
Number of countersNot usedPFENot usedCtr
Reset
Do not set this bit while a counter or range is enabled (Ctr0En, Ctr1En,
Ctr2En, Ctr3En, or RangeEn set to 1). Attempting to do so will result in a
BadModConfigUpdate error.
See page 120 for a list of prohibited settings.
OCL
O
72Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module Configuration, Output, and Input DataChapter 4
Counter Reset (CtrReset)
Bits 12…15 in the configuration array correspond to the counter reset selection
bits for counters 0…3, respectively. The Counter Reset Enable in the Add-On
profile lets you select which counter to be enabled or disabled. An enabled
checkbox indicates a zero (0) in the respective counter reset selection bits in
RSLogix 5000 software.
Counter 0 in this
example equates
to individual
counter reset
selection bit 12.
IMPORTANT
The individual counter reset functionality applies onlyto the 1769-HSC/B
module used with CompactLogix controllers and the CMX 5370 L2
packaged controller embedded HSC. You cannot use the individual
counter reset functionality with MicroLogix controllers.
If you do not want a counter to reset by default, you must uncheck the box in the
Add-On profile for the respective counter reset selection bit. A ‘1’ will display in
the configuration array to denote that this bit is disabled from resetting a count.
The individual counter reset functionality for the 1769-HSC/B module is
reverse logic, with a 0 = enabled and a 1 = disabled, for RSLogix 5000 software.
Figure 19 - Configuration for Individual Counter Reset Enable
As shown in Figure 19, the Counter Reset Enable box defaults with a check mark
to indicate the respective counter is enabled in the Add-On Profile. Therefore,
the individual counter reset functionality is enabled for the selected counter of
the 1769-HSC/B module. The corresponding controller tag in RSLogix 5000
software displays a zero (0) for enabled.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201373
Chapter 4Module Configuration, Output, and Input Data
Figure 20 - Configuration for Individual Counter Reset Disable
Counter 0 in this
example equates
to individual
counter reset
selection bit 12.
As shown in Figure 20, the Counter Reset Enable box has been unchecked to
indicate the individual counter reset functionality is disabled for the selected
counter of the 1769-HSC/B module. The corresponding controller tag in
RSLogix 5000 software shows a one (1) for disabled.
The CtrReset bit, when set, causes the following to occur for both the
1769-HSC/A and 1769-HSC/B modules when the system transitions to Run or
the Inhibit Module bit transitions to 0:
• System checks counter reset selection bits 12…15 to determine which
counter needs to be reset.
(1)
• Only those counters selected for reset are reset to zero.
• The output array is reset to default values until the ModConfig bit is
set (1). The default value for the output array is all zeros.
• The input array counter status flags (Overflow, Underflow, RisingEdgeZ,
RateValid, PresetWarning) are reset.
• The input array counter values (Current Count
(2)
, StoredCount,
CurrentRate and PulseInterval) are also reset to zero.
• Counts are lost and outputs are turned off.
IMPORTANT
For most predictable results, clear the output image of the
controller before performing a counter reset (CtrReset) to the
1769-HSC module.
This is because CtrReset does not change the controller’s output
image. CtrReset sets the 1769-HSC module’s output array to all
zeroes. If any bit is set to 1 in the controller’s output image when
sent to the module, it will be seen as a state transition and be
acted upon.
(1) This applies only to the 1769-HSC/B module and the CMX 5370 L2 packaged controller embedded HSC.
(2) If zero is outside the MinCount and MaxCount limits set in the configuration array, then the Preset value is
loaded into CurrentCount instead of zero. This also causes the PresetWarning bit to be set, which, in turn, sets
the GenError bit.
74Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module Configuration, Output, and Input DataChapter 4
PFE - Program to Fault Enable (ProgToFaultEn)
This bit indicates what should happen when the bus controller indicates a change
from one condition (Program mode) to another (Fault mode). If this bit is set (1),
the safe state operation of all four real outputs changes to that identified by the
Fault State and Fault Value words. If this bit is reset (0), the module continues
with the operation identified by the Program State and Program Value words.
Number of Counters (NumberOfCounters)
This 2-bit value indicates whether the module uses 1 counter, 2 counters,
3 counters, or 4 counters. The default value is 1 (2 counters).
Bit 01Bit 00Counters
001
012
103
114
IMPORTANT
Do not set this value while a counter or range is enabled (Ctr0En, Ctr1En,
Ctr2En, Ctr3En, or RangeEn set to 1). Attempting to do so will result in a
BadModConfigUpdate error.
See page 120 for a list of prohibited settings.
Filter Selection
Configuration Array Word 115141312111009080706050403020100
Not
Filter SelectionFilter_Z1
Filters and
Corresponding Bits
Nominal
Frequency
Settings
FilterA0Bit 1 - FilterA0_1Bit 0 - FilterA0_0
FilterB0Bit 4 - FilterB0_1Bit 3 - FilterB0_0
FilterZ0Bit 7 - FilterZ0_1Bit 6 - FilterZ0_0
FilterA1Bit 9 - FilterA1_1Bit 8 - FilterA1_0
FilterB1Bit 12 - FilterB1_1Bit 11 - FilterB1_0
FilterZ1Bit 15 - FilterZ1_1Bit 14 - FilterZ1_0
None00
0.01 ms minimum pulse width
(0.0185 ms for the packaged controller)
0.5 ms minimum pulse width
(0.715 ms for the packaged controller)
5 ms minimum pulse width
(7.1 ms for the packaged controller)
FilterB1Not
used
This value indicates the nominal filter frequency as shown in the table.
FilterA1FilterZ0Not
used
01
10
11
used
FilterB0Not
used
FilterA0
Rockwell Automation Publication 1769-UM006E-EN-P - July 201375
Chapter 4Module Configuration, Output, and Input Data
IMPORTANT
Do not set these bits while certain counters or ranges are enabled.
Attempting to do so will result in a BadModConfigUpdate error. See
page 120 for a list of prohibited settings.
Program Mode and Program State Run
Configuration Array Word 215141312111009080706050403020100
Output Program Mode and
Output Program State Run
Not usedOut3
Program Mode (Out0ProgramMode through Out3ProgramMode)
The program mode bits configure the output for Hold Last State (HLS) or
User-defined Safe State (UDSS) during Program State.
• 1 = Hold Last State
• 0 = User-defined Safe State
IMPORTANT
Program Mode and Program State Run apply only to certain controllers.
Refer to your controller’s documentation for more information.
The packaged controllers’ embedded HSC does not support this feature.
PSR
Out2
PSR
Out1
PSR
Out0
Out3PMOut2PMOut1PMOut0
PSR
PM
Program State Run (Out0ProgramStateRun through Out3ProgramStateRun)
Program State Run lets you specify, on a bit basis, that the output should
continue to be controlled by the module as if it were in the Run state. That is,
events on the module or changes in the output image will affect the physical
outputs without regard to the Program_HLS or UDSS state indicated. When
this bit is set, the corresponding Program Mode and Program Value bits are
ignored.
ATTENTION: Selecting this option lets outputs change state while ladder
logic is not running. You must take care to make sure that this does not
pose a risk of injury or equipment damage when selecting this option.
IMPORTANT
The prescan initiated by some controllers could have an effect on the
outputs. To overcome any changes in physical output states caused by
this, retentive output instructions (for example, latch or unlatch) should
be used when bit manipulations are done on the Output image of this
module in ladder logic.
This applies to a wide range of bits when Program State Run is selected,
because presetting a counter, enabling a range, changing a mask, and
changing configuration array settings can cause ranges and outputs to
change state.
76Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module Configuration, Output, and Input DataChapter 4
Output Program Value (Out0ProgramValue through
Out3ProgramValue)
Configuration Array Word 315141312111009080706050403020100
Output Program Value
Not usedOut3PVOut2PVOut1PVOut0
PV
These bits are the values that will be applied to each of the real outputs when
User-defined Safe State (UDSS) is set as described and the module is in Program
state.
Output Fault Mode and Output Fault State Run
Configuration Array Word 415141312111009080706050403020100
Output Fault Mode and Output
Fault State Run
Not usedOut3
FSR
Out2
FSR
Out1
FSR
Out0
Out3FMOut2FMOut1FMOut0
FSR
FM
Output Fault Mode (Out0FaultMode through Out3FaultMode)
These bits configure the output for Hold Last State or User-defined Safe State
during a Fault state.
• 1 = Hold Last State
• 0 = User-defined Safe State
Output Fault State Run (Out0FaultStateRun through Out3FaultStateRun)
Similar to Program State Run, Fault State Run lets you specify, on a bit basis, that
the output should continue to be controlled by the module as if it were Run state.
That is, events on the module or changes in the output image will affect the
physical outputs without regard to the Fault_HLS or UDSS state indicated.
When this bit is set, the corresponding Fault mode and fault value bits are
ignored.
ATTENTION: Selecting this option lets outputs change state while ladder
logic is not running. You must take care to make sure that this does not
pose a risk of injury or equipment damage when selecting this option.
IMPORTANT
The prescan initiated by some controllers could have an effect on the
outputs. To overcome any changes in physical output states caused by
this, retentive output instructions (for example, latch or unlatch) should
be used when bit manipulations are done on the output image of this
module in ladder logic.
This applies to a wide range of bits when Fault State Run is selected,
because presetting a counter, enabling a range, changing a mask, and
changing Configuration Array settings can cause ranges and outputs to
change state.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201377
Chapter 4Module Configuration, Output, and Input Data
Output Fault Value (Out0FaultValue through Out3FaultValue)
Configuration Array Word 515141312111009080706050403020100
5Output Fault Value
Not usedOut3FVOut2FVOut1FVOut0
These bits are the values that will be applied to each of the real outputs when
User-defined Safe State is set as described and the module is in Fault state.
This is the maximum count value allowed for counter (n). The count value
cannot exceed this value. Allowable values are CtrnMinCount 1…2,147,483,647
(decimal).
The default value is 2,147,483,647 decimal for counters 0 and 1. The default
value is 0 for counters 2 and 3.
IMPORTANT
Do not change this value while the counter is enabled. Attempting to do
so will result in a BadModConfigUpdate error. See page 120 for a list
of prohibited settings.
78Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module Configuration, Output, and Input DataChapter 4
This is the minimum count value allowed for counter (n). The count value
cannot fall below this value. This value must be less than CtrnMaxCount or a
configuration error occurs. Allowable values are from -2,147,483,648 to
CtrnMaxCount - 1.
The default value is -2,147,483,648 decimal for counters 0 and 1. The default
value is 0 for counters 2 and 3.
IMPORTANT
Do not change this value while the counter is enabled. Attempting to do
so will result in a BadModConfigUpdate error. See page 120 for a list of
prohibited settings.
The Counter Hysteresis information does not apply to the L23E packaged
controller because rate measurement is not supported.
The hysteresis value is the number of counts that should be disregarded in the
calculation of the cyclic rate. If the count value changes by less than the hysteresis
value, the rate is reported as zero, regardless of the actual rate at which the pulses
are counted.
IMPORTANT
Do not change this value while the counter is enabled. Attempting to do
so will result in a BadModConfigUpdate error. See page 120 for a list
of prohibited settings.
The Counter Scalar information does not apply to the L23E packaged
controller because rate measurement is not supported.
This value is used to scale the Rate value. The Rate value is divided by the Scalar
value. The default value is 1 for counters 0 and 1. The default value is 0 for
counters 2 and 3.
CtrnScalar can be used to determine RPM. To configure the Ctr[n].CurrentRate
value to show an RPM value, set CtrnScalar to (counts per revolution)/60.
page 34 for more information.
See
IMPORTANT
For any counter being used, do not set Scalar to a value less than one or
a configuration error will occur.
80Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module Configuration, Output, and Input DataChapter 4
IMPORTANT
Do not change this value while the counter is enabled. Attempting to do
so will result in a BadModConfigUpdate error. See
of prohibited settings.
page 120 for a list
Cyclic Rate Update Time (CtrnCyclicRateUpdateTime)
This value is used to set the cyclic rate update time for the CurrentRate
calculation. The value indicates the time in milliseconds from 1…32767. An
invalid number causes a configuration error. The default value is 10 for counters 0
and 1. The default value is 0 for counters 2 and 3.
IMPORTANT
The Counter Scalar information does not apply to the L23E packaged
controller because rate measurement is not supported.
Do not change this value while the counter is enabled. Attempting to do
so will result in a BadModConfigUpdate error. See page 120 for a list of
prohibited settings.
Cyclic Rate Calculation Method (current rate) on page 32 for more
See
information on cyclic rate.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201381
Chapter 4Module Configuration, Output, and Input Data
The Ctr1Config.OperationalMode bits are reserved if the Number of
Counters equals 1. Attempting to set reserved bits will result in a
configuration error.
IMPORTANT
Do not change this value while the counter is enabled. Attempting to do
so will result in a BadModConfigUpdate error. See page 120 for a list of
prohibited settings.
82Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module Configuration, Output, and Input DataChapter 4
Storage Mode (CtrnConfig.StorageMode_0 through
nConfig.StorageMode_2)
Ctr
These three bits apply to Counters 0 and 1 only. They define how the module
interprets the Z input, as shown below. Each bit works independently. If bit 0 and
bit 2 are set simultaneously, a Z event causes the Current Count Value to be
stored and then preset.
Set bitFor function
CtrnConfig.StorageMode_0Stores the Current Count Value on the rising edge of Z to
CtrnConfig.StorageMode_1Holds the counter at its Current Count Value whileZ=1.
CtrnConfig.StorageMode_2Presets the Current Count Value on the rising edge of Z.
Ctr[n].StoredCount in the input file.
IMPORTANT
TIP
IMPORTANT
Z = internal Z. Internal Z is the version of the Z input pin as modified by
the output array control bits Z Invert and Z Inhibit.
The Ctr1Config.Storage Mode bits are reserved if NumberofCounters_1
and NumberofCounters_0 are set to 00 (one counter). Attempting to set
reserved bits will result in a configuration error.
Do not change this value while the counter is enabled. Attempting to do
so will result in a BadModConfigUpdate error. See page 120 for a list
of prohibited settings.
Linear (Ctr0Config.Linear through Ctr3Config.Linear)
This bit indicates how the counter operates upon reaching a CtrnMinCount or
CtrnMaxCount.
• 0 = Ring Counter
• 1 = Linear Counter
See
page 28 for a description of ring and linear counter operation.
IMPORTANT
Do not change this value while the counter is enabled. Attempting to do
so will result in a BadModConfigUpdate error. See page 120 for a list of
prohibited settings.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201383
Chapter 4Module Configuration, Output, and Input Data
Range High Limit (Range0To11[n].HighLimit) and Range Low Limit
(Range0To11[n].LowLimit)
IMPORTANT
The Range High Limit and Range Low Limit words do not apply to the
L23E packaged controller.
46 and 47Range 0 High LimitRange0To11[0].HighLimit
48 and 49Range 0 Low LimitRange0To11[0].LowLimit
52 and 53Range 1 High LimitRange0To11[1].HighLimit
54 and 55Range 1 Low LimitRange0To11[1].LowLimit
58and 59Range 2 High LimitRange0To11[2].HighLimit
60 and 61Range 2 Low LimitRange0To11[2].LowLimit
64 and 65Range 3 High LimitRange0To11[3].HighLimit
66 and 67Range 3 Low LimitRange0To11[3].LowLimit
70 and 71Range 4 High LimitRange0To11[4].HighLimit
72 and 73Range 4 Low LimitRange0To11[4].LowLimit
76 and 77Range 5 High LimitRange0To11[5].HighLimit
78 and 79Range 5 Low LimitRange0To11[5].LowLimit
82 and 83Range 6 High LimitRange0To11[6].HighLimit
84 and 85Range 6 Low LimitRange0To11[6].LowLimit
88 and 89Range 7 High LimitRange0To11[7].HighLimit
90 and 91Range 7 Low LimitRange0To11[7].LowLimit
94 and 95Range 8 High LimitRange0To11[8].HighLimit
96 and 97Range 8 Low LimitRange0To11[8].LowLimit
100 and 101Range 9 High LimitRange0To11[9].HighLimit
102 and 103Range 9 Low LimitRange0To11[9].LowLimit
106 and 107Range 10 High LimitRange0To11[10].HighLimit
108 and 109Range 10 Low LimitRange0To11[10].LowLimit
112 and 113Range 11 High LimitRange0To11[11].HighLimit
114 and 115Range 11 Low LimitRange0To11[11].LowLimit
84Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module Configuration, Output, and Input DataChapter 4
These values, which represent a count value or rate value, depending upon the
programed Type, are used for range comparison. When the rate value is equal to
Range0To11[n].HighLimit or Range0To11[n].LowLimit, Rangen changes state,
becoming either active or inactive, depending upon the setting of the
Range0To11[n].Invert bit.
Object Value (Current Count or Current Rate)
Invert Bit = 0
Invert Bit = 1
TIP
INACTIVEACTIVEINACTIVE
ACTIVEACTIVEINACTIVE
Low LimitHigh Limit or
Direct Write Value
Range0To11[n].HighLimit must be greater than Range0To11[n].LowLimit
or a configuration error results.
Range Output Control (Range0To11[n].OutputControl)
The Range Output Control words do not apply to the L23E packaged
controller.
0
0
0
0
0
0
0
0
0
0
0
0
Rockwell Automation Publication 1769-UM006E-EN-P - July 201385
Chapter 4Module Configuration, Output, and Input Data
These 16-bit words indicate which outputs should be enabled when a range is
active. When range n is enabled, this word is combined with the other range
output masks as described in
OutputOffMask.15) on page 91 and on page 89.
Range Configuration Flags
Output Off Mask (OutputOffMask.0 through
IMPORTANT
The Range Configuration Flag information does not apply to the L23E
packaged controller.
This 2-bit value indicates which counter is used in the range comparison for
range n, as shown in the table.
Bit 01Bit 00Counter
000
011
102
113
86Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module Configuration, Output, and Input DataChapter 4
IMPORTANT
If this value is greater than NumberOfCounters, a configuration error
occurs.
Type (Range0To11[n].Type)
This bit indicates which type of value to use for the range comparison in range n.
This value and Range0To11[n].ToThisCounter determine the current value that
is used in range comparison as the rate or count value.
Range0To11[n].TypeRange Type
0Count Value
1Rate Value
Inv (Range0To11[n].Invert)
This bit indicates whether the range n should be active inside or outside the
Range0To11[n].Low Limit and Range0To11[n].HighLimit window.
• 0 = The range n is active when the rate or count value is at or between
Range0To11[n].Low Limit and Range0To11[n].HighLimit. When the
range is active, the RangeActive.n bit is set. When the range is active and
enabled, the outputs indicated in the Range Output Control word
are activated.
• 1 = The range n is active when the rate or count value is lower than or
equal to Range0To11[n].LowLimit or higher than or equal to
Range0To11[n].HighLimit. When the range is active, the RangeActive.n
bit is set. When the range is active and enabled, the outputs indicated in
the Range Output Control word are applied.
TIP
Rockwell Automation Publication 1769-UM006E-EN-P - July 201387
Ranges can be active in overflow, underflow, and rollover
situations.
Chapter 4Module Configuration, Output, and Input Data
Output Array
The output array, which consists of 34 words, lets you access the module’s realtime output data to control the module. The default value is all zeros.
0Out15Out14Out13Out12Out11Out10Out9Out8Out7Out6Out5Out4Out3Out2Out1Out0Output On Mask
1Out15Out14Out13Out12Out11Out10Out9Out8Out7Out6Out5Out4Out3Out2Out1Out0Output Off Mask
The output array contains dynamic configuration data. The settings in the
output array must be compatible with the settings in the configuration
array.
For example, do not attempt to set Counter Control Bits for a given
counter in the output array unless NumberOfCounters in the
configuration array indicates that the counter is declared to be used.
All Not used bits (shaded in the Output Array - 1769-HSC Module and
CMX 5370 L2 Packaged Controller Embedded HSC table, below) must be
set to 0 or the InvalidOutput bit in the input array will be set. When the
InvalidOutput bit is set, the entire output array is rejected until an output
array that does not have this error is sent.
Not usedRInvNot usedLDWNot usedRCntrNumRange Configuration
Flags 0
Direct Write Value 1
Not usedRInvNot usedLDWNot usedRCntrNumRange Configuration
Flags 1
Direct Write Value 2
Not usedRInvNot usedLDWNot usedRCntrNumRange Configuration
Flags 2
Direct Write Value 3
33
90Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Not usedRInvNot usedLDWNot usedRCntrNumRange Configuration
Flags 3
Module Configuration, Output, and Input DataChapter 4
Output on Mask (OutputOnMask.0 through OutputOnMask.15)
Output Array Word 015141312111009080706050403020100
Output On MaskOut15Out14Out13Out12Out11Out10Out9Out8Out7Out6Out5Out4Out3Out2Out1Out
This word lets you turn on any output, real or virtual, when the corresponding bit
is set. This mask is logically ORed with the range masks but logically ANDed
with the Output Off Mask Word described on
page 91.
Using the Output On Mask, all of the module’s outputs can be turned on directly
by the user control program, like discrete outputs. A bit which is set in the mask
turns on the corresponding real or virtual output.
Output Control on page 36 and Output Control Example on page 43 for
See
more information about output determination.
0
TIP
The corresponding Output Off Mask bit must be set to enable this bit.
Output Off Mask (OutputOffMask.0 through OutputOffMask.15)
Output Array Word 115141312111009080706050403020100
Output Off MaskOut15Out14Out13Out12Out11Out10Out9Out8Out7Out6Out5Out4Out3Out2Out1Out
0
This word turns OFF any output, real or virtual, when the corresponding bit is
reset. This mask has veto power over all the Range masks and the Output On
Mask described above. It is logically AND’ed with the results of those masks.
Output Control on page 36 and Output Control Example on page 43 for
See
more information about output determination.
TIP
This mask can be overridden when a safe state is indicated.
Range Enable (RangeEn.0 through RangeEn.15)
Output Array Word 215141312111009080706050403020100
Range EnableR15R14R13R12R11R10R9R8R7R6R5R4R3R2R1R0
Output Array Word 215141312111009080706050403020100
Range EnableR3R2R1R0
When the bit corresponding to the range number is set,
Range[n].OutputControl is applied whenever the range is active.
Rockwell Automation Publication 1769-UM006E-EN-P - July 201391
Chapter 4Module Configuration, Output, and Input Data
RBF - Reset Blown Fuse (ResetBlownFuse)
Output Array Word 415141312111009080706050403020100
Reset Blown Fuse
Not usedRBFNot used
When the OvercurrentLatchOff bit is set and an overcurrent condition has
occurred, the real output remains off until this bit is cycled from 0 to 1(rising
edge).
Control Bits
Output Array Words 5 to 815141312111009080706050403020100
Counter 0 Control Bits (Word 5)
Counter 1 Control Bits (Word 6)
Counter 2 Control Bits (Word 7)
Counter 3 Control Bits (Word 8)
Not usedRPWRREZ Z InhZ InvD Inh D InvRUROSPEn
Not usedRPWRREZ Z InhZ InvD Inh D InvRUROSPEn
Not usedRPWNot usedD InvRUROSPEn
Not usedRPWNot usedD InvRUROSPEn
The control bits for counter (n) are described below.
TIP
IMPORTANT
The order of precedence for the Preset and Direct Write actions is as
follows:
1. Preset
2. Direct Write
Setting any of the control bits under certain conditions of the
NumberOfCounters value will result in the input error flag,
Ctr[n].InvalidCounter. For more information, see IC - Invalid Counter
(Ctr[1].InvalidCounter to Ctr[3].Invalid Counter) table on page 107.
En - Enable Counter (CtrnEn)
This bit, when set (1), enables the inputs to be counted. When reset (0), this bit
inhibits any activity of the A or B inputs from affecting the count, pulse interval,
and rate values.
SP - Soft Preset (CtrnSoftPreset)
A 0 to 1 transition of this bit causes counter (n) to be preset, changing the count
to the value in CtrnPreset.
A 0 to 1 transition of this bit causes the corresponding Ctr[n]Underflow bit to be
reset.
D Inv - Direction Invert (CtrnDirectionInvert)
This bit, when set, inverts the direction of the counter (n) as follows:
• If the CtrnDirectionInhibit bit is set when this bit is 0, the resulting
direction is up, increasing counts.
• If the CtrnDirectionInhibit bit is set when this bit is 1, the resulting
direction is down, decreasing counts.
D Inh - Direction Inhibit (CtrnDirectionInhibit)
This bit, when set, inhibits the direction of the input signal from being used by
the module.
Z Inv - Z Invert (CtrnZInvert)
When set, this bit inverts the Zn value. The Zn value is also affected by the
CtrnZInhibit bit. If the CtrnZInhibit is set, the module uses CtrnZInvert for all
internal Z activities, preset, hold and store. Input state Zn is not affected by this
bit.
Z Inh - Z Inhibit (CtrnZInhibit)
When set, this bit inhibits the Zn state from being used by the module. However,
even if the counter is inhibited, it still will count the pulses at input. For example,
if the counter is inhibited with count of 10 and there are 10 more pulses after
which it was un-inhibited, then the current count instead of starting with 11 will
be 21 for the next pulse.
RREZ - Reset Rising Edge Z (CtrnResetRisingEdgeZ)
A 0 to 1 transition causes the Ctr[n].RisingEdgeZ bit to be reset.
10 and 11Range 12 High Limit Direct Write ValueRange12To15[0].HiLimOrDirWr
16 and 17Range 13 High Limit Direct Write ValueRange12To15[1].HiLimOrDirWr
22 and 23Range 14 High Limit Direct Write ValueRange12To15[2].HiLimOrDirWr
28 and 29Range 15 High Limit Direct Write ValueRange12To15[3].HiLimOrDirWr
For the L23E packaged controllers embedded HSC, the ranges referred to
in this section are numbered 0…3 instead of 12…15. The ranges in this
section apply to only the 1769-HSC module and the CMX 5370 L2
packaged controllers embedded HSC.
This value can be used in one of two ways, depending on the setting of the Load
Direct Write (Range12To15[n].LoadDirectWrite) bit.
When Load Direct Write = 0
When Range12To15[n].LoadDirectWrite = 0, then
Range12To15[n].HiLimOrDirWr is used in the range comparison (range
represents a count value or a rate value according to the programmed range type,
Range12To15[n].Type).
When the range value is equal to Range12To15[n].HiLimOrDirWr, Rangen will
change state. The range will become active or inactive depending on the
Range12To15[n].Invert bit.
Range Value (Current Count or Current Rate)
Invert Bit = 0
Invert Bit = 1
TIP
TIP
INACTIVEACTIVEINACTIVE
ACTIVEACTIVEINACTIVE
Low LimitHigh Limit or
Direct Write Value
Range12To15[n].HiLimOrDirWr must be higher than the
Range12To15[n].LowLimit or the InvalidRangeLimitn error flag in the
input array will be set.
Range12To15[n].HiLimOrDirWr can be higher than the maximum rate or
count value. For example, when the object value is a rate,
Range12To15[n].HiLimOrDirWr can be programmed in excess of
1,000,000 with no configuration error.
94Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module Configuration, Output, and Input DataChapter 4
When Load Direct Write = 1
When Range12To15[n].LoadDirectWrite = 1, then
Range12To15[n].HiLimOrDirWr is used to change the Ctr[n].CurrentCount to
Range12To15[n].HiLimOrDirWr.
When the Range12To15[n].LoadDirectWrite bit transitions from 0 to 1, then
Range12To15[n].HiLimOrDirWr is loaded into Ctr[n].CurrentCount (where n
is the counter indicated in Range12To15[n].ToThisCounter).
TIP
When CtrnSoftPreset and a Range12To15[n].LoadDirectWrite to counter
n are indicated at the same time, only the CtrnSoftPreset will occur.
When more than one range indicates a Range12To15[n].LoadDirectWrite
to a single counter, only the one from the lowest designated range will
take effect.
12 and 13Range 12 Low LimitRange12To15[0].LowLimit
18 and 19Range 13 Low LimitRange12To15[1].LowLimit
24 and 25Range 14 Low LimitRange12To15[2].LowLimit
30 and 31Range 15 Low LimitRange12To15[3].LowLimit
This value is used in the range comparison. It is the complement of the
Range12To15[n].HiLimOrDirWr value in setting the compare window.
For the L23E packaged controllers embedded HSC, the ranges referred to
in this section are numbered 0…3 instead of 12…15. The ranges in this
section apply to only the 1769-HSC module and the CMX 5370 L2
packaged controllers embedded HSC.
When the rate or count value is equal to Range12To15[n].LowLimit, the range
will change state – opposite of the action at Range12To15[n].HiLimOrDirWr.
The range will become active or inactive depending on the
Range12To15[n].Invert bit.
TIP
TIP
TIP
Rockwell Automation Publication 1769-UM006E-EN-P - July 201395
Range12To15[n].LowLimit must be lower than the
Range12To15[n].HiLimOrDirWr or the InvalidRangeLimitn error flag in the
input array will be set.
Like Range12To15[n].HiLimOrDirWr
Range12To15[n].LowLimit can extend beyond the minimum rate or
count value.
When Range12To15[n].LoadDirectWrite is set, Range12To15[n].LowLimit
is ignored.
Chapter 4Module Configuration, Output, and Input Data
Range Output Control (Range12To15[n].OutputControl)
IMPORTANT
For the L23E packaged controllers embedded HSC, the ranges referred to
in this section are numbered 0…3 instead of 12…15. The ranges in this
section apply to only the 1769-HSC module and the CMX 5370 L2
packaged controllers embedded HSC.
This 16-bit word indicates which outputs should be on (corresponding bit set in
this word) when a range is active. When Rangen is enabled and active,
Range12To15[n].OutputControl will be logically OR’ed with other
Range12To15[n].OutputControl masks and the OutputOnMask.n and so forth.,
as described on
page 89.
When Range12To15[n].LoadDirectWrite is set,
Range12To15[n].OutputControl is ignored.
Range Configuration Flags (12To15)
IMPORTANT
Output Array Words151413121110090807060504
15Range 12 Configuration Flags
21Range 13 Configuration Flags
27Range 14 Configuration Flags
33Range 15 Configuration Flags
(1) Bit 04 is not used for the packaged controller.
Not usedInvNot usedLDWTypeNot usedToThisCtr
Not usedInvNot usedLDWTypeNot usedToThisCtr
Not usedInvNot usedLDWTypeNot usedToThisCtr
Not usedInvNot usedLDWTypeNot usedToThisCtr
For the L23E packaged controllers embedded HSC, the ranges referred to
in this section are numbered 0…3 instead of 12…15. The ranges in this
section apply to only the 1769-HSC module and the CMX 5370 L2
packaged controllers embedded HSC.
(1)
03020100
96Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Module Configuration, Output, and Input DataChapter 4
ToThisCtr - Range Counter Number (Range12To15[n].ToThisCounter)
This 2-bit value indicates which counter will be used in the range comparison or
Range12To15[n].LoadDirectWrite. The counter is indicated in the table below.
Bit 01Bit 00Counter
000
011
102
113
If Range12To15[n].ToThisCounter is set to a number larger than
NumberOfCounters in the configuration array, then the
InvalidCtrAssignToRangen error bit in the input array will be set.
Type - RangeType (Range12To15[n].Type)
IMPORTANT
For the L23E packaged controllers embedded HSC, the range type is fixed
at 0, which sets the range type to count value. The ranges in this section
apply to only the 1769-HSC module and the CMX 5370 L2 packaged
controllers embedded HSC.
This bit value indicates which type of value to use for the range comparison in
Range. That is, the Range12To15[n].ToThisCounter, from above, and this
Range12To15[n].Type value determine the rate or count value, the current value
which is compared to, for the range comparison. The type of value is indicated as
follows:
• 0 = Count Value
• 1 = Rate Value
When Range12To15[n].LoadDirectWrite is set Range12To15[n]. Type is
ignored.
LDW - Load Direct Write (Range12To15[n].LoadDirectWrite)
A 0 to 1 transition of this bit causes counter (n)’s current count value to change to
the value of Range12To15[n].HiLimOrDirWr.
IMPORTANT
The write occurs according to the internal timings of the module and the
system. For the most predictable results, the counter should be disabled
or stopped while performing this action.
IMPORTANT
Rockwell Automation Publication 1769-UM006E-EN-P - July 201397
If both CtrnSoftPreset and Range12To15[n].HiLimOrDirWr transition to 1
during the same Output Array update, only the CtrnSoftPreset occurs.
Range12To15[n].HiLimOrDirWr is ignored.
Chapter 4Module Configuration, Output, and Input Data
Inv - Range Invert (Range12To15[n].Invert)
Indicates the active portion of Rangen. When Range12To15[n].Invert = 0, the
outputs are activated when the range value is at or between the
Range12To15[n].LowLimit and Range12To15[n].HiLimOrDirWr. When
Range12To15[n].Invert = 1, the outputs are activated when the range is at or
outside the range limits.
Object Value (Current Count or Current Rate)
Input Array
Invert Bit = 0
Invert Bit = 1
The input array, which consists of 35 words, allows read-only access to the
INACTIVEACTIVEINACTIVE
ACTIVEACTIVEINACTIVE
Low LimitHigh Limit or
Direct Write Value
module’s input data via word and bit access. The input array is described below.
The functions are described in more detail in the sections following the table.
During the non-run states (program and fault), the module continues to
update the input array (continues counting). Depending on the bus
master, you may not see this.
Status bits for a particular counter reflect the configuration settings for
that counter. To receive valid status, the counter must be enabled and the
module must have stored a valid configuration for that counter.
WordBitFunction
151413 12111009080706050403020100
0
1Readback.0 through Readback.15Readback
2InvalidRangeLimit1
3RangeActive.0 through RangeActive.15Range Active
4Ctr[0].CurrentCountCounter 0 Current
5
6Ctr[0].StoredCountCounter 0 Stored
7
98Rockwell Automation Publication 1769-UM006E-EN-P - July 2013
Not usedZ1B1A1Z0B0A0Input State
2 through
InvalidRangeLimit1
5
InvalidCtrAssignToRange1
2 through
InvalidCtrAssignToRange1
5
Gen
Error
Invalid
Output
Mod
Config
Not used Out0Overcurrent through
Out3Overcurrent
Status Flags
Count
Count
Module Configuration, Output, and Input DataChapter 4