Home

Application Note

image

Contents

1. Read AdaptaScan data from the 2760 RB module END OF FILE File 2 Rung 0 J Rem Prog Forces None Edits None Change Config Return Program Documnt Search General Data Force Mode Display to Menu Dirctry F1 F2 F3 F4 F5 F6 BTR BLOCK TRANSFER READ Rack Group Module Control block N 0 Data file N 100 Length 0 Continuous N 5 40 File ADAPTARB Edit Utility Monitor F F8 F9 F10 Refer to your PLC 5 user manual for detailed information on using the PLC 5 programming software The configuration screens for the 2760 RB should be entered exactly as shown These parameters then need to be saved Both the AdaptaScan reader and the 2760 RB 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 1t will Block transfer read BTR the preceding bar code data into the PLC program Configuring the 2760 RB 1 Set all 2760 RB module DIP switches to Off 2 Connect the smart cable to the Configuration port of the 2760 RB and the serial port of the computer 3 Use the Terminal Emulator to send a break sequence to the 2760 RB 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
2. by using the B command C Send the break sequence to call up the 2760 RB configuration menu 4 Select menu item 3 Device port protocol names Set to PORT 1 COPYRIGHT 1989 ALLEN BRADLEY COMPANY INC 2760 SFC2 LAN SERIES A REVISION B YES NO YES 5 Select menu item 21 Identification numbers Select RS485 LAN 2755 DM6 ASCII MODE 3 0H YES NO YES 6 Select option 11 Configuration parameters Set to SLOT TIME NO CHARS DEC 0 255 15 INTER CHAR TIME NO CHARS DEC 0 255 7 IDLE TIME NO CHARS DEC 0 255 3 RETRIES DEC 0 255 3 19 200 BITS PER SECOND YES NO YES BCD NODE NUMBERS ENABLE DISABLE ENABLE BYTE SWAPPING ENABLE DISABLE ENABLE RECEIVE MATRIXING ENABLE DIS ABLE DISABLE MATRIX ADDRESS HEX 0 FFFF 0 RE ESTABLISH FREQUENCY DEC 0 255 5 POLL FREQUENCY DESTINATION 0 HEX 0 FFFF 5 POLL FREQUENCY DESTINATION 1 HEX 0 FFFF 105 POLL FREQUENCY DESTINATION 2 HEX 0 FFFF 5 POLL FREQUENCY DESTINATION 3 HEX 0 FFFF 5 cllc 7 Verify that the 2760 RB is in rack 0 group 0 module 0 8 Save the above configuration Publication 2755 2 64 Publication 2755 2 64 2755 SN3 SN5 SN8 AdaptaScan Reader Configuration The AdaptaScan Offline Programmer configuration shows only the screens needed to establish communication to the 2760 RB module Other AdaptaScan configuration parameters selecting a bar code symbology trigger methods etc
3. PLC 5 processor DIP switches swith 1 2 3 4 5 6 7 J 8 SW 1 on on on on on on on off SW 2 off on on on on on on off SW 3 on on off off I O chassis backplane DIP switches 1 2 3 4 5 6 7 8 off off off off off on off off 2760 RB module DIP switches swith 1 2 3 44 5 6 7 J 8 Sw of of of of of of of of SW 2 off off off off off off off off SW 3 off off off off SW 4 off off on off The 2760 RB module is placed in the 1771 chassis in slot 0 next to the PLC For this application note that 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 back plane to Remote I O Protocol Cartridge Catalog No 2760 SFC2 OOQ oo O00000 30 T p ASCII Dumb Terminal Flexible Interface Module Catalog No 2760 RB tHE Ply V DH 485 7 LUT 277 Hj AdaptaScan Bar Code Reader Lf Publication 2755 2 64 Publication 2755 2 64 PLC 5 Program The sample ladder logic listing below instructs the PLC 5 to Rung 2 0
4. are beyond the scope of this document See the AdaptaScan Configuration Software user manual An example configuration for the 2755 SNx AdaptaScan Reader is illustrated below Important The settings illustrated below represent only part of the configuration required for the AdaptaScan reader to work in a given application Refer to the AdaptaScan Configuration Software user s manual for complete details on how to configure the reader for your application The Project dialog contains all the basic configuration options AdaptaScan Demo Bar Code Reader 1 Labels Decoder Match T able Message Send Device 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 i Project 1 Bar Code Reader 1 Serial Port ot dast pH a85 E Maximum Length o 0 1536 0 Scanner Protocol Parity Data Bits rStop Bits PER Odd Connection Aes rsaes E essage Buffer Enable Wami Warning At Buffer Size n arning fio 0 I Device Output Select Edit to bring up the DH 485 dialog Publication 2755 2 64 Publication 2755 2 64 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 se
5. Block N7 5 Data File N7 200 O Length ol Continuous NI 4 l Refer to your PLC 5 Instruction Reference Manual for detailed information on using the PLC 5 programming software Publication 2755 2 64 10 Publication 2755 2 64 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 PLCS processors in a local rack there is a possibility that the PLC will not see the BRR bit from the 2760 RB For the PLCS 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 1 IIN BTR BRR BT7 5 BT7 25 4 1 1 Rack 0 EN EN Group 1 Module 0 O Control Block BT7 5 Data File N7 200 Length 0 O Continuous NI 4 Write BTW Data BT7 5 BT7 25 4 t MA Rack 0 EN E Group 1 Module 0 O Control Block BT7 25 Data File N7 400 Length 0 O Continuous
6. NI T Note BTR must come before BTW 11 Cabling Cable 1 must be constructed to connect a configuration terminal to the 2760 RB module configuration port Cable 1 2760 RB Dumb Terminal config port VT 1000 25 pin D male 25 pin D female Tx 2 3 Rx Rx 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 AdaptaScan Terminal Port 1 Strip Nema 4 25 pin D male RS 485 A __ TXA B TXB GND 7 GND Publication 2755 2 64 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 Eu ALLEN BR AD LEY Allen Bradley has been helping its customers improve productivity and quality for 90 years A ROCKWELL INTERNATIONAL COMPANY 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 Interna
7. Overview Hardware Requirements Application Note AdaptaScan Reader to a PLC 5 Using DH 485 Protocol with the 2760 RB Module and the 2760 SFC2 Protocol Cartridge The AdaptaScan SN3 SN5 or SN8 bar code reader may be configured to communicate with the 2760 RB interface module via DH485 protocol using the 2760 SFC2 protocol cartridge This document includes cable diagrams and configuration information for the AdaptaScan readers It also includes an example PLC 5 program which is needed to establish communication from the PLC to the 2760 RB The following Allen Bradley hardware is needed to use the procedure described in this application note e 2755 SN3 SN5 or SN8 AdaptaScan reader and related manuals e 2760 RB interface module in a 1771 rack with a PLC 5 processor e 2760 SFC2 protocol cartridge e Personal computer or VT 100 type terminal to configure the 2760 RB e Appropriate cables to program the PLC 5 and to configure the 2760 RB interface module and the AdaptaScan reader Refer to hardware manuals for cable requirements e Catalog Number 1784 KT or equivalent card installed in the computer to enable you to program the PLC 5 Publication 2755 2 64 Software Requirements Related Publications PLC 5 Compatibility Publication 2755 2 64 The following Allen Bradley software is needed to use the procedure described in this application note Bulletin 6200 development software for the PLC 5 to r
8. lecting Message in the Project dialog ja AdaptaScan Demo Bar Code Reader 1 Message M Field Definitions Edit Used By Halal S Triggered By Device Bar Code Reader 1 s Decoder Send at End of Trigger C Send when Number of Message Fields is satisfied When Edit is selected in the New Message screen the Message Field dialog appears Field Name Field 1 Symbol Source Bar Code Label amp Symbols d Label 1 Find String E l Disable Match Exactly Sample PLC Program And when Edit is selected in the Message Field screen this dialog appears Message Field Edit Include in Field Data Format Type Alignment re s ler Minimum Length Fill Character logy o 0 64 32 0255 Replacement Strings E Eail Sy 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 4R I Block Transfer Read O 13 15 15 Rack 01 Group 1 Module ol Control Block N7 1004 0 4 Length ol Continuous NI ton nnn MMM l l Write Data N7 0 N7 5 4R Block Transfer Write 15 15 Rack ol Group 1 O Module ol Control
9. tional one of the world s leading technology companies Algeria e Argentina e Australia e Austria e Bahrain e Belgium e Brazil e Bulgaria e Canada e Chile e China PRC Colombia e Costa Rica e Croatia e Cyprus e Czech Republic e Denmark e Ecuador e Egypt e El Salvador e Finland e France e Germany e Greece e Guatemala e Honduras e Hong Kong e Hungary e Iceland e India e Indonesia e Israel e Italy e Jamaica e Japan e Jordan e Korea e Kuwait e Lebanon e Malaysia e Mexico e New Zealand e Norway e Oman e Pakistan e Peru e Philippines A e Poland e Portugal e Puerto Rico e Qatar e Romania e Russia CIS e Saudi Arabia e Singapore e Slovakia e Slovenia e South Africa Republic e Spain e Switzerland e Taiwan e Thailand e The Netherlands e Turkey e United Arab Emirates e United Kingdom e United States e Uruguay e Venezuela e Yugoslavia With major offices Worldwide m 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
10. un in the personal computer e Terminal Emulation software for a personal computer to configure the 2760 RB e 2755 ASN Windows Based Offline Program Software to configure the AdaptaScan reader This document refers to the following publications which should be available for reference while working through this application note Publication Number Title 1785 XXX User Manual for your PLC 5 6200 XXX Programming Manual for your PLC 5 2755 837 AdaptaScan Bar Code Readers Installation Manual 2755 838 AdaptaScan Configuration Software User Manual 2760 ND001 2760 RB User Manual 2760 2 19 2760 SFC2 Protocol Cartridge Manual Use the following table as a configuration guideline when using the examples shown in this document 2760 RB In Use PLC 5 15 25 etc New Generation PLC 5 Series A Rev C or above only Series A Rev G or below Series A Rev H or Above Follow example PLC program as shown on page 9 Set BT Compatibility Bit S26 4 while in program mode Use example PLC program shown on page 9 Add ladder logic using IIN update of RB BTR must be before BTW Refer to page 10 Configuration The 2760 RB configuration example includes sample configuration screens and DIP switch settings needed to establish communication with the AdaptaScan reader via RS 232 Other 2760 RB configuration features not used here are also available See Publication 2760 ND001

Download Pdf Manuals

image

Related Search

Related Contents

Câmaras de infravermelhos de desempenho avançado  First Alert CO604 Carbon Monoxide Alarm User Manual  Air Compressor & 2-in-1 Brad Nailer/Stapler Kit Jeu de  Mode d`emploi 667 4011  JVC DynaPix LT-32G80BU User's Manual    Samsung VC240 Lietotāja rokasgrāmata  none H1017 Use and Care Manual    取扱説明書 [PDF形式]  

Copyright © All rights reserved.
Failed to retrieve file