Download User Manual

Transcript
4.2.9 #AAN Description
This command is used to read the digital input counter of channel N 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 (DI0 to DIF)
Response
Valid Command
!AA(Data)[CHECKSUM](CR)
Invalid Command
?AA[CHECKSUM](CR)
!
Delimiter character to indicate that the command was valid
?
Delimiter character to indicate that the command was invalid
(Data) A five-digital decimal value representing the digital input counter data for the
specified channel (00000 to 65535).
AA
The address of the module responding 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.
Example
Command
#011
Response
!0100005
Reads data from channel 1 of module 01 and returns a response indicating that the
command was valid and that the counter value is 00005.
Example
Command
#015
Response
!0100005
Reads data from channel 5 of module 01 and returns a response indicating that the
command was valid, and that the counter value is 00005.
※Related Commands: #AACN
ICP DAS, ZT‐2000 DIO SEIRES User Manual, Version 1.2.1 Page 49 Copyright © 2013 by ICP DAS Co., Ltd. All Rights Reserved.