EasyManua.ls Logo

Campbell MetSENS Series - SDI-12 Programming; RS-232 Programming

Campbell MetSENS Series
39 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
The ModbusClient() instruction has the following syntax:
ModbusClient (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 Modbus measurements [p. 15]). ModbusOption is an optional parameter
described in the CRBasic Editor Help.
6.2.2 SDI-12 programming
The SDI12Recorder() instruction is used to measure a MetSENS-series configured for SDI-12
measurements. The SDI12Recorder() instruction sends a request to the sensor to make a
measurement and then retrieves the measurement from the sensor. See SDI-12 measurements
(p. 18) for more information.
For most data loggers, the SDI12Recorder() instruction has the following syntax:
SDI12Recorder(Destination, SDIPort, SDIAddress, “SDICommand”, Multiplier, Offset,
FillNAN, WaitonTimeout)
Valid values for the SDIAddress are 0 through 9, a through z, and A through Z; alphabetical
characters need to be enclosed in quotation marks (for example, “A”). Also enclose the
SDICommand in quotation marks as shown. The Destination parameter must be an array.
The required number of values in the array depends on the command; see Table 7-5 (p. 19).
FillNAN and WaitonTimeout are optional parameters (refer to CRBasic Editor help for more
information).
6.2.3 RS-232 programming
The RS-232 instructions are shown in Table 6-4 (p. 14).
MetSENS-Series Compact Weather Sensors 13

Related product manuals