![background image](http://html2.mh-extra.com/html/nafvjgs/ts-30/ts-30_programming-manual_3059525020.webp)
Address : 0x0000~0x00FF (2 bytes), indicating the starting address of the flag to be read .
Datas : 0x00~0xFF (1 byte), indicating the number of bytes of flag bits to be read continuously, 0x00 indicates
256 bytes .
CRC : CRC_CCITT check value (2 bytes) .
Calculation range : The calculation method of Types, Lens, Address, and Datas is CRC_CCITT, and the
characteristic polynomial : X16+X12+X5+1, that is, the polynomial coefficient is 0x1021, and the initial value is all
0. For a single byte, the highest bit is calculated first , do not need to be inverted and output directly .
Note : When the user does not need the CRC check function, he/she can choose no CRC check, that is, fill in
0xAB 0xCD at the CRC byte to avoid checking .
Returns : {Head2} {Types} {Lens} {Datas} {CRC}
1) The read is successful and the read data is returned
Among them :
Head2 : 0x02 0x00
Types : 0x00 (read successful)
Lens : Indicates the number of bytes of uploaded Datas, 0x00 means 256
Datas : 0x00~0xFF, indicating the read data
CRC : CRC_CCITT check value .
Calculation range : The calculation method of Types, Lens, and Datas is CRC_CCITT, and the characteristic
polynomial : X16+X12+X5+1, that is, the polynomial coefficient is 0x1021, and the initial value is all 0. For a single
byte, the highest bit is calculated first, not Need to invert the direct output .
2) Failed to deliver CRC check
no response command
3) Unknown command response
no response command
Example :
Read an address whose address is 0x000A in the flag bit
1) Read successfully and return data, the returned data is 0x3E
Input : 0x7E 0x00 0x07 0x01 0x00 0x0A 0x01 0xEE 0x8A
Returns : 0x02 0x00 0x00 0x01 0x3E 0xE4 0xAC
2) The CRC sent is wrong
Input : 0x7E 0x00 0x07 0x01 0x00 0x0A 0x01 0x11 0x22
return : none
3) When the waiting time between two bytes of the sent command exceeds 400ms, it is treated as an unknown
command
Input : 0x7E 0x00 0x07 0x01 0x00 0x0A 0x01
return : none
Содержание TS-30
Страница 1: ...NAFVJGS TS 30 programming manual...
Страница 8: ...Product Description...
Страница 18: ...Serial command configuration instructions...
Страница 39: ...The third part of setting code configuration instructions...
Страница 100: ...twenty three 4 5 6 7 8 9 A to F...