background image

MODEL 6180 VERTICAL IN-PLACE INCLINOMETER SYSTEM 

 |  CRBASIC PROGRAMMING  | 

 21

APPENDIX D.

CRBASIC PROGRAMMING

D.1 SAMPLE CR1000 PROGRAM

The following sample program reads one 6180 sensor string with three biaxial 
sensors. The string in this example communicates with the CR1000 through the 
control ports C1 and C2, which are setup as COM1. A RS-485 to TTL converter 
required.

'Define Data Tables

'Main Program

D.2 SAMPLE CR6 PROGRAM

The following sample program reads one 6180 sensor string with three 
addressable sensors. The string in this example communicates with the CR6 
through the control ports C1 and C2, which are setup as ComC1. The CR6 has 
built in RS 485 capability, so no RS-485 to TTL converter is required.  

'Define Data Tables

Public ErrorCode

'Error Code sent back from ModBus Command

Public A_Axis_Degrees(3) 'A Axis Degree Output
Public B_Axis_Degrees(3) 'B Axis Degree Output
Public Celsius(3)

'Temperature Celsius

Public Count

'Counter to increment through sensors

DataTable(Test,1,-1)

Sample (3,A_Axis_Degrees(),IEEE4)

'Store Degree Reading for A Axis

Sample (3,B_Axis_Degrees(),IEEE4)

'Store Degree Reading for B Axis

Sample (3,Celsius(),IEEE4)

'Store Thermistor C Reading

EndTable

BeginProg

'Open COMport with TTL communications at 115200 baud rate
SerialOpen (Com1,115200,16,0,50)

'Read 3 sensors in MEMS String every 10 seconds
Scan (10,Sec,0,0)

'Loop through addresses of connected String
For Count = 1 To 3

'Reset temporary storage for both Degrees and Temp so not to retain
'previous reading
A_Axis_Degrees(Count) = 0
B_Axis_Degrees(Count) = 0
Celsius(Count) = 0

'Flush Serial between readings
SerialFlush (Com1)

'Write to register to begin reading MEMS String

NOTE:

 ModbusMaster won't send 0x118 unless "&H119" is 

'

entered

ModbusMaster (ErrorCode,Com1,115200,Count,6,1,&H119,1,1,50,0)
'Delay after write register
Delay (1,1,Sec)

'Use Modbus command to retrieve A Axis and B Axis Degree Readings
ModbusMaster (ErrorCode,Com1,115200,Count,3,A_Axis_Degrees(Count),&H101,1,1,50,0)
ModbusMaster (ErrorCode,Com1,115200,Count,3,B_Axis_Degrees(Count),&H103,1,1,50,0)

'Use Modbus command to retrieve Thermistor Celsius from string
ModbusMaster (ErrorCode,Com1,115200,Count,3,Celsius(Count),&H107,1,1,550,0)

'Delay before proceeding to next reading
Delay (1,1,Sec)

Next

'Call Table to store Data
CallTable Test

NextScan

EndProg

Public ErrorCode

'Error Code sent back from ModBus Command

Public A_Axis_Degrees(3)

'A Axis Degree Output

Public B_Axis_Degrees(3)

'B Axis Degree Output

Public Celsius(3)

'Temperature Celsius

Public Count

'Counter to increment through sensors

DataTable(Test,1,-1)

Sample (3,A_Axis_Degrees(),IEEE4)

'Store Degree Reading for A Axis

Sample (3,B_Axis_Degrees(),IEEE4)

'Store Degree Reading for B Axis

Sample (3,Celsius(),IEEE4)

'Store Thermistor C Reading

EndTable

Summary of Contents for 6180

Page 1: ... 2021 GEOKON All rights reserved Document Revision Init Release date 04 05 21 Model 6180 Vertical In Place Inclinometer System Instruction Manual ...

Page 2: ......

