The text of a manual · part 31 of 41
AdaptaScan Bar Code Readers (Cat. Nos. 2755-SN3, -SN5, and -SN8) Application Guide: 13 - Communicating with a 2760-RB Module over an RS-232 Link, pages 255 to 262
Pages 255 to 262 of 354, from AdaptaScan Bar Code Readers (Cat. Nos. 2755-SN3, -SN5, and -SN8) Application Guide
The original document is the PDF (3.2 MB). 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 Accu-Sort 2755-SN3, Accu-Sort 2755-SN5, Allen-Bradley 2755-SN5, Accu-Sort 2755-SN8 and Allen-Bradley 2755-SN8
Page 255
-
Communicating with a 2760-RB Module over an RS-232 Link Overview
This application describes how to connect and configure an AdaptaScan Bar Code Reader to the 2760-RB interface module via “dumb terminal protocol” RS-232, using the 2760-SFC1 or -SFC2 protocol cartridge. The application includes cable diagrams and configuration information for the AdaptaScan readers. It also includes a sample PLC-5 program which is needed to establish communication from the PLC-5 processor to the 2760-RB module.
Hardware Requirements
The hardware items required for this application are: • 2755-SN3, -SN5 or -SN8 AdaptaScan Bar Code Reader • 2755-NB40 or -NB41 Wiring Base • 2755-PW46 or -PW47 Power Supply • 2755-NC43 or -NC48 Configuration Cable • 2760-RB Interface Module • 1771 chassis • PLC-5 processor • 2760-SFC1 or -SFC2 protocol cartridge • appropriate cables to program the PLC-5 and to configure the 2760-RB module and bar code reader. • Computer running Windows 3.1 (or later) or Windows 95 • 9-to-25 Pin Adapter (for computer with a 25-pin COM port)
Software Requirements
The software requirements for this application are: • 2755-ASN AdaptaScan Offline Programming Software • terminal emulation software to program the 2760-RB module • PLC-5 Programming Software
Publication 2755-6.8
Page 256
13–2
Communicating with a 2760-RB Module over an RS-232 Link
Related Publications
Publications you might want to refer to include: Publication
Description
2755-837
AdaptaScan Bar Code Readers User Manual
2755-838
AdaptaScan Software User Manual
2760-ND001
2760-RB Interface Module User Manual
2760-ND003
2760-SFC1 Protocol Cartridge User Manual
2760-822
2760-SFC2 Protocol Cartridge User Manual
In addition, you may want to refer to the PLC-5 Hardware and Software User Manuals.
PLC-5 Compatibility
Refer to the following table for hardware compatibility in this application example. Use the following 2760-RB Interface Module type with the following PLC-5 type PLC-5, -15, -25, etc.
Series A, Rev. G or below Refer to the sample PLC-5 program on page 13–6. Series A, Rev. H or above
Connecting the RB Module to the Reader
The 2760-RB configuration example includes sample configuration screens and DIP switch settings needed to establish communication with the AdaptaScan Reader via RS-232. Dip Switch Side View
Switch pushed toward top (off position).
Switch pushed toward bottom (on position).
Publication 2755-6.8
New Generation PLC-5 (Series A, Rev. C or above) Refer to the sample PLC-5 program on page 13–6. (Set BT compatibility bit S26/4 while in program mode.) Refer to the sample PLC-5 program on page 13–7. (Add ladder logic using IIN update of RB. BTR must be before BTW.)
Page 257
Communicating with a 2760-RB Module over an RS-232 Link
13–3
Classic PLC-5 Processor DIP Switches Switch #
Switch Lever # 1
2
3
4
5
6
7
8
SW-1 on on on on on on on off
SW-2 on on on on on on on off
SW-3 on on off off
Not Applicable
Enhanced PLC-5 Processor DIP Switches Switch #
Switch Lever # 1
2
3
4
5
6
7
8
9
10
SW-1 on on on on on on on on on off
SW-2 on on on off off on on off on off
I/O Chassis Backplane DIP Switches Switch Lever # 1
2
3
4
5
6
7
8 off off off off off on off off
2760-RB Module DIP Switches Switch #
Switch Lever # 1
2
3
4
5
6
7
8
SW-1 off off off off off off off off
SW-2 off off off off off off off off
SW-3 off off off off
SW-4 off off on off
Not Applicable
Publication 2755-6.8
Page 258
13–4
Communicating with a 2760-RB Module over an RS-232 Link
The 2760-RB module is placed in the 1771 chassis in slot 0 next to the PLC. For this application, the AdaptaScan Reader communicates through port 1 on the 2760-RB. A 1771-ASB module can also be used to communicate with the 2760-RB module over the chassis backplane to Remote I/O. Protocol Cartridge (Catalog No. 2760-SFC1 or -SFC2)
Flexible Interface Module (Catalog No. 2760-RB) ASCII (Dumb) Terminal RS-232 AdaptaScan Bar Code Reader
Publication 2755-6.8
Page 259
Communicating with a 2760-RB Module over an RS-232 Link
13–5
Cabling Cable 1 must be constructed to connect a configuration terminal to the 2760-RB Module Configuration port. Cable 2 must be constructed to connect the RS232/422 port of the bar code reader wiring base to Port 1 on the 2760-RB module. Refer to following cabling diagrams. Cable 1 2760-RB (config. port)
Dumb Terminal (VT-1000)
25-pin D male
25-pin D female
Tx 2
3 Rx
Rx 3
2 Tx
GND 7
7 GND Cable 2
2760-RB Port 1
AdaptaScan RS-232 Terminal Strip
25-pin D male
RS-232
Tx 2
Rx
Rx 3
Tx
GND 7
GND
Publication 2755-6.8
Page 260
13–6
Communicating with a 2760-RB Module over an RS-232 Link
Configuring the PLC-5 Processor
A sample PLC program appropriate for using a PLC 5/15/25 with a 2760-RB module appears below. | I:000 N7:0 N7:5 +–––––––––––––––––––––––+ | +–––] [–––––]/[––––––]/[––––––––+Block Transfer Read +––O––+ | 13 15 15 |Rack 0| | | |Group 0| | | |Module 0| | | |Control Block N7:100+––O––+ | |Length 0| | | |Continuous N| | | +–––––––––––––––––––––––+ | | | | | | Write | | Data N7:0 N7:5 +–––––––––––––––––––––––+ | +–––] [–––––]/[––––––]/[––––––––+Block Transfer Write | | | 15 15 |Rack 0| | | |Group 0+––O––+ | |Module 0| | | |Control Block N7:5| | | |Data File N7:200+––O––| | |Length 0| | | |Continuous N| | | +–––––––––––––––––––––––+ | | |
Refer to your PLC-5 Instruction Reference Manual for detailed information on using the PLC-5 programming software.
Publication 2755-6.8
Page 261
Communicating with a 2760-RB Module over an RS-232 Link
13–7
Using the 2760-RB Module, Revision H or Above, with the New Generation PLC-5 Processor When the 2760-RB, revision H or above, is used with the new generation PLC-5 processors in a local chassis, there is a possibility that the PLC will not see the BRR bit from the 2760-RB. For the PLC-5 to see the BTR bit, an odd number of image scans must occur. To ensure that the BTR instruction sees the BRR bit (bit 13) you must place an Immediate Input Instruction addressed to the BRR bit in another rung just before the Block Transfer Read (BTR) rung. This ensures that the BRR bit is seen by the NP-5 processor. | BRR BT7:5 BT7:25 000 | +–––]/[–––––]/[––––––]/[–––––––––––––––( IIN )––––––––––––––––+ | | | BTR | | BRR BT7:5 BT7:25 +––––––––––––––––––––––+ | +–––] [–––––]/[––––––]/[–––––––––+Rack 0| | | EN EN |Group 0| | | |Module 0+––O––+ | |Control Block BT7:5| | | |Data File N7:200| | | |Length 0+––O––+ | |Continuous N| | | +––––––––––––––––––––––+ | | | | | | Write BTW | | Data BT7:5 BT7:25 +––––––––––––––––––––––+ | +–––] [–––––]/[––––––]/[–––––––––+Rack 0| | | EN EN |Group 0| | | |Module 0+––O––+ | |Control Block BT7:25| | | |Data File N7:400| | | |Length 0+––O––+ | |Continuous N| | | +––––––––––––––––––––––+ | | | | | | | | |
Note: BTR must come before BTW. Refer to your PLC-5 user manual for detailed information on using the PLC-5 programming software.
Configuring the 2760-RB Interface Module
The configuration screens for the 2760-RB should be entered exactly as shown. These parameters then need to be saved. Both the bar code reader and the 2760-RB module are configured to send and recognize the Carriage Return [Cr], Line Feed [Lf] characters to identify a message. When the 2760–RB senses information entering Port 1, it will look for the Cr, Lf. When it sees these trailers, it will Block transfer read (BTR) the preceding bar code data into the PLC program.
Publication 2755-6.8
Page 262
13–8
Communicating with a 2760-RB Module over an RS-232 Link
To configure the 2760-RB module: 1. Set all 2760-RB module DIP switches to Off. 2. Connect the smart cable to the Configuration port of the 2760-RB module and the serial port of the computer. 3. Send a “break sequence” to the 2760-RB module via the Terminal Emulator: A. Set the baud rate to 9600, 8 data bits, 1 stop bit, no parity, no flow control, and either COM1 or COM2 depending on the smart cable connection. B. Program a function key to send the “break sequence” by using the Ctrl-Shift-Break command. (This step is specifically for Windows 3.1 Terminal Emulation.) C. Send the break sequence to call up the 2760-RB module configuration menu. 4. Select menu item 3: Device port protocol names. Set to: PORT1=COPYRIGHT 1989 2760-SFC2 DT SERIES A
ALLEN-BRADLEY COMPANY INC. REVISION A (YES/NO)=YES
5. Select menu item 21: Identification numbers. Select: DUMB TERM. UNSPECIFIED PROTOCOL, 13FH (YES/NO)=YES
Publication 2755-6.8