![Campbell CS650 Скачать руководство пользователя страница 45](http://html1.mh-extra.com/html/campbell/cs650/cs650_instruction-manual_489222045.webp)
Appendix B. Example Programs
B-2
B.1.2 CR1000X with Two CS650 Sensors on Same Control Port
This CRBasic example program measures two CS650 sensors on a CR1000X
every 15 minutes, storing hourly averages of volumetric water content,
electrical conductivity, and soil temperature and samples of permittivity, period
average and voltage ratio. The first CS650 has an SDI-12 address of 0 and the
second has an address of 1. Wiring for the example is shown in TABLE
Assignment of aliases and units is not shown in this example.
TABLE B-2. CR1000X Wiring for Two Sensor Example Program
CR1000X
CS650 (wiring same for both)
12V
Red
C1
Green
G
Black, Orange, Clear
CRBasic Example B-2. CR1000X with Two CS650 Sensors on Same Control Port
Public
CS650(6)
Public
CS650_2(6)
DataTable
(DatoutCS650,1,-1)
DataInterval
(0,60,Min,10)
Average
(3,CS650(1),FP2,False)
Sample
(3,CS650(4),IEEE4)
Average
(3,CS650_2(1),FP2,False)
Sample
(3,CS650_2(4),IEEE4)
EndTable
BeginProg
Scan
(15,Min,0,0)
SDI12Recorder
(CS650(),C1,0,"M4!",1.0,0)
'Measure CS650 with address 0
SDI12Recorder
(CS650_2(1),C1,1,"M4!",1.0,0)
'Measure CS650 with address 1
CallTable
DatoutCS650
'Call Data Table
NextScan
EndProg
B.1.3 CR1000X with 12 CS650 Sensors on Multiplexer
This CRBasic example program measures 12 CS650 sensors on a AM16/32B
multiplexer every 15 minutes, storing hourly averages of volumetric water
content, electrical conductivity, soil temperature, permittivity, period average,
and voltage ratio. All sensors are addressed with SDI-12 address of 0. In this
example, the sensors are powered through the switched 12V terminal and
require 3 seconds warm-up time per sensor. Total time to measure all 12
sensors is more than 36 seconds. Alternately, all of the red wires for the sensors
could be connected to a bus separate from the multiplexer with the bus
connected to 12V for continuous power. This would decrease measurement
time. Wiring for the example is shown in TABLE
. Assignment of aliases
and units is not shown in this example.