background image

CRBasic Example 1: CR1000X program using Modbus over RS-485 to measure the SR05

Public

MBResult_ElecRes

Public

MBResult_VoltOut

Units

SR05_IRR = W/m^2

Units

SR05_IRR_TC = W/m^2

Units

SR05_BodyTemp = DegC

Units

SR05_Humidity = %

Units

SR05_ElecResistance = Ohm

Units

SR05_VoltageOut = uV

DataTable

(OneMin,1,-1)

DataInterval

(0,1,Min,10)

Average

(1,SR05_IRR,IEEE4,False)

Average

(1,SR05_IRR_TC,IEEE4,False)

Maximum

(1,SR05_IRR_TC,IEEE4,False,False)

Minimum

(1,SR05_IRR_TC,IEEE4,False,False)

StdDev

(1,SR05_IRR_TC,IEEE4,False)

Average

(1,SR05_BodyTemp,IEEE4,False)

EndTable

DataTable

(SR05_MetaData,1,-1)

Sample

(1,SR05_ElecResistance,IEEE4)

Sample

(1,SR05_VoltageOut,IEEE4)

Sample

(1,SR05_Humidity,IEEE4)

EndTable

DataTable

(SR05_SensorID,1,100)

Sample

(1,SR05_SerialNumber,FP2)

Sample

(1,SR05_CalDate,Long)

Sample

(1,SR05_ScaleFactor_IRR,FP2)

Sample

(1,SR05_ScaleFactor_BodyTemp,FP2)

EndTable

BeginProg

SerialOpen

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

CheckSensorID = True
Scan (1,Sec,0,0)

If

CheckSensorID = True

Then

'Serial Number

ModbusMaster

(MBResult_SN,ComC5,19200,62,4,SR05(1),41,1,1,100,3)

SR05_SerialNumber = SR05(1)

'Cal Date

ModbusMaster

(MBResult_CalDate,ComC5,19200,62,4,SR05(2),47,1,1,100,2)

SR05_CalDate = SR05(2)

SR05 Second Class Pyranometer with Various Outputs

9

Содержание SR05

Страница 1: ...Revision 08 2019 Copyright 2019 Campbell Scientific ...

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

Страница 3: ...s 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 repairs can be given on request It is the policy of Campbell Scientific to protect the health of its employees and provide a safe working environment in support of this policy a Declaration of Hazardous Material and De...

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

Страница 5: ...s digital cell phones and aerials may also not be applicable according to your locality Some brackets shields and enclosure options including wiring are not sold as standard items in the European market in some cases alternatives are offered Details of the alternatives will be covered in separate manuals Part numbers prefixed with a symbol are special order parts for use with non EU variants or fo...

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

Страница 7: ...e 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 climbing by other persons Take reasonable precautions to secure tripod and tower sites from trespassers Use only manufacturer recommended parts materials and tools Utility and Electrical You can be kil...

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

Страница 9: ... 2 2 4 5 6 6 7 1 Introduction 2 Specifications 3 Siting 4 Mounting procedure 5 Wiring 6 Register map 7 RS 485 programming 8 Analogue programming 9 Example programs 10 Maintenance and troubleshooting 12 Table of Contents iv ...

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

Страница 11: ...53 18 s 1 8 k 2 ISO 9060 2018 classification Digital output Voltage output Analogue output range Default Modbus address Response time 95 Calibration uncertainty Zero offset A 15 W m unventilated response to 200 W m net thermal radiation Zero offset B 4 W m response to 5 K h change in ambient temperature Spectral range 285 to 3000 nm Operating temperature range 40 to 80 C Temperature response 0 4 3...

Страница 12: ... 5 Diffuse solar radiation is less influenced by obstructions near the horizon The sensor should be mounted with the cable pointing towards the nearest magnetic pole For example in the northern hemisphere point the cable toward the North Pole 4 Mounting procedure Required tools l Diopter l Solar compass l 8 mm 5 16 inch open end wrench for U bolt nuts 1 On a level surface level the solar radiation...

Страница 13: ... CM255 uses one U bolt nuts flat washers and lock washers to mount the bracket as shown in the following figure 5 For the CM255LS bracket use the two set screws to secure the bracket to the crossarm or pole as shown in the following figure For pyranometers mounted horizontally ensure the mounting bracket is horizontal in two dimensions For pyranometers mounted at an angle set the mounting bracket ...

