6
4 Communication packet format
The packet used in communication between MDS and PC is mentioned in this section.
4-1 Packet structure
It is changeable datalength and composed of the following factors.
The maximum packet length is 32 byte.
4-1-1 Header
Header is different between the packet transmission directions, that is PC->MDS or MDS->PC.
PC->MDS : 7EH
MDS->PC : 6FH
4-1-2 Packet length
Byte value from header to terminator.
The maximum packet length, 32 byte, occupies the value in the range from 05H to 20H.
4-1-3 Format type
The value of this factor always occupies 05H.
4-1-4 Category
The value of this factor always occupies 47H.
4-1-5 Data
According to the value of this factor, a control command or a request of condition is sent
from PC to MD.
And besides, a reply for control command or a current condition is sent from MD to PC.
Details about these data is explained from section 6 onward.
4-1-6 Terminator
The value of this factor always occupies FFH.
1 Header
2 Packet length
3 Format type
4 Category
5 Data
6 Terminator