Page 3: ...ON is not responsible for any damages or losses caused to other equipment whether direct indirect incidental special or consequential which the purchaser may experience as a result of the instal lation or use of the product The buyer s sole remedy for any breach of this agreement by GEOKON or any breach of any warranty by GEOKON shall not exceed the purchase price paid by the purchaser to GEOKON f...

Page 4: ......

Page 5: ... MODEL 8020 38 RS 485 TO TTL USB CONVERTER 8 2 7 FOUR PIN WATERPROOF CONNECTOR 9 3 MODBUS RTU PROTOCOL 10 3 1 INTRODUCTION TO MODBUS 10 3 2 MODBUS RTU OVERVIEW 10 3 3 MODBUS TABLES 10 4 DATA REDUCTION 13 4 1 INCLINATION CALCULATION 13 4 2 DEFLECTION CALCULATION 13 4 3 TEMPERATURE CORRECTION 13 4 4 ENVIRONMENTAL FACTORS 13 5 TROUBLESHOOTING 14 APPENDIX A SPECIFICATIONS 15 A 1 PARTS LIST 15 APPENDIX...

Page 6: ...LE 7 FIGURE 17 MODEL 8020 38 TTL USB TO RS 485 CONVERTER 8 FIGURE 18 WIRING OF DATALOGGER WITHOUT BUILT IN RS 485 CONVERSION 8 FIGURE 19 WIRING OF DATALOGGER WITH RS 485 CONVERSION 9 FIGURE 20 MALE WATERPROOF CONNECTOR 9 FIGURE 21 FEMALE WATERPROOF CONNECTOR 9 FIGURE 22 INSTALLATION EXAMPLE 13 FIGURE 23 6180 IPI MEMS ADDRESSABLE VERTICAL 16 FIGURE 24 6180T IPI MEMS ADDRESSABLE VERTICAL TERMINAL 16...

Page 7: ...ATS 11 TABLE 3 DEVICE CONTROL ADDRESSES 11 TABLE 4 NON VOLATILE MEMORY 11 TABLE 5 PREPROGRAMMED DEVICE INFORMATION 12 TABLE 6 MODEL 6180 INCLINOMETER SPECIFICATIONS 15 TABLE 7 MODEL 6180 INCLINOMETER PARTS LIST 15 TABLE 8 MODBUS COMMUNICATIONS PARAMETERS 20 TABLE 9 ERROR CODES 20 ...

Page 8: ...IV EQUATIONS EQUATION 1 CORRECTED INCLINATION ANGLE 13 EQUATION 2 LATERAL DISPLACEMENT 13 EQUATION 3 OFFSET CALCULATION 13 ...

Page 9: ... Each sensor is comprised of an addressable Micro Electro Mechanical Systems MEMS device inside a sealed stainless steel housing The device measures the A and B axes of the borehole Each sensor also contains a digital temperature sensor for reading temperatures The sensors are mechanically joined with quick connect ball joints which allow for unimpeded relative movement between sensors and accommo...

Page 10: ...n a vertical position and observe the reading The tilt sensor must be held steady while taking the reading The observed reading should be close to the factory vertical reading Tilting the sensor in a positive direction A or B as marked on the sensor should yield increasing readings Tilting the sensor in a negative direction A or B should yield decreasing readings The temperature indicated on the r...

Page 11: ...N All wheel assemblies should be oriented in the same direction when installed in the casing The wheel assemblies are attached at the factory so the upper wheel is facing the A direction of the sensor as shown in the figure to the left Axis directions are also physically labeled on each sensor Point the A direction in the same direction as the anticipated movement i e towards the excavation being ...

Page 12: ...the figures below and to the left 5 FIGURE 5 Holes for Safety Cable Eye Bolts vs Holes for Support Holes FIGURE 6 Support Sensor with Rod 2 4 2 CONNECT THE SECOND SENSOR TO THE FIRST SENSOR 1 Each 6180 segment is supplied with a barbed locking pin pre installed 7 FIGURE 7 Pre inserted Locking Pin 2 Remove the locking pin by depressing the barb and pulling the ring at the same time 8 FIGURE 8 Remov...

