04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Section 7. Installation<br />

CRBasic Example 36.<br />

Public PTemp, batt_volt<br />

Public Source(10)<br />

SDI‐12 Sensor Setup<br />

BeginProg<br />

Scan(5,Sec,0,0)<br />

PanelTemp(PTemp,250)<br />

Battery(batt_volt)<br />

Source(1) = PTemp 'temperature, deg C<br />

Source(2) = batt_volt 'primary power, Vdc<br />

Source(3) = PTemp * 1.8 + 32 'temperature, deg F<br />

Source(4) = batt_volt 'primary power, Vdc<br />

Source(5) = PTemp 'temperature, deg C<br />

Source(6) = batt_volt * 1000 'primary power, mVdc<br />

Source(7) = PTemp * 1.8 + 32 'temperature in deg F<br />

Source(8) = batt_volt * 1000 'primary power, mVdc<br />

Source(9) = Status.SerialNumber 'serial number<br />

Source(10) = Status.LithiumBattery 'data backup battery, V<br />

NextScan<br />

SlowSequence<br />

Do<br />

SDI12SensorSetup(2,1,0,1)<br />

Delay(1,500,mSec)<br />

SDI12SensorResponse(Source)<br />

Loop<br />

EndSequence<br />

EndProg<br />

Table 27. SDI-12 Sensor Setup -- Results<br />

Measurement<br />

Command from<br />

SDI-12 Recorder<br />

Source Variables<br />

Accessed from the<br />

<strong>CR1000</strong> acting as a<br />

SDI-12 Sensor<br />

Contents of<br />

Source Variables<br />

0M! Source(1), Source(2) temperature °C, battery voltage<br />

0M0! Same as 0M!<br />

0M1! Source(3), Source(4) temperature °F, battery voltage<br />

0M2! Source(5), Source(6) temperature °C, battery mV<br />

0M3! Source(7), Source(8) temperature °F, battery mV<br />

0M4! Source(9), Source(10)<br />

serial number, lithium battery<br />

voltage<br />

7.8.3.3 SDI-12 Power Considerations<br />

When a command is sent by the <strong>CR1000</strong> to an SDI-12 probe, all probes on the<br />

same SDI-12 port will wake up. However, only the probe addressed by the<br />

datalogger will respond. All other probes will remain active until the timeout<br />

period expires.<br />

185

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!