User Manual

Chapter 5
5-15
ADAM 4000 Series User’s Manual
4015, 4015T, 4017, 4017+, 4018,
4018+, 4018M, 4019+
#AAN
Name Read Analog Input from Channel N command
Description The co mmand will ret urn the inp ut v alue from o ne of the
eight channels of a specified (AA) module in the currently
configured data format.
Syntax #AAN(cr)
# is a delimiter character.
AA (range 00-FF) represents the 2-character he xadecimal
address of the analog input module.
N id entifies t he ch annel you w ant to r ead. Th e v alue can
range from 0 to 7 for 4017, 4018, 4018M, 4019. (The range
of 4015 is from 0 to 5)
(cr) is the terminating character, carriage return (0Dh).
Response >(data)(cr)
There is no response if the module detects a syntax error or
communication e rror or if the s pecified a ddress does not
exist.
> is a delimiter character.
(data) is th e i nput v alue of the ch annel number N. Data
consists of a + o r - sign followed b y five d ecimal d igits
with a fixed decimal point.
(cr) is the terminating character, carriage return (0Dh).
Example command: #120(cr)
response: >+1.4567(cr)
The command requests t he analog input module at addr ess
12h to return the input value of channel 0.
The anal og i nput m odule re sponds t hat t he i nput val ue of
channel 0 is equal to +1.4567 volts.