Digital I/O and Relay Output
Counter/Frequency Command Set
7-
8
ADAM 4000 Series User’s Manual
#AABB
Name Digital Data Out command
Description The command either sets a single digital output channel or
sets all digital output channels simultaneously.
Syntax #AABB(data)(cr)
# is a delimiter character.
AA (range 00-FF) represents the 2-character hexadecimal
address of the output value.
BB is used to indicate whether all channels will be set or a
single channel will be set. In the last case, BB will also
indicate which channel it is. Writing data (a byte) to all
channels should make both characters to be zero (BB=00).
Writing data (a bit) to a single channel, however, will make
the first character 1and the second character ranging from 0
to B. The second character indicates the channel number.
(data) is the hexadecimal representation of the digital output
value(s). Two characters are for ADAM-4050, ADAM-4055,
ADAM-4060 and ADAM-4068. Four characters are for
ADAM-4056S and 4056SO.
ADAM-4050, 4055, 4060 and 4068:
When writing to a single channel (bit), the first character is
always 0. The value of the second character will be either 0 or
1.
When writing to all channels (byte), both characters are
significant (range 00h-FFh). The digital equivalent of these
two hexadecimal characters represents the value of the
channels.
The amount of channels on ADAM-4050, ADAM-4055,
ADAM-4060 and ADAM-4068 differ. The value 7A
representation for 8 channeled ADAM-4050, ADAM-4055
and ADAM-4068 would be the following:
Digital Value: 0 1 1 1 1 0 1 0
ADAM-4050/4055/4068 channel no. 7 6 5 4 3 2 1 0
Since the ADAM-4060 only has four output channels, all the
relevant values lie between 00h and 0Fh. The value 0Ah for
the ADAM-4060 would represent the following:
Digital Value: 0 0 0 0 1 0 1 0
ADAM-4060 channel no. - - - - 3 2 1 0
4050, 4055, 4056S,
4056SO, 4060, 4068, 4069