Rockwell Automation 2755-SNx Adaptascan Bar Code Readers User Manual

Page 188

Advertising
background image

10–26

Communicating with an SLC 5/03 Processor on a DeviceNet Network using Explicit Messaging

Publication 2755-6.8

Formatting the Explicit Message Transaction Block

Up to ten 32-word transaction blocks may be queued within the
scanner module for Explicit Message Program Control. The
transaction blocks accommodate both the download of Explicit
Message Requests and the upload of Explicit Message Responses.

The scanner module can accommodate one request or response for
each transaction block. You must format each transaction block as
shown in the following figure.

service

port

TXID

cmd/status

size

MAC ID

Transaction Body
(29 words)

word 224

word 225

word 226

Transaction
Header
(3 words)

word 255

15

0

One word = two bytes = 16 bits

The transaction block is divided into two parts:

transaction header – Contains information that identifies the
transaction to the scanner and processor.

transaction body – In a request, this contains the DeviceNet
Class, Instance, Attribute and Service Data portion of the
transaction. In a response, this contains only the response
message.

Each of the data attributes in the transaction header are one byte in
length:

command/status – For each download, you assign a command
code to instruct the scanner how to administer the request.

Command Code

Description

0

Ignore transaction block (block empty).

1

Execute this transaction block.

2

Get status of transaction TXID.

3

Reset all client/server transactions.

4

Delete transaction from response queue.

5–255

Reserved

Advertising