background image

CRBasic Example 1: CR1000X program for measuring the SR20-D2

EndTable
DataTable

(SR20D2_SensorID,1,100)

Sample

(1,SR20D2_SerialNumber,FP2)

Sample

(1,SR20D2_CalDate,Long)

Sample

(1,SR20D2_ScaleFactor_IRR,FP2)

Sample

(1,SR20D2_ScaleFactor_BodyTemp,FP2)

EndTable
BeginProg

SerialOpen

(ComC5,19200,2,0,50,4)

ModbusMaster

(ModbusResult_SN,ComC5,19200,53,4,SR20D2(1),41,1,1,100,3)

'Serial Number

SR20D2_SerialNumber = SR20D2(1)

ModbusMaster

(ModbusResult_CalDate,ComC5,19200,53,4,SR20D2(2),47,1,1,100,2)

'Cal Date

SR20D2_CalDate = SR20D2(2)

ModbusMaster

(ModbusResult_SFIRR,ComC5,19200,53,4,SR20D2(3),9,1,1,100,3)

'Scaling Factor IRR

SR20D2_ScaleFactor_IRR = SR20D2(3)

ModbusMaster

(ModbusResult_SRTemp,ComC5,19200,53,4,SR20D2(4),10,1,1,100,3)

'Scaling Factor Temp

SR20D2_ScaleFactor_BodyTemp = SR20D2(4)

ModbusMaster

(ModbusResult_ElecRes,ComC5,19200,53,4,SR20D2(10), _

8,1,1,100,1)

'Electrical Resistance

SR20D2_ElecResistance = SR20D2(10)/10

ModbusMaster

(ModbusResult_VoltOut,ComC5,19200,53,4,SR20D2(11), _

11,2,1,100,2)

'Voltage output

SR20D2_VoltageOut = SR20D2(11)

ModbusMaster

(ModbusResult_Humidity,ComC5,19200,53,4,SR20D2(13),99,1,1,100,3)

'Humidity

SR20D2_Humidity = SR20D2(13)/100

Scan

(1,Sec,0,0)

ModbusMaster

(ModbusResult_IRR_TC,ComC5,19200,53,4,SR20D2(5),3,2,1,100,2)

'Irradiance temperature compensated

SR20D2_IRR_TC = SR20D2(5)/SR20D2_ScaleFactor_IRR

ModbusMaster

(ModbusResult_IRR,ComC5,19200,53,4,SR20D2(7),5,2,1,100,2)

'Irradiance uncompensated

SR20D2_IRR = SR20D2(7)/SR20D2_ScaleFactor_IRR

ModbusMaster

(ModbusResult_BodyTemp,ComC5,19200,53,4,SR20D2(9),7,1,1,100,1)

'Body Temp

SR20D2_BodyTemp = SR20D2(9)/SR20D2_ScaleFactor_BodyTemp

CallTable

OneMin

NextScan
SlowSequence
Scan

(6,Hr,0,0)

ModbusMaster

(ModbusResult_ElecRes,ComC5,19200,53,4,SR20D2(10),8,1,1,100,1)

SR20-D2 ISO Spectrally Flat Class A (Secondary Standard) Pyranometer

7

Содержание SR20-D2

Страница 1: ...Revision 04 2020 Copyright 2018 2020 Campbell Scientific Inc ...

Страница 2: ...ntroduction 1 2 Siting 1 3 Mounting procedure 1 4 SR20 D2 wiring 3 4 RS 485 default configuration 4 5 SR20 D2 register map 4 6 RS 485 programming 5 7 SR20 D2 example program 5 8 Maintenance and troubleshooting 9 Table of Contents i ...

Страница 3: ...hile ideally avoiding any obstructions or reflections above the plane of the sensing element It is important to mount the sensor such that a shadow or a reflection will not be cast on it at any time If this is not possible try to choose a site where any obstruction over the azimuth range between earliest sunrise and latest sunset has an elevation not exceeding 5 Diffuse solar radiation is less inf...

Страница 4: ...the crossarm on the tripod or the mast If installing the mounting bracket on a vertical pole ensure the pole is truly vertical 4 Secure the mounting bracket to the crossarm or vertical pole using the hardware included with the mounting bracket The CM255 uses one U bolt nuts flat washers and lock washers to mount the bracket as shown in the following figure SR20 D2 ISO Spectrally Flat Class A Secon...

Страница 5: ...ly tightened and that the mounting bracket is at the desired angle 4 SR20 D2 wiring Table 4 1 Pin out wire color function and data logger connection Wire color Pin out Function Data logger connection PT PW Green 5 2 RS 485A A C odd White 7 4 RS 485B B C even Red 2 1 Power in 12 V 12V Black 6 3 Power ground G Clear 9 5 Shield analog ground 1 Assumes the sensor directly connects to the data logger S...

