Advantech Data Acquisition Modules ADAM 4000 User Manual page 271

Advantech data acquisition modules user's manual
Table of Contents

Advertisement

4080, 4080D
#AAN
Name
Read Counter or Frequency Value command
Description
Instructs the addressed counter/frequency module at
address AA to read the counter or frequency value of
counter 0 or counter 1 and return the acquired data.
Syntax
#AAN(cr)
#
AA
address that you will access to.
N
N=0 represents counter 0
N=1 represents counter 1
(cr)
Response
>data(cr)
?AA(cr)
There is no response if the module detects a syntax or
communication error, or even if the specified address does
not exist.
?
command.
AA
address of the module.
(data)
reading counter 0 or counter 1. The data format consists of
eight hexadecimal characters.
(cr)
Example
command: #120(cr)
response:
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).
7-36 ADAM 4000 Series User's Manual
is a delimiter character.
(range 00-FF) represents the 2-character hexadecimal
represents the counter number.
is the terminating character, carriage return (0Dh).
if the command is valid.
if an invalid operation was entered.
is a delimiter character which indicates an invalid
(range 00-FF) represents the 2-character hexadecimal
is the value that is retrieved by the module from
is the terminating character, carriage return (0Dh).
>000002FE(cr)
Digital I/O and Relay Output
Counter/Frequency Command Set

Advertisement

Table of Contents
loading

Table of Contents