Advantech Data Acquisition Modules ADAM 4000 User Manual page 280

Advantech data acquisition modules user's manual
Table of Contents

Advertisement

4080, 4080D
$AA5NS
Name
Start/Stop Counter command
Description
Request the counter/frequency module to start or stop the
counting for either counter 0 or counter 1.
Syntax
$AA5NS(cr)
$
AA
address that you will access to.
5
N
disabled.
N = 0 represents counter 0
N = 1 represents counter 1
S
S = 0 stops counting
S = 1 starts counting
(cr)
Response
!AA(cr)
the module detects a syntax or communication error, or
even if the specified address does not exist.
!
AA
address of a counter input module.
(cr)
Example
command: $06501(cr)
response:
The command requests the counter 0 of counter/frequency
module at address 06 to start. The addressed module replies
with its address indicating that the command has been
executed. Counter 0 has started.
7-45 ADAM 4000 Series User's Manual
is a delimiter character.
(range 00-FF) represents the 2-character hexadecimal
is the Start/Stop Counter command.
determines the counter that should be either enabled or
represents the counter status.
is the terminating character, carriage return (0Dh).
if the command is valid. There is no response if
is a delimiter character which indicates a valid command.
(range 00-FF) represents the 2-character hexadecimal
is the terminating character, carriage return (0Dh).
!06(cr)
7
Chapter

Advertisement

Table of Contents
loading

Table of Contents