© EPRAD Incorporated
6.12 STATUS/CONTROL MESSAGE READ Command Client
þ
eCNA
This command allows a CAI client to read messages from the message table for any of the supported
device channels (CAI Client channels 1 through 3, and Remote Device channels 1 through 5). The
device channels are as follows:
Device
Channel
Message
Table
CAI Channel 1 CAI1
CAI Channel 2 CAI2
CAI Channel 3 CAI3
CAI Channel 4 CAI4
RDI Channel 1 RDI1
RDI Channel 2 RDI2
RDI Channel 3 RDI3
RDI Channel 4 RDI4
RDI Channel 5 RDI5
Command
CMD,SMR,psn,code,yn,checksum<CR><LF>
STATUS/CONTROL MESSAGE Command Message Format
Parameter Description
CMD, Start of Message string (This parameter is always “CMD”).
SMR, Status/Control Message Read Command string (This parameter is always “SMR”).
psn, Packet sequence number (0 to 65535). Can be used to match responses with commands, otherwise always 0.
code, Message code (This parameter must contain the following event code strings.)
a,d This reads text message number d from device message table a,
Where:
a = CAI1, CAI2, CAI3, CAI4, RDI1, RDI2, RDI3, RDI4 or RDI5,
d = 1 - 10
checksum Checksum (0 to 65535). Unsigned 16-bit decimal sum of all preceding characters or wildcard ‘??’
<CR> Terminating carriage return. (ASCII control character, 0x0D)
<LF> Terminating line feed. (ASCII control character, 0x0A)
Response
RSP,SMR,psn,err,msg,checksum<CR><LF>
STATUS/CONTROL MESSAGE Response Message Format
Parameter Description
RSP, Start of Message string (This parameter is always “RSP”).
SMR, Status/Control Message Read Response string (This parameter is always “SMR”).
psn, Packet Sequence Number. Matches command packet sequence number.
err, Error Number (0 to 999). 0 = okay, else number indicating problem
msg, Client Message Name. ASCII Text, up to 24 characters in length.
checksum Checksum (0 to 65535). Unsigned 16-bit decimal sum of all preceding characters
<CR> Terminating carriage return. (ASCII control character, 0x0D)
<LF> Terminating line feed. (ASCII control character, 0x0A)
STATUS/CONTROL MESSAGE READ Command & Response Example
Command
CMD,SMR,0,CAI1,2,1026<CR><LF>
Response
RSP,SMR,0,0,Lamp_On,1481<CR><LF>
This example reads the “Lamp_On” text message from CAI Channel 1 table, message 2.
Note: For testing purposes, the don’t care “??” characters can be used in the command instead of a checksum.
107
eCNA-10 Operation and Installation Manual Version 1.270-00