EasyManua.ls Logo

Advantech Adam 4000 Series - Page 271

Advantech Adam 4000 Series
398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 4 Command Set 4-187
4080, 4080D
Chapter 4
$AA7N
Name Read/Clear Overflow Flag.
Description The command requests the addressed module to return the
status the overflow flag of counter 0 or counter 1 and clear the
flag afterwards.
Syntax $AA7N(cr)
$ is a delimiter character.
AA (range 00-FF) represents the 2-character hexadecimal
address of counter/frequency module that you want to interro-
gate.
7 identifies the Read/Clear Overflow Flag command
N determines the channel which overflow flag status should be
read and cleared. N = 0 represents counter 0 and N = 1 repre-
sents counter 1
(cr) is the terminating character, carriage return (0Dh)
Response !AAV(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 commu-
nication error, or if the specified address does not exist.
! is a delimiter character indicating the command was valid.
? is a delimiter character indicating the command was invalid.
AA (range 00-FF) represents the 2-character hexadecimal
address of a counter input module.
V represents the status of the Nth channel's overflow flag.
V = 1 means that the overflow flag has been set because the
counting has exceeded the maximum count. V = 0 means that
the overflow flag has not been set.
(cr) is the terminating character, carriage return (0Dh).
Example command: $1371(cr)
response: !131(cr)
The command requests the counter/frequency module at
address 13 to return the status of the overflow flag of counter 1
and reset it. The addressed module replies that the overflow
flag for counter 1 indicated overflow and was reset.

Table of Contents

Related product manuals