ICP DAS, ZT-2017 and ZT-2017C AI Series User Manual, Version 1.0.1
Page 39
Copyright © 2012 by ICP DAS Co., Ltd. All Rights Reserved.
6.2.5
#AAN
Description
This command is used to read the analog input data from a specific channel of a
specified module.
Syntax
#AAN[CHECKSUM](CR)
#
Delimiter character
AA
The address of the module to be read in hexadecimal format (00 to FF)
N
The channel to be read, zero based
Response
Valid Command
>(Data)[CHECKSUM](CR)
Invalid Command
?AA[CHECKSUM](CR)
>
Delimiter character to indicate a valid command
?
Delimiter character to indicate an invalid command. Note that a
response indicating that the command was successful will be returned if
the specified channel is incorrect.
(Data) The analog input data from the specified channel. See Section 4 for
details of the data format. If the specified channel is disabled, then the
data field will be filled with space characters.
AA
The address of the responding module in hexadecimal format (00 to FF)
There will be no response if the command syntax is incorrect, there is a
communication error, or there is no module with the specified address.
Examples
Command #032
Response >+025.13
Reads data from channel 2 of module 03 and returns a response indicating that
the command was successful, and the analog input value is +025.13mV.
Command #039
Response ?03
Attempts to read data from channel 9 of module 03. A response indicating that