The text of a manual · part 3 of 7
Encoder/Counter Modules User Manual (Cat. Nos. 1771-IJ and 1771-IK), pages 21 to 30
Pages 21 to 30 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 21
Chapter
3
Installation Environment and Enclosure ATTENTION
!
Environment and Enclosure This equipment is intended for use in a Pollution Degree 2 industrial environment, in overvoltage Category II applications (as defined in IEC publication 60664–1), at altitudes up to 2000 meters without derating. This equipment is considered Group 1, Class A industrial equipment according to IEC/CISPR Publication 11. Without appropriate precautions, there may be potential difficulties ensuring electromagnetic compatibility in other environments due to conducted as well as radiated disturbance. This equipment is supplied as “open type” equipment. It must be mounted within an enclosure that is suitably designed for those specific environmental conditions that will be present, and appropriately designed to 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 additional information regarding specific enclosure type ratings that are required to comply with certain product safety certifications. See NEMA Standards publication 250 and IEC publication 60529, as applicable, for explanations of the degrees of protection provided by different types of enclosures. Also, see the appropriate sections in this publication, as well as the Allen–Bradley publication 1770–4.1, (“Industrial Automation Wiring and Grounding Guidelines”), for additional installation requirements pertaining to this equipment.
The 1771-IJ and 1771-IK are modular components of the 1771 I/O system and require a properly installed system chassis. Refer to publication 1771–IN075 for detailed information on acceptable chassis and proper installation and grounding requirements.
Publication 1771-UM006B-EN-P - June 2002
Page 22
3–2
Installation
ATTENTION
!
Preventing Electrostatic Discharge This equipment is sensitive to electrostatic discharge, which can cause internal damage and affect normal operation. Follow these guidelines when you handle this equipment:
• Touch a grounded object to discharge • • • • •
Module Placement
The module may be placed in any 1771 I/O chassis. However, the module must only be inserted in a single module group; it cannot straddle two groups. To minimize noise, group low voltage input modules together within a single I/O chassis whenever possible. WARNING
!
Recommended Cable potential static. Wear an approved grounding wriststrap. Do not touch connectors or pins on component boards. Do not touch circuit components inside the equipment. If available, use a static–safe workstation. When not in use, keep modules in appropriate static–safe packaging.
Remove power from the I/O chassis backplane and wiring arm before removing or installing a module.
• Failure to remove power from the backplane could cause unexpected machine operation with possible damage to equipment or injury to personnel. It could also damage the module or degrade performance. • Failure to remove power from the wiring arm could damage the module or degrade performance.
Use the proper cable to connect the input devices to the module field wiring arm. Follow the appropriate connection diagram (Figure 3.1 and Figure 3.2). Input devices cannot be more than 40 cable feet from the module. Use Belden 8761 cable for pulse counter applications with a signal below 20K Hz; use Belden 9182 cable for frequencies up to 50k Hz. Use Belden 8725 cabe (4-twisted pair cable) for encoder applications below 20k Hz.
Publication 1771-UM006B-EN-P - June 2002
Page 23
Installation
3–3
Figure 3.1 Connection Diagram Showing Typical 1771-IJ Encoder Application Output #1 TTL Load Output
Channel A
TTL Output Encoder
Common Channel B Common Marker Common
Not Assigned
(At I/O Rack Chassis)
Limit Switch
+
1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
10
10
11
11
12
12
12-48V dc Power Supply
Output Return Output #2 TTL Load Out pu t Device Not Assigned
Input Device Power
+
5V dc Module External Power Supply
Note: Use a single external supply as shown here, or use an additional isolated supply as shown on figure 3.2. Note: The module must be placed in a single module group (0-1). 15948
If multiple power sources are used, maintain isolation between supplies.
If you use the limit switch, you must use shielded cable such as Belden 8761 or 9182 for cabling.
Publication 1771-UM006B-EN-P - June 2002
Page 24
3–4
Installation
Figure 3.2 Connection Diagram Showing Typical 1771-IK Counter Applications with External Count Direction Output #1 Channel A
Counter Device
Common Channel B Common Marker Common
Not Assigned Transistor Switch
Ground at I/O Chassis Only
Limit Switch Common dc Load 12-24V 1
1
2
2
3
3
4
4
5
5
6
6
7
7
8
8
9
9
10
10
11
11
12
12
Output #2 dc Load 12-24V Not Assigned
12-24V dc Isolated Power Supply If necessary
+
12-24V dc Module External Power Supply If multiple power sources are used, maintain isolation between supplies. Note: The module must be placed in a single module group (0-1). Note: Use isolated external supplies as shown here, or use a single supply as shown on figure 3.1.
Shielded Cable
Publication 1771-UM006B-EN-P - June 2002
15949
The cable has a foil shield with a bare drain wire. The drain wire should be connected to the enclosure ground at an I/O chassis mounting bolt or stud. Connect the drain wire at only one end. The foil and drain at the other end of the cable, which connects to the device, should be cut short and taped back to insulate it from any electrical contact.
Page 25
Installation
Keying
3–5
Plastic keying bands provide an easy method for keying an I/O slot to accept only one type of module. Use of keying bands is strongly recommended to prevent accidental insertion of the wrong type of module. The module is slotted in two places on its rear edge. The position of the keying bands on the backplane connector must correspond to these slots to allow insertion of the module. Because the module uses two slots, both slots have 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 Module
Left Connector
Right Connector
1771-IJ
6 and 8 18 and 20
4 and 6 32 and 34
1771-IK
6 and 8 20 and 22
4 and 6 32 and 34
Insert the module in a single module group (slots IMPORTANT 0 and 1). It must not straddle two module groups.
The position of the these keying bands may be changed if subsequent system design and rewiring makes insertion of a different type of module necessary.
Specifications
Complete specifications for the 1771-IJ and -IK modules are contained in Appendix A.
Publication 1771-UM006B-EN-P - June 2002
Page 26
3–6
Installation
Publication 1771-UM006B-EN-P - June 2002
Page 27
4
Chapter
Module/Processor Communication General
Communication between the processor and the encoder/counter module is bidirectional. This means that information is transferred to and from the module: the processor instructs the module to perform specific functions and may provide values to be compared on the module and used for output control; the module transmits its accumulated count and other status information to the processor. Because both input and output data are transmitted between this module and the processor, special programming 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 data to the encoder/counter module: Control word Preset word #1 Preset word #2 These are termed the output words since they are output with respect to the program. The encoder/counter module sends a status word to the processor. Figure 4.1 shows the transfer of output and input words in bidirectional module/processor communication, described in the following paragraphs. Figure 4.1 Bidirectional Module/Processor Communication
Optional
Control Word Preset Word #1 Preset Word #2
Status Word
Output Words
Input Words Encoder/Counter Module, Cat. No. 1771-IJ/IK
15950
Publication 1771-UM006B-EN-P - June 2002
Page 28
4–2
Module/Processor Communication
Outputs Words
The program controls encoder/counter module operation through the output words. These words function as follows:
• Control word – the control word, as its name implies, instructs the module on its operation and on control of its own outputs. By setting specific control word bits, you set up the module’s initial mode of operation and can subsequently alter module operation as the application requires. • Preset words #1 and #2 – the optional preset words are values that can be used for comparison by the module. When these words are used, the module controls its own output based on comparison between its accumulated count preset values. You can use these words to direct module control of its own output terminals, independent of the timing of the processor I/O and program scans. Stored in the data table, these output words are sent to the module as controlled by the program. The storage and transmission of these words to 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 this reason, specific information on the storage and composition of these words is given separately in the following chapters which describe each programming method.
Input Status Word
The input status word is the single input word received from the encoder/counter module. This word has the same format for both block and single transfer programming. The input status word has the format of Figure 4.2. Figure 4.2 Input Status Word - Single Transfer and Block Transfer Bit 17, home bit Set to 1 when: Marker input high and limit switch input TRUE and Home latch enable bit is set ON in control word
Module Accumulated Count 17 16 15 14 13 12 11 10 07 06 05 04 03 02 01 00
Bit 16, carry bit Bit 15, borrow bit Bit 14, diagnostic bit 1 = module fault detected 0 = normal operation
Most Significant BCD Digit (0-9) 1
Middle BCD Digit (0-9) 1
Least Significant BCD Digit (0-9) 1
1 or, 12-bit binary value
15951 1
Module switch selection dtermines whether bits 00-13 are of binary or BCD format
Publication 1771-UM006B-EN-P - June 2002
Page 29
Module/Processor Communication
4–3
Bits 00–13 of this word show the accumulated count kept by the module. This count may be stored either in BCD form, as 000–999 (decimal) or in 12–bit binary form, as a binary value from 0000 0000 0000 to 1111 1111 1111. A switch selection, set during module installation, determines the numerical form in which the accumulated count is stored. Bits 14–17 of this input word serve as status bits. Bit 14, 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 count has overflowed or underflowed. Bit 17 of the input status word is the home bit. Three conditions are required to set this bit to 1:
• Marker input is high • Limit switch input is true (high). • Home latch enable bit is on (1). The marker and limit switch input devices connect to module input terminals. The home latch enable bit is in the control word, one of the three output words. Note that the home bit, once set to 1, remains 1 until the home latch enable bit is reset to 0.
Publication 1771-UM006B-EN-P - June 2002
Page 30
4–4
Module/Processor Communication
Publication 1771-UM006B-EN-P - June 2002