B&B Electronics ADAM-6066 - Manual User Manual

Page 146

Advertising
background image

ADAM-6000 Series User Manual

136

$aa5mm
Name

Set Channel Enable/Disable Status

Description Set Enable/Disable status for all analog input channels
Syntax $aa5mm(cr)

$ is a delimiter character.
aa (range 00-FF) represents the 2-character hexadecimal
slave address of the ADAM-6000 module. (Always 01)
5 identifies the enable/disable channels command.
mm (range 00-FF) are two hexadecimal characters.
Each character is interpreted as 4 bits.
The first 4-bit value represents the status of channels
7-4; the second 4-bit value represents the status of channels
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: $01581(cr)
response: !01(cr)
The command enables/disables channels of the analog input
module at address 01h. Hexadecimal 8 equals binary 1000,
which enables channel 7 and disables channels 4, 5 and 6.
Hexadecimal 1 equals binary 0001, which enables channel 0
and disables channels 1, 2 and 3.

Advertising