![Campbell MetSENS Series Product Manual Download Page 16](http://html1.mh-extra.com/html/campbell/metsens-series/metsens-series_product-manual_3900888016.webp)
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
[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
(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
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
MetSENS-Series Compact Weather Sensors
13