B&B Electronics ADAM-6066 - Manual User Manual

Page 141

Advertising
background image

131

Chapter 6

#aan
Name

Read Analog Input from Channel N

Description Returns the input data from a specified analog input channel

in a specified module.

Syntax #aan(cr)

# is a delimiter character.
aa (range 00-FF) represents the 2-character hexadecimal
slave address of the ADAM-6000 module you want to
interrogate. (Always 01)
n (range 0-8) represents the specific channel you want to
read the input data.
(cr) is the terminating character, carriage return (0Dh).

Response

>(data)(cr) if the command is 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 address does not exist.
> delimiter indicating a valid command was received.
? delimiter indicating the command was invalid.
(cr) is the terminating character, carriage return (0Dh).

Example

command: #012(cr)
response: >+10.000
Channel 2 of the ADAM-6000 analog module at address
01h responds with an input value +10.000.

Advertising