Applied Motion RS-232 User Manual

Page 295

Advertising
background image

295

920-0002 Rev. I

2/2013

Host Command Reference

Example 6: read Q register D

opcode

0x9F read 32 bit Q register, from Table 2

operand 0x44 from Reg Code Table, indicates register ‘D’

return value

0x12345678

Type 2 Command Message Payload

Type 2 Response Message Payload

byte 0

0

reserved

byte 0

0

reserved

byte 1

2

message type

byte 1

2

message type

byte 2

9F

opcode

byte 2

9F

opcode

byte 3

44

operand

byte 3

44

operand

byte 4

0

not used

byte 4

12

read data MSB

byte 5

0

not used

byte 5

34

read data 2nd MSB

byte 6

0

not used

byte 6

56

read data 2nd LSB

byte 7

0

not used

byte 7

78

read data LSB

Example 7: write Q register D

opcode

0x9E read 32 bit Q register, from Table 2

operand 0x44 from Reg Code Table, indicates register ‘D’

data 0x12345678

Type 2 Command Message Payload

Type 2 Response Message Payload

byte 0

0

reserved

byte 0

0

reserved

byte 1

2

message type

byte 1

2

message type

byte 2

9E

opcode

byte 2

9E

opcode

byte 3

44

operand

byte 3

44

operand

byte 4

12

data MSB

byte 4

?

status code MSB

byte 5

34

data 2nd MSB

byte 5

?

status code LSB

byte 6

56

data 2nd LSB

byte 6

0

not used

byte 7

78

data LSB

byte 7

0

not used

Example 8: Disable IEEE-1588 protocol (for Class 1 connections)

opcode

0xFE IEEE-1588 control, from Table 2

operand 0x1

Disable IEEE-1588 protocol. (0x0 will enable IEEE-1588)

data 0x0

Type 2 Command Message Payload

Type 2 Response Message Payload

byte 0

0

reserved

byte 0

0

reserved

byte 1

2

message type

byte 1

2

message type

byte 2

FE

opcode

byte 2

FE

opcode

byte 3

1

operand

byte 3

0

operand

byte 4

0

not used

byte 4

?

status code MSB

byte 5

0

not used

byte 5

?

status code LSB

byte 6

0

not used

byte 6

0

not used

byte 7

0

not used

byte 7

0

not used

Advertising
This manual is related to the following products: