Section 7. Installation
When programmed as an SDI-12 sensor, the CR1000 will respond to SDI-12
commands
M
,
MC
,
C
,
CC
,
R
,
RC
,
V
,
?
, and
I
. See table
SDI-12 Commands for
Transparent Mode
(p. 269)
for full command syntax. The following rules apply:
1. A CR1000 can be assigned only one SDI-12 address per SDI-12 port. For
example, a CR1000 will not respond to both
0M!
AND
1M!
on SDI-12 port
C1
. However, different SDI-12 ports can have unique SDI-12 addresses. Use
a separate
SlowSequence
for each SDI-12 port configured as a sensor.
2. The CR1000 will handle additional measurement
(
aMx!
)
commands. When an
SDI-12 recorder issues
aMx!
commands as shown in CRBasic example
SDI-
12 Sensor Setup
(p. 280),
measurement results are returned as listed in table
SDI-
12 Sensor Setup — Results
(p. 280).
CRBasic Example 58.
SDI-12 Sensor Setup
'This program example demonstrates the use of the SDI12SensorSetup()/SDI12SensorResponse()
'instruction pair to program the CR1000 to emulate an SDI-12 sensor. A common use of this
'feature is the transfer of data from the CR1000 to SDI-12 compatible instruments, including
'other Campbell Scientific dataloggers, over a single-wire interface (SDI-12 port to
'SDI-12 port). The recording datalogger simply requests the data using the aD0! command.
Public
PanelTemp
Public
Batt_volt
Public
SDI_Source(10)
BeginProg
Scan
(5,Sec,0,0)
PanelTemp
(PanelTemp,250)
Battery
(batt_volt)
SDI_Source(1) = PanelTemp
'temperature, degrees C
SDI_Source(2) = batt_volt
'primary power, volts dc
SDI_Source(3) = PanelTemp * 1.8 + 32
'temperature, degrees F
SDI_Source(4) = batt_volt
'primary power, volts dc
SDI_Source(5) = PanelTemp
'temperature, degrees C
SDI_Source(6) = batt_volt * 1000
'primary power, millivolts dc
SDI_Source(7) = PanelTemp * 1.8 + 32
'temperature in degrees F
SDI_Source(8) = batt_volt * 1000
'primary power, millivolts dc
SDI_Source(9) = Status.SerialNumber
'serial number
SDI_Source(10) = Status.LithiumBattery
'data backup battery, V
NextScan
SlowSequence
Do
SDI12SensorSetup
(10,1,0,1)
Delay
(1,500,mSec)
SDI12SensorResponse
(SDI_Source)
Loop
EndSequence
EndProg
280
Summary of Contents for CR1000
Page 2: ......
Page 4: ......
Page 6: ......
Page 32: ......
Page 36: ......
Page 38: ......
Page 40: ......
Page 60: ...Section 4 System Quickstart Figure 16 PC200W View Line Graph 60 ...
Page 96: ......
Page 98: ...98 ...
Page 302: ......
Page 453: ...Section 8 Operation Figure 115 Using the Keyboard Display 453 ...
Page 456: ...Section 8 Operation Figure 118 Real Time Custom 456 ...
Page 457: ...Section 8 Operation 8 8 1 3 Final Memory Tables Figure 119 Final Memory Tables 457 ...
Page 458: ...Section 8 Operation 8 8 2 Run Stop Program Figure 120 Run Stop Program 458 ...
Page 460: ...Section 8 Operation Figure 122 File Edit 460 ...
Page 461: ...Section 8 Operation 8 8 4 PCCard Memory Card Display Figure 123 PCCard CF Card Display 461 ...
Page 478: ......
Page 506: ......
Page 536: ......
Page 636: ......
Page 642: ......
Page 644: ......
Page 676: ......
Page 677: ......