1 example program, Example program – Campbell Scientific CS475, CS476, and CS477 Radar Water Level Sensor User Manual
Page 28

CS475, CS476, and CS477 Radar Water Level Sensor
Parameter 5 — Multiplier
Parameter 6 — Offset
Edlog allocates only one of the input locations needed for this
instruction. Three input locations are required for this sensor.
The additional input locations must be inserted manually using
the Input Location Editor. For information on manually inserting
input locations, refer to Manually Inserting Input Locations in
the Edlog help.
NOTE
7.5.2.1 Example Program
Below is a portion of a CR10X program that measures the radar sensor.
The instructions below do not store data in final storage.
Instruction 92, Instruction 77 and processing instructions such as
Instruction 70 are required to store the data permanently.
NOTE
;{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 white wire is connected
4: 1
Loc[Data_1
]
5: 1.0
Mult
6: 0.0
Offset
*Table 2 Program
02: 0.000
Execution
Interval
(seconds)
*Table 3 Subroutines
End Program
After Instruction 105 is executed, the input location called “Data_1” will hold
the measured stage, reported in feet or meters (depending on the Unit of
Measure setting). The input location called Data_2 will hold the distance
measurement, reported in feet or meters (depending on the Unit of Measure
setting). The input location called Data_3 will hold the error code; an error
code of 0 indicates that the sensor is functioning properly (see Section 8,
Diagnostics, Repair, and Maintenance).
Note that Port 1 specifies that the SDI-12 data line is to be connected to the
Port C1.
20