Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 1 of 7

Encoder/Counter Modules User Manual (Cat. Nos. 1771-IJ and 1771-IK), pages 1 to 10

Pages 1 to 10 of 68

The original document is the PDF (388 KB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Allen-Bradley 1771-IK

Page 1 read from a scan by OCR; it may hold reading errors

wy

Allen-Bradley

Encoder/Counter Modules User

(Cat. Nos. 1771-IJ and 1771-IK) Ni a n U al

Page 2

DeviceNet, DeviceNetManager, and RediSTATION are trademarks of Allen-Bradley Company, Inc. PLC, PLC–2, PLC–3, and PLC–5 are registered trademarks of Allen-Bradley Company, Inc. Windows is a trademark of Microsoft. Microsoft is a registered trademark of Microsoft IBM is a registered trademark of International Business Machines, Incorporated. All other brand and product names are trademarks or registered trademarks of their respective companies.

Page 3

Preface

Using This Manual Preface Objectives

Read this preface to familiarize yourself with this manual and to learn how to use it properly and efficiently.

Audience

We assume that you have previously used an Allen-Bradley programmable controller, that you are familiar with its features, and that you are familiar with the terminology we use. If not, read the user manual for your processor before reading this manual.

Vocabulary

In this manual, we refer to:

• the individual encoder counter module as the “module.” • the programmable controller as the “controller” or the “processor.”

What This Manual Contains

The contents of this manual are as follows: Chapter

Title

What's Covered

1

Introduction

General overview of the modules

2

Preliminary Adjustments

Setting the switches and understanding the operation

3

Installation

How to install the modules

4

Module/Processor Communication

How the module communicates with the processor

5

Single Transfer Programming

How to transfer information with single transfer programming

6

Block Transfer Programming

How to transfer information with block transfer programming

7

Special Programming

Special programs to extend the count beyond 999

Specifications

Module specifications

Appendix A

Conventions

We use these conventions in this manual: In this manual, we show:

Like this:

that there is more information about a topic in another chapter in this manual that there is more information about the topic in another manual

More

Publication 1771-UM006B-EN-P - June 2002

Page 4

P–2

Using This Manual

Important User Information

Because of the variety of uses for the products described in this publication, those responsible for the application and use of these products must satisfy themselves that all necessary steps have been taken to assure that each application and use meets all performance and safety requirements, including any applicable laws, regulations, codes and standards. In no event will Rockwell Automation be responsible or liable for indirect or consequential damage resulting from the use or application of these products. Any illustrations, charts, sample programs, and layout examples shown in this publication are intended solely for purposes of example. Since there are many variables and requirements associated with any particular installation, Rockwell Automation does not assume responsibility or liability (to include intellectual property liability) for actual use based upon the examples shown in this publication. Allen–Bradley publication SGI–1.1, Safety Guidelines for Application, Installation, and Maintenance of Solid–State Control (available from your local Rockwell Automation office), describes some important differences between solid–state equipment and electromechanical devices that should be taken into consideration when applying products such as those described in this publication. Reproduction of the contents of this copyrighted publication, in whole or part, without written permission of Rockwell Automation, is prohibited. Throughout this publication, notes may be used to make you aware of safety considerations. The following annotations and their accompanying statements help you to identify a potential hazard. avoid a potential hazard, and recognize the consequences of a potential hazard. 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.

Identifies information about practices or ATTENTION circumstances that may lead to personal injury or death, property damage, or economic loss.

! Identifies information that is critical for IMPORTANT successful application and understanding of the product.

Publication 1771-UM006B-EN-P - June 2002

Page 5

Using This Manual

Summary

P–3

This preface gave you information on how to use this manual efficiently.

Publication 1771-UM006B-EN-P - June 2002

Page 6

P–4

Using This Manual

Publication 1771-UM006B-EN-P - June 2002

Page 7

Table of Contents

Introduction

Chapter 1 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Status Indicators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . External Power . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Preliminary Adjustments

Chapter 2 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Block Transfer/Single Transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . Count Resolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Encoder Counter Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Binary/BCD Data Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1771-IJ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1771-IK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Setting Switch Assemblies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Installation

1-1 1-1 1-3 1-4 1-4

2-1 2-1 2-2 2-2 2-4 2-4 2-5 2-7

Chapter 3 Environment and Enclosure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Module Placement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Recommended Cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Shielded Cable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Keying . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Module/Processor Communication

Chapter 4

Single Transfer Programming

Chapter 5

General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Outputs Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Input Status Word . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Words Ć Single Transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Control Word . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Preset Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Single Transfer Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example Rungs Ć No Preset Words Used . . . . . . . . . . . . . . . . . . Multiplexing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Scan Counter Ć PLC-2 Family Processors . . . . . . . . . . . . . . . . . Scan Counter Ć PLC Processor . . . . . . . . . . . . . . . . . . . . . . . . . Example Program Ć Single Transfer . . . . . . . . . . . . . . . . . . . . . . . .

3-1 3-2 3-2 3-4 3-5 3-5

4-1 4-2 4-2

5-1 5-1 5-1 5-4 5-5 5-7 5-8 5-9 5-10 5-12

Publication 1771-UM006B-EN-P - June 2002

Page 8

toc-ii

Table of Contents

Block Transfer Programming

Chapter 6 General . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Words - Block Transfer . . . . . . . . . . . . . . . . . . . . . . . . . . . Output Control Word . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Preset Words . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Example Block Transfer Programs . . . . . . . . . . . . . . . . . . . . . . . . PLC-2 Family Processors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Rung Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PLC-3 Family Processors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PLC-5 Family Processors . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Special Programming

Chapter 7 Extending the Count Beyond 999 . . . . . . . . . . . . . . . . . . . . . . . . . Rung Descriptions (Figure 7.2) . . . . . . . . . . . . . . . . . . . . . . .

Specifications

7-1 7-4

Appendix A Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Publication 1771-UM006B-EN-P - June 2002

6-1 6-1 6-1 6-4 6-5 6-5 6-6 6-7 6-9

A-1

Page 9

Chapter

1

Introduction General

This publication describes installation, adjustments and the programming necessary for communication between the Encoder/Counter Module (cat. no. 1771-IJ,-IK) and a programmable controller processor. The programming techniques given here enable the processor to direct the operation of the encoder/counter module and to monitor its status. The encoder/counter module can be used with any Allen-Bradley processor that uses the 1771 I/O structure. Depending on the intended use of the encoder/counter module, two different programming methods can be used. These methods are:

• Single transfer programming Use single transfer only if the module is in a local I/O chassis and generally when not using preset words. (If using preset words with single transfer, you must use multiplexing as described in section titled Multiplexing in Chapter 5). If using single transfer, disregard chapter 6 on block transfer. • Block transfer programming Use block transfer any time. If using block transfer, disregard chapter 5 on single transfer.

General Description

The encoder/counter module maintains a count, independent of the processor, of input pulses that typically originate from such devices as quadrature type encoders, high speed optical beam counters, and certain types of switches. The module (Figure 1.1) is capable of making decisions based on the count total by comparing it to previously programmed values and activating either one or both of its outputs based on the results of the comparison. The module can also return the accumulated count to the processor for arithmetic computations or display. The module also provides inputs for a marker signal from an encoder and a voltage level signal from a limit switch to allow for home positioning. In the count mode, the direction of the count can be changed either from the processor or, for speed critical application, at the module itself through an external switch. The maximum detectable input pulse frequency of the module is 50kHz.

Publication 1771-UM006B-EN-P - June 2002

Page 10

1–2

Introduction

Figure 1.1 Encoder Counter Module (cat. no. 1771-IJ/IK) Slotted for I/O Insertion Only Brown Identification Label Status indicators

Protective Cover

Label Identifies User Output Connections

Field Wiring Arm Connects Here

15942

The module will count in either BCD or binary numbers. In the BCD mode, the range is 000 to 999 with carry and borrow bits provided to cascade counters in the program. The binary mode allows a higher count total, with a range of 0000 to 409510, but the number appears at the processor in binary. Additionally, the module can improve the accuracy of certain quadrature type of encoders by adding the count at both channel A and channel B (times 2 mode), or by counting the rising and falling of both channel inputs to give a fourfold increase in the count (times 4 mode). The encoder/counter module is available in two versions:

• cat. no. 1771-IJ - uses a 5V dc external power supply that allows inputs to be TTL compatible. Outputs can either be driven from the 5V dc supply through the module or from a separate load supply of a different voltage. • cat. no. 1771-IK - uses a 12-24V dc external power supply. Input devices should be compatible with the voltage of the external power supply. Outputs can be driven either from the external supply through the module or from a separate load supply.

Publication 1771-UM006B-EN-P - June 2002