background image

User

Manual

Encoder/Counter

Modules

(Cat. Nos. 1771ĆIJ and 1771ĆIK)

AllenĆBradley

Summary of Contents for Allen-Bradley 1771-IJ

Page 1: ...User Manual Encoder Counter Modules Cat Nos 1771 IJ and 1771 IK Allen Bradley...

Page 2: ...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...

Page 3: ...ntroduction 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 Ho...

Page 4: ...lines 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 el...

Page 5: ...Using This Manual P 3 Publication 1771 UM006B EN P June 2002 This preface gave you information on how to use this manual efficiently Summary...

Page 6: ...Using This Manual P 4 Publication 1771 UM006B EN P June 2002...

Page 7: ...odule Placement 3 2 Recommended Cable 3 2 Shielded Cable 3 4 Keying 3 5 Specifications 3 5 Chapter 4 General 4 1 Outputs Words 4 2 Input Status Word 4 2 Chapter 5 General 5 1 Output Words Single Trans...

Page 8: ...rd 6 1 Preset Words 6 4 Example Block Transfer Programs 6 5 PLC 2 Family Processors 6 5 Rung Descriptions 6 6 PLC 3 Family Processors 6 7 PLC 5 Family Processors 6 9 Chapter 7 Extending the Count Beyo...

Page 9: ...disregard chapter 6 on block transfer Block transfer programming Use block transfer any time If using block transfer disregard chapter 5 on single transfer The encoder counter module maintains a coun...

Page 10: ...tionally 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 chann...

Page 11: ...s when the module detects a fault Figure 1 2 Red LED Status Indicators Channel A Channel B Marker Limit Output 1 Output 2 Fault 15943 When system power is turned on the module runs a self test During...

Page 12: ...drive output devices from a separate load supply using the output on the module only as a switch When the output is on and conducting a maximum of 0 5V dc is dropped across it The load supply voltage...

Page 13: ...chassis This type of programming shifts a single word of data each program scan from the processor s data table to the module It therefore takes three program scans to send a new control word and the...

Page 14: ...ons of the status word and the preset values must account for the multipliers The count resolution setting may also be limited by the program scan time if the carry or borrow bits are used to cascade...

Page 15: ...ord or an external switch wired to channel B Channel B must be left unconnected if the count direction is to be software controlled Typical input device counting might be high speed static switches an...

Page 16: ...ts a voltage of 2 4V dc or above at either channel as logic 1 or true A voltage below 0 6V dc is considered as logic 0 or false Table 2 C Input Configuration Switch Assembly 1771 IJ SW 2 1 2 3 Marker...

Page 17: ...f devices that will operate in the 12 to 24V dc range Figure 2 2 Since most high voltage quadrature encoder outputs produce signals through an open collector output the module is configured for a pull...

Page 18: ...B input and the marker input are for open collector encoder drivers the channel B input has an internal pull up and are not switch selectable The marker input reads a signal as high true The limit swi...

Page 19: ...channel B input changes state Refer to the connection diagrams Figures 3 1 and 3 2 for interfacing different devices Switch assembly settings these features are selected on two switch assemblies that...

Page 20: ...f a ball point pen can be used to set the rocker arm of a switch Do not use a pencil because the point can break off and jam the switch 4 Set the three switches of SW 2 Table 2 E according to the inpu...

Page 21: ...o prevent personal injury resulting from accessibility to live parts The interior of the enclosure must be accessible only by the use of a tool Subsequent sections of this publication may contain addi...

Page 22: ...group low voltage input modules together within a single I O chassis whenever possible WARNING Remove power from the I O chassis backplane and wiring arm before removing or installing a module Failur...

Page 23: ...y Not Assigned Input Device Power Limit Switch Output 2 Output Return 15948 1 2 3 4 5 6 7 8 9 10 11 12 1 2 3 4 5 6 7 8 9 10 11 12 If multiple power sources are used maintain isolation between supplies...

Page 24: ...lated Power Supply If necessary If multiple power sources are used maintain isolation between supplies Output 2 Note Use isolated external supplies as shown here or use a single supply as shown on fig...

Page 25: ...to be keyed Snap the keying bands on the upper backplane connectors between these numbers printed on the backplane Table 3 A Keying is different for the 1771 IJ and the 1771 IK Table 3 A Module Keying...

Page 26: ...3 6 Installation Publication 1771 UM006B EN P June 2002...

