![Nanomotion XCDX User Manual Download Page 39](http://html.mh-extra.com/html/nanomotion/xcdx/xcdx_user-manual_705065039.webp)
XCDX458000-00 rev A
39
Communication Protocol
Numbers in XCDX command and reply block are sent in little-endian format,
i.e. the least significant byte first.
Each XCDX command block consists of the following parts:
Table 3: XCDX command Block
Part
Byte
offset
Size in
bytes
Description
Block prefix
0
2
Constant 0x18FC (byte 0 is 0xFC,
byte 1 is 0x18)
2
2
Length of the whole block in bytes,
including the block prefix
4
2
ID assigned by the Host
6
2
Format code 0x0002 (byte 6 is 0x02,
byte 7 is 0x00)
Command 1
prefix
8
1
Destination 0 (X), 1 (Y), 2 (Z), or 128
(MCU)
9
1
Length of the command body in bytes
Command 1
body
10
1
Command code, see XCDX
Commands
11
N
Parameters, see specific command for
details
Command 2
prefix
Command 2
body
Command N
prefix
Command N
body