beautypg.com

Description, Request, Response – Delta RMC101 User Manual

Page 7: Example

background image

DMCP User Guide

Page 7 of 9

October 23, 2001

12 Read Device Registers (big Endian)

Description

This block is identical to block 0x10, except that the address, word count, and data are
returned in big-Endian, or network, byte order. Notice that the Length field is still in
little-Endian byte order.

Request

The request uses this format:

12

Address

WordCnt

00

0A

00

00

SeqNum

Ver

Address

The register address to begin reading from.

WordCnt

The number of registers to read (1-2048 in TCP, 1-512 in UDP).

Response

The success response follows this format:

WC*2+6

92

00

Data

0

Data

1

Data

n-1

00

SeqNum

Ver

Data

0

-Data

n-1

The data read from the address requested.

Example

The Command Position, Target Position, Actual Position, Counts, and Status Word for
axis 1 are located at register addresses 10-14. If a user wants to read these five registers,
the following packet would be sent to the RMC:

12

00

0A

00

0A

00

05

00

00

12

33

02

If these fields have the values 4000 (0x0FA0), 4000 (0x0FA0), 4001 (0x0FA1), 4247
(0x1097), and 0x0043, the response would be the following:

92

00

10

00

0F

A0

0F

A0

0F

A1

10

97

00

43

00

12

33

02

This manual is related to the following products: