169 ADAM-6200 User Manual
Appendix B ADAM-6200 ASCII Commands
$aaCjS
Name Read Alarm Status
Description Reads whether an alarm occurred to the specified input channel in the
specified ADAM-6200 module
Syntax $aaCjS(cr)
$ is a delimiter character.
aa (range 00-FF) represents the 2-character hexadecimal slave
address of an ADAM-6200 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 communi-
cation 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 corre-
sponding ADAM-6200 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 The command asks the module at address 01h to return its alarm sta-
tus for channel 1.
The system responds that a High alarm has not occurred, but the Low
alarm has occurred.
ASCII Command: $01C1S(cr)
Response: !0101(cr)
B.1.5 Analog Output Command Set
Function Description Command Example
Read analog out-
put startup value
Read startup output
value from a specific
analog output channel
Cmd: $aaDScc(cr)
Ret:!aannnn (cr)
nnnn range:
0x0000 ~ 0x0FFF
Send: $01DS01(cr)
Receive: !010800(cr)
Set analog output
startup value
Set startup output
value to a specific
analog output channel
Cmd: #aaD-
Sccnnnn(cr)
Ret: !aa(cr)
Send:
#01DS010800(cr)
Receive: !01(cr)
Write AO values
Write value to the spe-
cific analog output
channel
Cmd:
#aaBCccnnnn(cr)
Ret: !aa(cr)
Send:
#01BC010800(cr)
Receive: !01(cr)
Read AO range
code
Return the channel
range code form
specific analog output
channel
Cmd: $aaBEcc(cr)
Ret: !aannnn(cr)
Send: $01BE00(cr)
Receive: !010147(cr)