© EPRAD Incorporated
6.6 READ CLOCK Command Client
þ
eCNA
The READ CLOCK command allows the client to read the eCNA’s clock for date and time. The client
could use this command to synchronize it’s clock with the eCNA’s clock.
Command
CMD,RCK,psn,checksum<CR><LF>
READ CLOCK Command Message Format
Parameter Description
CMD, Start of Command string (This parameter is always “CMD”).
RCK, Read Clock Command string (This parameter is always “RCK”).
psn, Packet sequence number (0 to 65535). Can be used to match responses with commands, otherwise always 0.
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,RCK,psn,err,yyyy,mm,hh,mm,ttt,checksum<CR><LF>
READ CLOCK Response Message Format
Parameter Description
RSP, Start of Response string (This parameter is always “RSP”).
RCK, Read Clock Response string (This parameter is always “RCK”).
psn, Packet Sequence Number. Matches command packet sequence number.
err, Error Number (0 to 999). 0 = okay, else number indicating problem
yyyy, Year. 4 digit decimal number.
mm, Month. 1- 2 digit decimal number.
dd, Day. 1 - 2 digital decimal number.
hh, Hour. 1 - 2 digit decimal number.
mm, Minutes. 1 - 2 digit decimal number.
ss, Seconds. 1 - 2 digit decimal number.
ttt, Thousandths of a second. 1 - 3 digit decimal number.
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)
RCK Command & Response Example
Command
CMD,RCK,0,616<CR><LF>
Response
RSP,RCK,0,0,2008,6,12,8,53,12,253,1817<CR><LF>
97
eCNA-10 Operation and Installation Manual Version 1.270-00