The text of a manual · part 6 of 6
AdaptaScan Bar Code Readers Application Guide Document Update, pages 41 to 48
Pages 41 to 48 of 48
The original document is the PDF (529 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 Accu-Sort 2755-SN3, Accu-Sort 2755-SN5, Allen-Bradley 2755-SN5, Accu-Sort 2755-SN8 and Allen-Bradley 2755-SN8
Page 41
Bar Code Readers Application Guide
41
Configure the Serial Port 1. Click the Serial Port button from the Project dialog.
2. Set the parameters as follows: • From the Protocol list box, select DH-485 • From the Baud Rate list box, select 19,200 • From the Connection list box, select RS485 The Serial Port must match the host configuration. 3. Click the Edit button to select DH485 Slave Mode.
Publication 2755-6.8.1
Page 42
42
Bar Code Readers Application Guide
DH485 Slave Mode 1. Click the Protocol Edit button in the Serial Port dialog.
2. Edit the parameters as follows: • Click the PCCC Enabled box • From the Master/Slave box, select Slave • From the Node box, select 2 This is the DH485 node address. 3. Click OK to return to the main Serial Port dialog. 4. Click Save and Close to return to the main Project dialog.
Publication 2755-6.8.1
Page 43
Bar Code Readers Application Guide
43
Configure for Match Codes 1. Click the Match Table button to open the Match Table dialog.
2. Click the New button to open the Match Function dialog and create a Match Function.
3. Under Function, select Match Entry. Match Entry specifies that a match occurs whenever decoded bar code data matches the Rule: entry. 4. Under Symbol Source, select Bar Code Reader 1. 5. Under Bar Code Labels and Symbols, select Symbol 1. 6. Click the Match Exactly box. Match Exactly specifies that ASCII characters are matched instead of a metacharacter rule. 7. Click the Outputs button to specify which output activates when a match occurs.
Publication 2755-6.8.1
Page 44
44
Bar Code Readers Application Guide
8. Under Available Outputs, select Discrete Input/Output 1. 9. Click the Add>> button to add this selection to the Output To: area. 10. Click OK to return to the main Match Table dialog.
Configure for a Package 1. Click the Package button to open the Package dialog.
2. Click the new button to create a Package. 3. Under Mode, select No-Read or No-Match. This mode is used to determine when a label is not read or does not match the rule defined in the Match function.
Publication 2755-6.8.1
Page 45
Bar Code Readers Application Guide
45
4. Highlight Match 1 to enable the Match function.
5. Click OK to return to the main Package dialog.
Configure for an Output 1. Click the Output To button to specify which output activates when a No-Read or No-Match occurs.
2. Under available Outputs, select Discrete Input/Output 2. 3. Click the Add>> button to add this selection to the Output To: area. 4. Click OK to return to the main Match Table dialog. 5. Click Save and Close to return to the Project dialog.
Publication 2755-6.8.1
Page 46
46
Bar Code Readers Application Guide
Sending the Configuration to the Reader
From the main Project dialog, click the Download Device button to download the configuration to the bar code reader.
SLC Ladder Logic
This section describes how to view match codes in Slave Mode via ladder logic. Use the following SLC ladder logic for DH485 Slave Mode if the AdaptaScan I/O LEDs cannot be used for viewing.
]
B3
MSG
[
0
Read/Write Type:
PEER-TO-PEER
Read/Write:
READ
Target Device:
485CIF
Local/Remote:
LOCAL
Control Block:
N7:50
Control Block Length:
14
Note: You can only initiate one read or one write at a time. Reads and writes should never be initiated at the same time. Message Instruction Configuration For the Message Instruction, the configuration is listed in the table below. Parameter Type Read/Write Target Device Local/Remote Control Block Channel Target Node Destination File Access Target Offset Message Length in Elements Message Timeout (seconds)
Publication 2755-6.8.1
Configuration Peer-to-Peer Read 485CIF Local N7:50 0 2 N7:80 255 (Change 255 to 256 or 100H in the third word of the Control Block. An offset greater than 255 tells the MSG instruction that the SLC controller is talking to a bar code device.) 2 0
Page 47
Bar Code Readers Application Guide
47
Notes
Publication 2755-6.8.1
Page 48
PLC and PLC-5 are registered trademarks of Allen-Bradley, Inc. PanelView, PanelView 900, PanelBuilder, AdaptaScan, Data Highway Plus, SLC, SLC 500, SLC 5/03, and SLC 5/04 are trademarks of Allen-Bradley Company, Inc. DeviceNet is a trademark of the Open DeviceNet Vendor Association. Windows and Windows 95 are trademarks of Microsoft.
Rockwell Automation helps its customers receive a superior return on their investment by bringing together leading brands in industrial automation, creating a broad spectrum of easy-to-integrate products. These are supported by local technical resources available worldwide, a global network of system solutions providers, and the advanced technology resources of Rockwell.
Worldwide representation. Argentina • Australia • Austria • Bahrain • Belgium • Bolivia • Brazil • Bulgaria • Canada • Chile • China, People’s Republic of • Colombia • Costa Rica • Croatia • Cyprus Czech Republic • Denmark • Dominican Republic • Ecuador • Egypt • El Salvador • Finland • France • Germany • Ghana • Greece • Guatemala • Honduras • Hong Kong Hungary • Iceland • India • Indonesia • Iran • Ireland • Israel • Italy • Jamaica • Japan • Jordan • Korea • Kuwait • Lebanon • Macau • Malaysia • Malta • Mexico • Morocco The Netherlands • New Zealand • Nigeria • Norway • Oman • Pakistan • Panama • Peru • Philippines • Poland • Portugal • Puerto Rico • Qatar • Romania • Russia • Saudi Arabia • Singapore • Slovakia • Slovenia • South Africa, Republic of • Spain • Sweden • Switzerland • Taiwan • Thailand • Trinidad • Tunisia • Turkey • United Arab Emirates United Kingdom • United States • Uruguay • Venezuela Rockwell Automation Headquarters, 1201 South Second Street, Milwaukee, WI 53204-2496 USA, Tel: (1) 414 382-2000 Fax: (1) 414 382-4444 Rockwell Automation European Headquarters, Avenue Hermann Debroux, 46, 1160 Brussels, Belgium, Tel: (32) 2 663 06 00, Fax: (32) 2 663 06 40 Rockwell Automation Asia Pacific Headquarters, 27/F Citicorp Centre, 18 Whitfield Road, Causeway Bay, Hong Kong, Tel: (852) 2887 4788, Fax: (852) 2508 1846 World Wide Web: http://www.ab.com
Publication 2755-6.8.1 – May 1998
41062-051-01 (A) Copyright 1998 Allen-Bradley Company, Inc. Printed in USA
Publication 2755-6.8.1 – May 1998