beautypg.com

Advantech Data Acquisition Modules ADAM 4000 User Manual

Page 167

background image

Chapter

5


5-21

ADAM 4000 Series User’s Manual

4011, 4011D, 4012, 4013,
4015, 4015T, 4016

$AA4

Name

Read Synchronized Data command

Description

Returns the input value that was stored in the addressed
module’s register, after a Synchronized Sampling command
#** was issued.

Syntax

$AA4(cr)

$

is a delimiter character.

AA

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

address of the analog input module from which data is to be
sent.

4

is the Read Synchronized Data command.

(cr)

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

Response

!AA(status)(data)(cr)

if the command was valid.

?AA(cr)

if an invalid operation was entered.

There is no response if the module detects a syntax error or
communication error or if the specified address does not
exist.

!

delimiter character indicates a valid command was

received.

AA

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

address of the analog input module that is responding.

(status)

will tell you if the data (data) from the last

Synchronized Sampling command (#**) has already been
sent. If status = 1, then the data has been sent for the first
time since a Synchronized Sampling command was issued.
If status = 0, then the data has been sent at least once
before.

(data)

a value

stored in a special register of the interrogated

module in the configured data format. It has been sampled
by the module after a Synchronized Sampling command.
(For possible data formats, see Appendix B, Data Formats
and I/O Ranges)

(cr)

represents terminating character,

carriage return (0Dh).