Страница 14: ...able 5 2 p 5 provides analogue wiring Table 5 1 RS 485 wire colour function and data logger connection Wire colour Function Data logger connection1 MeteoPV connection Green RS485 A C odd A White RS485 B C even B Red Power in 12 V 12V 12V Black Power ground G G Clear Shield analogue ground analogue ground 1 Assumes the sensor directly connects to the data logger SR05 Second Class Pyranometer with V...

Страница 15: ...gister map Table 6 1 p 5 provides the register map for the most commonly used values A comprehensive register map is available in the Hukseflux manual Table 6 1 RS 485 register map Starting register number Register count Data format Units Description 1 1 Signed 16 bit integer Modbus address 3 2 Signed 32 bit integer mW m Irradiance temperature compensated signal 7 1 Signed 16 bit integer 0 01 C Se...

Страница 16: ...rialOpen ComPort Baud Format TXDelay BufferSize Mode The Format is typically set to logic 1 low even parity one stop bit 8 data bits 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 s...

Страница 17: ...at is greater than the maximum expected input voltage If electromagnetic radiation can be a problem use an fN1 of 50 or 60 Hz The multiplier converts the millivolt reading to engineering units Table 8 1 p 7 provides the calculations required for the various units The offset will normally be fixed at zero see Example programs p 7 Table 8 1 Multipliers required for flux density and total fluxes Unit...

Страница 18: ...nometer SR05 is an ISO 9060 Second Class pyranometer Public CheckSensorID As Boolean Dim SR05 15 As Long Public SR05_IRR_TC Temperature compensated x 0 01 W M 2 Public SR05_IRR Uncompensated x 0 01 W M 2 Public SR05_BodyTemp As Float Public SR05_SerialNumber As Float Public SR05_CalDate As Long Public SR05_Humidity As Float Public SR05_ScaleFactor_IRR As Long Public SR05_ScaleFactor_BodyTemp As Lo...

Страница 19: ...verage 1 SR05_BodyTemp IEEE4 False EndTable DataTable SR05_MetaData 1 1 Sample 1 SR05_ElecResistance IEEE4 Sample 1 SR05_VoltageOut IEEE4 Sample 1 SR05_Humidity IEEE4 EndTable DataTable SR05_SensorID 1 100 Sample 1 SR05_SerialNumber FP2 Sample 1 SR05_CalDate Long Sample 1 SR05_ScaleFactor_IRR FP2 Sample 1 SR05_ScaleFactor_BodyTemp FP2 EndTable BeginProg SerialOpen ComC5 19200 2 0 50 4 CheckSensorI...

Страница 20: ...BResult_Humidity ComC5 19200 62 4 SR05 13 99 1 1 100 3 SR05_Humidity SR05 13 100 CheckSensorID False CallTable SR05_SensorID EndIf Irradiance temperature compensated ModbusMaster MBResult_IRR_TC ComC5 19200 62 4 SR05 5 3 2 1 100 2 SR05_IRR_TC SR05 5 SR05_ScaleFactor_IRR Irradiance uncompensated ModbusMaster MBResult_IRR ComC5 19200 62 4 SR05 7 3 2 1 100 2 SR05_IRR SR05 7 SR05_ScaleFactor_IRR Body ...

Страница 21: ...ing analogue voltage to measure the SR05 CR1000X Series Datalogger Hukseflux SR2005 Pyranometer SR05 is an ISO 9060 Second Class pyranometer Public SR05_Analog_IRR DataTable OneMin 1 1 Average 1 SR05_Analog_IRR IEEE4 False Maximum 1 SR05_Analog_IRR IEEE4 False False Minimum 1 SR05_Analog_IRR IEEE4 False False StdDev 1 SR05_Analog_IRR IEEE4 False EndTable BeginProg Scan 1 Sec 0 0 Irradiance uncompe...

Страница 22: ... such 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...

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

Страница 24: ...i cc Website www campbellsci cc France Location Vincennes France Phone 0033 0 1 56 45 15 20 Email info campbellsci fr Website www campbellsci fr Germany Location Bremen Germany Phone 49 0 421 460974 0 Email info campbellsci de Website www campbellsci de South Africa Location Stellenbosch South Africa Phone 27 21 8809960 Email sales campbellsci co za Website www campbellsci co za Southeast Asia Loc...

Отзывы: