Chapter 7
7-
43
ADAM 4000 Series User’s Manual
$AA3N(data)
Name Set Maximum Counter Value command
Description Set the maximum value for either counter 0 or counter 1 of
a specified counter/frequency module.
Syntax $AA3N(data)(cr)
$ is a delimiter character.
AA (range 00-FF) represents the 2-character hexadecimal
address that you will access to.
3 is the Set Maximum Counter Value command.
N determines the counter for which the maximum counter
value is to be set.
N = 0 represents counter 0
N = 1 represents counter 1
(data) is the maximum count value which consists of eight
hexadecimal digits. The module will accumulate the input
counts until it reaches the maximum value. When the count
exceeds the maximum counter value, the counter will stop
counting. The programmer should use the command
$AA6N to reset the counter to 1.
(cr) is the terminating character, carriage return (0Dh).
Response !AA(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 a valid command.
? is a delimiter character which indicates an invalid
command.
AA (range 00-FF) represents the 2-character hexadecimal
address of the module.
(cr) is the terminating character, carriage return (0Dh).
Example command: $24300000ffff(cr)
response: !24(cr)
The command requests the counter/frequency module at
address 24 to set the maximum value for counter 0 to 65535
(0x0000ffff). The module will reply that it has executed the
command.
4080, 4080D