Example data messages – Rockwell Automation 2755-DM9, -DM9E High Speed Decoder User Manual

Page 91

Advertising
background image

Chapter 6
Communicating With a Host

6–9

Field

Number of

Characters

in each

Field

Explanation

15. End Message

0, 1, or 2

Specifies the end of message control code:

None

CRLF

CR

LF

ETX

16. Checksum.

0, 1, or 2

Message checksum. There are four options:

None

Longitudinal Redundancy Check (1 Byte).

Checksum- Least significant byte first (2 Bytes).

Checksum- Most significant byte first (2 Bytes).

To help you program your host device, we have provided the following
examples. These example show the data transmitted by the decoder. In these
examples, the host protocol was setup as follows:

Start Character:

#

Send Source Identifier:

Yes

Source Identifier:

183

Header Message:

Data From Scanner 1B3

Label Delimiter:

=

Send Bar Code Type:

Yes

Send Bar Code Data:

Yes

No-Read Message:

No-Read

Send Package Count:

Yes

End of Message Character:

CRLF

Transmission Check:

None

Send No-Read Message:

Yes

Example #1 - If one Code 39 label is decoded, the decoder would transmit
the following:

#183Data From Scanner 1B3=01001122334455==000013CRLF

Where 01 is the code type (code 39), 001122334455 is the bar code data and
000013 is the package count.

Example #2 - If two Code 39 labels are scanned on a single package, the
decoder would transmit the following:

#183Data From Scanner 1B3=01998877665=01001122334==000014CRLF

Where 01 is the code type (code 39), 998877665 is the data for the first bar
code, 001122334 is the data for the second bar code, and 000014 is the
package count.

Example Data Messages

Advertising