beautypg.com

Chapter 6, Planning your application program – B&B Electronics ADAM-5000_TCP - Manual User Manual

Page 213

background image

Chapter 6

Planning Your Application Program

Note that the number of channels on the ADAM-
5056 and ADAM-5060/5068/5069 differ.

A 4-character hexadecimal value is used to set the
channels, from 15 thru 0, of the ADAM-5056. A 2
character hexadecimal value is used to set the chan-
nels, from 5 thru 0, of the ADAM-5060. Bits 6 and 7
always default to 0 in the ADAM-5060. A 2-charac-
ter hexadecimal value is used to set the
channels, from 7 thru 0, of the ADAM-
5055/5068/5069.

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 ad-
dress 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 hexadeci-
mal Modbus network address of an ADAM-5000/
TCP 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/ TCP system at address 15h -
either ADAM-5056 or
ADAM-5050/5055/5060/5068/5069. Channel 2 of the
digi- tal output module is set to ON.

command: #01S1001234(cr)

response: >(cr) An output byte with value 1234h
(0001001000110100) is sent to the digital output
module (ADAM-5056) in slot 1 of the

ADAM-5000/TCP system at address

6-144

ADAM-5000/TCP User’s Manual