Rockwell Automation 1769-HSC Compact High Speed Counter Module User Manual

Page 148

Advertising
background image

148

Rockwell Automation Publication 1769-UM006E-EN-P - July 2013

Appendix C

Program a 1769-HSC Module, MicroLogix 1500 Controller, and 845F Incremental Encoder with RSLogix 500 Software

Monitor the Current Count
and Verify Output Operation

No program logic is needed for this example. Use these steps to monitor the
count and verify the output operation.

1. Save the program and download it to your controller.

2. Put the controller into Run mode.

3. Spin the shaft on your 845F encoder.

Input words 4 and 5, Current Count, display the current count data for
Counter #0 of the 1769-HSC module. In this example, this count is the
number of pulses received from the encoder times four (Quadrature
Encoder X4 is the operating mode).

4. Continue to spin the encoder shaft until the current count value is within

the limits set for Range 0 (500,000–600,000).

Output 0 turns On only when the current count value is equal to or within
the Range 0 limits. Output 1 turns On only when the Current Count value
is equal to or within the Range 1 limits (1,000,000–1,200,000). These two
outputs are Off for all other values of the Current Count for Counter 0.

You can also use a CPW instruction to monitor 32-bit values via ladder logic.

Advertising