Chapter 6

$aaSi6

$aaSi6

aa(range 00-FF) represents the 2-character hexadecimal address of an ADAM-5000 system.

(datainput) a 2-character hexadecimal value representing the input values of the digital input module.

(dataoutput) a 2-character hexadecimal value which is the readback of a digital output channel or relay.

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

Example command: $33S26(cr)

response: !33112200(cr)

The command asks the digital input module in slot 2 of the ADAM-5000 system at address 33h to return the values of all of its channels.

The first 2-character portion of the response indicates the address of the ADAM-5000 system. The second 2- character portion of the response, value 11h (00010001), indicates that digital input channels 8 and 12 are ON, channels 9, 10, 11, 13, 14 and 15 are OFF. The third 2- character portion of the response, value 22h (00100010), indicates that digital input channels 1 and 5 are ON, and channels 0, 2, 3, 4, 6 and 7 are OFF.

ADAM-5000

6-109

Page 231
Image 231
Advantech RS-485 user manual Example command $33S26cr Response !33112200cr