beautypg.com

ADLINK ND-6067 User Manual

Page 211

background image

209

6.7.14 Read then Clear Overflow Flag

@Description

Read the status of the overflow flag of counter 0 or counter 1, and
then clear the flag afterward.

@Syntax

$(Addr)7(CounterNo)

$

Command leading code.

(Addr)

Address ID (2-character)

7

Read then clear overflow command code.

(CounterNo)

0: counter 0
1: counter 1

@Response

!(Addr)(OFlag)

or

?(Addr)

!

Command is valid.

?

Command is invalid.

(Addr) Address

ID.

(OFlag)

0: the overflow flag has not been set
1: the counting value has exceeded the maximum
count, the overflow flag has been set.

* After executing the command, the overflow flag will clear to
zero if it has been set.

@Example

User command:

$3070

Response:

!301

Item Meaning

Description

$

(Leading Code)

Command leading code.

30

(Addr)

Address ID is 30H.

7

Read counter overflow command
code.

0 (CounterNo) Counter

0.

!

Command is valid.

30

Address of counter/frequency module.

1

Counter 0 is overflowed.

(6080)