Rockwell Automation 842D-60131331BXA DeviceNet Encoder User Manual User Manual

Page 38

Advertising
background image

6-4

Using DeviceNet Explicit Messaging

TXID:
This is a one-byte integer the range of 1 to 255. The scanner
uses this value to track the transaction to completion, and
returns the value with the response that matches the
request.

SERVICE REQ/RSP:
The DeviceNet service request and response:
10 = Set Service Request
0 = Set Service Response

STATUS:
For each upload, the status code provides the processor
with status on the device and its response:
0 = Ignore transaction block (block empty)
1 = Transaction completed successfully
2 = Transaction in progress (not ready)
3 = Error — Slave not in scan list
4 = Error — Slave off-line
5 = Error — DeviceNet port disabled or off-line
6 = Error — Transaction TXID unknown
8 = Error — Invalid command code
9 = Error — Scanner out of buffers
10 = Error — Other client/server transaction in progress
11 = Error — Could not connect to slave device
12 = Error — Response data too large for block
13 = Error — Invalid port
14 = Error — Invalid size specified
15 = Error — Connection busy

MAC ID:
The DeviceNet network address of device where the
transaction is sent. This value can range from 0 to 63. The
slave device must be listed in the scanner module's scan list
and be on-line for the Explicit Message transaction to be
completed.
See appendix B of the encoder manual for class/attribute
values, access rules, and data types.

CLASS:
002Fh is the encoder class

INSTANCE:
There is only one instance of the encoder - 0001h

ATTRIBUTE:
The value 000Ah is the Preset Value attribute.

COMMAND:
A code that instructs the scanner how to administer the
request:
1 = Execute this transaction block
4 = Delete this transaction block

PRESET VALUEMSW / VALUELSW:
This quadword value (limited to 03 FF FF FF) is stored in
non-volatile memory when the set service is used. Storing
the preset value applies the preset value to the encoder
position value.

PORT:
The port must be zero (Channel A) on a 1747-SDN scanner.

SIZE:
The size of the transaction body in bytes. The transaction
body can be up to 29 words (58 bytes) in length. If the size
exceeds 29 words, an error code will be returned.

Advertising
This manual is related to the following products: