Advantech Adam 4000 Series User Manual page 236

Data acquisition modules
Hide thumbs Also See for Adam 4000 Series:
Table of Contents

Advertisement

4080, 4080D
7.2.1.7
#AAN
Name
Description Instructs the addressed counter/frequency module at
Syntax
Response
Example
ADAM-4000 Series User Manual
Counter or Frequency Value command
address AA to read the counter or frequency value of
counter 0 or counter 1 and return the acquired data.
#AAN(cr)
# is a delimiter character.
AA (range 00-FF) represents the 2-character hexadecimal
address that you will access to.
N represents the counter number.
N=0 represents counter 0
N=1 represents counter 1
(cr) is the terminating character, carriage return (0Dh).
>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 which indicates an invalid command.
AA (range 00-FF) represents the 2-character hexadecimal
address of the module.
(data) is the value that is retrieved by the module from
reading counter 0 or counter 1. The data format consists of
eight hexadecimal characters.
(cr) is the terminating character, carriage return (0Dh).
command: #120(cr)
response: >000002FE(cr)
The command requests the counter/frequency module at
address 12 to read the counter 0 and return the data. The
counter/frequency module at address 12 responds with
value 000002FE (hexadecimal) of counter 0 which is also
equivalent to 766 (decimal).
222

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents