beautypg.com

Advantech Data Acquisition Modules ADAM 4000 User Manual

Page 244

background image

Chapter

7


7-9 ADAM 4000 Series User’s Manual

ADAM-4056S and 4056SO:

When writing to a single channel (bit), the first three
characters are always 0. The value of the last character is
either 0 or 1.
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

0 0 0 1 0 1 1 1 1 0 1 0

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).

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 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).


4050, 4055, 4056S,
4056SO, 4060, 4068, 4069