Chapter 6 – B&B Electronics ADAM-5000_TCP - Manual User Manual
Page 112

Planning Your Application Program
Chapter 6
$aaM
Name
Read Module Name
Description
Returns the module name from a specified ADAM-
5000/TCP system.
Syntax $aaM(cr)
$ is a delimiter character.
aa (range 00-FF) represents the 2-character hexadeci-
mal address of the ADAM-5000/TCP system
you want to interrogate. M is the Module Name
command.
(cr) is the terminating character, carriage return (0Dh).
Response !aa5000(cr)
if the command is valid.
?aa(cr) if an invalid operation was entered. There is
no response if the module detects a syntax error,
communication error or if the specified address does
not exist.
! delimiter character indicating a valid command was
received.
? delimiter character indicating the command was in-
valid.
aa (range 00-FF) represents the 2-character hexadeci-
mal address of an ADAM-5000/TCP system.
(cr) is the terminating character, carriage return (0Dh).
Example
command: $01M(cr)
response: !015000(cr) The command requests the
system at address 01h to send its module name.
The system at address 01h responds with
module name 5000/TCP indicating that there is an
ADAM-
5000/TCP at address 01h.
ADAM-5000/TCP User’s Manual
6-45