EasyManua.ls Logo

Advantech ADAM 4100 - Page 95

Advantech ADAM 4100
149 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 4
Chapter 4 Command Set
4-57
4.6.18
#AAN
Name: Read Counter or Frequency Value
Description: Instructs the counter/frequency module at address AA to
read the counter or frequency value from counter 0 or 1 and
to return the acquired data.
Syntax: #AAN(cr)
# is a delimiter character.
AA (range 00-FF) represents the 2-character hexadecimal
address which is to be accessed.
N represents the Channel number.
(cr) is the terminating character, carriage return (0Dh)
Response: >data(cr) if the command is valid.
?AA(cr) if an invalid operation was entered.
There is no response if the module detects a syntax or
communication error, or even if the specified address does
not exist.
? is a delimiter character indicating that the command was
invalid.
AA (range 00-FF) represents the 2-character hexadecimal
address of a counter/frequency input module.
(data) is the value that is retrieved by the module by
module reading counter. The data format consists of eight
hexadecimal digits.
(cr) is the terminating character, carriage return (0Dh).
Example: command: #120(cr)
response: >000002FE(cr)
The command requests the counter/frequency module at
address 12 to read the counter 0 and to return the data. The
counter/frequency module at address 12 responds with
value 000002FE, which is also equivalent to 766 in
decimals, from counter 0.