beautypg.com

Downloading match codes – Rockwell Automation 2755-SNx Adaptascan Bar Code Readers User Manual

Page 301

background image

15–16

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

Publication 2755-6.8

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

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.

2

80

01

Data packet

3

Data

Data

Data packet

4

Data

Data

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:

0

3

0

0

30 33 30 30

Bar Code String:

Converted Hex Value:

0

4

0

0

Converted Bar Code Length Value:

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.

Downloading Match Codes