beautypg.com

Advantech Data Acquisition Modules ADAM 4000 User Manual

Page 272

background image

Chapter

7


7-37 ADAM 4000 Series User’s Manual

$AA8V

Name

Select LED Data Origin command

Description

Select whether LED will display data from either the host
computer or the counter/frequency module directly.

Syntax

$AA8V(cr)

$

is a delimiter character.

AA

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

address that you will access to.

8

is the Select LED Data Origin command.

V

indicates the origin of the data which is 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)

Response

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

(cr)

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

Example command:

$0182(cr)

response: !01(cr)

The command sets the counter/frequency modules at
address 01 to display data sent by the host computer. After
this command has been issued, the host computer can use
command $AA9(data) to send the data to the module.

4080D