6 - application examples, Chapter 6, Application examples – Rockwell Automation 1746-HSCE2 Multi-Channel High Speed Counter Module User Manual
Page 93: Chapter
1
Publication 1746-UM002B-EN-P - August 2004
Chapter
6
Application Examples
This chapter contains the following application examples:
• Example 1 uses the 1746-HSCE2 in Class 1, mode 3 to count four
single-ended, high-speed pulse train inputs using direct
addressing only (SLC 5/01™ or SLC 5/02™).
• Example 2 tracks counts and speeds from two quadrature
encoders with indirect addressing (SLC 5/03™ and above). The
module is used in Class 4, mode 1.
• Example 3 uses the 1746-HSCE2 in Class 1, mode 3 to count two
single-ended, high-speed inputs with indexed addressing and
the multi-channel high speed counter in a remote I/O chassis
(PLC-5
®
scanner).
• Example 4 illustrates the use of soft presets, expanding on
Example 2.
• Example 5 changes presets dynamically using the min/max
count block and working from the Example 2 program.
• Example 6 shows how you can use the Min/max Count block
preset value to simulate retentive counters, by modifying the
Example 2 program.
In these examples, if a programming error occurs (PERR = 1), the
error bit (B3:0/1) is set, and N11:0 points to the configuration block
that was last sent to the module.
The data tables follow the ladder logic. The N10 data table is in hex
format to improve readability.
TIP
Any parameters which are defaults (see
Programming Block Default Values on page 4-28)
need not be programmed. For example, if you want
all the default values of Class 4 operation, then you
only need to configure the module as Class 4 and
send a Counter Control block to enable the counters.