Type 2 message examples – Applied Motion RS-232 User Manual
Page 293

293
920-0002 Rev. I
2/2013
Host Command Reference
Type 2 Message Examples
Example
1:
parameter
write
AC100
set acceleration rate to 100 rev/sec/sec (6000 rpm/sec)
opcode
0x83 parameter write, from Table 2
operand
0x1E
from
Table
3
data
0x258 units are 10 rpm/sec, so 6000/sec is represented by 600 decimal = 258 hex
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
83
opcode
byte 2
83
opcode
byte 3
1E
operand
byte 3
1E
operand
byte 4
2
data MSB
byte 4
?
Status Code MSB
byte 5
58
data LSB
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
Example
2:
parameter
read
AC
read back the acceleration rate
opcode
0x84 parameter read, from Table 2
operand
0x1E
from
Table
3
return value
0x258 units are 10 rpm/sec, so 6000/sec is represented by 600 decimal = 258 hex
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
84
opcode
byte 2
84
opcode
byte 3
1E
operand
byte 3
1E
operand
byte 4
0
not used
byte 4
2
read data MSB
byte 5
0
not used
byte 5
58
read data LSB
byte 6
0
not used
byte 6
0
not used
byte 7
0
not used
byte 7
0
not used