Advantech Data Acquisition Modules ADAM 4000 User Manual page 243

Advantech data acquisition modules user's manual
Table of Contents

Advertisement

4050, 4055, 4056S,
4056SO, 4060, 4068, 4069
#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
address of the output value.
BB
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)
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:
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:
ADAM-4060 channel no. - - - - 3 2 1 0
7-8 ADAM 4000 Series User's Manual
(range 00-FF) represents the 2-character hexadecimal
is used to indicate whether all channels will be set or a
is the hexadecimal representation of the digital output
Digital I/O and Relay Output
Counter/Frequency Command Set
0 1 1 1 1 0 1 0
0 0 0 0 1 0 1 0

Advertisement

Table of Contents
loading

Table of Contents