© EPRAD Incorporated
6.1 EVENT Command Client
þ
eCNA
The Event Command allows the client to send an event code to the eCNA. The eCNA will act on the
event accordingly. A response from the eCNA is optional.
Command
CMD,EVT,psn,code,yn,checksum<CR><LF>
EVENT Command Message Format
Parameter Description
CMD, Start of Message string (This parameter is always “CMD”).
EVT, Event Command string (This parameter is always “EVT”).
psn, Packet sequence number (0 to 65535). Should be used to match responses with commands, otherwise always 0.
code, Event code (This parameter must contain one of the following event code strings).
STA This code Starts or Resumes the eCNA program.
STP This code Stops the eCNA program.
FLT This code sets the “CAI n Fault”. Where n is the CAI Channel number.
CUE This code will Cue the eCNA program.
CLR This code Clears the CAI Fault flag.
ABT This code Aborts a Program.
CNL This code Cancels the Alarm on the eCNA.
RES This code Resets a Fault. Same as pressing the Alarm Cancel or Cancel key
PGM,d This code sets the Program Number. d = 1 - 9
SPR,d This code sets the Program Number and Starts the program. d = 1 - 9
SXT,d,mm,ss This code starts the Exception Timer. d = 0 - 20, mm = minutes (0-99), ss = seconds (0-59)
NXQ,d
This code will cue the eCNA program. The parameter d must match the Cue number the
program is waiting for. When the eCNA is running a program and d EQUALS the current eCNA
Wait for Cue Number, the eCNA advances the cue and returns status is 0 for OK. Otherwise
error 990 is returned and the Cue Number is NOT changed. d = 1 to 20.
CAI,d,m
This code will set or clear the CAI communications ‘block control commands’ flag for a
particular channel. d (channel number) = 1 - 3. m = “ALLOW” or “BLOCK”.
MAC,n This code will call a Macro, where n = the Macro number (1 - 50).
SGT,d,mm,ss
This code starts a general purpose timer. d = 1 - 10, mm = minutes (0-99), ss = seconds (0-
99)
RDI,d,n
This code will execute a Remote Device command. d = Remote Device number (1 - 10), n =
Remote Device command number (1 - 16)
yn, Request a response flag.
Y The eCNA will respond with it’s response message.
N This eCNA will not respond.
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 (optional)
RSP,EVT,psn,err,checksum<CR><LF>
EVENT Response Message Format
Parameter Description
RSP, Start of Message string (This parameter is always “RSP”).
EVT, Event Response string (This parameter is always “EVT”).
psn, Packet Sequence Number. Matches command packet sequence number.
err, Error Number (0 to 999). 0 = okay, else number indicating problem.
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)
90
eCNA-10 Operation and Installation Manual Version 1.270-00