EasyManua.ls Logo

EPRAD eCNA-10 - EVENT Log Entries Overview

EPRAD eCNA-10
204 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
© EPRAD Incorporated
6.11 STATUS/CONTROL MESSAGE WRITE Command Client
þ
eCNA
This command allows a CAI client to write text messages to it’s own client message table. A response
is optional. Up to 10 messages, each containing up to 24 ASCII characters in length are supported.
Messages are written one at a time. All characters are supported except:
double quote “ less than < ampersand & backslash \
single quote ‘ greater than > open bracket [
semi-colon ; comma , close bracket ]
• Invalid characters are quietly converted to spaces (20h).
• Messages exceeding 24 characters in length are truncated.
Command
CMD,SMW,psn,code,yn,checksum<CR><LF>
STATUS/CONTROL MESSAGE WRITE Command Message Format
Parameter Description
CMD, Start of Message string (This parameter is always “CMD”).
SMW, Status/Control Message Write Command string (This parameter is always “SMW”).
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.)
d,m This writes text message m to table message number d,
Where:
m = ASCII message up to 24 characters in length
d = 1 - 10
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,SMW,psn,err,msg,checksum<CR><LF>
STATUS/CONTROL MESSAGE WRITE Response Message Format
Parameter Description
RSP, Start of Message string (This parameter is always “RSP”).
SMW, Status/Control Message Write Response string (This parameter is always “SMW”).
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)
STATUS/CONTROL MESSAGE WRITE Command & Response Example
Command
CMD,SMW,0,2,Lamp_On,Y,1588<CR><LF>
Response
RSP,SMW,0,0,764<CR><LF>
This example writes “Lamp_On” text to message number 2.
Note: For testing purposes, the don’t care “??” characters can be used in the command instead of a checksum.
106
eCNA-10 Operation and Installation Manual Version 1.270-00

Table of Contents

EPRAD eCNA-10 - EVENT Log Entries Overview