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

AdaptaScan Bar Code Readers (Cat. Nos. 2755-SN3, -SN5, and -SN8) Application Guide: 3 - Downloading Match Codes from a Host Device, pages 49 to 56

Pages 49 to 56 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 49

3–10

Downloading Match Codes from a Host Device

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.

Connecting the Computer to the RS-232 Port

Disconnect the 2755-NC43 or -NC48 Configuration Cable from the personal computer. Connect the communication cable previously connected to the RS-232 connector in the wiring base to the computer’s RS-232 serial COM port.

Power source required See reader user manual

Communication Cable Connect to RS–232 Port

Personal Computer

Publication 2755-6.8

Page 50

Downloading Match Codes from a Host Device

Downloading Match Codes

3–11

To download match codes from your computer you must: 1. Convert the match string to hex. 2. Enter the match string in the proper data packet format. 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

2

0

0

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

0

4

0

0

In the bar code length 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 32 30 30 Instance Number

# of Characters Bar Code String in Bar Code String (in hexadecimal)

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” 32 = ASCII “2” 30 = ASCII “0” 30 = ASCII “0” Note: You can use the Windows calculator to convert decimal values to hexadecimal.

Publication 2755-6.8

Page 51

3–12

Downloading Match Codes from a Host Device

Send Data to the Reader 1. Use the Windows terminal function to send the data. Locate the terminal icon (usually within the Accessories group icon).

2. Open the terminal icon.

3. From the Settings menu open the Communications dialog and make sure that the settings match the reader serial port settings. Note: 9600 Baud must be selected.

Publication 2755-6.8

Page 52

Downloading Match Codes from a Host Device

3–13

4. From the Settings menu open the Terminal Preferences dialog and select Local Echo and Outbound (CR/LF).

5. Return to the terminal window and enter the data string to download. All characters must be in uppercase.

3F10CE010003040030323030

6. Press Return to send the data. The terminal window will display the response. 3F10CE010003040030323030 3F90

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 the response code chart on the next page.

Publication 2755-6.8

Page 53

3–14

Downloading Match Codes from a Host Device

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

Page 54

Downloading Match Codes from a Host Device

Downloading Other Host Commands

3–15

You can download other host commands using the same procedures described in the match code example. The following tables provide the commands and responses for the other host commands (all values are hexadecimal).

Read Performance Indicator Command

Read Performance Indicator Response

Packet Contents

Data Sent

Packet Contents

DeviceNet Address

3F*

DeviceNet Address

Response 3F

Get Performance Request

4C

Get Performance Response

CC

Class

C8

Data (LSB)

01

Instance Number (LSB)

01

Data (MSB)

00

Instance Number (MSB)

00

*3F = Address 63, modify as required

Reset Package Counter Command

Reset Package Counter Response

Packet Contents

Data Sent

Packet Contents

Response

DeviceNet Address

3F*

DeviceNet Address

3F

Set Attribute Request

10

Set Attribute Response

90

Class

D2

Instance Number (LSB)

00

Instance Number (MSB)

00

Attribute Number– Reset Counters Data

09 01

*3F = Address 63, modify as required

Read Match Counters Command

Read Match Counters Response

Packet Contents

Data Sent

Packet Contents

Response

DeviceNet Address

3F*

DeviceNet Address

3F

Get Attribute Request

0E

Get Attribute Response

8E

Class

CE

Data

6C, 08, 00, 00

Instance Number (LSB)

01

Instance Number (MSB)

00

Attribute Number

08

*3F = Address 63, modify as required

Read Package Counters Command

Read Package Counters Response

Packet Contents

Data Sent

Packet Contents

Response

DeviceNet Address

3F*

DeviceNet Address

3F

Get Attribute Request

0E

Get Attribute Response

8E

Data

6C, 08, 00, 00

Class

D2

Instance Number (LSB)

01

Instance Number (MSB)

00

Attribute Number– Match Count *3F = Address 63, modify as required

08

Publication 2755-6.8

Page 55

3–16

Downloading Match Codes from a Host Device

Reset Match Counters Command Packet Contents

Data Sent

Reset Match Counters Response Packet Contents

Response

Response Codes

3F*

DeviceNet Address

3F

Set Attribute Request

10

Set Attribute Response

90

Class

CE

Instance Number (LSB)

00

Instance Number (MSB)

00

Attribute NumberReset Counters Data

0B 01

*3F = Address 63, modify as required

Read Message Command Packet Contents

Data Sent

Read Message Response Packet Contents

Response

DeviceNet Address

3F*

DeviceNet Address

3F

Get Attribute Request

0E

Get Attribute Response

8E

Class

CC

Data (LSB)

04

Instance Number (LSB)

00

Data (MSB)

00

Instance Number (MSB)

00

ASCII Message Data

30*

Attribute Number - Message

14

ASCII Message Data

32

ASCII Message Data

30

ASCII Message Data

30

*3F = Address 63, modify as required

* Example data = 0200

Read LED Status Command

Read LED Status Response

Packet Contents

Data Sent

Packet Contents

DeviceNet Address

3F*

3F

Response 3F

Read LEDS Request

43

Read LEDS Response

C3

Class

CB

I/O 1

See Table Next Page

Instance Number (LSB)

01

I/O 2

See Table Next Page

Instance Number (MSB)

00

Trigger / Read

See Table Next Page

On Symbol

See Table Next Page

Laser On

See Table Next Page

Module

See Table Next Page

Network

See Table Next Page

*3F = Address 63, modify as required

Publication 2755-6.8

Page 56

Downloading Match Codes from a Host Device

Set Output Timer Command Packet Contents

Data Sent

Set Output Timer Response Packet Contents

Response

DeviceNet Address

3F*

DeviceNet Address

3F

Set Attribute Request

10

Set Attribute Response

90

Class

D0

Instance Number (LSB)

02

Instance Number (MSB)

00

Attribute Number - Max Time

09

Data (LSB)

FA

Data (MSB)

00

3–17

*3F = Address 63, modify as required ** Time in milliseconds

LED Status Response Data at Indicated Bit Address = LED State Byte 0

0 = Off

1 = Yellow

I/O 1

OFF

ON

3-5

I/O 2

OFF

ON

0-2

TRIGGER / READ

No Trigger

Triggered

3-5

ON SYMBOL

Not Reading

Reading

0-2

LASER ON

OFF

ON

3-5

MODULE

No Power

0-2

NETWORK

Bits

LED Indicator

0-2

1

2

3

6 = Flash Green

7 = Flash Red

Hardware Fault

Power Up

Minor Fault

DeviceNet DeviceNet OK Fault

Established

No Response

2 = Green

3 = Red

4 = Not Used

5 = Flash Yellow

Valid Read Read <100%

Device OK

3-5

Publication 2755-6.8