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 />

is programmed with the M! command (note that the SDI-12 address is a separate<br />

instruction parameter), the <strong>CR1000</strong> issues the aM! AND aD0! commands with<br />

proper elapsed time between the two. The <strong>CR1000</strong> automatically issues retries<br />

and performs other services that make the SDI-12 measurement work as trouble<br />

free as possible. Table SDI-12Recorder() Commands (p. 178) summarizes <strong>CR1000</strong><br />

actions triggered by some SDI12Recorder() commands.<br />

If the SDI12Recorder() instruction is not successful, NAN will be loaded into the<br />

first variable. See NAN and ±INF (p. 428) for more information.<br />

Table 26. SDI12Recorder() Commands<br />

SDIRecorder() Instruction<br />

SDICommand Entry<br />

Actions Internal to<br />

<strong>CR1000</strong> and Sensor<br />

Mv!<br />

<strong>CR1000</strong>: Issues aMv! command.<br />

Sensor: Responds with atttnn.<br />

<strong>CR1000</strong>: Waits until ttt 1 seconds (unless a<br />

service request is received). Issues aDv!<br />

command(s). If a service request is received,<br />

issues aDv! immediately.<br />

Sensor: Responds with data.<br />

Cv!<br />

<strong>CR1000</strong>: Issues aCv! command.<br />

Sensor: Responds with atttnn.<br />

<strong>CR1000</strong>: If ttt=0 then issues aDv! command(s).<br />

Sensor: Responds with data.<br />

<strong>CR1000</strong>: Else, if ttt>0 then moves to next<br />

CRBasic program instruction.<br />

<strong>CR1000</strong>: At next time SDIRecorder() is<br />

executed, if elapsed time < ttt, moves to next<br />

CRBasic instruction.<br />

<strong>CR1000</strong>: Else, issues aDv! command(s).<br />

Sensor: Responds with data.<br />

<strong>CR1000</strong>: Issues aCv! command (to request<br />

data for next scan).<br />

Cv<br />

(note — no ! termination) 2<br />

<strong>CR1000</strong>: Tests to see if ttt expired. If ttt not<br />

expired, loads 1e9 into first variable and then<br />

moves to next CRBasic instruction. If ttt<br />

expired, issues aDv! command(s).<br />

Sensor: Responds to aDv! command(s) with<br />

data, if any. If no data, loads NAN into<br />

variable.<br />

<strong>CR1000</strong>: Moves to next CRBasic instruction<br />

(does not re-issue aCv! command).<br />

1 Note that ttt is local only to the SDIRecorder() instruction. If a second SDIRecorder()<br />

instruction is used, it will have its own ttt.<br />

178

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

Saved successfully!

Ooh no, something went wrong!