beautypg.com

B&B Electronics ADAM-5000_TCP - Manual User Manual

Page 114

background image

Planning Your Application Program

Chapter 6

$aaT

Name

Read I/O Type

Description

Returns the I/O module no. of all slots for a specified

ADAM-5000/TCP system.

Syntax $aaT(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.

T is the I/O Module Types command.

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

Response !aabbccddee(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. bb, cc,
dd, ee
represent the I/O Module No. of all slots from
slot 0 thru 3 of the ADAM-5000/TCP system.

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

Example

command: $01T(cr)

response: !0118245160(cr) The command
requests the ADAM-5000/TCP sys- tem at address
01h to send all existing I/O module numbers. The
system at address 01h responds with I/O module
numbers 18, 24, 51 and 60 in slots 0-3. This means
that the ADAM-5000/TCP system contains an
ADAM-5018,ADAM-5024, ADAM-5051 and
ADAM-5060 in slots 0 thru 3.



ADAM-5000/TCP User’s Manual


6-47