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 9 of 41

AdaptaScan Bar Code Readers (Cat. Nos. 2755-SN3, -SN5, and -SN8) Application Guide: 4 - Downloading Match Codes via DH485 Protocol with an SLC 5/03 or SLC 5/04 Controller, pages 66 to 74

Pages 66 to 74 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 66

4–10

Downloading Match Codes via DH485 Protocol with an SLC or SLC Controller

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 • Click the Scanner Protocol button • From the Connection list box, select RS485 The Serial Port must match the host configuration. 3. Click the Edit button to select either DH485 Slave Mode or DH485 Master Mode.

Publication 2755-6.8

Page 67

Downloading Match Codes via DH485 Protocol with an SLC or SLC Controller

4–11

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

Page 68

4–12

Downloading Match Codes via DH485 Protocol with an SLC or SLC Controller

DH485 Master Mode 1. Click the Protocol Edit button in the Serial Port dialog.

2. Set the parameters as follows: • From the Master/Slave box, select Master • From the Destination Node box, select 1 This is the SLC node where the decoded bar codes are sent.

• From the Maximum Node box, select 2 This is the number of nodes on the network.

• From the N9:Offset box, select 100 which is the default This is the SLC destination address where the decoded bar codes are sent. N9: is reserved for communications. Bar code data is sent as an ASCII string to the SLC N9 file.

• From the Node box, select 2 This is the DH485 node address. In this application the response in N9:100 will be 3F90 for a successful match code download or 3F94 for a match code download failure. (3F is the hexadecimal value of the AdaptaScan device address 63. This will be different for a different applied 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

Page 69

Downloading Match Codes via DH485 Protocol with an SLC or SLC Controller

4–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 70

4–14

Downloading Match Codes via DH485 Protocol with an SLC or SLC Controller

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.

Publication 2755-6.8

Page 71

Downloading Match Codes via DH485 Protocol with an SLC or SLC Controller

4–15

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

Page 72

4–16

Downloading Match Codes via DH485 Protocol with an SLC or SLC Controller

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.

Finding Match Table Instances

When you download match codes from a host, you need the instance number of the match table. Do not assume that Match 1 = Instance 1, Match 2 = Instance 2. From the Project menu, select Print. The printout will show the class and instance numbers.

Publication 2755-6.8

Page 73

Downloading Match Codes via DH485 Protocol with an SLC or SLC Controller

Downloading Match Codes

4–17

To download match codes from the SLC you must: 1. Convert the match string to hex. 2. Enter the match string in the proper data packet format (byte swapped). 3. Send the data packet (containing the string) to the reader.

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.

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 Instance Number

# of Characters Bar Code String in Bar Code String

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.

Publication 2755-6.8

Page 74

4–18

Downloading Match Codes via DH485 Protocol with an SLC or SLC Controller

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

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

Note: Refer to the next page for a description of the response code format and codes. 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 response code chart on the next page.

Publication 2755-6.8