B&B Electronics ADAM-6066 - Manual User Manual

Page 163

Advertising
background image

153

Chapter 6

$aaCjS
Name

Read Alarm Status

Description Reads whether an alarm occurred to the specified input

channel in the specified ADAM-6000 module

Syntax

$aaCjS(cr)
$ is a delimiter character.
aa (range 00-FF) represents the 2-character hexadecimal
slave address of an ADAM-6000 module.
(Always 01)
Cj identifies the desired analog input channel j (j : 0 to 7).
S is the Read Alarm Status command.
(cr) represents terminating character, carriage return (0Dh)

Response !aahl(cr) if the command was valid

?aa(cr) if an invalid operation was entered.
There is no response if the system detects a syntax error or
communication error or if the address does not exist.
! delimiter indicating a valid command was received.
aa represents the 2-character hexadecimal slave address
of the corresponding ADAM-6000 module.
h represents the status of High alarm. “1” means the High
alarm occurred, ‘0” means it did not occur. l represents the
status of Low alarm. ˜1” means the Low alarm occurred,
˜0” means it did not occur.
(cr) represents terminating character, carriage return (0Dh)

Example

command: $01C1S(cr)
response: !0101(cr)
The command asks the module at address 01h to return its
alarm status for channel 1.
The system responds that a High alarm has not occurred, but
the Low alarm has occurred.

Advertising