Communications Protocol
[1] Communications Format
The communication unit is a 4
・Communications Speed:
2400, 4800, 9600, 19200, 38400 9600 bps
(DEFAULT MD800 – 500)
*MD400 and MD300 cannot connect at 38400bps.
| DEFAULT is 19200bps. |
|
|
|
|
|
|
|
| ||||||
・Data Length: | 8 bit |
|
|
|
|
|
|
|
|
| |||||
・Start Bit: | 1 bit |
|
|
|
|
|
|
|
|
| |||||
・Stop Bit: | 1 bit |
|
|
|
|
|
|
|
|
| |||||
・Parity:None |
|
|
|
|
|
|
|
|
|
|
| ||||
・Flow Control: None |
|
|
|
|
|
|
|
|
| ||||||
⁃⁃Packet Format |
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
| Header | Message | Message | Message |
| … | Checksum | Terminator | |||||||
|
|
| 0 |
| 1 |
|
| 2 |
|
|
|
|
| (0xFF) | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
⁃⁃Header Format |
|
|
|
|
|
|
|
|
| ||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
| 1 |
| 0/1 |
| 0/1 |
| 0 |
| 0 | 0 |
| 0 |
| 0 | |
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||
| Bit 7 | Bit 6 | Bit 5 Bit 4 |
| Bit 3 | Bit 2 |
| Bit 1 |
| Bit 0 | |||||
| (MSB) |
|
|
|
|
|
|
|
|
|
|
|
| (LSB) |
・Bit
・Bit 3: Fixed [0] *Reserved bit: During broadcast transmissions
・Bit 4: Fixed [0]
・Bit 5: During query commands [0], during settings command [1]
・Bit 6: During settings/query [0], during response to query [1]
⁃⁃Terminator Format
| 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
|
|
|
|
|
|
|
|
|
| Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
| (MSB) |
|
|
|
|
|
| (LSB) |
・Bit |
|
|
|
|
| |||
⁃⁃Message Format |
|
|
|
|
| |||
|
|
|
|
|
|
|
| |
| 0 | 0/1 | 0/1 | 0/1 | 0/1 | 0/1 | 0/1 | 0/1 |
|
|
|
|
|
|
|
|
|
| Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
| (MSB) |
|
|
|
|
|
| (LSB) |
・Bit
⁃⁃Checksum Format
0 | 0/1 | 0/1 | 0/1 | 0/1 | 0/1 | 0/1 | 0/1 |
|
|
|
|
|
|
|
|
Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
(MSB) |
|
|
|
|
|
| (LSB) |
・Bit
・Bit 7: Fixed [0]
⁃⁃Response Command Format
1 | 1 | 1 | 1 | 0/1 | 0/1 | 0/1 | 0/1 |
|
|
|
|
|
|
|
|
Bit 7 | Bit 6 | Bit 5 | Bit 4 | Bit 3 | Bit 2 | Bit 1 | Bit 0 |
(MSB) |
|
|
|
|
|
| (LSB) |
・Bit
・Bit
・ACK: This is the response when the process of the received command is correctly completed after receiving the data in the correct format.
・NACK: This is the response when data is received in an incorrect format.
・ERR: Although the data is received in the correct format, this is the response when the process regarding the received command is incorrect or cannot be conducted.
− 6 −