beautypg.com

3 using edlog – Campbell Scientific CS445 Liquid Level Sensor User Manual

Page 9

background image

CS445 Liquid Level Sensor

5

BeginProg

Scan(60,Sec)

'

Code for SDI-12 measurements:

SDI12Recorder(Level,0M!,1,0)

Call the data table:
CallTable(Hourly)

NextScan

EndProg

5.3 Using Edlog

The following is an example of the P105 SDI-12 Sensor instruction used by
array-based dataloggers to interrogate an SDI-12 sensor.

Use Instruction 105 to read the CS445. Your datalogger manual has a detailed
explanation of Instruction 105.

Wiring for example program

Red

12V

Black

G

Brown

C1

Clear

G

;{CR10X}
;
*Table 1 Program

01: 60

Execution Interval (seconds)

1: SDI-12 Recorder (P105)

1:

0

SDI-12 Address

2:

0

Start Measurement (aM0!)

3:

1

Port ;this is where the brown wire is connected

4:

1

Loc [ Level ]

5:

1.0

Mult

6:

0.0

Offset

*Table 2 Program

02: 0.0000

Execution Interval (seconds)

*Table 3 Subroutines

End Program

After this command is executed, the input location within the logger called
“Pressure” holds the measured pressure, reported in PSI. This result may be
further processed within the logger or stored to final storage memory. Note
that Port 1 specifies that the SDI-12 data line is to be connected to Port C1.
Other ports may be selected. The Multiplier and Offset can be changed to
scale the result or perform unit conversions (e.g., Depth = 2.31 * Pressure).