Page 13: ...apture the Ball Stud 5 Reinsert the locking pin to prevent the sleeve from retracting while in use 11 FIGURE 11 Completed Connection 6 Plug the male connector of the first sensor s signal cable into the female connector of the second sensor s signal cable Caution When connecting the sensors make sure to align the two orientation dots on the outside of the female connector with the orientation dot ...

Page 14: ...r rod through the the support hole on the side of the sensor 10 Repeat steps 2 9 above for each subsequent sensor 11 Plug the male connector of the top most sensor to the female connector of the readout cable 6180 3 1 6180 3 2 or 6180 3V Connect the other end of the readout cable to the readout device or data logger 2 5 CONNECTING THE SUSPENSION BRACKET To ensure the string is installed to the cor...

Page 15: ...ble clamp so the turnback length measures approximately 3 25 inches 9 Apply light tension to the cable to remove all slack Tighten all four cable clamp nuts to a torque specification of approximately 4 5 ft lbs 10 If desired the third supplied cable clamp may be installed in between the first and second cable clamps make sure to tighten nuts to the previously mentioned torque specification 11 Trim...

Page 16: ...s evaluating the data over a period of time to determine when the string has sufficiently stabilized and when the zero readings should be established 2 6 MODEL 8020 38 RS 485 TO TTL USB CONVERTER GEOKON makes the Model 8020 38 Addressable Bus Converter for connecting addressable strings to personal computers readouts dataloggers and programmable logic controllers The converter acts as a bridge usi...

Page 17: ...s for the four pin male and female connectors are shown below the function of each wire is detailed in Table 1 below 20 FIGURE 20 Male Waterproof Connector 21 FIGURE 21 Female Waterproof Connector 1 TABLE 1 Four Pin Wiring Chart Pin Wire Color Function 1 Red Power 2 Black Ground 3 White RS 485 Data High 4 Green RS 485 Data Low Pin 1 Pin 2 Pin 3 Pin 4 Pin 1 Pin 4 Pin 3 Pin 2 ...

Page 18: ...ction Code one byte The action to be carried out by the slave device 3 Data multi byte The payload of the function code being sent 4 Cyclic Redundancy Check or CRC two bytes A 16 bit data integrity check calculated over the other bytes in the packet 3 3 MODBUS TABLES The most recent sensor readings are stored in memory registers read using a Modbus command Angle and temperature readings are availa...

Page 19: ...10A 20 LSW Uncorrected B Axis degrees float 21 0x10B 22 MSW 23 0x10E 28 LSW Thermistor ADC N A uint16 29 0x117 46 Error Code N A uint16 47 Register Address Byte Word Parameter Units Type Access 0x118 48 Trigger N A uint16 RW 49 0x119 50 LSW Password N A uint32 51 0x11A 52 MSW 53 0x11B 54 Measure Cycle N A uint16 55 Register Address Byte Word Parameter Units Type Access 0x200 0 Drop Address N A uin...

Page 20: ... Address Byte Word Parameter Units Type Access 0x20D 26 LSW A Offset degrees float RO 27 0x20E 28 MSW 29 0x20F 30 LSW B Offset degrees float 31 0x210 32 MSW 33 0x213 38 LSW A Gauge Factor degrees float 39 0x214 40 MSW 41 0x215 42 LSW B Gauge Factor degrees float 43 0x216 44 MSW 45 ...

Page 21: ...3 EQUATION 3 Total Lateral Displacement 4 3 TEMPERATURE CORRECTION In a given installation temperature effects can cause real changes of tilt therefore each sensor is equipped with a device for measuring the sensor temperature This enables temperature induced changes in inclination to be distinguished from inclination due to other sources An important point to note is that sudden changes in temper...

Page 22: ...he list of possible solutions shown below Refer to Appendix C for Modbus error codes Consult the factory for additional troubleshooting help SYMPTOM TILT SENSOR READINGS ARE UNSTABLE OR FAIL TO READ Is there a source of electrical noise nearby Most probable sources of electrical noise are motors generators and antennas Check all cable connections terminals and plugs Water may have penetrated the i...

Page 23: ...ethane jacket nominal OD 7 9 mm Minimum Sensor Spacing 0 5 m Interface RS 485 Protocol Modbus Baud Rate 115 200 bps Temperature Accuracy 0 5 C Ingress Protection IP68 to 3 MPa 300 m 1000 ft of head Maximum Allowable String Weight 113 kg 250 lb Casing Diameter Range 58 mm to 90 mm 6180 0 5M IPI MEMS Addressable Vertical Biaxial Segment Length 0 5 M 6180 1M Biaxial Segment Length 1M 6180 2M Biaxial ...

Page 24: ...ATIONS GEOKON 23 FIGURE 23 Model 6180 0 5M 1M 2M 3M 2FT 5FT 10FT 24 FIGURE 24 Model 6180T 0 5M 1M 2M 3M 2FT 5FT 10FT 25 FIGURE 25 Model 6180 1 Suspension Cable Assembly 26 FIGURE 26 Model 6180 2 Suspension Bracket ...

Page 25: ...LACE INCLINOMETER SYSTEM SPECIFICATIONS 17 27 FIGURE 27 Model 6180 3 1 3 2 Topside Readout Cable Bare Leads 50FT 28 FIGURE 28 Model 6180 3V Topside Readout Cable Bare Leads 100FT 29 FIGURE 29 Model 6180 6 Safety Cable Assembly ...

Page 26: ...18 SAMPLE CALIBRATION SHEETS GEOKON APPENDIX B SAMPLE CALIBRATION SHEETS 30 FIGURE 30 Sample Model 6180 Calibration Sheet Sensor A ...

Page 27: ...MODEL 6180 VERTICAL IN PLACE INCLINOMETER SYSTEM SAMPLE CALIBRATION SHEETS 19 31 FIGURE 31 Sample Model 6180 Calibration Sheet Sensor B ...

Page 28: ... plus error 8 appears as number 12 Port Setting Required Value Bits per Second 115 200 Data bits 8 Parity None Stop bits 1 Flow Control None Number Name Cause Remedy 2 Temperature Sensor Range Measured temperature out of range Thermistor may be too hot or too cold or it may be damaged Use adjacent sensors to validate or estimate temperature 4 Temperature Sensor Verify Secondary temperature sensor ...

Page 29: ... 115200 16 0 50 Read 3 sensors in MEMS String every 10 seconds Scan 10 Sec 0 0 Loop through addresses of connected String For Count 1 To 3 Reset temporary storage for both Degrees and Temp so not to retain previous reading A_Axis_Degrees Count 0 B_Axis_Degrees Count 0 Celsius Count 0 Flush Serial between readings SerialFlush Com1 Write to register to begin reading MEMS String NOTE ModbusMaster won...

Page 30: ...e to register 0x118 to trigger string NOTE ModbusMaster won t send 0x118 unless H119 is entered ModbusMaster ErrorCode ComC1 115200 Count 6 1 H119 1 1 10 0 Delay after write register Delay 1 1 Sec Use Modbus command to retrieve A Axis and B Axis Degree Readings ModbusMaster ErrorCode ComC1 115200 Count 3 A_Axis_Degrees Count H101 1 1 10 0 ModbusMaster ErrorCode ComC1 115200 Count 3 B_Axis_Degrees ...

Page 31: ......

Page 32: ...GEOKON 48 Spencer Street Lebanon New Hampshire 03766 USA Phone 1 603 448 1562 Email info geokon com Website www geokon com GEOKON is an ISO 9001 2015 registered company ...

Reviews: