Table of Contents

Advertisement

5.2.12

$AA6

Desctiption
This command is used to read whether each Analog Input channel of a
specified moduleis either enabled or disabled.
Syntax
$AA6[CHKSUM](CR)
$
Delimiter character.
AA
The address of the module to be read in hexadecimal format (01 to
FF)
6
The command to read the status of the Analog Input channels.
Response
Valid Command
Invalid Command
!
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)
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.
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
$1B6
Response
!1BB2
Reading 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: $AA5VV
ICP DAS, ZT-2005-C8 User Manual, Version v1.0.1
Copyright © 2014 by ICP DAS Co., Ltd. All Rights Reserved.
!AA[CHECKSUM](CR)
?AA[CHECKSUM](CR)
Page 30

Advertisement

Table of Contents
loading

Table of Contents