The text of a manual · part 2 of 2
Application Note: AdaptaScan Reader to a PLC-5 Using DH-485 Protocol with the 2760-RB Module and the 2760-SFC2 Protocol Cartridge, pages 7 to 12
Pages 7 to 12 of 12
The original document is the PDF (151 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 2760-SFC2
Page 7
7
The Serial Port dialog defines communication parameters (RS-232/ RS-485/RS-422) and protocols (ASCII, DH-485, DF1) for the reader’s communication ports. Access it by selecting Serial Port in the Project dialog.
Select Edit to bring up the DH-485 dialog.
Publication 2755-2.64
Page 8
8
The Message dialogs define the format and content of message data sent to the host by the reader when bar codes are decoded. This dialog is accessed by selecting Message in the Project dialog.
When Edit is selected in the New Message screen, the Message Field dialog appears:
Publication 2755-2.64
Page 9
9
And when Edit is selected in the Message Field screen, this dialog appears:
Sample PLC Program
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 1| | | |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 1+––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-2.64
Page 10
10
Using the 2760-RB, Revision H or Above, with the New Generation PLC5 When the 2760-RB, Revision H or above, is used with the New Generation PLC5 processors in a local rack, there is a possibility that the PLC will not see the BRR bit from the 2760-RB. For the PLC5 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 001 | +–––]/[–––––]/[––––––]/[–––––––––––––––( IIN )––––––––––––––––+ | | | BTR | | BRR BT7:5 BT7:25 +––––––––––––––––––––––+ | +–––] [–––––]/[––––––]/[–––––––––+Rack 0| | | EN EN |Group 1| | | |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 1| | | |Module 0+––O––+ | |Control Block BT7:25| | | |Data File N7:400| | | |Length 0+––O––+ | |Continuous N| | | +––––––––––––––––––––––+ | | | | | | | | |
Note: BTR must come before BTW.
Publication 2755-2.64
Page 11
11
Cabling Cable 1 must be constructed to connect a configuration terminal to the 2760-RB module configuration port. 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 must be constructed to connect the RS-485 port of the AdaptaScan Reader wiring base to Port 1 of the 2760-RB module. Cable 2 2760-RB Port 1 25-pin D male
AdaptaScan Terminal Strip, Nema 4 RS–485
A
TxA
B
TxB
GND 7
GND
Publication 2755-2.64
Page 12
PLC-5 is a registered trademarks of Allen-Bradley Co., Inc., a Rockwell International Company AdaptaScan, PLC-5/30, PLC-5/40 and PLC-5/60 are trademarks of Allen-Bradley Co., Inc., a Rockwell International Company Microsoft Windows is a trademark of Microsoft Corporation
Allen-Bradley has been helping its customers improve productivity and quality for 90 years. A-B designs, manufactures and supports a broad range of control and automation products worldwide. They include logic processors, power and motion control devices, man-machine interfaces and sensors. Allen-Bradley is a subsidiary of Rockwell International, one of the world’s leading technology companies.
With major offices worldwide. Algeria • Argentina • Australia • Austria • Bahrain • Belgium • Brazil • Bulgaria • Canada • Chile • China, PRC • Colombia • Costa Rica • Croatia • Cyprus • Czech Republic • Denmark • Ecuador • Egypt • El Salvador • Finland • France • Germany • Greece • Guatemala • Honduras • Hong Kong • Hungary • Iceland • India • Indonesia • Israel • Italy • Jamaica • Japan • Jordan • Korea • Kuwait • Lebanon • Malaysia • Mexico • New Zealand • Norway • Oman • Pakistan • Peru • Philippines • Poland • Portugal • Puerto Rico • Qatar • Romania • Russia–CIS • Saudi Arabia • Singapore • Slovakia • Slovenia • South Africa, Republic • Spain • Switzerland • Taiwan • Thailand • The Netherlands • Turkey • United Arab Emirates • United Kingdom • United States • Uruguay • Venezuela • Yugoslavia World Headquarters, Allen-Bradley, 1201 South Second Street, Milwaukee, WI 53204 USA, Tel: (1) 414 382-2000 Fax: (1) 414 382-4444
Publication 2755-2.64 – April 1996
40062-322-01(A) Copyright 1996 Allen-Bradley Company, Inc. Printed in USA