Advantech ADAM 4100 User Manual page 78

Industrial grade data acquisition modules
Hide thumbs Also See for ADAM 4100:
Table of Contents

Advertisement

Command Set
4.6.4
#AABB
Name
Digital Data Out
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 for the output.
BB is used to indicate whether a single channel or all the
channels will be set. In the last character of BB also indicates
which channel it is.
1. Writing to all channels (write a byte): both characters
2. Writing to a single channel (write a bit): First character
(data) is the hexadecimal representation of the digital output
value(s). These two characters are for ADAM-4150 and
4168.
For writing to a single channel (bit), the first character is
always 0. The value of the second character is either 0 or 1.
For writing to all channels (byte), both characters are
significant (range 00h-FFh). The decimal equivalent of these
two hexadecimal characters represents the channels' values.
The value 7A can be converted to the following 8 channels
representations for ADAM-4150 and ADAM-4168:
Digital Value:
ADAM-4150/4168 channel no. 7 6 5 4 3 2 1 0
4-40 ADAM 4100 Series User's Manual
should be equal to zero (BB=00).
is 1, and the second character indicates channel number,
which can range from 0 to B.
0 1 1 1 1 0 1 0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents