Advantech Data Acquisition Modules ADAM 4000 User Manual

Page 281

Advertising
background image

Digital I/O and Relay Output

Counter/Frequency Command Set


7-46 ADAM 4000 Series User’s Manual

$AA5N

Name

Read Counter Start/Stop Status command

Description

Requests the addressed counter/frequency module to
indicate whether counter 0 or counter 1 is active.

Syntax

$AA5N(cr)

$

is a delimiter character.

AA

(range 00-FF) represents the 2-character hexadecimal

address that you will access to.

5

is the Read Counter Start/Stop Status command.

N

determines the counter for which the status should be

returned.
N = 0 represents counter 0
N = 1 represents counter 1

(cr)

is the terminating character, carriage return (0Dh).

Response

!AAS(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.

S

represents the counter status.

S = 1 indicates the status is counting
S = 0 indicates the status is not counting

(cr)

is the terminating character, carriage return (0Dh).

Example

command: $0650(cr)
response:

!061(cr)

The command requests the counter/frequency module at
address 06 to return the status of counter 0. The module
replies that the counter 0 is in the counting process.

4080, 4080D

Advertising