ICP DAS, ZT-2005-C8 User Manual, Version v1.0.1 Page 29
Copyright © 2014 by ICP DAS Co., Ltd. All Rights Reserved.
5.2.11
$AA5VV
Description
This command is used to specify the Analog Input channels to be enabled on a
specified module.
Syntax
$AA5VV[CHKSUM](CR)
$
Delimiter character.
AA
The address of the module to be set in hexadecimal format (01 to FF)
5
The command to enable the Analog Input channels.
VV
A two-digit hexadecimal value representing the Analog Input channel,
where bit 0 corresponds to channel 0, and bit 1 corresponds to channel
1, etc. When the bit is 0, it denotes that the channel is to be disabled,
and 1 denotes that the channel is to be enabled. For example, B2 =
10110010b = enabled channel 2,5,6 and8; disabled channel 1,3,4 and 7.
Response
Valid Command
!AA[CHECKSUM](CR)
Invalid Command ?AA[CHECKSUM](CR)
!
Delimiter character to indicate a valid command.
?
Delimiter character to indicate an invalid command.
AA
The address of the responding module in hexadecimal format (01 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 $1B5B2
Response !1B
Setting module address 27 to enable channel 2, 5, 6 and 8 / disabled channel 1, 3,
4 and 7, and returns a response indicating that the command was
successful.
※
Related Commands: $AA6