Advantech Data Acquisition Modules ADAM 4000 User Manual page 281

Advantech data acquisition modules user's manual
Table of Contents

Advertisement

4080, 4080D
$AA5N
Name
Read Counter Start/Stop Status command
Description
Requests the addressed counter/frequency module to
indicate whether counter 0 or counter 1 is active.
Syntax
$AA5N(cr)
$
AA
address that you will access to.
5
N
returned.
N = 0 represents counter 0
N = 1 represents counter 1
(cr)
Response
!AAS(cr)
There is no response if the module detects a syntax or
communication error, or even if the specified address does
not exist.
!
AA
address of the module.
S
S = 1 indicates the status is counting
S = 0 indicates the status is not counting
(cr)
Example
command:
response:
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.
7-46 ADAM 4000 Series User's Manual
is a delimiter character.
(range 00-FF) represents the 2-character hexadecimal
is the Read Counter Start/Stop Status command.
determines the counter for which the status should be
is the terminating character, carriage return (0Dh).
if the command is valid.
is a delimiter character which indicates a valid command.
(range 00-FF) represents the 2-character hexadecimal
represents the counter status.
is the terminating character, carriage return (0Dh).
$0650(cr)
!061(cr)
Digital I/O and Relay Output
Counter/Frequency Command Set

Advertisement

Table of Contents
loading

Table of Contents