background image

CS120A Visibility Sensor  

26 

 

13.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 
CS120A 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. 

13.2.1  Example of a SETNC Command 

 

13.3  The GET Command 

The GET command retrieves settings data from the CS120A, including message 
format data and user alarm settings amongst others.  This command does not 
retrieve visibility or environmental information from the CS120A.  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 

Address based on Sensor ID 

Delimiting character 

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 :D82D:

 

GET:0:0:XXXX: 

 

Содержание CS120A

Страница 1: ...CS120A Visibility Sensor Issued 24 2 15 Copyright 2014 2015 Campbell Scientific Ltd CSL 1036 USER GUIDE...

Страница 2: ......

Страница 3: ...er the repair is under guarantee or not Please state the faults as clearly as possible and if the product is out of the guarantee period it should be accompanied by a purchase order Quotations for rep...

Страница 4: ......

Страница 5: ...t for recycling Any batteries contained within the product or used during the products life should be removed from the product and also be sent to an appropriate recycling facility Campbell Scientific...

Страница 6: ......

Страница 7: ...ore beginning work Wear a hardhat and eye protection and take other appropriate safety precautions while working on or around tripods and towers Do not climb tripods or towers at any time and prohibit...

Страница 8: ......

Страница 9: ...fications 5 6 Mechanical specifications 5 7 Installation procedure 5 7 1 Equipment grounding 7 7 2 Mounting the CS120A 7 7 3 Optional Campbell Scientific Mount 8 8 CS120A internal connectors descripti...

Страница 10: ...3 2 1 Example of a SETNC Command 26 13 3 The GET command 26 13 4 The POLL command Polling the CS120A 28 14 Entering the CS120A menu system 29 15 Calibrating the CS120A 32 16 Performing an operating sy...

Страница 11: ...CS120A uses high speed sampling to reduce missed events such as rain and hail and improves response to other suddenly changing conditions The CS120A is a development of the CS120 Functionally they are...

Страница 12: ...ion in the installation use and maintenance of this product These should be followed carefully in order to gain the maximum benefit from the use of this product 1 3 Sensor Unit Safety The CS120A senso...

Страница 13: ...nd dew heaters Power supply 12V connection DC only 7V 12V 30V Current consumption sampling continuously with dew heaters active at 12V DC 200mA 248mA Current consumption sampling continuously with dew...

Страница 14: ...ly less heat reducing their ability to prevent ice build up 2 Each hood takes 30W 60W is the total for both hoods on the sensor together 3 The ground of the CS120A and the ground of any RS485 equipmen...

Страница 15: ...C Hood heater Turn Off 15 C 1 Extended temperature ranges are only guaranteed if the sensor has been tested by Campbell Scientific and verified within this temperature range Some degradation of absol...

Страница 16: ...nses Whenever possible the CS120A should be located away from windbreaks Several zones have been identified upwind and downwind of a windbreak in which the airflow is unrepresentative of the general s...

Страница 17: ...ting bracket is not guaranteed The pole and foundations of a pole mounted installation will provide some basic lightning protection and protection against radio frequency interference and should also...

Страница 18: ...iameter masts 7 3 Optional Campbell Scientific Mount A Campbell Scientific optical sensor mount part number 009354 is available This will put the sample volume at about 1 5 m in compliance with the WM...

Страница 19: ...ll four 12 mm diameter holes using the mount base as a template or following the drawing below to a depth of 77 mm Clean the holes of all debris Place washers and nuts on the ends of the wedge anchors...

Страница 20: ...communications wires The CS120A is supplied with 5 m cable already connected The second gland is used for the 24 V feeds for the hood heaters fitted with a 5 m cable The third and fourth glands are sp...

Страница 21: ...pin 3 and the ve to pin 5 If the heater voltage is AC with a ground or neutral wire then this should be connected to pin 3 Pin 3 should not be more than 5 volts from the main electronics 0V Connector...

