2 the setnc command, 3 the get command – Campbell Scientific CS125 Present Weather Sensor User Manual
Page 37
User Guide
29
14.1.1 Example of a SET Command
14.2 The SETNC Command
The format of the SETNC command is nearly exactly the same as the SET
command. The only functional difference is that the SETNC command does not
commit the values set into flash memory. This means that the next time the
CS125 is power cycled it will revert back to its previous settings. This command
should be used when a setting in the sensor is changed regularly, e.g. heater
functions, as this command avoids the risk of wearing out the flash storage
memory. Note: this includes communication data rates as well.
14.2.1 Example of a SETNC Command
14.3 The GET Command
The GET command retrieves settings data from the CS125, including message
format data and user alarm settings amongst others. This command does not
retrieve visibility or environmental information from the CS125. To retrieve
visibility data refer to the POLL command.
The GET request
GET transmitted data
Example
Description
0x02
(1)
STX (^B)
(2)
GET
GET
:
Delimiting character
0
Address based on Sensor ID
:
Delimiting character
0
Reserved for future use, zero default
:
Delimiting character
XXXX
Checksum
:
Delimiting character
0x03
(1)
ETX (^C)
(2)
0x0D
(1)
Carriage return
0x0A
Line feed
(1) These values are shown in hexadecimal format not ASCII.
(2) As entered on a keypad
Example of a GET command
SETNC:0:0 1 1 1000 1 0 15000 2 0 M 60 1 2 0 1 1 0 0 0 1 7 80 :XXXX:
SET:0:0 1 1 1000 1 0 15000 2 0 M 60 1 2 0 1 1 0 0 0 1 7 :68A3:
GET:0:0:XXXX: