Advantech Data Acquisition Modules ADAM 4000 User Manual
Page 277

Digital I/O and Relay Output
Counter/Frequency Command Set
7-42 ADAM 4000 Series User’s Manual
$AAA
Name
Read Gate Mode command
Description
Request the specified counter/frequency module to return
its gate status.
Syntax
$AAA(cr)
$
is a delimiter character.
AA
(range 00-FF) represents the 2-character hexadecimal
address that you will access to.
A
is the Read Gate Mode command.
(cr)
is the terminating character, carriage return (0Dh).
Response
!AAG(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.
G
determines the gate mode.
G = 0 the gate is low
G = 1 the gate is high
G = 2 the gate is disabled.
(cr)
is the terminating character, carriage return (0Dh).
Example command:
$01A(cr)
response: !011(cr)
The command requests the counter/frequency module to
return its gate status. The module at address 01 replies with
gate setting high.
4080, 4080D