beautypg.com

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

Page 215

background image

Chapter 6

Planning Your Application Program

Read Channel Masking Status of ADAM-5050/5051/5052/5056/5060/
5068/5069 Command Set

$aaSiM

Name Read Channel

Masking

Status

Description

Asks the specified module to return the masking sta-

tus of digital output channels

Syntax

$aaSiM(cr)

$ is a delimiter character.

aa (range 00-FF) represents the 2-character hexadeci-
mal address of the ADAM-5000/TCP system.
Si identifies the I/O slot of the system you want to
read.
M is Channel Masking Status command.
(cr) is the terminating character, carriage return (0Dh)

Response

!aa(data)(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 that is
responding.
(data) is the hexadecimal value representing the sta-
tus of all digital output channels. A 4-character value
represents the output channels in sequence from 15
thru 0 in an ADAM-5056 module. A 2-character value
represents the output channels in sequence from 5
thru 0 in an ADAM-5060 module. And a 2-character
value represents the output channels in
sequence from 7 thru 0 in ADAM-
5068/5069 module. Each bit represents a channel.
A value of 1 means the channel is masked, while
a value of 0 means the channel is valid.




6-146

ADAM-5000/TCP User’s Manual