Page 27: ...gramming techniques are used to coordinate and control this bidirectional data transfer Complete 16 bit words are transferred between the module and the processor The processor sends up to 3 words of...

Page 28: ...the module differ depending on whether single transfer or block transfer programming is used In addition the bit by bit significance of these words is dependent on the data transfer method used For t...

Page 29: ...the diagnostic bit is set to 1 if the module has detected a fault in its own operation normally this bit is 0 Bits 15 and 16 are the carry and borrow bits respectively These bits indicate whether the...

Page 30: ...4 4 Module Processor Communication Publication 1771 UM006B EN P June 2002...

Page 31: ...methods Section titled Single Transfer Description gives a general description of how single transfer programming works and an example for applications where no preset words are required Section titl...

Page 32: ...10 11 Function Control see table Bits 00 02 Comparison Parameters for Preset 1 1 True 0 False Bits 03 05 Comparison Parameters for Preset 2 1 True 0 False Counter Mode Only Bit 13 Up Down 1 Count Up 0...

Page 33: ...enabled or reset by the program The table in Figure 5 1 shows the bit settings for each function Bit 07 is the home latch enable bit The module resets the count to zero only when all three of these c...

Page 34: ...han one of these bits can be set to 1 for each preset allowing such combinations as less than or equal to greater than or equal to or not equal to Preset Words In single transfer communication the pre...

Page 35: ...e word output to the module If non BCD digits are entered in a preset value the module sets its default preset value to 000 for the word Single transfer programming uses the I O scan for bidirectional...

Page 36: ...le Module Position Image Table Word Relationship 1 2 3 4 5 6 7 8 Output Word 016 Input Word 116 Output Word Written to Module 16 bits Input Word Read from Module 16 Bits Encoder Counter Module in I O...

Page 37: ...ngs No Preset Words Used Figure 5 5 illustrates a typical example in which bidirectional single transfer occurs assuming that no preset words are used This example assumes the module placement shown i...

Page 38: ...l when one or more preset words are needed Multiplexing requires an orderly sequencing of events in the program The program must coordinate control of the output image table word such Multiplexing req...

Page 39: ...Family Processors describes a suitable scan counter for these processors With the PLC processor however the I O scan and program scan are asynchronous this means that the scan counter must be programm...

Page 40: ...itself is always false sets the conditions for the counter as false Because an up counter CTU increments for each false to true transition CTU 030 registers one count each time the program scan occur...

Page 41: ...unter module is placed in module group 7 and unused input in module group 0 would be appropriate for this purpose Note that the I O rack number is of no consequence in selecting this bit The second co...

Page 42: ...ut words to the encoder counter module This example uses the type of scan counter recommended for PLC 2 processors However the general format of these rungs would be the same for a PLC processor with...

Page 43: ...module group 2 Output control word is stored in word 051 Preset words 1 and 2 are stored in words 052 and 053 respectively The scan counter is recycled as shown in rung 6 This allows continuous update...

Page 44: ...5 14 Single Transfer Programming Publication 1771 UM006B EN P June 2002...

Page 45: ...techniques can be the easiest to use in any application where only a single output control word must be sent to the module For this reason when not using any of the preset words use single transfer pr...

Page 46: ...tion Control See Table Bit 03 Up down 1 count up 0 count down Significant in counter mode only Bit 02 Enable outputs 1 Enable 0 Disable Bit 04 Home Latch Enable 1 Enable 0 Disable Bits 05 17 Not used...

Page 47: ...ements its accumulated count with each pulse received on Channel A 0 The module decrements its accumulated count with each pulse received on channel A Note that if a device is wired to the Channel B i...

Page 48: ...ether bits 00 13 are of binary or BCD format Note If BCD operation has been selected only BCD digits should be entered in the data table word output to the module If non BCD digits are entered in a pr...

Page 49: ...the processor s data table with a block transfer read BTR instruction You transfer data to your module from the processor s data table with a block transfer write BTW instruction PLC 2 Family Process...

Page 50: ...sfer communications fault should occur Figure 6 4 Example Ladder Logic for PLC 2 Block Transfer 010 EN 16 110 DN 16 010 EN 17 110 DN 17 0053 EN 17 0053 DN 15 110 17 1 2 15963 BLOCK XFER WRITE DATAADDR...