Страница 22: ...pre wired with a default 5 m power and communications cable which is terminated at one end with a 9 pin D connector DB9 The D connector can be connected directly to a PC or to a datalogger such as th...

Страница 23: ...User Guide 13...

Страница 24: ...CS120A Visibility Sensor 14...

Страница 25: ...User Guide 15...

Страница 26: ...rmed Internal switch functions Switch number Function 4 Reserved for future use 3 When switched to the ON position this switch temporarily sets the CS120A communications port to a default RS232 commun...

Страница 27: ...Basic Partial and Full All three standard outputs parameters are space delimited with a unique start and end character allowing easy storage into any logger see Section 15 on how to set default output...

Страница 28: ...down ID Definition 0 9 Unit number defined by the user to aid identification of data Zero by default Useful for RS485 networks Operates as an address in RS485 mode System status break down 1 Status l...

Страница 29: ...ter than a user specified threshold System alarms break down Alarm Range Severity 2 Definition Emitter failure 0 2 1 3 The emitter hoods main LED output power level 0 Everything is within normal param...

Страница 30: ...rs writing user variables to flash occurred 1 The emitter power level reporting too high will cause the CS120A to shutdown and go into low power mode 2 The severity of the alarm The higher the number...

Страница 31: ...up the unit The third method is by using the simple menu interface built into the CS120A communicating via RS232 or RS485 using a terminal emulator program This menu system gives access to the more c...

Страница 32: ...value will correspond to metres or feet depending upon which is selected in Visibility Unit 10000 5 User Alarm 2 Enabled 0 1 User alarm two activation state 0 Alarm two disabled 1 Alarm two enabled 0...

Страница 33: ...19 Dirty window compensation 0 1 0 No compensation applied 1 Compensation for dirt on lenses applied The CS120A will compensate for up to 10 signal loss due to dirt per lens 0 20 Use CRC 0 1 0 Disabl...

Страница 34: ...13 1 The SET command The set command is used to configure the CS120A via the command line The SET command is a single space delimited string that can be sent from any data logger or PC equipped with a...

Страница 35: ...Polling Or Continuous modes Message Format Basic Partial Full RS232 or RS485 serial communications enabled Averaging Period Sample timing Dew heater override Hood heater override Dirty window compens...

Страница 36: ...ETNC Command 13 3 The GET Command The GET command retrieves settings data from the CS120A including message format data and user alarm settings amongst others This command does not retrieve visibility...

Страница 37: ...tial Full RS232 or RS485 serial communications enabled Averaging Period Sample timing Dew heater override Hood heater override Dirty window compensation CRC checking on received commands Sensor power...

Страница 38: ...led Sensor power down voltage 11 5V Checksum D4FD 13 4 The POLL command Polling the CS120A The POLL command requests the current visibility and or alarm conditions from the CS120A The output format of...

Страница 39: ...isplayed options are accessed simply by typing the corresponding number then pressing return No changes will take effect until you save and exit The exception to this is the calibration menu but you w...

Страница 40: ...A visibility sensor CS120A ALARM MENU 2 ID 0 S N 1009 1 Toggle user alarm one DISABLED 2 Toggle alarm one threshold LESS THAN 3 Set new user alarm one activation point 10000 m 4 Toggle user alarm two...

Страница 41: ...ply voltage is only available if the sensor is running firmware version 4 or later and only functional for sensors with serial number greater than E1029 NOTE CS120A INFORMATION MENU 4 ID 0 S N 1009 OS...

Страница 42: ...ration you will need a CS120A calibrator disk and a computer with a standard serial port compatible with the CS120A If your CS120A is not currently configured for RS232 communications you can set the...

Страница 43: ...cycling the unit at this point will have no adverse effect on the sensor Once you have started the tests you will be asked for the CS120A calibrator serial number and coefficient with a confirmation a...

Страница 44: ...ill wait for you to place the foam bungs into the sensor hoods The bungs are designed to block all light from the outside reaching inside the head Place one bung into each hood If either of the bungs...

