beautypg.com

Delta RMC151 User Manual

Page 432

background image

RMC70/150 and RMCTools User Manual

order of the bytes in this 16-bit value is determined

by the Byte Order field.

14-15 00 00

Reserved. Must be zero.

16-… …

Data. The values of each register to write should

follow the above header. Each 32-bit value is encoded

in either LSB- or MSB-first byte order, as determined

by the Byte Order field. For LSB-first byte order, the

value 16#11223344 should be encoded as 44 33 22

11. For MSB-first byte order, this would be encoded

as 11 22 33 44.


The RMC will respond to this request with the following packet:

Offset Data

(hex)

Description

0-1

06 00

Packet Length. Indicates the total length in bytes of

this packet, excluding this 2-byte field. This 16-bit

value is encoded with the least significant byte first.

2-3

00 02

Static Values. These bytes will always have these

values in the response.

4-5

nn nn

Transaction ID. This value will echo the Transaction

ID in the request. It can be used to match this

response to the corresponding request.

6

95 -or- 55 Function Code (Response). If the write was

processed successfully, this byte will be 95, otherwise

it will hold 55.

7

nn

Response Code. Indicates whether the write was

successful or not. See the DMCP Response Codes

section below.

Reading Data from the RMC:

To read one or more registers from the RMC, send the following request packet to the

RMC:

Offset Data

(hex)

Description

0-1

0C 00

Packet Length. Indicates the total length in bytes of

this packet, excluding this 2-byte field. This 16-bit

value is encoded with the least significant byte first.

2-3

00 02

Static Values. These bytes must always hold these

values.

4-5

nn nn

Transaction ID. This value is simply echoed by the

RMC in its response packet. It can be used to match

responses with requests.

6

14

Function Code. This byte must be 14 in a read

request.

7

nn

Byte Order. Determines the byte order for the

Starting Address fields, the Read Count field, and the

Data registers in the response. Notice that the Packet

Length byte order is not affected by this field.

Least-Significant Byte (LSB) First (00). For

example, the value 0x1122 will be encoded as 22

11.

412

Delta Computer Systems, Inc.

This manual is related to the following products: