Campbell CS325DM Скачать руководство пользователя страница 8

9. Programming

Programming basics for CRBasic data loggers are provided in the following sections. Complete
program examples for measuring the Modbus over RS-485 and analog outputs can be found in

Example programs

(p. 9). Campbell Scientific recommends using Modbus over RS-485.

9.1 RS-485 programming

The RS-485 output can be directly read by a MeteoPV, CR6-series, CR1000X-series, or Modbus
RTU RS-485 network. Other Campbell Scientific data loggers can use an MD485 multidrop
interface to read the RS-485 output. Refer to the MD485 manual for information about using the
MD485. Refer to

www.campbellsci.com/videos/meteopv

for information about using the

MeteoPV.

A CR6 or CR1000X data logger programmed as a Modbus Master can retrieve the values stored in
the Input Registers (

Register map

(p. 6)). To do this, the CRBasic program requires

SerialOpen()

followed by

ModbusMaster()

. The

SerialOpen

instruction has the following syntax:

SerialOpen

(ComPort, Baud, Format, TXDelay, BufferSize, Mode)

The

Format

parameter 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 sensor Modbus address. To collect all of the values, the

Start

parameter needs to be 1 and the

Length

parameter needs to correspond with the

register count (see

Register map

(p. 6)).

ModbusOption

is an optional parameter described in

the CRBasic Editor Help.

9.1.1 Register map

Table 9-1

(p. 7) provides the register map for the most commonly used values. Calculated

irradiance uses the following equation:

CS325DM Silicon Irradiance Reference Sensor

6

Содержание CS325DM

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

Страница 2: ...ial inspection 1 4 Overview 2 5 Specifications 2 6 Siting 4 7 Mounting 4 8 Wiring 4 9 Programming 6 9 1 RS 485 programming 6 9 1 1 Register map 6 9 2 Analog programming 7 10 Maintenance and troublesho...

Страница 3: ...mize the potential for water entry to the sealed housing mount the CS325DM with the cable facing down or to the side l When opening the shipping package do not damage or cut the cable jacket If damage...

Страница 4: ...ng and protection from the elements The M12 circular connector allows easy installation and cable replacement Features l Rugged design with wide temperature operating range l Analog and or digital out...

Страница 5: ...tability 0 5 per year Mounting Four mounting holes with diameter 5 50 mm 0 217 in Dimensions 11 5 x 6 5 x 3 0 cm 4 5 x 2 6 x 1 2 in Weight 0 3 kg 0 6 lb Digital output Communications protocols Modbus...

Страница 6: ...racket or U bolt on the crossarm and tighten the bolts or U bolt nuts 5 Use the bubble level and leveling bolts to level the sensor 6 If using the CM256 LP tilt to the correct azimuth and tighten bolt...

Страница 7: ...nalog pin out wire color function and data logger connection Wire color1 Pin out Function Data logger connection White orange stripe 5 Irradiance input U configured for single ended analog input2 SE s...

Страница 8: ...6 To do this the CRBasic program requires SerialOpen followed by ModbusMaster The SerialOpen instruction has the following syntax SerialOpen ComPort Baud Format TXDelay BufferSize Mode The Format para...

Страница 9: ...r instruction for the temperature measurement CAUTION Nearby AC power lines electric pumps or motors can be a source of electrical noise If the sensor or data logger is located in an electrically nois...

Страница 10: ...846 ASTM E824 or ASTM G207 by an accredited lab The recommended recalibration interval is 2 years The most common reason for communication failure for the CS325DM is because the sensor is not configur...

Страница 11: ...programming CRBasic Example 1 CR1000X program that measures the CS325DM using Modbus CR1000X Series Data Logger CS325DM L RC18 Reference Cell Public PTemp Units PTemp C Public Batt_volt Units Batt_vo...

Страница 12: ...ase 2 MBDecode Illegal data address Case 3 MBDecode Illegal data value Case 4 MBDecode Slave device failure Case 5 MBDecode Acknowledge error Case 6 MBDecode Slave device busy Case 8 MBDecode Memory p...

Страница 13: ...DM_Isc Modbus_CS325DM 2 Short Circuit Current CS325DM_PVTemp Modbus_CS325DM 3 PV Temperature Else CS325DM_Irradiance NAN CS325DM_Isc NAN CS325DM_PVTemp NAN EndIf CallTable OneMin NextScan EndProg Tabl...

Страница 14: ...00 C Public CS325DM_Analog2 Units CS325DM_Analog2 C DataTable OneMin 1 1 DataInterval 0 1 Min 10 Minimum 1 Batt_volt FP2 False False Sample 1 PTemp FP2 Average 1 CS325DM_Analog1 IEEE4 False Average 1...

Страница 15: ...ther 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 informat...

Страница 16: ...ion or Repair Reference number contact your CAMPBELL SCIENTIFIC regional office Please write the issued number clearly on the outside of the shipping container and ship as directed For all returns the...

Страница 17: ...rohibit 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 Y...

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

Отзывы: