Advantech ADAM-5000/TCP Series Manual page 125

Distributed da&c system based on ethernet
Table of Contents

Advertisement

Chapter 6
Planning Your Application Program
$aaSi6
Name
Description
Syntax
Response
Example
6-58
ADAM-5000/TCP User's Manual
Read Channels Status
Asks a specified input module to return the status of
all channels
$aaSi6(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.
Si identifies the I/O slot of the system you want to
read
channels
defines whether a channel is enabled or disabled.
6 represents the read channels status command.
(cr) is the terminating character, carriage return (0Dh)
!aamm(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 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 in-
valid.
aa (range 00-FF) represents the 2-character hexadeci-
mal address of an ADAM-5000/TCP system.
mm are two hexadecimal values. Each value is inter-
preted as 4 bits. The first 4-bit value is 0. The second
4-bit value represents the status of channels 0-3. A
value of 0 means the channel is disabled, while a value
of 1 means the channel is enabled.
(cr) is the terminating character, carriage return (0Dh)
command: $01S16(cr)
response: !0101(cr) The command asks the analog
input module in slot 1 of the system at address 01h
to send the status of its input channels. The analog
input module responds that channel 0 of its
multiplex channels is enabling, the others are
disabled (01h equals 0000 and 0001).
status.
The
channel
status

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Adam-5000l/tcp

Table of Contents