Страница 45: ...mounting point At this stage it is advisable to clean the lenses Refer to Section 18 Cleaning for more information A simple visual check may be enough to confirm the lenses are clean NOTE Starting da...

Страница 46: ...ensure that the lenses are free from contaminants The frequency of required cleaning depends on the exposure of the instrument to such contaminants This will vary depending on the site location The CS...

Страница 47: ...closure taking care that it is not trapped between the lid and the enclosure when the lid is replaced The second bag of desiccant should be kept in the plastic shipping bag as a replacement for when t...

Страница 48: ...any water vapour driven off during reactivation may be re adsorbed during cooling and or handling 5 After the bags of desiccant have been allowed to cool in an airtight desiccator they may be removed...

Страница 49: ...it Hood heater drive Low noise PSU Two 5V user alarm outputs RS232 or RS485 serial communication s 24V AC DC 12V DC Hood temperature Photo detector Transimpedance amplifier Dirty window detector Ampli...

Страница 50: ...CS120A Visibility Sensor A 2...

Страница 51: ...ksum seeded with 0x0000 XModem style using a fast non table based algorithm Pass in the data to convert into a CRC in the form of a NULL terminated character array a string Returns the CRC in the form...

Страница 52: ...CS120A Visibility Sensor B 2...

Страница 53: ...irty Alias SerialIndest 14 Detector_temp_error 0 3 Detector Temperature Alias SerialIndest 15 Detector_saturated 0 1 Detector DC Saturation Level Alias SerialIndest 16 Hood_temp_error 0 3 Hood Tempera...

Страница 54: ...SerialIndest 16 Hood_temp_error 0 3 Hood Temperature Alias SerialIndest 17 Signature_error 0 1 Signature Error Alias SerialIndest 18 Flash_read_error 0 1 Flash Read Error Alias SerialIndest 19 Flash_w...

Страница 55: ...lngCRCMsg HexToDec checksumrx ChecksumOK lngCRCMsg lngCRCCalc In critical applications the visibility can be set to NaN if the system status is degraded or a critical error flag is set If ChecksumOK T...

Страница 56: ...1 Sensor ID 2 User Alarm 1 Set 3 User Alarm 1 Active 4 User Alarm 1 Distance 5 User Alarm 2 6 User Alarm 2 Active 7 User Alarm 2 Distance 8 Serial BaudRate 9 Serial number Read only so not used 10 Vis...

Страница 57: ...r distance to 15000 CS120ACArray 8 2 Set serial baud rate to 38400bps CS120ACArray 9 0 Read only so dummy value added here but not needed CS120ACArray 10 M Set unit type to metres use upper case CS120...

Страница 58: ...tatusDewHeater Dim TempString As String 100 Alias TRHData 1 AirTC Alias TRHData 2 RH This function creates a SETNC command string for the CS120A visibility sensor Including all delimiting characters a...

Страница 59: ...ecessary but is done as a fail safe in case the GET command does not return data CS120ACArray 1 0 Set ID to 0 CS120ACArray 2 0 Disable alarm 1 CS120ACArray 3 1 Set alarm 1 to if greater than CS120ACAr...

Страница 60: ...InStringGET 1 Then Check data was returned SplitStr CS120ACArray 1 InStringGET 21 5 Strip the settings from the returned data string CS120ACArray 1 Right CS120ACArray 1 1 Trim the SOT from the first d...

Страница 61: ...Outgoing string Dim CheckVal As Long Checksum value Public InString As String 200 Incomming string Dim TempString As String 16 Main Program BeginProg SerialOpen Com1 38400 3 0 10000 open port to the...

Страница 62: ...entific Centro Caribe S A CSCC 300N Cementerio Edificio Breller Santo Domingo Heredia 40305 COSTA RICA www campbellsci cc info campbellsci cc Campbell Scientific Ltd CSL 80 Hathern Road Shepshed Lough...

Отзывы: