User manual
CS475, CS476, and CS477 Radar Water Level Sensor 
20 
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. 
;{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 metres (depending on the Unit of Measure 
setting). The input location called Data_2 will hold the distance measurement, 
reported in feet or metres (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. 
8.  Diagnostics, Repair, and Maintenance 
8.1 Testing Procedure 
The test procedures for the sensor require the following steps: 
1.  Double check all wiring connections. 
2.  Connect the sensor to your datalogger and apply +12V power. 
3.  Compare the Output Stage versus the Actual Stage using the Start 
Measurement command followed by the Send Data command (see Section 
8.1.1, Start Measurement Command). 
4.  Send the Acknowledge Active command (see Section 8.1.2, Check Unit 
Response). This command is used to check the presence of the sensor on the 
bus. Only the address is sent back in response. 
5.  Send the Identification command (see Section 8.1.3, Check for Valid Data). 
NOTE










