Tiny Addressable Serial Converter
ICP DAS CO., LTD.
User Manual, Ver. 1.3, Apr. 2018, Page: 39
5.1.3
$AADN[data-bit]
Description:
This function reads/sets the data bit for COM 1/2/3.
Syntax:
$AADN
[chk](CrLf)
Reads the data bit for COM 1/2/3 stored in the Flash
$AADN[data-bit]
[chk](CrLf)
Sets the data bit for COM 1/2/3
[Request]
Byte 1
Byte 2-3
Byte 4
Byte 5
Byte 6-7
Byte 8-9
Byte 10-11
Note
$
AA
D
N
[chk]
(CrLf)
-
Read
[data-bit]
[chk]
(CrLf)
Write
$
AA
N
[data-bit]
[chk]:
(CrLf):
Delimiter character
2-character port address in Hex format. The valid range is from 00~FF
0 = Reads/Sets the data bit for the COM 1
1 = Reads/Sets the data bit for the COM 2/3
Valid values are 5/6/7/8
2-character checksum. If the checksum is disabled
no [chk]
End Character
[Response]
Byte 1
Byte 2-3
Byte 4
Byte 5-6
Byte 7-8
Note
!
AA
[data-bit]
[chk]
(CrLf)
Read
Byte 1
Byte 2-3
Byte 4-5
Byte 6-7
Note
!
AA
[chk]
(CrLf)
Valid
?
Invalid
!
?
AA
[chk]
(CrLf)
Delimiter character indicating a valid command
Delimiter character indicating an invalid command
2-character port address in Hex format
2-character checksum. If the checksum is disabled
no [chk]
End Character
If no response
syntax error, communication error, or address error