Advantech Adam 4000 Series User Manual page 246

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

Advertisement

4080, 4080D
7.2.2.6
$AA5N
Name
Description Requests the addressed counter/frequency module to
Syntax
Response
Example
ADAM-4000 Series User Manual
Read Counter Start/Stop Status command
indicate whether counter 0 or counter 1 is active.
$AA5N(cr)
$ is a delimiter character.
AA (range 00-FF) represents the 2-character hexadecimal
address that you will access to.
5 is the Read Counter Start/Stop Status command.
N determines the counter for which the status should be returned.
N = 0 represents counter 0
N = 1 represents counter 1
(cr) is the terminating character, carriage return (0Dh).
!AAS(cr) if the command is valid.
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 a valid command.
AA (range 00-FF) represents the 2-character hexadecimal
address of the module.
S represents the counter status.
S = 1 indicates the status is counting
S = 0 indicates the status is not counting
(cr) is the terminating character, carriage return (0Dh).
command: $0650(cr)
response: !061(cr)
The command requests the counter/frequency module at
address 06 to return the status of counter 0. The module
replies that the counter 0 is in the counting process.
232

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents