Advantech ADAM 4000 Series User Manual page 152

Data acquisition modules
Hide thumbs Also See for ADAM 4000 Series:
Table of Contents

Advertisement

Response
Examples
ADAM-4000 Series User Manual
When writing to all channels (byte), the first character zero
is irrelevant, but the rest are significant (range 000h-FFFh).
The digital equivalent of last three hexadecimal characters
represents the value of channels.
For example: 017A
First character is always 0
2nd~4th character means the the channel values 17A.
Digital value
Adam-4056S/4056SO channel no. 11 10 9 8 7 6 5 4 3 2 1 0
(cr) is the terminating character, carriage return (0Dh).
>(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 or
communication error, or even if the specified address does not exist.
> is a delimiter character which indicates a valid command.
? is a delimiter character which indicates an invalid command.
AA (range 00-FF) represents the responding 2-character
hexadecimal address of the module.
(cr) is the terminating character, carriage return (0Dh).
command: #140005(cr)
response: >(cr)
An output byte with value 05h (00000101) is sent to the
digital I/O module at address 14h (Either ADAM-4050 or
ADAM-4060). Its channel 0 and 2 will be set to ON.
Other channels are set to OFF.
command: #151201(cr)
response: >(cr)
An output bit with value 1 is sent to channel 2 at address
15h of a digital I/O module (Either ADAM-4050 or
ADAM-4060).
Channel 2 of the digital I/O module is set to ON.
command: #1400017A(cr)
response: >(cr)
An output byte with value 017Ah (0000000101111010) is
sent to the digital I/O module at address 14h (Either
ADAM-4056S or ADAM-4056SO). Its channel 1, 3, 4, 5, 6,
and 8 will be set to ON. Other channels are set to OFF.
command: #15120001(cr)
response: >(cr)
An output bit with value 1 is sent to channel 2 of a digital
I/O module at address 15h (Either ADAM-4056S or
ADAM-4056SO). Channel two of the digital I/O module is set to ON.
0
0
0 1 0 1 1 1 1 0 1 0
140

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents