Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 35 of 41

AdaptaScan Bar Code Readers (Cat. Nos. 2755-SN3, -SN5, and -SN8) Application Guide: 15 - Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module, pages 295 to 303

Pages 295 to 303 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 295

15–10

Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module

Define the DeviceNet Address 1. Click the Device button on the Project dialog.

2. Set the DeviceNet address to 63. Note: The DeviceNet address is not always the same as the DH-485 node address. A DH-485 node address is assigned later. 3. Connect the 2755-NC43 or -NC48 Configuration Cable to the reader. 4. Click the Apply button. 5. Click Save and Close to return to the Project dialog.

Configure the Scanner 1. Click the Scanner button on the Project dialog to open the Scanner dialog.

2. Configure the scan pattern and use the Focus procedure for optimum scanner focus. 3. Click the Close button and return to the Project dialog.

Publication 2755-6.8

Page 296

Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module

15–11

Configure the Decoder Trigger This application uses a Timer to trigger the reader’s decoder. The Timer is typically used during application setup. Refer to the AdaptaScan Bar Code Readers User Manual (Publication No. 2755-837) for other input sources that trigger the decoder. 1. Click the Decoder button from the main Project dialog. 2. Under Triggered By, select Timer from the Input list.

3. Click the Save button. 4. Click the Close button and return to the main Project dialog.

Publication 2755-6.8

Page 297

15–12

Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module

Configure the Serial Port 1. Click the Serial Port button from the Project dialog.

2. Configure the serial port as follows:

• • • •

Check (enable) the Scanner Protocol check box 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 configuration must match the host configuration. 3. Click the Edit button under Protocol to edit the DH-485 parameters.

Edit the parameters as follows:

• Select Slave under Master/Slave • From the Node list box, select 2 This is the node address of the reader on the network. 4. Click OK to return to the Serial Port dialog. 5. Click Save and then Close to return to the main Project dialog.

Publication 2755-6.8

Page 298

Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module

15–13

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.

Publication 2755-6.8

Page 299

15–14

Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module

7. Click the Outputs button to specify which output activates when a match occurs.

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. 4. Highlight Match 1 to enable the Match function. 5. Click OK to return to the main Package dialog.

Publication 2755-6.8

Page 300

Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module

15–15

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 main Project dialog.

Sending the Configuration to the Reader

From the main Project dialog, click the Send Device button to download the configuration to the bar code reader. Use the Monitor dialog to verify the decoding of bar code labels.

Publication 2755-6.8

Page 301

15–16

Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module

Downloading Match Codes

To download match codes from the RB module you must: 1. Use PLC command files to send the match codes. 2. Convert the match string to hex. 3. Send the data packet (containing the string) to the reader.

PLC Command Files Description

Word Offset

High Byte No.

Low Byte No.

Byte count length. Use the BCD/HEX screen to enter the byte count length.

0

00

18

Source 05 and destination is 01. Refer to Bulletin 2760 RS-485 LAN Master/Slave Protocol User’s Manual (Publication No. 2760-822) for more information.

1

05

01

2

80

01

3

Data

Data

4

Data

Data

LSAP equals 80 and DH485 Node equals 1. Refer to Bulletin 2760 RS-485 LAN Master/Slave Protocol User’s Manual (Publication No. 2760-822) for more information. Data packet Data packet

Convert the Bar Code String to Hex Convert the bar code string you want to send to the reader to the hexadecimal ASCII equivalent value. For example: Bar Code String:

0

3

0

0

Converted Hex Value: 30 33 30 30 Converted Bar Code Length Value:

0

4

0

0

In the bar code length value shown above, if the number of characters 04 were changed to 14, the hexadecimal value would be 0E. This hexadecimal value is written as 0E00.

Publication 2755-6.8

Page 302

Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module

15–17

Place the String in the Data Packet The bar code string is sent in a data packet having this format: 3F 10 CE 01 00 03 04 00 30 33 30 30 # of Characters Bar Code String in Bar Code String

Instance Number

The following are descriptions of the data packet: 3F = DeviceNet Address (3F= 63, each reader has unique address) 10 = Set attribute (single request) CE = 206 = Class (always 206 for match table) 01 = Instance Number (LSB) 00 = Instance Number (MSB) 03 = Attribute Number – Rule 04 = Length of String (LSB) 00 = Length of String (MSB) 30 = ASCII “0” 33 = ASCII “3” 30 = ASCII “0” 30 = ASCII “0” Note: You can use the Windows calculator to convert decimal values to hexadecimal.

Match Code String in Block Transfer Write Word 0

0

1

2

3

4

5

6

7

8

N7:400

0018

0501

8001

3F10

CE01

0003

0400

3033

3030

The response of 3F90 indicates a good write of the match code. 3F90 Address (3F = 63)

Response Code (90 = Successful) (94 = Fail)

Note: If you want to view the data after you have received the response 3F90, set up the OLP message screen. Once the message is setup, the response code will be overwritten by the bar code data. Note: Refer to the next page for a description of the response code format and codes.

Publication 2755-6.8

Page 303

15–18

Downloading Match Codes via DH485 using a PLC-5 Processor and a 2760-RB Module

You can verify whether or not a correct match code was downloaded by placing a bar code label in front of the reader so that it is scanned. Observe the Output #1 LED on the top of the reader. When the downloaded match code matches a scanned label, the output will turn on. If you receive a response code other than 90, refer to the the response code chart below.

Response Codes Response codes have the following format: Byte

Contents

0 1 2 3

Mac ID (Address) 94 = Error Response x = General Error Code x = Additional Code

General Error Codes Code (hex) 02 08 09 0B 0C 0E 0F 10 11 13 14 15 16 18 19 D0-FF

Publication 2755-6.8

Name Resource unavailable Service not supported Invalid attribute value Already in requested mode/state Object cannot perform service in its current mode/state Attribute not settable Access permission does not allow service Device’s mode/state does not allow object to perform service Reply data too large Not enough data Attribute not supported Too much data Object does not exist No stored attribute data Store operation failure Class specific