Страница 6: ...dress 3 2 Signed 32 bit integer mW m2 Irradiance temperature compensated signal 5 2 Signed 32 bit integer mW m2 Irradiance temperature uncompensated signal 7 1 Signed 16 bit integer 0 01 C Sensor body temperature 8 1 Signed 16 bit integer x 0 1 Ω Sensor electrical resistance 9 1 Signed 16 bit integer Scaling factor irradiance 10 1 Signed 16 bit integer Scaling factor temperature 11 2 Signed 32 bit...

Страница 7: ...s The Mode parameter should configure the ComPort as RS 485 half duplex transparent The ModbusMaster instruction has the following syntax ModbusMaster Result ComPort Baud Addr Function Variable Start Length Tries TimeOut ModbusOption The Addr parameter must match the sensor Modbus address To collect all of the values the Start parameter needs to be 1 and the Length parameter needs to correspond wi...

Страница 8: ...C Public ModbusResult_IRR Public ModbusResult_BodyTemp Public ModbusResult_SN Public ModbusResult_CalDate Public ModbusResult_Humidity Public ModbusResult_SFIRR Public ModbusResult_SRTemp Public ModbusResult_ElecRes Public ModbusResult_VoltOut Units SR20D2_IRR W m 2 Units SR20D2_IRR_TC W m 2 Units SR20D2_BodyTemp DegC Units SR20D2_Humidity Units SR20D2_ElecResistance Ohm Units SR20D2_VoltageOut uV...

Страница 9: ...Result_ElecRes ComC5 19200 53 4 SR20D2 10 _ 8 1 1 100 1 Electrical Resistance SR20D2_ElecResistance SR20D2 10 10 ModbusMaster ModbusResult_VoltOut ComC5 19200 53 4 SR20D2 11 _ 11 2 1 100 2 Voltage output SR20D2_VoltageOut SR20D2 11 ModbusMaster ModbusResult_Humidity ComC5 19200 53 4 SR20D2 13 99 1 1 100 3 Humidity SR20D2_Humidity SR20D2 13 100 Scan 1 Sec 0 0 ModbusMaster ModbusResult_IRR_TC ComC5 ...

Страница 10: ...200 53 4 SR20D2 2 _ 47 1 1 100 2 Cal Date SR20D2_CalDate SR20D2 2 ModbusMaster ModbusResult_SFIRR ComC5 19200 53 4 SR20D2 3 9 1 1 100 3 Scaling Factor IRR SR20D2_ScaleFactor_IRR SR20D2 3 ModbusMaster ModbusResult_SRTemp ComC5 19200 53 4 SR20D2 4 10 1 1 100 3 Scaling Factor Temp SR20D2_ScaleFactor_BodyTemp SR20D2 4 ModbusMaster ModbusResult_ElecRes ComC5 19200 53 4 SR20D2 10 _ 8 1 1 100 1 Electrica...

Страница 11: ... as ASTM G167 ISO 9846 ASTM E824 or ASTM G207 by an accredited lab The recommended recalibration interval is two years Contact Campbell Scientific for more information Unexpected results typically occur because of improper wiring or programming electromagnetic radiation or damaged cables Ensure that the data logger program includes the correct parameters for the measurement instructions Check for ...

Страница 12: ...Other manufacturer s products that are resold by Campbell Scientific are warranted only to the limits extended by the original manufacturer Refer to www campbellsci com terms warranty for more information CAMPBELL SCIENTIFIC EXPRESSLY DISCLAIMS AND EXCLUDES ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE Campbell Scientific hereby disclaims to the fullest extent allow...

Страница 13: ...e shipping container Campbell Scientific s shipping address is CAMPBELL SCIENTIFIC INC RMA _____ 815 West 1800 North Logan Utah 84321 1784 For all returns the customer must fill out a Statement of Product Cleanliness and Decontamination form and comply with the requirements specified in it The form is available from our website at www campbellsci com repair A completed form must be either emailed ...

Страница 14: ...or around tripods and towers l Do not climb tripods or towers at any time and prohibit climbing by other persons Take reasonable precautions to secure tripod and tower sites from trespassers l Use only manufacturer recommended parts materials and tools Utility and Electrical l You can be killed or sustain serious bodily injury if the tripod tower or attachments you are installing constructing usin...

Страница 15: ...info campbellsci fr www campbellsci fr Germany Location Phone Email Website Bremen Germany 49 0 421 460974 0 info campbellsci de www campbellsci de India Location Phone Email Website New Delhi DL India 91 11 46500481 482 info campbellsci in www campbellsci in South Africa Location Phone Email Website Stellenbosch South Africa 27 21 8809960 sales campbellsci co za www campbellsci co za Spain Locati...

Отзывы: