B&B Electronics ADAM-6066 - Manual User Manual

Page 176

Advertising
background image

ADAM-6000 Series User Manual

166

from 0h to Fh.
(data) is the hexadecimal representation of the DO value(s).
When writing to a single channel (bit)
The first character is always 0. The value of the second char-
acter is either 0 or 1.
When writing to all channels (byte)
2 or 4-characters are significant. The digital equivalent of
these hexadecimal characters represent the channels’ values.

Response >(cr) if the command was valid.

?aa(cr) if an invalid command has been issued.
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 network address of a module that is responding.
(cr) is the terminating character, carriage return (0Dh)

Example

command: #011201(cr)
response: >(cr)
An output bit with value 1 is sent to channel 2 of a digital
output module at address 01h.
Channel 2 of the digital output module is set to ON.
command: #010012(cr)
response: >(cr)
An output byte with value 12h (00010010) is sent to the
digital output module at address 01h. Channels 1and 4 will
be set to ON, and all other channels will be set to OFF.

Advertising