Rockwell Automation 2755-SNx Adaptascan Bar Code Readers User Manual

Page 302

Advertising
background image

15–17

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

Publication 2755-6.8

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

Bar Code String

# of Characters

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.

Advertising