beautypg.com

Advantech Data Acquisition Modules ADAM 4000 User Manual

Page 273

background image

Digital I/O and Relay Output

Counter/Frequency Command Set


7-38 ADAM 4000 Series User’s Manual

$AA8

Name

Read LED Data Origin command

Description

Read the LED Data Origin status which determines whether
LED will display data from either the host computer or the
counter/frequency module directly.

Syntax

$AA8(cr)

$

is a delimiter character.

AA

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

address that you will access to.

8

is the Read LED Data Origin command.

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

V

indicates the origin of the data to be displayed on the

LED:
V=0 sets the LED data origin to the module's counter 0
V=1 sets the LED data origin to the module's counter 1
V=2 sets the LED data origin to the host computer

(cr)

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

Example command:

$018(cr)

response: !011(cr)

The command requests the counter/frequency module at
address 01 to return its LED Data Origin status. The
module replies that it currently displays data from counter
1.

4080D