Page 51: ...cution of BTR and BTW instructions The processor checks data validity before accepting read data and sets one enable bit at a time Refer to Figure 6 5 for generalized ladder logic and to Figure 6 6 fo...

Page 52: ...H FB002 0150 0 FB001 0030 BTR BLOCK XFER READ RACK GROUP MODULE DATA LENGTH CNTL 002 1 1 HIGH FB002 0220 0 FB001 0020 Rung Descriptions Rung 1 Rung one is true only at power up It uses status word 3 b...

Page 53: ...le Ladder logic alternates the execution of BTR and BTW instructions The processor checks data validity before accepting read data and sets one enable bit at a time Refer to Figure 6 7 for generalized...

Page 54: ...trol Block 0 0 0 N11 10 DN Data File Length Continuous N11 15 0 N ER File 2 Rung 0 File 2 Rung 1 15965 N10 10 15 N11 10 15 Rung Descriptions Rungs 0 and 1 Rungs 0 and 1 execute BTW and BTR instruction...

Page 55: ...3 family processors Both programs Figure 7 1 and Figure 7 2 extend the count beyond 999 4095 binary in the same manner Either program compares the new count value with the value in the previous scan o...

Page 56: ...ZERO THEN INCREMENT THE COUNT THE CONSTANT MUST BE LESS THAN 1 2 THE TOTAL COUNTS OF THE IJ IK HALF OF 999 OR 4095 0076 00 0077 16 Ctu 0052 Pre 999 ZERO NEGATIVE VALUE DIFF DIGITS SIGNIF MOST AFTER PA...

Page 57: ...RUNG NUMBER RM3 MVM MOVE WITH MASK A WB002 0200 0110000101011100 B WB005 0000 000011111111111111 R WB005 0001 0000000101011100 MOV MOVE FROM A TO R A WB005 0001 0000000101011100 R WN005 0000 348 LES A...

Page 58: ...he old count value from the new value and stores the difference with its sign A New count value B Old count value R Difference of new count value less old value Rung 2 This rung looks at the sign and...

Page 59: ...ation 1771 IJ 22 9 BTU hr 1771 IK External Supply Vext 12 24V dc Input circuits require 170mA maximum Output circuits require 1 08A maximum Input Ratings 0 Vin Vext For Vext 12V dc Vih 7 2V dc max Vil...

Page 60: ...F 40 to 85 C Relative Humidity IEC 60068 2 30 Test Db Unpackaged Nonoperating Damp Heat 5 to 95 noncondensing Shock Operating Nonoperating IEC 60068 2 27 Test Ea Unpackaged Shock 30g 50g Vibration IEC...

Page 61: ...nt CE2 European Union 89 336 EEC EMC Directive compliant with EN 61000 6 4 Industrial Emissions EN 50082 2 Industrial Immunity EN 61000 6 2 Industrial Immunity EN 61326 Meas Control Lab Industrial Req...

Page 62: ...Specifications A 4 Publication 1794 UM006B EN P June 2002...

Page 63: ...5 E encoder counter general description 1 1 encoder counter selection 2 2 example block transfer programs 6 5 single transfer no preset words 5 7 PLC 2 5 12 external power requirements 1 4 I indicator...

Page 64: ...2002 S scan counter PLC 2 5 9 selection cable 3 2 encoder counter 2 2 setting switches 2 7 single transfer bit description 5 2 output words 5 1 preset words 5 4 status indicators 1 3 switch data form...

Page 65: ...al accessibility info not in manual text illustration Technical Accuracy Completeness What information is missing Clarity Sequence What is not in the right order What is unclear Other Comments Use bac...

Page 66: ...CESSARY IF MAILED IN THE UNITED STATES BUSINESS REPLY MAIL FIRST CLASS MAIL PERMIT NO 18235 CLEVELAND OH POSTAGE WILL BE PAID BY THE ADDRESSEE TECHNICAL COMMUNICATION 1 ALLEN BRADLEY DR MAYFIELD HEIGH...

Page 67: ...and 24 hour emergency hotline software and documentation updates technical subscription services Engineering and Field Services application engineering assistance integration and start up assistance...

Page 68: ...Publication 1771 UM006B EN P June 2002 Supersedes publication 1771 6 5 6 May 1988 and 1771 6 5 6 RN1 November 1995 PN957678 18 Copyright 2002 Rockwell Automation Inc Printed in USA...

Reviews: