User Manual
185 Chapter 6
#aabb(data)
Name Write Digital Output
Description This command sets a single or all digital output channels to
the specific ADAM-6000 module.
Syntax #aabb(data)(cr)
# is a delimiter character.
aa (range 00-FF) represents the 2-character hexadecimal
slave network address of the ADAM-6000 module.
(Always 01)
bb is used to indicate which channel(s) you want to set.
Writing to all channels (write a byte): both characters should
be equal to zero (BB=00).
Writing to a single channel (write a bit): first character is 1,
second character indicates channel number which can range
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)