B&B Electronics ADAM-6066 - Manual User Manual

Page 165

Advertising
background image

155

Chapter 6

3-0. A value of 0 means the channel is disabled, while a
value of 1 means the channel is enabled.
(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 error or
communication error or if the address does not exist.
! delimiter indicating a valid command was received.
? delimiter indicating the command was invalid.
aa (range 00-FF) represents the 2-character hexadecimal
slave address of an ADAM-6000 module.
(cr) is the terminating character, carriage return (0Dh)

Example command:

$01521(cr)

response: !01(cr)
The command enables/disables channels of the analog input
module at address 01h. Hexadecimal 2 equals binary 0010,
which enables channel 5 and disables channels 4.
Hexadecimal 1 equals binary 0001, which enables channel 0
and disables channels 1, 2 and 3.

$aa6
Name

Read AI Channels Enable/Disable Status

Description

Asks a specified module to return the Enable/Disable status

of all analog input channels

Syntax $aa6(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)
6 is the read channels status command.
(cr) is the terminating character, carriage return (0Dh)

Response

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

Advertising