Chapter 6

#aaSiBB(data)#aaSiBB(data)

 

A 4-character hexadecimal value is used to set the

 

channels, from 15 thru 0, of the ADAM-5056. A 2 char-

 

acter hexadecimal value is used to set the channels, from

 

5 thru 0, of the ADAM-5060. Bits 6 and 7 always default

 

to 0 in the ADAM-5060. A 2 character hexadecimal

 

value is used to set the channels, from 7 thru 0, of the

 

ADAM-5068.

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 error

 

or communication error or if the specified address does

 

not exist.

 

> delimiter character indicating a valid command was

 

received.

 

? delimiter character indicating the command was

 

invalid.

 

aa (range 00-FF) represents the 2-character hexadecimal

 

address of an ADAM-5000 system that is responding.

 

(cr) is the terminating character, carriage return (0Dh)

Example

command: #15S11201(cr)

 

response: >(cr)

 

An output bit with value 1 is sent to channel 2 of a

 

digital output module in slot 1 of the ADAM-5000

 

system at address 15h - either ADAM-5056 or ADAM-

 

5060/5068. Channel 2 of the digital output module is set

 

to ON.

 

command: #14S1001234(cr)

 

response: >(cr)

 

An output byte with value 1234h (0001001000110100) is

ADAM-5000

6-111

Page 233
Image 233
Advantech RS-485 user manual #aaSiBBdata#aaSiBBdata, Example Command #15S11201cr, Command #14S1001234cr