;{CR510} ; ;Program: ECI_CON.CSI, Version 1.1, April 27, 2006 ;Virginia Technologies, Inc. ;Written By: Bob Ross ; ;Sample code for Campbell Scientific CR510 datalogger ;using SDI-12 Port 1 (C1) to control one ECI-1 instrument. ; ;This code starts live measurements and records results from a single ECI-1 with ;SDI-12 address set to 0 Measurement results will be recorded ;once every 900 seconds. Please note that program is for bench testing ;purposes only. Live electrochemical measurements in concrete ;should be performed no more frequently than once every two weeks. ;Performing measurements more frequently will give erroneous results ;and cause premature corrosion of the ECI-1 working electrode. ; ;The data can be collected into a .DAT type file using ;Campbell Scientific PC based programs such as PC208W ;or Loggernet. The format of the the data stored in the .DAT ;file is as follows: ; ;ARRAY ID #, YEAR, DAY OF YEAR, 24 HOUR TIME, CHLORIDE VOLTAGE(V), RESISTIVITY(KOhm-CM), LPR(KOhm-CM^2), TEMP(C), OCP(V) ; ;For expanding this code to more instruments please ;refer to the ECI-1 Product Manual and read NOTEs 2 and 3 ;in section 4.0 Communications regarding the use of the ;concurrent measurement command. ; ; *Table 1 Program 01: 60 Execution Interval (seconds) ;concurrent measurement command to ECI-1 at address 0 1: SDI-12 Recorder (P105) 1: 0 SDI-12 Address 2: 0 -- Start Measurement (aM0!) 3: 1 Port 4: 1 Loc [ CHLORIDE ] 5: 1.0 Mult 6: 0.0 Offset ;checks to see if data has been returned by the ;previous measurement command and if true calls ;subroutine 1 to record the data 2: If (X<=>F) (P89) 1: 1 X Loc [ CHLORIDE ] 2: 3 >= 3: -99998 F 4: 1 Call Subroutine 1 *Table 2 Program 02: 0.0000 Execution Interval (seconds) *Table 3 Subroutines 1: Beginning of Subroutine (P85) ;---------------- 1 ------- Store Measurement Data ------------- 1: 1 Subroutine 1 2: Do (P86) 1: 10 Set Output Flag High (Flag 0) 3: Set Active Storage Area (P80) 1: 1 Final Storage Area 1 2: 1 Array ID 4: Real Time (P77)^27488 1: 1110 Year,Day,Hour/Minute (midnight = 0000) 5: Resolution (P78) 1: 1 High Resolution ;writes verification concurrent measurement data to final storage 6: Sample (P70)^1189 1: 5 Reps 2: 1 Loc [ CHLORIDE ] 7: End (P95) End Program -Input Locations- 1 CHLORIDE 1 2 0 2 GSTAT 1 1 0 3 PSTAT 1 1 0 4 TEMP 1 1 0 5 OCP 1 1 0 6 _________ 1 0 0 7 _________ 1 0 0 8 _________ 1 0 0 9 _________ 1 0 0 10 _________ 0 0 0 11 _________ 0 0 0 12 _________ 0 0 0 13 _________ 0 0 0 14 _________ 0 0 0 15 _________ 0 0 0 16 _________ 0 0 0 17 _________ 0 0 0 18 _________ 0 0 0 19 _________ 0 0 0 20 _________ 0 0 0 21 _________ 0 0 0 22 _________ 0 0 0 23 _________ 0 0 0 24 _________ 0 0 0 25 _________ 0 0 0 26 _________ 0 0 0 27 _________ 0 0 0 28 _________ 1 0 0 -Program Security- 0000 0000 0000 -Mode 4- -Final Storage Area 2- 0 -CR10X ID- 0 -CR10X Power Up- 3