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 SGI-1.1
your local Rockwell Automation sales office or online at http://www.rockwellautomation.com/literature/
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 may lead to personal injury or death, property damage, or economic loss.
available from
) describes some
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 may be on or inside the equipment, for example, a drive or motor, to alert people that
dangerous voltage may be present.
BURN HAZARD: Labels may be on or inside the equipment, for example, a drive or motor, to alert people that
surfaces may reach dangerous temperatures.
Identifies information that is critical for successful application and understanding of the product.
Allen-Bradley, Rockwell Automation, FLEX I/O, ControlLogix, RSlogix, R SLinx, and TechConnect are trademarks of Rockwell Automation, Inc.
Trademarks not belonging to Rockwell Automation are property of their respective companies.
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 major changes and additions made to this revision.
TopicPage
Updated Frequency Resolution/Enhancement section.33
Updated Word 8 Bit/Word Definitions.39, 40
Rockwell Automation Publication 1794-UM010D-EN-E - July 2013iii
Summary of Changes
Notes:
ivRockwell Automation Publication 1794-UM010D-EN-E - July 2013
Preface
Read this preface to familiarize yourself with the rest of the manual. It provides
information concerning:
• who should use this manual
• the purpose of this manual
• related documentation
Who Should Use this
Manual
Purpose of this Manual
You must be able to program and operate an Allen-Bradley programmable
controller (PLC) to make efficient use of this module.
We assume that you know how to do this in this manual. If you do not, refer to
the appropriate programming and operations manual for the associated
programmable controller before you attempt to use this module.
This manual shows you how to use the FLEX I/O Very High Speed Counter
module with an Allen-Bradley programmable controller. It helps you install,
program, and troubleshoot your module.
For Information AboutSee Page
Overview of the Very High Speed Counter Module1
Install Your FLEX I/O VHSC Module17
Programming Your Very High Speed Counter Module 55
Communicate With Your Module29
Interpret Status Indicators for your FLEX I/O Module 47
Specifications49
Additional Resources
These documents contain additional information concerning related Rockwell
Automation products.
ResourceDescription
FLEX I/O Selection Guide, publication 1794-SG002
Very High Speed Counter Module Installation Instructions,
publication 1794-IN067
ControlLogix System User Manual, publiation 1756-UM001
FLEX I/O DC Power Supply Installation Instructions,
publication 1794-IN069
EtherNet/IP Modules in Logix5000 Control Systems User Manual,
publication ENET-UM001
Rockwell Automation Publication 1794-UM010D-EN-E - July 2013v
A description and overview of the 1794 series FLEX I/O, FLEX I/O XT and FLEX Ex
modules and compatible control platforms.
Information on installing the FLEX I/O Very High Speed Counter Module.
Detailed information on how to install, configure and troubleshoot the ControlLogix
module in your ControlLogix application.
Information on installing EtherNet/IP bridge modules.
Information on how to install the FLEX I/O DC Power Supply Catalog No. 1794-PS13,
1794-PS3.
Detailed information on how to use EtherNet/IP modules with Logix5000 controllers
and communicate with various devices on the Ethernet network.
Preface
ResourceDescription
Industrial Automation Wiring and Grounding Guidelines,
publication 1770-IN041
Product Certifications website, http://ab.comProvides declarations of conformity, certificates, and other certification details.
Application Considerations for Solid-State Controls,
This chapter gives you information on features of the modules, how the module
communicates with controllers and how the module operates.
TopicPage
Module Description
Encoder or Counter Mode2
Period/Rate Mode8
Continuous/Rate Mode10
Rate Measurement Mode11
Pulse Width Modulation12
Outputs13
What the Module Does14
The 1794-VHSC module performs high speed counting for industrial
applications. The module is an intelligent I/O module that interfaces signals with
any Allen-Bradley programmable controller that has Ethernet capability.
The 1794-VHSC module, once configured for its intended purpose, can
continue to operate without FlexBus power.
1
Customer power is required for the module, inputs and outputs.
After scanning the inputs and updating the outputs, the input data is converted to
a specified data type in a digital format to be transferred to the processor’s data
table on request. Command and configuration data is sent from the
programmable controller data tables to the module via Ethernet.
Module Features
The 1794-VHSC module counts pulses from encoders (such as Allen-Bradley
Bulletin 845), pulse generators or mechanical limit switches, or proximity
switches, and returns either a count or frequency in binary format.
Rockwell Automation Publication 1794-UM010D-EN-E - July 20131
mode, continuous/rate mode, rate measurement and pulse width
modulation (PWM)
• 4 outputs, isolated in pairs
• outputs are current-sourcing at 5 or 12…24V DC (0.5 mA max @ 5V; 1 A
max @ 12…24V)
• single-ended or differential inputs
• 2-phase encoder inputs up to a frequency of 250 KHz (X 4 mode)
• single-phase counter inputs up to a frequency of 1 MHz
• input voltage range of 5 or 24V DC
• returns input as count or frequency in binary format
• input counts as high as 16,777,215
• up to 1 MHz in period/rate or rate measurement frequency modes
• outputs can be tied to any or all counter windows
• each output has a user-selectable on-off value
• outputs can be tied back to an input for cascading
• each counter has a user-selectable preset and rollover value
• totalization is provided in period/rate, continuous/rate and rate
measurement modes
• module can continue counting without flexbus power (after configuration)
• outputs have safe state values which can be applied when there is a network
failure or the PLC is switched to PROGRAM mode
• pulse width modulation (PWM) mode is available
The 1794-VHSC module operates in the following modes:
• counter mode
• encoder X1 mode
• encoder X2 mode
• encoder X4 mode
• period/rate mode
• continuous/rate mode
• rate measurement frequency mode
• pulse width modulation (PWM)
Encoder or Counter Mode
2Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
The operation of encoder and counter modes is virtually identical. The only
difference between the two modes is in the type of feedback used.
Use the counter mode if you need the module to read incoming pulses from a
maximum of 2 encoders (single-ended or differential), counters, pulse generators,
mechanical limit switches, etc. and return them to the programmable controller
as a binary number (0…16,777,215).
Overview of the Very High Speed Counter Module
Use the encoder modes if you need the module to read incoming quadrature
pulses and return them to the programmable controller as a binary number
(0…16,777,215). In these modes, the module accepts two-phase quadrature
feedback and counts up or down depending upon the condition of the phase B
input for each counter.
The operation of the module in the encoder/counter modes is as follows:
• counter mode – channel B is direction control (up or down). Channel A
input is used for pulse. The count is bidirectional with the direction
determined by channel B.
• encoder X1 – This is a bidirectional count mode; counting up or down,
using quadrature input signals.
• encoder X2 – This is a bidirectional count mode, using quadrature input
signals, with 2 times the resolution of X1.
• encoder X4 – This is a bidirectional count mode, using quadrature input
signals, with 4 times the resolution of X1.
Each of the counters in encoder/counter mode has values associated with it.
These are:
• preset value
• rollover value
Counter Mode
The counter mode allows the module to read incoming pulses and return them to
the programmable controller processor as a binary number (0…16,777,215).
In the counter mode, direction (up counting or down counting ) is determined by
the phase B input, which can be a random signal. If Phase B is high, the counter
will count down. If phase B is low or floating, (that is, not connected), the
counter counts up.
Counter Mode Direction
Phase B InputCount direction
HighDown
Low or floating (not included)Up
The module reads incoming pulses from a maximum of 2 encoders (single-ended
or differential), counters, pulse generators, mechanical limit switches, and so
forth and returns a count to the programmable controller processor in a binary
number (0-16,777,215).
The counter mode accepts only one phase feedback. This relationship is shown in
Figure Block Diagram of Counter Mode
on page 4.
Rockwell Automation Publication 1794-UM010D-EN-E - July 20133
Overview of the Very High Speed Counter Module
A
B
0123210
Input A
Input B
Z(Store count)
Single phase pulse generator
1794-VHSC
Input Z
(Gate/Reset)
Count down
A input
B input
Count
Count up
+
-
Outputs updated continuously
45891
Block Diagram of Counter Mode
Encoder Mode
The encoder mode allows the module to read incoming pulses and return them to
the programmable controller processor as a binary number (0-16,777,215).
In this mode, the module will accept two phase quadrature feedback. The module
senses the relationship between the 2 phases and counts up or down accordingly.
Encoder X1 mode – quadrature input signals count on the leading edge or the
trailing edge of channel A for a bidirectional count. The phase relationship
between Channel A and Channel B determines direction — channel A leading,
and channel B floating, the count direction is up; Channel A lagging, and
Channel B high, the count direction is down.
Encoder X2 mode – quadrature input signals count on the leading edge and the
trailing edge of channel A for a bidirectional count. Channel B determines
direction —B low (floating), the count direction is up; B high, the count
direction is down.
Encoder X4 mode – quadrature input signals count on the leading edge and the
trailing edge of channel A and channel B for a bidirectional count. Channel B
determines direction — B low (floating), the count direction is up; B high, the
count direction is down.
4Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Overview of the Very High Speed Counter Module
A input
B input
X1
count
A
B
Input A
Input B
Reverse rotation
CW encoder rotation
Forward rotation
CCW encoder rotation
120
312
12345678910 11 1 2
1234567
8
9101112
0
12345678910 11 1 2
1234567
8
9101112
0
Z(Store count)
Quadrature encoder
1794-VHSC
Input Z
(Gate/Reset)
45892
Direction of Count
The module can count either up or down, depending upon the condition of the B
input for each counter. In encoder applications, the counter will increment on the
leading edge of input A, while input B determines the direction of the count.
You also have the option of X1, X2 and X4 multiplying of the input pulses. See
Figure Phase Relationship for Forward or Reverse Directions
relationships between inputs A and B for forward and reverse directions in
encoder applications.
Phase Relationship for Forward or Reverse Directions
on page 5 for the
The following paragraphs apply to both encoders and counters.
Rockwell Automation Publication 1794-UM010D-EN-E - July 20135
Overview of the Very High Speed Counter Module
Preset Value
Each of the 2 counters has one preset value associated with it. In the encoder or
counter modes, the preset value represents a reference point (or count) from
which the module begins counting. The module can count either up or down
from the preset value. Preset values are loaded into the count registers through the
preset count bits. Preset values can range from 0 to 16,777,215 binary.
Rollover Value
Each of the 2 counters has one rollover value associated with it. When the
rollover value is reached by the encoder/counter, it resets to 0 and begins
counting again. The rollover values range from 1 to 16,777,216 binary. The
rollover value is circular. For example: if you program 360, the count will be from
358, 359, 0, 1, and so on, in a positive direction and from 1, 0, 359, 358, and so
on, in a negative direction.
Software Reset
The counters can also be reset by the Reset Count bits found in Word 0, bits 0
and 4 of the Counter Control word. When one of these bits is set to 1, the
associated counter is reset to zero and begins counting. The module can also be
reset with the gate/reset as explained below. For more details, .
Gate/Reset Input
There is one gate/reset input for each of the 2 counters. The gate/reset input,
when active, will function in one of the 4 store count modes outlined below.
Scaling Input Count at the Gate/Reset Terminal
You can scale the incoming count at the gate/reset terminal. Scaling allows the
incoming pulses at gate/reset to be divided by a number in the range of 1, 2, 4, 8,
16, 32, 64 and 128.
Store Count
The store count feature allows the module to store the current count value of the
associated counter. The store count feature is triggered by the state of the gate/
reset terminal on the module. The stored count of each counter is placed in a
separate word in the Read Data file. The stored count value will remain in the
Read Data file until a new trigger pulse is received at the Gate/Reset terminal.
When a new trigger pulse is received, the old count value will be overwritten by
the new value.
In mode 1, store/continue (see Figure Store/Continue
edge of a pulse input on input Z (gate/reset) terminal causes the current value in
6Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
on page 7), the leading
Overview of the Very High Speed Counter Module
Read, Store Count and
continue counting.
Store Count
Stop counting
Resume counting
Stop count, store
and reset to zero
Counter has stopped counting
Start counting
from zero
the counter to be read and stored. The counter will continue counting. The
stored count will be available in the Read Data file. The stored count information
will remain in the block transfer read file until it is overwritten by new data.
Store/Continue
In mode 2, store/wait/resume (see Figure Store/Wait/Resume on page 7), a rising
edge of a pulse input on the Z input (gate/reset) terminal reads and stores the
current counter value in the Read Data file, and inhibits counting while the gate/
reset input is high. Counting resumes when the input goes low.
Mode 2 does not reset the counter, although it does store the count value. The
stored count is available in the Read Data file. The stored count remains in the
Read Data file until it is overwritten with new data.
Store/Wait/Resume
In mode 3, store-reset/wait/start (see Figure Store-Reset/Wait/Start on page 7),
the rising edge of the pulse on input Z (gate/reset) terminal causes the counter to
stop counting, store the current count value in the Read Data file and reset the
count to zero. The counter does not count while the Z input on the gate/reset
terminal remains high. Counting resumes from zero on the falling edge of the
pulse at the Z (gate/reset) terminal. The stored count is available in the Read
Data file. The stored count remains in the Read Data file until it is overwritten
with new data.
Store-Reset/Wait/Start
In mode 4, store-reset/start (see Figure Store-Reset/Start on page 8), on the rising
edge of a pulse input at the Z (gate/reset) terminal causes the counter to store the
accumulated count value in the Read Data file, and reset the counter to zero. The
counter continues counting while the Z gate/reset input is high. The stored count
Rockwell Automation Publication 1794-UM010D-EN-E - July 20137
Overview of the Very High Speed Counter Module
Store Count,
reset to zero,
start counting
Rising edge
Store Count,
reset to zero,
start counting
Falling edge
is available in the Read Data file. The stored count remains in the Read Data file
until it is overwritten with new data.
Store-Reset/Start
The figures show the store count feature operating on the rising edge of the gate/
reset pulse. The user has the option of electing these same features using the
falling edge of the gate/reset pulse. The gate invert bit is active in the store count,
continuous/rate and period/rate modes.
Period/Rate Mode
Use the period/rate mode to determine the frequency of input pulses by counting
the number of internal 5MHz clock pulses over a user-specified number of input
signal pulses. At the end of the specified number of pulses, the module returns the
frequency and the total number of pulses received.
A channel configured for period/rate mode acts as a period rate counter. An
internal 5MHz clock is used as a frequency reference. This clock is gated by the
incoming pulse train at the gate/reset input. The results of this gating action are
the number of pulses or a frequency. The frequency is returned in input file words
0 (LSW) and 1 (MSW) for channel 0 and word 2 (LSW) and 3 (MSW) for
channel 1. The total pulses received is stored in input file words 4 (LSW) and 5
(MSW) for channel 0 and words 6 (LSW) and 7 (MSW) for channel 1. Select
the period/rate mode by setting the appropriate bits in word 0 of the
configuration block.
1794-VHSC modules count the total number of pulses occurring at the Z (gate/
reset) pin. This function is frequency-limited to 200Hz X the scaler value. You
can reset this count by setting the VR bit.
Figure Period/Rate Mode
on page 9 shows a diagram of the module used in the
period/rate mode.
8Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Period/Rate Mode
Assumes symmetrical pulse, 50% duty cycle, so period = sample time on X 2 (on and off)
Frequency = 1/period
If count = 25, scaler = 1, and clock period = (1/5 MHz)
Frequency = 1 / [(25/1) X (1/5 MHz) X 2] = 100 KHz
45893
Overview of the Very High Speed Counter Module
Incoming pulse train at Z
(gate/reset terminal)
5 MHz internal clock
Accumulated count
Single phase pulse generator
1
A (not used)
B (not used)
Z (gate/reset)
1020
Input A
Input B
Input Z
scaler
5 MHz clock
1794-VHSC
Frequency and outputs
updated here
In Figure Period/Rate Mode on page 9, the incoming pulse train from the gate/
reset terminal is used to sample pulses from the 5 MHz internal clock. As the
frequency of the incoming pulse train at the gate/reset terminal increases, the
number of sampled pulses from the 5 MHz clock decreases. This relationship is
shown in NO TAG. Since accuracy is related to the number of pulses received
over the sample period, the accuracy will decrease with increasing input
frequencies at the Gate/Reset terminal.
To some extent, the decrease in accuracy can be lessened by scaling the input
frequency through the use of a scaler. A scaler value of 1 will only return an
accurate input frequency if incoming pulses have a 50% duty cycle.
Relationship Between Sampled Pulses and Input Frequency
Input Frequency at Z
(Gate/Reset)
Terminal in Hz
21.25M
5500K
10250K
20125K
5050K
10025K
Rockwell Automation Publication 1794-UM010D-EN-E - July 20139
Sampled Pulses for 1/2 Cycle of Z
(Gate/Reset) Pulse
Overview of the Very High Speed Counter Module
Relationship Between Sampled Pulses and Input Frequency
Sampled Pulses for 1/2 Cycle of Z
(Gate/Reset) Pulse
Operation of Scaler
In period/rate mode, the scaler lets the incoming pulse train at the Z (gate/reset)
terminal be divided by a user defined number. Acceptable values for the scaler are
1, 2, 4, 8, 16, 32, 64 and 128. There is one scaler value for each counter.
ATTENTION: Sample period times scaler must be less than 6.71 s in
order to avoid a zero frequency detect indication.
Continuous/Rate Mode
Connection to Counter Inputs
The only input to the module in the period/rate mode is made to the Z (gate/
reset) terminal. The counter inputs (channel A and B) are not used in the period/
rate mode.
The continuous/rate mode is similar to the period/rate mode previously
described except the outputs in this mode are dynamic outputs. Use this mode to
determine the frequency of input pulses by counting the number of internal
5 MHz clock pulses over a user-specified number of input signal pulses. Each
output is turned on as soon as the turn-on count is reached, and turned off as
soon as the turn-off count is reached. As the internal 5 MHz clock is counted, the
outputs dynamically track the 5 MHz count. This allows you to turn an output
on a certain number of 5 MHz counts after the gate/reset pin goes active, and
turn it off a certain number of 5 MHz counts later.
1794-VHSC module counts the total number of pulses occurring at the Z (gate/
reset) terminal. This function is frequency-limited to 200 Hz X the scaler value.
This total count is returned in input file words 4 (LSW) and 5 (MSW) for
channel 0 and 6 (LSW) and 7 (MSW) for channel 1. You can reset this count by
setting the VR bit.
10Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Overview of the Very High Speed Counter Module
Incoming pulse train at Z
(gate/reset terminal)
5 MHz internal clock
A (not used)
B (not used)
Input A
Input B
Z
Encoder/Pulse generator
1794-VHSC
Input Z
(Gate/Reset)
scaler
5 MHz clock
1
Accumulated count
Outputs updated continuously
Frequency
updated here
1020
Assumes symmetrical pulse, 50% duty cycle, so period = sample time on X 2 (on and off)
Frequency = 1/period
If count = 25, scaler = 1, and clock period = (1/5 MHz)
Frequency = 1 / [(25/1) X (1/5 MHz) X 2] = 100 KHz
45894
Period/Rate and Continuous/Rate Output Operation with Scaler of 1
Rate Measurement Mode
Rockwell Automation Publication 1794-UM010D-EN-E - July 201311
Use the rate measurement mode to count incoming pulses for a user-specified
time interval. At the end of the interval, the module returns a value representing
the sampled number of pulses and a value indicating the incoming frequency.
When the count and frequency are updated, any associated outputs are checked
against their associated presets.
The value representing the total number of pulses is returned in input file words 4
(LSW) and 5 (MSW) for channel 0 and 6 (LSW) and 7 (MSW) for channel 1,
and the value indicating the incoming frequency is returned in words 0 (LSW)
and 1 (MSW) and 2 (LSW) and 3 (MSW). The total count equals the running
sum of the number of pulses received during the sample period. The operation of
rate measurement mode is shown in Figure Operation of the Rate Measurement
Mode on page 12.
Overview of the Very High Speed Counter Module
If sample period is 50 ms, and count = 3, then frequency = 3/50 ms = 60 Hz
45895
EXAMPLE
A Input (pulse)
Internal sampling gate
Accumulated count
Operation of the Rate Measurement Mode
Encoder/Pulse generator
123
A Input
B (not used)
Z (not used)
(Gate/Reset)
Input A
Input B
Input Z
Time base
1794-VHSC
Frequency calculated,
outputs updated here
In , three counts have been accumulated during the user-selected time
period. If you had selected 50 ms as the sample period, the frequency
returned to the programmable controller processor would be:
Frequency = Counts/Sample period = 3 counts/50 ms = 60 Hz
Sample Period
You can set the sample period used in the frequency calculation in the rate
measurement mode. Allowable values are 10 ms to 3 s in 10 ms increments. The
default value is 1 s.
Connection to Counter Inputs
The only user connections used in the rate measurement mode are to phase A of
the module. The Z (gate/reset) and channel B terminals are not used in
this mode.
Pulse Width Modulation
The module can generate a pulse width modulation signal that may be tied to any
output. By specifying a period (configuration word 2) and gate interval
(configuration word 2 or 3) together with the PWM configuration word 2 or 3, a
counter and its first ON/OFF window comparator is assigned and the signal
generated. The actual duty cycle is specified by output words 2 and 3.
12Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Overview of the Very High Speed Counter Module
Output turns on at
count value of 2000
Output remains energized for
3000 additional counts
Output turns off at
count value of 5000
Outputs
The 1794-VHSC module has 4 outputs, isolated in groups of 2. Each of the
outputs is capable of sourcing current and will operate between 5 and 24V DC.
You must connect an external power supply to each of the outputs. The outputs
can source 1 A DC alone or in combination. The outputs are hardware-driven
and will turn on in about 25 s when the appropriate count value has been reached.
Enabling and Forcing Outputs
Outputs may be forced on or off independent of count or frequency value. To
force the outputs, they must first be enabled. Enabling the outputs is done
through a data table word 1, bits 1, 5, 9 and 13 (see Figure 1794-VHSC — High
Speed Counter Module Image Table Mapping on page 35). Once the outputs
have been enabled, they may be forced on by setting bits 0, 4, 8 or 12 in word 1.
The outputs can be forced off by setting the enable bit to 0.
Assigning Outputs to Counter Windows
By setting bits in the configuration block, you can assign the outputs on the
module to any of the various counter windows. You can assign any output to any
count window with no restrictions.
Operation of Outputs
When the outputs for the 1794-VHSC module are enabled and assigned to a
counter window they operate in an ON-OFF fashion. For example, assume that
the module were programmed to turn ON an output when a count value of 2000
was reached. Further, assume that the user desired to have the output remain
energized for a period of 3000 counts and then turn OFF. The end result would
be that the outputs would turn ON at count of 2000, would remain energized for
3000 additional counts, and would turn OFF at 5000 counts. The ON and OFF
values are circular around zero (see Figure On-Off Operation of Output
page 13).
On-Off Operation of Output
Using output 0 as an example, when the value in Counter ON Value is less than
the value in Counter OFF Value, the output turns on at 2000 and off at 5000. If
the value in Counter ON Value is greater than the value in Counter OFF Value,
the output turns off at 2000 and on at 5000 (see Figure Effect of Values in On/
Off Operation on page 14).
on
Rockwell Automation Publication 1794-UM010D-EN-E - July 201313
Overview of the Very High Speed Counter Module
Output turns on at
count value of 2000
Output remains energized for
3000 additional counts
Output turns off at
count value of 5000
Output turns off at
count value of 2000
Output turns on at
count value of 5000
When values in Counter On Value are less than
values in Counter Off Value.
When values in Counter On Value are greater
than values in Counter Off Value.
Effect of Values in On/Off Operation
Isolation of Outputs
The module provides 850V DC isolation between each of the outputs and
the FlexBus.
Connecting Outputs to Counters
You can connect any of the outputs to any of the counter inputs. In this way, it is
possible to use the outputs to reset a counter or to cascade counters. If using the
outputs this way, make certain that the output voltage is compatible with the
chosen input.
What the Module Does
The very high speed counter module performs high-speed scaling calculation
operations for various industrial applications. The module interfaces with a
FLEX I/O family EtherNet/IP adapter which then communicates with a
programmable controller processor.
The adapter/power supply transfers data to and from the module over the
FlexBus. Instructions in the programmable controller facilitate this
communication and let you write output values and configure the module’s mode
of operation. Figure FLEX I/O Communication Process on page 15 describes the
communication process.
14Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
FLEX I/O Communication Process
The adapter transfers your configuration
data to the module.
The adapter transfers the
data over the FlexBus.
The adapter and module determine
that the transfer was made without
error and input values are within a
specified range.
EtherNet/IP transfers the data to the
programmable controller data table.
The module converts
frequency signals into
binary format and stores
these values until the
adapter requests their
transfer.
External devices transmit
frequency signals to the module.
FlexBus
45896
Overview of the Very High Speed Counter Module
1
Allen-Bradley
4
VERY HIGH SPEED COUNTER MODULE
1794-VHSC
1
ok
5
2
3
6
1. The adapter transfers your configuration data and commands to the
module.
2. External devices generate input signals that are transmitted to the module.
3. The module converts these signals into binary format, and stores these
values and controls their output until the adapter requests their transfer.
4. The adapter transfers the data over the FlexBus.
5. The adapter and module determine that the transfer was made without
error and inputs values are within a specified range.
6. EtherNet/IP transfers the data to the programmable controller data table.
Chapter Summary
Rockwell Automation Publication 1794-UM010D-EN-E - July 201315
In this chapter you learned how your module operates, and how your module
communicates with the programmable controller.
Overview of the Very High Speed Counter Module
Notes:
16Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Install Your FLEX I/O VHSC Module
Chapter
2
Overview
Before You Install Your
Module
This chapter describes how to physically install the 1794-VHSC adapter on the
DIN rail and connect it to the EtherNet/IP network.
TopicPage
Before You Install Your Module
Power Requirements17
Install the Module18
Mount on a DIN Rail18
Mount on a Panel or Wall20
Mount the 1794-VHSC Module on the Terminal Base
Unit
Wiring Information23
Connect Wiring to the FLEX I/O VHSC Input Module24
Connect Wiring Using a 1794-TB3G, 1794-TB3GK or
1794-TB3GS Terminal Base Unit
Before installing your 1794-VHSC very high speed counter module, you need to:
• Calculate the power requirements of all modules in the FLEX I/O system,
and,
• Position the keyswitch on the terminal base.
17
21
24
Power Requirements
The wiring of the terminal base unit is determined by the current draw through
the terminal base. Make certain that the current draw does not exceed 10 A.
ATTENTION: Total current draw through the terminal base unit is
limited to 10 A. Separate power connections may be necessary.
Methods of wiring the terminal base units are shown inWiring Inform
page 23.
Rockwell Automation Publication 1794-UM010D-EN-E - July 201317
ation on
Install Your FLEX I/O VHSC Module
1
2
3
4
6
7
7
8
9
0
2
+
2
+
45319
Install the Module
Installation of the module consists of:
• mount the terminal base unit
• install the 1794-VHSC module into the terminal base unit
• install the connecting wiring into the terminal base unit
If you are installing your module into a terminal base unit that is already installed,
proceed to See Mount on a DIN Rail
on page 18.
Mount on a DIN Rail
ATTENTION: Do not remove or replace a terminal base unit when
power is applied. Interruption of the FlexBus can result in unintended
operation or machine motion.
Install the Terminal Base Unit
1. Remove the cover plug in the male connector of the unit to which you are
connecting this terminal base unit.
2. Check to make sure that the 16 pins in the male connector on the adjacent
device are straight and in line so that the mating female connector on this
terminal base unit will mate correctly.
Make certain that the female FlexBus connector is fully retracted into the
base unit.
18Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Install Your FLEX I/O VHSC Module
2
+
2
+
45320
2
+2+
45321
2
+
2
+
45322
3. Position the terminal base at a slight angle and hooked over the top of the
35 x 7.5 mm DIN rail A (Allen Bradley part number 199-DR1; 46277-3).
4. Slide the terminal base over tight against the adapter, or proceeding
terminal base. Make sure the hook on the terminal base slides under the
edge of the adapter, or proceeding terminal base, and the FlexBus
connector is fully retracted.
5. Pivot the terminal base onto the DIN rail with the top of the rail hooked
under the lip on the rear of the terminal base.
Use caution to make sure that the female FlexBus connector does not strike
any of the pins in the mating male connector.
6. Press down on the terminal base unit to lock the terminal base on the DIN
rail. If the terminal base does not lock into place, use a screwdriver or
similar device to open the locking tab, press down on the terminal base
until flush with the DIN rail and release the locking tab to lock the base in
place.
Gently push the FlexBus connector into the side of the adapter, or
proceeding terminal base to complete the backplane connection.
Rockwell Automation Publication 1794-UM010D-EN-E - July 201319
Install Your FLEX I/O VHSC Module
(1.4)
35.5
0
1
7
2
3
4
6
7
8
9
2
+
2
+
1
2
3
4
45323
Millimeters
(inches)
For specific wiring information, refer to the installation instructions for the
module you are installing in this terminal base unit.
7. Repeat the above steps to install the next terminal base unit.
Ensure that the cover of the FlexBus connector on the last terminal base
unit is in place.
Mount on a Panel or Wall
Installation of a FLEX I/O system on a wall or panel consists of:
• laying out the drilling points on the wall or panel.
• drilling the pilot holes for the mounting screws.
• mounting the adapter mounting plate.
• installing the terminal base units and securing them to the wall or panel.
Use the mounting kit Cat. No. 1794-NM1 for panel or wall mounting.
1794-NM1 Mounting Kit
DescriptionDescription
1Mounting plate for adapter3Terminal base unit (not included)
2#6 Self-tapping screws4Adapter module (not included)
To install the mounting plate on a wall or panel:
Lay out the required points on the wall or panel as shown in the Figure Drilling
Dimensions for Panel or Wall Mounting on page 21.
20Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Drilling Dimensions for Panel or Wall Mounting
45327
IMPORTANT
Install Your FLEX I/O VHSC Module
Millimeters
(Inches)
21 (0.83)
35.5
(1.4)
58.5
(2.3)
35.5
(1.4)
58.5
(2.3)
35.5
(1.4)
8. Drill the necessary holes for the #6 self-tapping mounting screws.
9. Mount the mounting plate for the adapter module using two #6 self-
tapping screws – 18 screws are included for mounting up to 8 modules and
the adapter.
Make certain that the mounting plate is properly grounded to the
panel. Refer to Industrial Automation Wiring and Grounding
Guidelines, publication 1770-IN041
.
10. Hold the adapter at a slight angle and engage the top of the mounting plate
in the indention on the rear of the adapter module.
11. Press the adapter down flush with the panel until the locking lever locks.
12. Position the terminal base unit up against the adapter and push the female
bus connector into the adapter.
13. Secure to the wall with two #6 self-tapping screws.
14. Repeat for each remaining terminal base unit.
Mount the 1794-VHSC Module on the Terminal Base Unit
The 1794-VHSC module mounts on a 1794-TB3G or 1794-TB3GS terminal
base unit.
1. Rotate keyswitch (3) on terminal base unit (4) clockwise to position 1 as
required for the module.
Do not change the position of the keyswitch after wiring the terminal base
unit.
Rockwell Automation Publication 1794-UM010D-EN-E - July 201321
Install Your FLEX I/O VHSC Module
1
2
3
4
5
6
7
8
Label here or under here
40231
FLEX I/O Terminal Base and Very High Speed Counter Parts
DescriptionDescription
1FlexBus connector5Base unit
2Latching mechanism6Alignment groove
3Keyswitch7Alignment bar
4Cap plug8Module
2. Make certain the FlexBus connector (1) is pushed all the way to the left to
connect with the neighboring terminal base or adapter.
You cannot install the module unless the connector is fully extended.
3. Make sure the pins on the bottom of the module are straight so they will
align properly with the connector in the terminal base unit.
ATTENTION: If you remove or insert the module while the
backplane power is on, 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.
4. Position the module (8) with its alignment bar (7) aligned with the groove
(6) on the terminal base.
5. Press firmly and evenly to seat the module in the terminal base unit.
The module is seated when the latching mechanism is locked into the
module.
6. Remove cap plug and attach another terminal base unit to the right of this
terminal base unit if required.
Make sure the last terminal base has the cap plug in place.
22Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Install Your FLEX I/O VHSC Module
IMPORTANT
Digital input
module
Digital input
module
Digital output
module
VHSC
module
VHSC
module
Frequency input
module
VHSC
module
VHSC
module
Daisy-chaining
Individual
24V DC
24V DC
24V DC
24V DC
Wiring when total current draw is less than 10 A
Wiring when total current draw is greater than 10 A
Note: Do not use any digital modules in this configurations.
Note: Use this configuration if using any digital output
modules that could couple transients to the 24V supply.
1794-VHSC module wiring separate from digital wiring.
45897
The adapter is capable of addressing eight modules. Do not exceed a
maximum of eight terminal base units in your system.
Wiring Information
This section provides essential wiring information for the 1794-TB3G, 1794TB3GK, and 1794-TB3GS terminal base units. It also includes instructions for
connecting wiring to the FLEX I/O module.
Wire the Terminal Base Units (1794-TB3G shown)
ATTENTION: Take note of the following considerations when wiring
your terminal base units:
· AIl modules must be frequency or analog modules for the daisychain
configuration.
· Use the individual type of configuration for any "noisy" DC digital I/O
Rockwell Automation Publication 1794-UM010D-EN-E - July 201323
Wiring the FLEX I/O VHSC Input module is done using the 1794-TB3G,
1794-TB3GK or the 1794-TB3GS terminal base unit.
modules in your system.
· All modules powered by the same power supply must be frequency or
analog modules for the combination type of configuration.
34 and 50 = 24V DC
35 and 51 = common
16 and 33 = chassis
40…45 = chassis ground
35 and 51 = common
34 and 50 = 24V DC
16 and 33 = chassis ground
40…45 = chassis ground
45328
1794-TB3G, 1794-TB3GK and 1794-TB3GS Wiring Connections
Connect Wiring to the FLEX I/O VHSC Input Module
24Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Wiring to the 1794-VHSC Input module is made through the terminal base unit
on which the module mounts.
The module is compatible with the 1794-TB3G, 1794-TB3GK and 1794TB3GS terminal base units.
Connect Wiring Using a 1794-TB3G, 1794-TB3GK or 1794-TB3GS
Terminal Base Unit
1. Connect the individual signal wiring to numbered terminals on the 0…15
row (A) for 24V inputs (terminals 0…5 and 8…13) and 17…32 row (B) for
5V inputs (terminals 17…22 and 25…30) on the terminal base unit.
Connect the input devices as shown in Ta b l e
1794-VHSC High Speed Counter Module on page 26.
ATTENTION: Do not connect 24V signals to the 5V input terminals.
Permanent damage to the module will result.
2. Connect individual output wiring to terminals 6, 7 and 14, 15 on the
0…15 row (A) and terminals 23, 24 and 31, 32 on the 16…32 row (B) on
the terminal base unit. Connect output return wiring for channels 0, 1, 2,
and 3 to terminals 23, 24 31 and 32 respectively. Connect the output
devices as shown in Ta b l e
Speed Counter Module on page 26
3. Terminate shields to terminals 16 or 33 on row B, or 40…45 on row C.
Wiring connections for the 1794-VHSC High
Wiring connections for the
Install Your FLEX I/O VHSC Module
4. Connect 24V DC to terminal 34 on the 34…51 row (C), and 24V
common to terminal 35 on the 34…51 row (C).
ATTENTION: To reduce susceptibility to noise, power frequency
modules and digital modules from separate power supplies. Do not
exceed a length of 10 m (33 ft) for DC power cabling.
5. If daisychaining the 24V DC power to the next 1794-TB3G, 1794-
TB3GK or 1794-TB3GS base unit, connect a jumper from terminal 50
(24V) on this base unit to terminal 34 and from terminal 51 (24V DC
common) to terminal 35 on the next 1794-TB3G, 1794-TB3GK or
1794-TB3GS base unit.
6. Connect output power wiring to terminals 37 (+) and 39 (-) for outputs
0 and 1, and terminals 46 (+) and 48 (-) for outputs 2 and 3.
ATTENTION: Use extreme care when connecting wiring to an
adjacent terminal base unit. Wiring for the 1794-TB3G and
1794-TB3GS terminal base units is different from other 1794 terminal
base units.
ATTENTION: Do not daisychain power or ground from the 1794TB3G, 1794-TB3GK or 1794-TB3GS terminal base unit to any AC or DC
digital module terminal base unit.
ATTENTION: 24V DC power must be applied to your module before
operation. If power is not applied, the module position will appear to
the adapter as an empty slot in your chassis. If the adapter does not
recognize your module after installation is completed, cycle power to
the adapter.
Rockwell Automation Publication 1794-UM010D-EN-E - July 201325
A, A - incremental encoder input A (+5 or +24V DC)
B B
- incremental encoder input B (+5 or +24V DC)
Z, Z - incremental encoder input Z (+5 or +24V DC)
O = sourcing outputs
R = returns for sourcing outputs
+V = +5 or +24V DC isolated power externally supplied for outputs (1 A max)
-V = negative isolated power connection (1 A max)
+24V DC = 24V DC terminal base power for module
COM = return for +24V DC terminal base power for module
Chassis Gnd = chassis ground for input or output cable shields
45898
Where:
Connections for Terminal Base 1794-TB3G or 1794-TB3GK shown
Wiring connections for the 1794-VHSC High Speed Counter Module
Incremental
Encoder Input
Input A08
26Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Input A
Input B210
Input B
Input Z412
Input Z
Input A1725
Input A
Input B1927
Terminal Base Units 1794-TB3G, 1794-TB3GK,
1794-TB3GS
Channel 0Channel 1
+24V Inputs
19
311
513
+5V Inputs
Channel 0Channel 1
1826
Install Your FLEX I/O VHSC Module
Wiring connections for the 1794-VHSC High Speed Counter Module
Input B
Input Z2129
Input Z2230
OutputSourcing OutReturnOutputSourcing OutReturn
O0623O1724
O21431O31532
+24V DC
Base power
+24V DC COMTerminals 35 and 51
+5V or +24V
Output power
-V Output powerTerminals 39 and 48
Chassis GNDTerminals 16, 33, and 40…45
2028
Outputs
Terminals 34 and 50
Terminals 37 and 46
ATTENTION: Total current draw through the terminal base unit is
limited to 10 A. Separate power connections to the terminal base unit
may be necessary.
Rockwell Automation Publication 1794-UM010D-EN-E - July 201327
Install Your FLEX I/O VHSC Module
45899
Example of Quadrature Encoder Differential Wiring to a 1794-TB3G or 1794-TB3GK
Terminal Base Unit
ATT ENTI ON: Keep exposed area of inner conductor as short
as possible.
This chapter provided you with instructions on how to install the module in an
existing programmable controller system and how to wire to a terminal
base unit.
28Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Communicate With Your Module
45900
Chapter
3
Overview
Communication Over the
I/O Backplane
Read this chapter to familiarize yourself with configurable features on the
1794-VHSC Very High Speed Counter module
For Information AboutSee Page
Communication Over the I/O Backplane
I/O Structure31
Safe State Data32
Device Actions32
1794-VHSC — High Speed Counter Module Image
Table Mapping
Input Status Word Bits32
Bit/Word Definitions37
Configuration Word Definition42
29
35
One 1794-AENT or 1794-AENTR EtherNet/IP adapter can interface up to
eight terminal base units with installed FLEX I/O modules, forming a FLEX I/O
system of up to eight slots. The adapter communicates to other network system
components (typically one or more controllers or scanners, and/or programming
terminals) over the EtherNet/IP network. The adapter communicates with its
I/O modules over the backplane.
0
EtherNet/IP
Adapter
Read
Write
Inputs
Status
Outputs
Configuration
Read
Words
Write
Words
15
Inputs
Status
Outputs
Configuration
Inputs
Status
Outputs
Configuration
Data is exchanged scheduled when mapped, or unscheduled using EtherNet/
IP instructions.
Rockwell Automation Publication 1794-UM010D-EN-E - July 201329
Communicate With Your Module
Scheduled Data-Transfer
Scheduled data transfer:
•is continuous
• is asynchronous to the ladder-logic program scan
• occurs at the actual rate displayed in the Actual Packet Interval field on the
programming software I/O mapping (monitor) screen
Unscheduled Data-Transfer
Unscheduled operations include:
• unscheduled non-discrete I/O data transfers — through I/O transfer
instructions
• peer-to-peer messaging — through Message (MSG) instructions
• messaging from programming devices
Unscheduled messaging on an EtherNet/IP network is non-deterministic. Your
application and your configuration — number of nodes, application program,
NUT, amount of scheduled bandwidth used, and so on — determine how much
time there is for unscheduled messaging.
Module I/O Mapping
The I/O map for the 1794-VHSC module is divided into read words and write
words. Read words consist of input and status words, and write words consist of
output and configuration words. The number of read words or write words can
be 0 or more. The length of each I/O modules read words and write words vary in
size depending on module complexity. Each I/O module will support at least 1
input word or 1 output word. Status and configuration are optional, depending
on the module. The 1794-VHSC module has 9 input words, no status words, 4
output words and 56 configuration words.
Application of New Configurations
When a configuration is sent to the 1794-VHSC module, it is checked for
consistency before being applied. If an error is found in the configuration, the PE
bit (input word 8, bit 15) is asserted and the module locally retains its previous
configuration. To isolate any problems an improperly configured module may
have, the user application program (ladder program, for instance) should monitor
this error.
30Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Communicate With Your Module
45901
I/O Module Fault Bits
Not used
Node Address Changed Bit
Bit: 1501413121110987654321
Slot 0
Slot 1
Slot 2
Slot 3
Slot 4
Slot 5
Slot 6
Slot 7
Node Address Changed Bit
Created by controller
{
45902
If the configuration is considered acceptable, the counter application specific
integrated circuit (ASIC) is disabled — counting is suspended and outputs are
shut off — while the ASIC is loaded with the new operational parameters.
I/O Structure
Output data is received by the adapter in the order of the installed I/O modules.
The Output data for Slot 0 is received first, followed by the Output data for Slot
1, and so on up to slot 7.
The first word of input data sent by the adapter is the Adapter Status Word. This
is followed by the input data from each slot, in the order of the installed I/O
modules. The Input data from Slot 0 is first after the status word, followed by
Input data from Slot 2, and so on up to slot 7.
EtherNet/IP adapter
Adapter Status
Slot 0 Input Data
Slot 1 Input Data
Slot 7 Input Data
Adapter Status
Slot 0 Output Data
Slot 1 Output Data
Read
Write
Slot 0Slot 1Slot 7
Rockwell Automation Publication 1794-UM010D-EN-E - July 201331
Adapter Input Status Word
The input status word consists of:
• I/O module fault bits — 1 status bit for each slot
• node address changed — 1 bit
•I/O status — 1 bit
Slot 7 Output Data
Communicate With Your Module
The adapter input status word bit descriptions are show in Table Input Status
Wor d Bi ts on page 32.
Input Status Word Bits
Bit DescriptionBitExplanation
I/O Module Fault0This bit is set (1) when an error is detected in slot position 0.
1This bit is set (1) when an error is detected in slot position 1.
2This bit is set (1) when an error is detected in slot position 2.
3This bit is set (1) when an error is detected in slot position 3.
4This bit is set (1) when an error is detected in slot position 4.
5This bit is set (1) when an error is detected in slot position 5.
6This bit is set (1) when an error is detected in slot position 6.
7This bit is set (1) when an error is detected in slot position 7.
Node address
changed
I/O state9Bit = 0 – idle
8This bit is set (1) when the node address switch setting is changed
since power up.
Bit = 1 – run
10…15Not used – set to 0.
Safe State Data
Device Actions
Possible causes for an I/O module fault are:
• transmission errors on the FLEX I/O backplane
•a failed module
• a module removed from its terminal base
• an incorrect module inserted in a slot position
• an empty slot
• a non-discrete module in the slot
The EtherNet/IP adapter does not provide storage for alternate module output
data during communication faults or processor idle state. This safe state data is
stored in the 1794-VHSC module and may be defined using configuration
software. Safe state data assures that a known output will be applied to the output
devices to maintain a previously designated safe operating condition during the
previously mentioned failure modes. This data is sent in the configuration block.
For more information, Table 1794-VHSC — High Speed Counter Module
Image Table Mapping on page 35.
Device actions include:
• communication fault behavior
• idle state behavior
• input data behavior upon module removal
32Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Communicate With Your Module
Communication Fault Behavior
You can configure the 1794-VHSC response to a communication fault. Upon
detection of a communication fault, the module can:
• leave the module output data in its last state (hold last state)
• reset the module output data to zero (reset)
• apply safe state data to the module output
Idle State Behavior
The 1794-VHSC module responds to idle state according to the
Communication Fault Behavior described above. The module can:
• leave the module output data in its last state (hold last state)
• reset the module output data to zero (reset)
• apply safe state data to the module output
Input Data Behavior upon Module Removal
I/O module input data sent by the adapter upon module removal is configurable.
The adapter can:
• reset the module output data to zero (reset)
• leave the module output data in the last state before module removal (hold
last state)
Frequency/Resolution Enhancement
This mode is only for use in modules with firmware revision D or later.
Frequency/Resolution Enhancement is a precise configuration which handles the
decimal position adjustment to frequency count. Using this mode allows the
module to read the frequency up to two positions to the right or left of the
decimal place. For example, a rounded frequency of 13 Hz can be displayed as
1257 or 12.57. The mode is only valid when the module is configured for Period
Rate or Continuous Rate.
Frequency Resolution/Enhancement reports the frequency back as a floating
point value in a single word and allows configuration of decimal places of
resolution.
The upper byte of the counter control word (output word 0) is reserved for
special mode, Enhancing Frequency/Resolution. In this mode, you can change
significant digits of frequency display based on output word 2 for channel 0 and
output word 3 for channel 1. Decimal point placement is absolute positioning. -2
Rockwell Automation Publication 1794-UM010D-EN-E - July 201333
Communicate With Your Module
moves decimal point left 2 places dividing the frequency value by 100; +1 moves
the decimal point 1 place, multiplying by 10, and so on. This allows frequency
values to fit in a single word.
Applying the Frequency/Resolution Enhancement
To use this mode, proceed as follows.
ATTENTION: Use this enhancement mode with caution since no
checks are performed to verify data. Unintended operation can occur.
1. Power up the FLEX chassis, or put the controller into RUN mode, or
both. Let the 1794-VHSC module initialize as normal. Wait for the OK
indicator on the module to go solid green.
2. You must place ladder logic in your PLC that performs the following:
a. Set a value between -4 and +2 into output word 2 and/or 3.
b. Then set (1) the M11 bit in the upper byte of control word 0.
When the upper byte of the output word is not zero, the status
indicator flashes red, and the TF bit (bit 12, input word 8) is asserted.
c. Next, reset (0) the M11 bit in the upper byte of output control word 0.
Clearing the upper byte of output word 0 restores the module to an
operational state, clears the TF bit in input word 8 and returns the
indicator to green. The module is now in enhanced mode.
3. To tu rn th is f ea t ur e o f f :
a. Set output word 2 or 3 to zero (no value)
b. Set (1) the M11 bit
c. Then reset (0) the M11 bit
34Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Communicate With Your Module
45903
1794-VHSC — High Speed Counter Module Image Table Mapping
Channel 0 Rollover Value (most significant word)
Channel 1 Rollover Value (least significant word)
Channel 1 Rollover Value (most significant word)
Channel 0 Preset Value (least significant word)
Channel 0 Preset Value (most significant word)
Channel 1 Preset Value (least significant word)
Channel 1 Preset Value (most significant word)
14
15
16
00000000S3S4S2S1F4F3F2F1
Reserved
Channel 0 Scaler
Channel 1 Scaler
Rockwell Automation Publication 1794-UM010D-EN-E - July 201335
Communicate With Your Module
45904
Configuration Size
(continued)
56 Words
17
00000000S3S4S2S1F4F3F2F1
18
00000000S3S4S2S1F4F3F2F1
19
00000000S3S4S2S1F4F3F2F1
20
21
22
23
24
25
26
27
28
29
30
31
32
First Counter 1st On Value (least significant word)
First Counter 1st On Value (most significant word)
First Counter 1st Off Value (least significant word)
First Counter 1st Off Value (most significant word)
First Counter 2nd On Value (least significant word)
First Counter 2nd On Value (most significant word)
First Counter 2nd Off Value (least significant word)
First Counter 2nd Off Value (most significant word)
First Counter 3rd On Value (least significant word)
First Counter 3rd On Value (most significant word)
First Counter 3rd Off Value (least significant word)
First Counter 3rd Off Value (most significant word)
First Counter 4th On Value (least significant word)
33
34
35
36
37
38
39
40
41
42
43
44
46
47
48
First Counter 4th On Value (most significant word)
First Counter 4th Off Value (least significant word)
First Counter 4th Off Value (most significant word)
Second Counter 1st On Value (least significant word)
Second Counter 1st On Value (most significant word)
Second Counter 1st Off Value (least significant word)
Second Counter 1st Off Value (most significant word)
Second Counter 2nd On Value (least significant word)
Second Counter 2nd On Value (most significant word)
Second Counter 2nd Off Value (least significant word)
Second Counter 2nd Off Value (most significant word)
Second Counter 3rd On Value (least significant word)
45
Second Counter 3rd On Value (most significant word)
Second Counter 3rd Off Value (least significant word)
Second Counter 3rd Off Value (most significant word)
Second Counter 4th On Value (least significant word)
49
econd Counter 4th On Value (most significant word)
S
36Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Bit/Word Definitions
Input WordBitDefinition
Word 000…15
(00…17)
Word 100…15
(00…17)
Word 200…15
(00…17)
Word 300…15
(00…17)
Word 400…15
(00…17)
Word 500…15
(00…17)
Word 600…15
(00…17)
Word 700…15
(00…17)
Channel 0 current count – The current count consists of 2 words (32
bits) representing the current count of the 24-bit counter (in encoder, X2
encoder, X4 encoder, PWM) or the frequency (in periodrate,
continuousrate, rate measurement.). The range of values is
(0 < value < 16,777,215).
Channel 1 current count – The current count consists of 2 words (32
bits) representing the current count of the 24-bit counter (in encoder, X2
encoder, X4 encoder, PWM) or the frequency (in period/rate,
continuous/rate, rate measurement.). The range of values is
(0 < value < 16,777,215).
Channel 0 stored/accumulated count – These are 32-bit long word
values representing the stored count of the counter at the time of some
specified event.
These words are not updated in counter modes (counter, X1 encoder, X2
encoder, X4 encoder) without store modes selected. With store modes
selected, it is the counter value at the time of the specified Z input
event.
In PWM configuration, it is the counter value at the end of the period
specified by the product of the time base times gate interval.
In period/rate and continuous/rate, it is the total accumulation of
unscaled Z pulses (if scaling is set to 128, the accumulator will increase
by 128 counts). The maximum frequency that accumulation can follow is
(200Hz X Scaler value).
In rate measurement, it is the total number of pulses seen at the A input
accumulated over each period as specified by the product of time base
times gate interval. The range of values occupy the entire 32-bit size
from 0 < value < 4,294,967,295. These words are not cleared by
changing the configuration.
Channel 1 stored/accumulated count – These are 32-bit long word
values representing the stored count of the counter at the time of some
specified event.
These words are not updated in counter modes (counter, X1 encoder, X2
encoder, X4 encoder) without store modes selected.With store modes
selected, it is the counter value at the time of the specified Z input
event.
In PWM configuration, it is the counter value at the end of the period
specified by the product of the time base times gate interval.
In period/rate and continuous/rate, it is the total accumulation of
unscaled Z pulses (if scaling is set to 128, the accumulator will increase
by 128 counts). The maximum frequency that accumulation can follow is
(200Hz X Scaler value).
In rate measurement, it is the total number of pulses seen at the A input
accumulated over each period as specified by the product of time base
times gate interval. The range of values occupy the entire 32-bit size
from 0 < value < 4,294,967,295. These words are not cleared by
changing the configuration.
Communicate With Your Module
Rockwell Automation Publication 1794-UM010D-EN-E - July 201337
Communicate With Your Module
Bit/Word Definitions
Input WordBitDefinition
Word 8Module Channel Status Word
00Zero input status bit (ZS) for Channel 0 – This bit represents
01Zero frequency detected bit (ZF) for Channel 0 – Only used during
02, 03Stored/data count bit (C0, C1) for Channel 0 – This count cycles thru
04Zero input status bit (ZS) for Channel 1 – This bit represents
05Zero frequency detected bit (ZF) for Channel 1 – Only used during
06, 07Stored/data count bit (C0, C1) for Channel 1 – This count cycles
08…11
(10…13)
the present status of the Z input.
0 = Off
1 = Input on
This bit is uneffected by Z invert, ZI, in the counter configuration word.
frequency configurations (period/rate, continuous/rate, and rate
measurement). In period/rate and continuous/rate, counts are acquired
during on state of the Z input. At very low frequencies, the counter
saturates, indicating a zero frequency detect. The time it takes to
determine a zero frequency in these 2 configurations can be as long as
6.7 s (16,777,215 counts X 1/5 MHz X 2 half cycles of Z). In rate
measurement, pulses on Z are counted over a sample interval specified
by the product of time base X gate interval.
The time to detect a zero frequency is determined by the sample
interval
example: time base = 0.100s, gate interval = 3 is 300 ms to
determine ZF.
00, 01, 10, 11, 00... Each time the stored/accumulated count words are
updated, C(0,1) is incremented. The PLC sample rate, including network
delay and program scan, must be as fast or faster than the frequency of
the event which updates.
the present status of the Z input.
0 = Off
1 = Input on
frequency configurations (period/rate, continuous/rate, and rate
measurement). In period/rate and continuous/rate, counts are acquired
during on state of the Z input. At very low frequencies, the counter
saturates, indicating a zero frequency detect. The time it takes to
determine a zero frequency in these 2 configurations can be as long as
6.7 s (16,777,215 counts X 1/5 MHz X 2 half cycles of Z). In rate
measurement, pulses on Z are counted over a sample interval specified
by the product of time base X gate interval.
The time to detect a zero frequency is determined by the
sample interval
example: time base = 0.100 s, gate interval = 3 is 300 ms to
determine ZF.
through 00, 01, 10, 11, 00... Each time the stored/accumulated count
words are updated, C(0,1) is incremented. The PLC sample rate,
including network delay and program scan, must be as fast or faster
than the frequency of the event which updates.
Output status indicators (OS) – Bit 08 corresponds to output 0, bit 09
to output 1, bit 10 to output 2, and bit 11 to output 3.
0 = output Off
1 = output On
38Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Communicate With Your Module
Bit/Word Definitions
Input WordBitDefinition
Word 812 (14)Test/fail bit (TF) – If the flexbus power or terminal base power is
13 (15)Not ready status bit (NR) – Whenever 24V DC power is applied to the
14 (16)Field power fault bit (FP) – If the 24V DC module power drops, the FP
15 (17)Programming error bit (PE) – This bit is asserted if incomplete,
applied and the module fails during hardware tests, a fatal error occurs.
The TF bit is asserted and the red module indicator turns on. An error
code will be set in the module/channel status word which can be read
using an instruction. The TF bit is also asserted if the upper byte of the
counter control word is not zero.
The upper byte of the counter control word (output word 0) is reserved
for special mode, Enhancing Frequency/Resolution. To use this mode,
set bit 11, and set a value in output word 2 and/or word 3. When the
upper byte of word 0 is not zero, the red module status indicator will
flash and the TF bit is asserted to indicate the module has entered a
test-mode state. Clearing the upper byte of output word 0 restores the
module to an operation state, clears the TF bit and returns the indicator
to green.
Change significant digits of frequency display based on word 14 for
channel 0 and word 15 for channel 1 (-2 moves decimal point left 2
places dividing the frequency value by 100; +1 moves the decimal point
1 place, multiplying by 10, and so on).
This allows frequency values to fit in a single word.
Note: To use Frequency/Resolution Enhancement feature provides
appropriate configuration for each frequency mode (Mode 5,6,7).
Firmware revision D changed decimal point placement to absolute
positioning. Revision D firmware also checks for placement to be in the
range of -4…+2. A value outside the range moves the decimal point to
the zero position. Moving the decimal point to the left allows high
frequencies, (commonly present in rate measurement) to fit within a
single word. Moving the decimal point to the right allows low
frequencies (commonly present in period and continuous rate modes) to
have resolution displayed to 0.1 Hz and 0.01 Hz. Do not use scalars of Z/
128, Z/64, Z/32 and Z/16 when using this test mode.
module, the hardware must be initialized. The NR bit will be asserted
and the red module indicator will flash. If the red indicator continues
flashing, and the green indicator momentarily turns on, the 24V DC
power is below the module minimum.
bit is asserted, the green module indicator flashes, the module outputs
turn off, and the module enters an idle state reporting status as it waits
for power to be restored.
Note: this bit does not indicate status of either output customer
power supply.
incorrect or conflicting set of configuration parameters are sent to the
module. The green module status indicator will flash and an error code
will be placed in bits 11:0 of the module/channel status word. The
module will not enter a normal operating state. Bit definitions are
shown in Table Input Status Word Bits
on page 32.
Rockwell Automation Publication 1794-UM010D-EN-E - July 201339
Communicate With Your Module
Bit/Word Definitions
Output
Word
Word 000…15
Word 100…15
BitDefinition
(00…17)
00Channel 0 Counter reset bit (CR) – A 0 to 1 transition of this bit
01Channel 0 Counter preset bit (CP) – A 0 to 1 transition of this bit sets
02Channel 0 Value reset bit (VR) – A 0 to 1 transition of this bit clears
03This bit is always 0.
04Channel 1 Counter reset bit (CR) – A 0 to 1 transition of this bit
05Channel 1 Counter preset bit (CP) – A 0 to 1 transition of this bit sets
06Channel 1 Value reset bit (VR) – A 0 to 1 transition of this bit clears
07This bit is always 0.
08…10
(10…12)
11 (13)Frequency/Resolution enhancement bit (M11) Set this bit to 1 for
12…15
(14…17)
(00…17)
00Output 0 Force output bit (FO) – When set to 1, output is turned on if
01Output 0 Output enable bit (OE) – When set to 1, output can be
Counter Control Word
clears the counter. Outputs are adjusted according to the window
compare values.
the counter to the value specified by the preset words. Outputs are
adjusted according to the window compare values.
the stored/accumulated count words.
clears the counter. Outputs are adjusted according to the window
compare values.
the counter to the value specified by the preset words. Outputs are
adjusted according to the window compare values.
the stored/accumulated count words.
Reserved for factory use.
frequency precision configuration (Refer to Word 8 Bit/Word Definitions
on page 39 for details on frequency precision configuration).
Note: You must place a value between -4 and +2 in output word 2 and/
or 3 to shift the decimal position accordingly.
Reserved for factory use.
Output Control Word
OE is 1. When FO = 0, output can be controlled by a compare match or
as directed by the PWM settings.
turned on from a force on, compare match or as directed by the PWM
settings. When OE = 0, the associated output is turned off.
40Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Bit/Word Definitions
Communicate With Your Module
02Output 0 Local control bit (LC) – When set to 1, output is controlled
03Not used – set to 0.
04Output 1 Force output bit (FO) – When set to 1, output is turned on if
05Output 1 Output enable bit (OE) – When set to 1, output can be
06Output 1 Local control bit (LC) – When set to 1, output is controlled
07Not used – set to 0.
08 (10)Output 2 Force output bit (FO) – When set to 1, output is turned on if
09 (11)Output 2 Output enable bit (OE) – When set to 1, output can be
10 (12)Output 2 Local control bit (LC) – When set to 1, output is controlled
11 (13)Not used – set to 0.
12 (14)Output 3 Force output bit (FO) – When set to 1, output is turned on if
13 (15)Output 3 Output enable bit (OE) – When set to 1, output can be
14 (16)Output 3 Local control bit (LC) – When set to 1, output is controlled
15 (17)Not used – set to 0.
the counter if the FlexBus power is lost (for instance, the module
detects a FlexBus reset signal).
Note: When FlexBus power is lost, communication to the PC is lost.
When LC = 0, the module clears its OE bit at a loss of FlexBus power.
Set this bit as appropriate in the safe state word, since a
communication fault occurs after adapter power is lost.
OE is 1. When FO = 0, output can be controlled by a compare match or
as directed by the PWM settings.
turned on from a force on, compare match or as directed by the PWM
settings. When OE = 0, the associated output is turned off.
the counter if the FlexBus power is lost (for instance, the module
detects a flexbus reset signal).
Note: When flexbus power is lost, communication to the PC is lost.
When LC = 0, the module clears its OE bit at a loss of FlexBus power.
Set this bit as appropriate in the safe state word, since a
communication fault occurs after adapter power is lost.
OE is 1. When FO = 0, output can be controlled by a compare match or
as directed by the PWM settings.
turned on from a force on, compare match or as directed by the PWM
settings. When OE = 0, the associated output is turned off.
the counter if the FlexBus power is lost (for instance, the module
detects a FlexBus reset signal).
Note: When FlexBus power is lost, communication to the PC is lost.
When LC = 0, the module clears its OE bit at a loss of flexbus power. Set
this bit as appropriate in the safe state word, since a communication
fault occurs after adapter power is lost.
OE is 1. When FO = 0, output can be controlled by a compare match or
as directed by the PWM settings.
turned on from a force on, compare match or as directed by the PWM
settings. When OE = 0, the associated output is turned off.
the counter if the FlexBus power is lost (for instance, the module
detects a FlexBus reset signal).
Note: When FlexBus power is lost, communication to the PC is lost.
When LC = 0, the module clears its OE bit at a loss of FlexBus power.
Set this bit as appropriate in the safe state word, since a
communication fault occurs after adapter power is lost.
Rockwell Automation Publication 1794-UM010D-EN-E - July 201341
Communicate With Your Module
Bit/Word Definitions
Configuration Word Definition
Configuration
Word
Configuration
Word 0
BitDefinition
Bits 00…0303020100Counter 0
Bits 08…11
(10…13)
Bits 04…07060504Counter 0
Bits 12…14
(14…16)
Bit 15 (17)Invert the Z signal – 0 = Z not inverted; 1 = Z inverted
Word 200…15
Word 300…15
Counter Configuration – The upper byte of this word configures counter 1, the lower byte configures counter 0.
Channel 0 PWM Output value – When the module is configured for
PWM, the time base is enabled, the counter for the respective channel,
its gate interval, rollover and 1st on and 1st off value are used. Ties can
be used to direct the PWM signal to any or all outputs.
The range of the PWM values is 0 ≤ value ≤ 9500 decimal (for instance,
0.00% ≤ value ≤ 95.00%). The actual duty cycle at the output depends
on the turn on and turn off times of the MOSFET, energy storage
capability of the cable/load and the resistance from output to return.
Channel 1 PWM Output value – When the module is configured for
PWM, the time base is enabled, the counter for the respective channel,
its gate interval, rollover and 1st on and 1st off value are used. Ties can
be used to direct the PWM signal to any or all outputs.
The range of the PWM values is 0 ≤ value ≤ 9500 decimal (for instance,
0.00% ≤ value ≤ 95.00%). The actual duty cycle at the output depends
on the turn on and turn off times of the MOSFET, energy storage
capability of the cable/load and the resistance from output to return.
42Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Configuration Word Definition
Communicate With Your Module
Configuration
Word
Word 1Filter Selection – Only 1 filter selection can be chosen at a time. Frequency = 50% duty cycle.
Word 2Bits 00…15
Word 3Bits 00…15
Word 4Bits 00…15
Word 5Bits 00…15
Word 6 and 7Bits 00…15
Word 8 and 9Bits 00…15
Word 10 and 11 Bits 00…15
Word 12 and 13 Bits 00…15
BitDefinition
Bits 00…0303020100Counter 0
Bits 08…11
(10…13)
Bit 12 (14)Input A filter bit (AF) – 0 = not filtered; 1 = apply filter to input
Bit 13 (15)Input B filter bit (BF) – 0 = not filtered; 1 = apply filter to input
Bit 14 (16)Input Z filter bit (ZF) – 0 = not filtered; 1 = apply filter to input
Bit 15 (17)Set to 0.
Time base – Sets the fundamental time base for both counters. Resolution in ms, with a minimum of 10 ms intervals
(10 ms = 10; 1 s = 1000).
Time base must be entered when PWM and rate measurement are configured. The maximum programmed
value is 3000.
Channel 0 Gate interval – Sets the individual counter gate interval using the time base setting as its time unit.
Actual gate interval is time base X gate interval (for instance, time base of 10 X gate interval of 5 = 50 ms). Maximum
value is 3 s.
Gate interval must be entered when PWM and rate measurement are configured.
Channel 1 Gate interval – Sets the individual counter gate interval using the time base setting as its time unit.
Actual gate interval is time base X gate interval (for instance, time base of 10 X gate interval of 5 = 50 ms). Maximum
value is 3 s.
Gate interval must be entered when PWM and rate measurement are configured.
Do not use – reserved.
Channel 0 Rollover – Sets the number of counts the counter accumulates before rolling over. For example, a setting
of 1000 produces a count sequence of 998, 999, 0, 1, 2... while incrementing; and 2, 1, 0, 999, 998... while
decrementing. Rollover is a 32-bit number with a usable range of 16,777,216. In PWM, this value is zero; in count, X1
encoder, X2 encoder and X4 encoder configurations, it must be some specified nonzero number. The value doesn.t
matter in period/rate, continuous/rate and rate measurement configurations.
Channel 1 Rollover – Sets the number of counts the counter accumulates before rolling over. For example, a setting
of 1000 produces a count sequence of 998, 999, 0, 1, 2... while incrementing; and 2, 1, 0, 999, 998... while
decrementing. Rollover is a 32-bit number with a usable range of 16,777,216. In PWM, this value is zero; in count, X1
encoder, X2 encoder and X4 encoder configurations, it must be some specified nonzero number. The value doesn.t
matter in period/rate, continuous/rate and rate measurement configurations.
Channel 0 Preset – This word sets the preset value the counter is loaded with when CP is asserted. This number has
a range of 0 ≤ value ≤ 16,777,216.
Channel 1 Preset – This word sets the preset value the counter is loaded with when CP is asserted. This number has
a range of 0 ≤
value ≤ 16,777,216.
Counter 1
Rockwell Automation Publication 1794-UM010D-EN-E - July 201343
Communicate With Your Module
Configuration Word Definition
Configuration
Word
Word 14Bits 00…15
Word 15Bits 00…15
BitDefinition
(00…17)
00ZFmins (frequency at which the 24-bit counter overflows) = 0.149 Hz
01Z/2Fmins (frequency at which the 24-bit counter overflows) = 0.298 Hz
02Z/4Fmins (frequency at which the 24-bit counter overflows) = 0.596 Hz
03Z/8Fmins (frequency at which the 24-bit counter overflows) = 1.192 Hz
04Z/16Fmins (frequency at which the 24-bit counter overflows) = 2.384 Hz
05Z/32Fmins (frequency at which the 24-bit counter overflows) = 4.768 Hz
06Z/64Fmins (frequency at which the 24-bit counter overflows) = 9.537 Hz
07Z/128Fmins (frequency at which the 24-bit counter overflows) = 19.073 Hz
(00…17)
00ZFmins (frequency at which the 24-bit counter overflows) = 0.149 Hz
01Z/2Fmins (frequency at which the 24-bit counter overflows) = 0.298 Hz
02Z/4Fmins (frequency at which the 24-bit counter overflows) = 0.596 Hz
03Z/8Fmins (frequency at which the 24-bit counter overflows) = 1.192 Hz
04Z/16Fmins (frequency at which the 24-bit counter overflows) = 2.384 Hz
05Z/32Fmins (frequency at which the 24-bit counter overflows) = 4.768 Hz
06Z/64Fmins (frequency at which the 24-bit counter overflows) = 9.537 Hz
07Z/128Fmins (frequency at which the 24-bit counter overflows) = 19.073 Hz
Channel 0 Scaler – This word scales the Z signal in period/rate and continuous/rate modes. If the filter is
applied, the filtered Z signal is scaled. Set only 1 bit of the Scaler.
Selecting a Scaler causes accumulated counts to be adjusted accordingly (for instance, selecting a Scaler of 128
increases the accumulated count by 128 after 128 Z pulses have been received).
We recommend using the filter to reduce erroneous frequency readings any time you use the Scaler on the
Z input.
Channel 1 Scaler – This word scales the Z signal in period/rate and continuous/rate modes. If the filter is
applied, the filtered Z signal is scaled. Set only 1 bit of the Scaler.
Selecting a Scaler causes accumulated counts to be adjusted accordingly (for instance, selecting a Scaler of 128
increases the accumulated count by 128 after 128 Z pulses have been received).
We recommend using the filter to reduce erroneous frequency readings any time you use the Scaler on the
Z input.
44Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Configuration Word Definition
Communicate With Your Module
Configuration
Word
Words 16…19Bits 00
Words 20…51Bits 00…15
Words 52…55Bits 00…15
BitDefinition
01
02
03
04
05
06
07
Bits 08…15
(10…17)
(00…17)
(00…17)
Output Ties – These bits connect the specified output to the appropriate compare window. There are 8 windows, 4 per
counter. Each output can be connected to any number of windows, from 1 to 8.
F1 = Tie output to first counter 1st window
F2 = Tie output to first counter 2nd window
F3 = Tie output to first counter 3rd window
F4 = Tie output to first counter 4th window
S1 = Tie output to second counter 1st window
S2 = Tie output to second counter 2nd window
S3 = Tie output to second counter 3rd window
S4 = Tie ouput to second counter 4th window
Set to 0.
Counter On and Off – These words program each of the 4 counter.s (first and second counter) on and off values. The
first compare window for each counter is used in PWM, and when programmed for PWM, the associated compare
window should remain at 0. The range of each entry is 0 ≤ value ≤ 16,777,215. When a tie is connected to a window
comparator, that window must be specified. These windows are always interpreted as counts, regardless of the
configuration setting, and can be computed as follows:
counts = (Scaler X 2.5E6)/desired frequency (for period/rate and continuous/rate)
counts = time base X desired frequency (for rate measurement)
Safe State Values – When the PLC transitions to PROG mode or a communication fault occurs, the module copies the
safe state words into its real time working buffer. The definitions are identical to the those in the counter control word,
except entering a PWM safe state value outside the range 0…9500 results in a Hold Last State.
Word 52 is Counter Control Safe State;
word 53 is Output Control Safe State;
word 54 is Channel 0 PWM Safe State
word 55 is Channel 1 PWM Safe State.
Chapter Summary
In this chapter you learned how to communicate with your module. Read the
next chapter to learn how to interpret the module LED status indicators.
Rockwell Automation Publication 1794-UM010D-EN-E - July 201345
Communicate With Your Module
46Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Chapter
VERY
HIGH SPEED COUNTER MODULE
1794-VHSC
ZBAZBA
Allen-Bradley
1OUT
3210
OUT0
A
B
45906
C
Interpret Status Indicators for your
FLEX I/O Module
4
Overview
Status Indicators
Use this chapter to troubleshoot the very high speed counter module by
interpreting the indicators.
The module contains indicators for each of the following:
1794-VHSC Module
A = Status Indicators –
A — Status of input A
B — Status of input B
Z — Status of gate input Z
The indicators are multiplexed in 2 groups (A0, B0, Z0, O0/O1; and A1, B1, Z1,
O2/O3) at a frequency of 488Hz. If inputs or outputs change at or near that
frequency, the associated indicator will vary in brightness.
B = Insertable label for writing individual I/O assignments.
Rockwell Automation Publication 1794-UM010D-EN-E - July 201347
C = Power/status indicator - indicates power applied to module and status
of module.
Interpret Status Indicators for your FLEX I/O Module
Use the following table to determine the indicator conditions and status.
Status Indicator Identification
IndicatorStateStatus
A (status of input A)YellowInput A active.
OffInput A not active.
B (status of input B)YellowInput B active.
OffInput B not active.
Z (status of input Z)YellowInput Z active.
OffInput Z not active.
Out O, 1, 2, 3YellowOutput is on.
OffIndividual output is off.
When an active indicator (yellow) is lighted, a valid signal (active high or active
low) is present at the input terminals.
The module power/status indicator (OK) shows power applied to the module,
and the status of the module.
Power/Status Indicator Interpretation
IndicatorStateStatus
OKSolid red• Hardware diagnostic error, TF set to 1 and
module/channel status contains error code.
• Hardware runtime failure (that is, watchdog timeout),
module communication ceases.
Flashing red• Module is configuring hardware, NR is set to 1.
• Module is in test mode (bits 8…15 of counter control
word are nonzero), TF set to 1.
Flashing red
(with occasional
flashing green)
Solid greenModule is active and acting normally.
Flashing green• Module is not configured.
Module 24V power is below minimum rating.
• Programming error, PE is set to 1 and error code is
supplied in bits 0…11 of module/channel status word.
• Field power fault, FP set to 1.
• Adapter powered down, and module local power
still active.
• ControlNet cable disconnected.
• PLC in PROG mode.
48Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Interpret Status Indicators for your FLEX I/O Module
Diagnostic Codes Returned
by the Module
If an incomplete, incorrect or conflicting set of configuration parameters are sent
to the module, the PE bit is asserted, the green module status indicator flashes,
and an error code is displayed in bits 0…11 of the module/channel status word.
These codes are identified below.
Diagnostics Reported by Input Data Word 8
Read WordBitIndication
Word 800A reserved configuration or mode was programmed.
01ZF/BF/AF were selected and no filter was programmed, or multiple
filters were selected.
02A timebase was entered that was not a multiple of 10, or the timebase is
out of range (>3000, that is 3 s).
03A configuration requiring a timebase was selected and no gate interval
was set, or the gate interval is out of range (>3 s) or the product of
timebase and gate interval is greater than 3 s.
04A rollover of zero was programmed through PWM was not selected; a
rollover was programmed and PWM was selected; or the rollover is out
of range (1 ≤ rollover ≤ 16,777,216).
Word05The preset (1 ≤ preset ≤ 16,777,216) is out of range.
06A configuration was selected that requires a scalar, and no scalar was
programmed or multiple scalars were selected.
07A tie has been connected to an unprogrammed window.
08Counter 0 window ON and OFF values are equal and not zero or counter
0 window ON and OFF value greater than 16,777,215.
09Counter 1 window ON and OFF values are equal and not zero or counter
1 window ON and OFF value greater than 16,777,215.
10Reserved
11
Chapter Summary
During hardware self-tests, when either FlexBus power or terminal base power is
first applied and a fatal error occurs, the TF bit is asserted and the red module
status indicator turns on. An error code is placed in the lower byte of the
module/channel status word to indicate the failed resource.
Error Code Definitions
Read Word Bit0201
Word 800…070
0
0
1
00Dec. Definition
011RAM test failed.
102ROM checksum test failed.
113EEPROM test failed.
004Programmable Gate Array
loading failed
All other combinations not used.
This chapter described how to troubleshoot your adapter module by interpreting
the status indicators and module/channel status word error codes.
Rockwell Automation Publication 1794-UM010D-EN-E - July 201349
Interpret Status Indicators for your FLEX I/O Module
Notes:
50Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
Specifications
Appendix
A
Overview
This appendix contains general and environmental specifications and
certifications for the FLEX I/O Very High Speed Counter Module
Input Specifications
AttributeValue
Number of input
channels
Number of inputs per
counter
Input voltage5V DC or 15…24V DC (Determined by terminal base terminations)
Input current5V DC terminations:
Voltage, input, off-state5V DC terminations: <
Current, input, off-state<
Voltage, input, on-state5V DC terminations: >2.6V DC
Current, input, on-state>5mA
Voltage, on-state, max5V DC terminations: ±6V
Input frequency, max1.0 MHz counter and encoder X1 (no filters)
Input filter selectionsOff, 10μs, 100μs, 1.0ms, 10.0ms per A/B/Z group
2
2 groups of A/A, B/B, and Z/Z pairs with 5V DC or
15…24V DC terminations
19.1 mA @ 5V DC
25.7 mA @ 6V DC
15…24V DC terminations:
6.1 mA @ 15V DC
10.2 mA @ 24V DC
1.25V DC
15…24V DC terminations: <1.8V DC
0.25 mA
15…24V DC terminations: >12.5V DC
15…24V DC terminations (Refer to Derating Curve)
500 kHz encoder X2 (no filters)
250 kHz endocer X4 (no filters)
.
Output Specifications
AttributeValue
Number of outputs2 isolated groups of 2:
Output controlOutputs can be tied to 8 compare windows
Voltage range, output
supply
Leakage current,
off-state
Voltage drop, on-state5V DC terminations: 0.9V DC @ 0.5 A
Rockwell Automation Publication 1794-UM010D-EN-E - July 201349
(0.5A @ 5V DC, max; 1.0A @ 12…24V DC, max)
5…7V DC; 10…31V DC
Less than 300 μA
12…24V DC terminations: 0.9V DC @ 1.0 A
Specifications
Output Specifications
AttributeValue
Current, on-state, max5V DC terminations: 0.5 A
12…24V DC terminations: 1.0 A
Current per
output pair, max
5V DC terminations: 0.5 A
12…24V DC terminations: 1.0 A
Short circuit current5V DC terminations: 0.9A
12…24V DC terminations: 4.0A
Outputs are short-circuit protected and turned off until power is cycled.
Surge current2A for 50 ms, repeatable every 2 s
Delay Time
Off to On
On to Off
25 μs (load dependent)
150 μs (load dependent)
General Specifications
AttributeValue
Module location1794-TB3G and 1794-TB3GS
External DC power supply
voltage range, nom
Supply voltage19.2…31.2V DC (includes 5% AC ripple)
Supply current100 mA @ 24V DC
Dimensions, HxWxD
(with module installed on
terminal base)
Isolation voltage50V (continuous), Basic Insulation Type, between six isolated areas
FlexBus current75 mA @ 5V DC (with terminal base power off)
Power dissipation, max5.0 W @ 31.2V DC
Thermal dissipation, max17.1 BTU/hr @ 31.2V DC
Indicators
(field side driven, logic
side indication)
Keyswitch position1
24V DC
94 x 94 x 69 mm
(3.7 x 3.7 x 2.7 in.)
including:
FlexBus
Module 24V DC power
A0/B0/Z0 inputs
A1/B1/Z1 inputs
00/01 and output power supply 1
02/03 and output power supply 2
Tested @ 850V DC for 1 s
1 green/red power/status indicator
6 yellow input status indicators – logic side
4 yellow output tatus indicators – logic side
50Rockwell Automation Publication 1794-UM010D-EN-E - July 2013
VibrationIEC60068-2-6 (Test Fc, Operating): 5g @ 10…500 Hz
Shock, operatingIEC60068-2-27 (Test Ea, Unpackaged shock): 30 g
Shock, nonoperatingEC60068-2-27 (Test Ea, Unpackaged shock): 50 g
EmissionsCISPR 11: Group 1, Class A (with appropriate enclosure)
ESD ImmunityIEC 61000-4-2:
Radiated RF immunityIEC 61000-4-3:
EFT/B immunityIEC 61000-4-4:
Surge transient immunityIEC 61000-4-5:
Conducted RF immunityIEC 61000-4-6:
Enclosure type ratingNone (open-style)
Wire sizeDetermined by installed terminal base
Wiring category
(1)
Terminal base screw
torque
(1)
Use this Conductor Category information for planning conductor routing. Refer to Industrial Automation Wiring
and Grounding Guidelines, publication 1770-4.1
10V/m with 1 kHz sine-wave 80% AM from 80…2000 MHz
10V/m with 200 Hz 50% Pulse 100% AM at 900 MHz
10V/m with 200 Hz 50% Pulse 100% AM at 1890 MHz
10V/m with 1 kHz sine-wave 80% AM from 2000…2700 MHz
±2 kV @ 5 kHz on power ports
±2 kV @ 5 kHz on signal ports
±1 kV line-line(DM) and ±2 kV line-earth(CM) on power ports
±1 kV line-line(DM) and ±2 kV line-earth(CM) on signal ports
±2 kV line-earth(CM) on shielded ports
10V rms with 1 kHz sine-wave 80%AM from 150 kHz…80 MHz
2 – on signal ports
2 – on power ports
Determined by installed terminal base
.
Rockwell Automation Publication 1794-UM010D-EN-E - July 201351
Specifications
0
10
0
20
30
10203040505560
25
24
29
The area within the curve represents the safe operating range for the module
under various conditions of user supplied 24V DC supply voltages and ambient
temperatures.
This includes all possible mounting positions, including inverted horizontal.
Ambient Temperature °C
Input
Voltage
(V)
45907
Certifications
Certification (when
product is marked)
Description
(1)
CEEuropean Union 2004/108/EC EMC Directive, compliant with:
EN 61326-1; Meas./Control/Lab., Industrial Requirements
EN 61000-6-2; Industrial Immunity
EN 61000-6-4; Industrial Emissions
EN 61131-2; Programmable Controllers (Clause 8, Zone A & B)
Rockwell Otomasyon Ticaret A.Ş., Kar Plaza İş Merkezi E Blok Kat:6 34752 İçerenköy, İstanbul, Tel: +90 (216) 5698400
Rockwell Automation Support
Rockwell Automation provides technical information on the Web to assist you in using its products.
http://www.rockwellautomation.com/support/, you can find technical manuals, a knowledge base of FAQs, technical and
At
application notes, sample code and links to software service packs, and a MySupport feature that you can customize to make
the best use of these tools.
For an additional level of technical phone support for installation, configuration, and troubleshooting, we offer
TechConnect support programs. For more information, contact your local distributor or Rockwell Automation
representative, or visit
Installation Assistance
If you experience a problem within the first 24 hours of installation, review the information that is contained in this
manual.
You can contact Customer Support for initial help in getting your product up and running.
United States or Canada1.440.646.3434
Outside United States or
Canada
http://www.rockwellautomation.com/support/.
Use the Worldwide Locator at http://www.rockwellautomation.com/support/americas/phone_en.html, or contact
your local Rockwell Automation representative.
New Product Satisfaction Return
Rockwell Automation tests all of its products to ensure that they are fully operational when shipped from the
manufacturing facility. However, if your product is not functioning and needs to be returned, follow these procedures.
United StatesContact your distributor. You must provide a Customer Support case number (call the phone number above to obtain
Outside United StatesPlease contact your local Rockwell Automation representative for the return procedure.
one) to your distributor to complete the return process.
Documentation Feedback
Your comments will help us serve your documentation needs better. If you have any suggestions on how to improve this
document, complete this form, publication
RA-DU002, available at http://www.rockwellautomation.com/literature/.
Rockwell Automation Publication 1794-UM010D-EN-E - July 2013