Advantech Data Acquisition Modules ADAM 4000 User Manual page 161

Advantech data acquisition modules user's manual
Table of Contents

Advertisement

4015, 4015T, 4017, 4017+, 4018,
4018+, 4018M, 4019+
#AAN
Name
Read Analog Input from Channel N command
Description
The command will return the input value from one of the
eight channels of a specified (AA) module in the currently
configured data format.
Syntax
#AAN(cr)
#
AA
address of the analog input module.
N
range from 0 to 7 for 4017, 4018, 4018M, 4019. (The range
of 4015 is from 0 to 5)
(cr)
Response
>(data)(cr)
There is no response if the module detects a syntax error or
communication error or if the specified address does not
exist.
>
(data)
consists of a + or - sign followed by five decimal digits
with a fixed decimal point.
(cr)
Example
command:
response:
The command requests the analog input module at address
12h to return the input value of channel 0.
The analog input module responds that the input value of
channel 0 is equal to +1.4567 volts.
is a delimiter character.
(range 00-FF) represents the 2-character hexadecimal
identifies the channel you want to read. The value can
is the terminating character, carriage return (0Dh).
is a delimiter character.
is the input value of the channel number N. Data
is the terminating character, carriage return (0Dh).
#120(cr)
>+1.4567(cr)
5-15
ADAM 4000 Series User's Manual
5
Chapter

Advertisement

Table of Contents
loading

Table of Contents