B&B Electronics ADAM-6066 - Manual User Manual

Page 166

Advertising
background image

ADAM-6000 Series User Manual

156

? delimiter indicating the command was invalid.
aa (range 00-FF) represents the 2-character hexadecimal
slave address of an ADAM-6000 module.
mm are two hexadecimal values.
Each value is interpreted as 4 bits.
The first 4-bit value represents the status of channels 5-4,
the second 4 bits 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)

Example command:

$016(cr)

response: !013F(cr)
The command asks the specific module at address 01h
to send the Enable/Disable status of all analog input

channels.

Channels 0~5 are all enabled. (3F equals 0011 and 1111).

#aa
Name

Read AI Values from All Channels

Description

Returns the input data from all analog input channels
in a specific module.

Syntax #aa(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)
(cr) is the terminating character, carriage return (0Dh).

Response >(data)(data)(data)(data)(data)(data)(cr) if command 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:

#01(cr)

response:>+10.000+10.000+10.000+10.000+10.000+10.00

0

Advertising