background image

Section 7.  Installation 

 

148

 

 

 

 

 

CRBasic

 

Example

 

23.

 

String

 

and

 

Variable

 

Concatenation

 

'Declare Variables

 

Dim

 Wrd(8) 

As String

 * 10 

Public

 Phrase(2) 

As String

 * 80 

Public

 PhraseNum(2) 

As Long

 

 

'Declare Data Table

 

DataTable

(Test,1,-1) 

  DataInterval

(0,15,Sec,10) 

  'Write phrases to data table "Test"

 

  Sample

(2,Phrase,String) 

EndTable

 

 

'Program

 

BeginProg

 

  Scan

(1,Sec,0,0) 

 

    'Assign strings to String variables

 

    Wrd(1) = " ":Wrd(2) = "Good":Wrd(3) = "morning":Wrd(4) = "Don't" 
    Wrd(5) = "do":Wrd(6) = "that":Wrd(7) = ",":Wrd(8) = "Dave" 
 

    'Assign integers to Long variables

 

    PhraseNum(1) = 1:PhraseNum(2) = 2 

    'Concatenate string "1 Good morning, Dave"

 

    Phrase(1) = PhraseNum(1)+Wrd(1)&Wrd(2)&Wrd(1)&Wrd(3)&Wrd(7)&Wrd(1)&Wrd(8) 
 

    'Concatenate string "2 Don't do that, Dave"

 

    Phrase(2) = PhraseNum(2)+Wrd(1)&Wrd(4)&Wrd(1)&Wrd(5)&Wrd(1)&Wrd(6)&Wrd(7)&Wrd(1)&Wrd(8) 

    CallTable

 Test 

 

  NextScan

 

EndProg

 

 

 

7.7.3.10 Program Access to Data Tables 

A data table is a memory location wherein data records are stored.  Sometimes, 
the stored data needs to be used in the CRBasic program.  For example, a program 
can be written to retrieve the average temperature of the last five days for further 
processing.  CRBasic has syntax provisions facilitating access to these table data, 
or to meta data relating to the data table. Except when using the 

GetRecord()

 

instruction (

Data Table Access and Management

 (p. 495) 

), the syntax is entered 

directly into the CRBasic program through a variable name. The general form is: 

TableName.FieldName_Prc(Fieldname Index, Records Back) 

Where: 

 

TableName

 is the name of the data table. 

 

FieldName

 is the name of the variable from which the processed value is 

derived. 

Содержание CR850

Страница 1: ...CR800 CR850 Measurement and Control System Operator s Manual Issued 16 7 13 Copyright 2000 2013 Campbell Scientific Inc Printed under Licence by Campbell Scientific Ltd CSL 632...

Страница 2: ......

Страница 3: ...the repair is under guarantee or not Please state the faults as clearly as possible and if the product is out of the guarantee period it should be accompanied by a purchase order Quotations for repair...

Страница 4: ......

Страница 5: ...l cell phones and aerials may also not be applicable according to your locality Some brackets shields and enclosure options including wiring are not sold as standard items in the European market in so...

Страница 6: ......

Страница 7: ...or Wiring 40 4 1 3 4 RS 232 Sensors 40 4 1 4 Digital I O Ports 42 4 1 5 SDM Channels 42 4 1 6 Input Expansion Modules 42 4 2 Hands On Measuring a Thermocouple 43 4 2 1 What You Will Need 43 4 2 2 Hard...

Страница 8: ...5 1 8 3 Data File Formats in CR800 Memory 67 5 1 8 4 Data Format on Computer 68 5 1 9 Communications 68 5 1 9 1 PakBus 68 5 1 9 2 Modbus 69 5 1 9 3 DNP3 Communication 69 5 1 9 4 Keyboard Display 69 5...

Страница 9: ...stem 94 7 6 2 1 Sending OS with DevConfig 94 7 6 2 2 Sending OS with Program Send 96 7 6 2 3 Sending OS with External Memory 96 7 6 3 Settings 96 7 6 3 1 Settings via DevConfig 96 7 6 3 1 1 Deployment...

Страница 10: ...11 System Signatures 150 7 7 4 Tips 150 7 7 4 1 Use of Variable Arrays to Conserve Code Space 150 7 7 4 2 Use of Move to Conserve Code Space 151 7 8 Programming Resource Library 151 7 8 1 Calibration...

Страница 11: ...nput Programming Basics 207 7 8 8 5 3 Output Programming Basics 208 7 8 8 5 4 Translating Bytes 209 7 8 8 5 5 Memory Considerations 210 7 8 8 5 6 Demonstration Program 211 7 8 8 6 Testing Applications...

Страница 12: ...7 8 19 Running Average 264 Section 8 Operation 269 8 1 Measurements 269 8 1 1 Time 269 8 1 1 1 Time Stamps 269 8 1 2 Voltage 270 8 1 2 1 Input Limits 271 8 1 2 2 Reducing Error 272 8 1 2 3 Measuremen...

Страница 13: ...herals 311 8 2 1 Analog Input Expansion Modules 312 8 2 2 Pulse Input Expansion Modules 312 8 2 3 Serial Input Expansion Modules 312 8 2 4 Control Outputs 312 8 2 4 1 Digital I O Ports 312 8 2 4 2 Rel...

Страница 14: ...ng 341 8 5 6 2 LAN Setup 342 8 5 6 3 LoggerNet Setup 344 8 5 7 PakBus Encryption 346 8 6 Alternate Telecommunications 347 8 6 1 DNP3 347 8 6 1 1 Overview 347 8 6 1 2 Programming for DNP3 347 8 6 1 2 1...

Страница 15: ...393 Section 9 Maintenance 397 9 1 Moisture Protection 397 9 2 Replacing the Internal Battery 397 9 3 Repair 400 Section 10 Troubleshooting 403 10 1 Status Table 403 10 2 Operating Systems 403 10 3 Pro...

Страница 16: ...Declarations 451 A 1 1 Variable Declarations Modifiers 452 A 1 2 Constant Declarations 453 A 2 Data Table Declarations 453 A 2 1 Data Table Modifiers 453 A 2 2 Data Destinations 454 A 2 3 Final Data...

Страница 17: ...Table Access and Management 495 A 16 Information Services 496 A 17 Modem Control 499 A 18 SCADA 499 A 19 Calibration Functions 500 A 20 Satellite Systems 501 A 20 1 Argos 501 A 20 2 GOES 502 A 20 3 O...

Страница 18: ...rt Software 546 F 10 1 Starter Software 546 F 10 2 Datalogger Support Software 547 F 10 2 1 LoggerNet Suite 548 F 10 3 Software Tools 548 F 10 4 Software Development Kits 549 Index 551 List of Figures...

Страница 19: ...Control window 111 Figure 47 Sequential mode scan priority flow diagrams 139 Figure 48 Zero Option 0 155 Figure 49 Quarter bridge strain gage schematic with RC resistor shunt 164 Figure 50 Strain gag...

Страница 20: ...it to limit control port input to 5 Vdc 309 Figure 99 Current limiting resistor in a rain gage circuit 309 Figure 100 Control port current sourcing 313 Figure 101 Relay driver circuit with relay 314 F...

Страница 21: ...Air RH Sensor 154 Table 23 Calibration Report for Salinity Sensor 156 Table 24 Calibration Report for Flow Meter 159 Table 25 Standard SDI 12 Command and Response Set 175 Table 26 SDI12Recorder Comma...

Страница 22: ...le Formats 320 Table 74 File Control Functions 324 Table 75 CR800 File Attributes 326 Table 76 Data Preserve Options 327 Table 77 Powerup ini Commands 329 Table 78 File System Error Codes 331 Table 79...

Страница 23: ...ors Types Available for Connection to CWS900 1228H538 256HTable 127 Analog Multiplexers 1229H538 257HTable 128 Pulse Frequency Input Expansion Modules 1230H539 258HTable 129 Serial Input Expansion Mod...

Страница 24: ...or FLOATs 1282H145 310HCRBasic Example 23 String and Variable Concatenation 1283H148 311HCRBasic Example 24 Use of Variable Arrays to Conserve Code Space 1284H151 312HCRBasic Example 25 Use of Move to...

Страница 25: ...Scan NextScan EndProg Syntax 253 CRBasic Example 59 PT100 in Four Wire Half Bridge 260 CRBasic Example 60 PT100 in Three wire Half bridge 262 CRBasic Example 61 PT100 in Four Wire Full Bridge 264 CRBa...

Страница 26: ...Table of Contents 26...

Страница 27: ...R800 data acquisition and walks you through a first attempt at data acquisition System Overview p 57 reviews salient topics which are covered in depth in subsequent sections and appendices More in dep...

Страница 28: ...old italic CRBasic instruction parameters and arguments within the body text Blue CRBasic instructions when set on a dedicated line Italic teal CRBasic program comments Lucida Sans Typewriter font CRB...

Страница 29: ...Protect from water Protect from ESD Disuse accelerates depletion of the internal battery which backs up several functions The internal battery will be depleted in three years or less if a CR800 is le...

Страница 30: ...Section 2 Cautionary Statements 30...

Страница 31: ...for use in connecting the CR800 to the serial port of a PC o ResourceDVD which contains product manuals and the following starter software Short Cut PC200W Devconfig Upon receipt of the CR800 inspect...

Страница 32: ...Section 3 Initial Inspection 32...

Страница 33: ...ure almost any sensor with an electrical response The CR800 measures electrical signals and convert the measurement to engineering units perform calculations and reduce data to statistical values Ever...

Страница 34: ...emanding applications Figure 1 Data acquisition system components 4 1 2 CR800 Module and Power Supply 4 1 2 1 Wiring Panel As shown in figure CR800 Wiring Panel p 35 the wiring panel provides terminal...

Страница 35: ...Section 4 Quickstart Tutorial 35 Figure 2 Wiring panel...

Страница 36: ...on line content concerning interfacing sensors at www campbellsci com or contact a Campbell Scientific applications engineer for assistance 4 1 3 1 Analog Sensors Analog sensors output continuous volt...

Страница 37: ...strain gage correlates to a specific water pressure A change in resistance in a wind vane potentiometer correlates to a change in wind direction 4 1 3 2 1 Voltage Excitation Bridge resistance is deter...

Страница 38: ...asurement channels The output signal generated by a pulse sensor is a series of voltage waves The sensor couples its output signal to the measured phenomenon by modulating wave frequency The CR800 det...

Страница 39: ...tput signal types 4 1 3 3 2 Pulse Input Channels Table Pulse Input Channels and Measurements p 39 lists devices channels and options for measuring pulse signals Table 2 Pulse Input Channels and Measur...

Страница 40: ...damage to the sensor or CR800 may result Some switch closure sensors may require a pull up resistor Consult figure Connecting Switch Closures to Digital I O p 303 for information on use of pull up re...

Страница 41: ...Section 4 Quickstart Tutorial 41 Figure 9 Location of RS 232 ports Figure 10 Use of RS 232 and digital I O when reading RS 232 devices...

Страница 42: ...imple application wherein digital I O ports are used to control a device and monitor the state whether on or off of the device Figure 11 Control and monitoring with digital I O 4 1 5 SDM Channels SDM...

Страница 43: ...t is not available RS 232 cable included with the CR800 PC200W software This software is available on the Campbell Scientific ResourceDVD or at www campbellsci com Note If the PC is to be connected to...

Страница 44: ...Install the PC200W software onto a PC Follow on screen prompts during the installation process Use the default program and destination folders 2 Open the PC200W software figure PC200W Main Window p 4...

Страница 45: ...when using a USB to serial cable Leave COM Port Communication Delay at 00 seconds Note When using a USB to serial cable the COM number may change if the cable is moved to a different USB port This wi...

Страница 46: ...t air temperature The CR800 will take samples once per second and store averages of these values at one minute intervals See More http www youtube com playlist list PLCD0CAFEAD0390434 feature plcp 4 2...

Страница 47: ...el Temperature then click on 8 Double click Type T Thermocouple to add it to Selected A prompt appears requesting the number of sensors Enter 1 A second prompt will appear requesting the thermocouple...

Страница 48: ...ce book to determine the temperature Then along came Eric and Evan Campbell Campbell Scientific designed the first CR7 datalogger to make thermocouple measurements without the need for vacuum flasks t...

Страница 49: ...h to select the time units These are used to set the time interval when data are stored 13 Only one table is needed for this tutorial so Table 2 can be removed Click tab then click Delete Table 14 Cha...

Страница 50: ...tion 4 2 4 5 Procedure Short Cut Step 17 to 18 17 Click Finish to compile the program Give the program the name QuickStart A summary screen will appear showing the compiler results Any errors during c...

Страница 51: ...igure 19 PC200W Connect button 4 2 5 2 Procedure PC200W Steps 2 to 4 2 Click Set Clock to synchronize the CR800 clock with the computer clock 3 Click Send Program A warning will appear that data on th...

Страница 52: ...4 Quickstart Tutorial 52 CR800 To view the OneMin table select an empty cell in the display area then click Add Figure 20 PC200W Monitor Data tab Public table Figure 21 PC200W Monitor Data tab Public...

Страница 53: ...art Tutorial 53 4 2 5 3 Procedure PC200W Step 5 5 In the Add Selection window Tables field click on OneMin then click Paste The OneMin table is now displayed Figure 22 PC200W Monitor Data tab Public a...

Страница 54: ...7 to 9 7 Click the OneMin box so a check mark appears in the box Under What to Collect select New data from datalogger This selects the to be collected 8 Click on Collect A dialog box will appear pro...

Страница 55: ...Section 4 Quickstart Tutorial 55 Figure 24 PC200W View data utility...

Страница 56: ...ect the CR800_OneMin dat file and click Open 11 The collected data are now shown Figure 25 PC200W View data table 4 2 5 7 Procedure PC200W Steps 12 to 13 12 Click on any data column To display the dat...

Страница 57: ...ts Sensors Datalogger o Clock o Measurement and control circuitry o Telecommunications circuitry o User entered CRBasic program Telecommunications device Datalogger support software p 76 computer or m...

Страница 58: ...d by the operating system in conjunction with the user program and on board clock The user program is written in CRBasic a programming language that includes data processing and analysis routines and...

Страница 59: ...depend on the internal clock The operating system and the CRBasic user program use the clock for scheduling operations The CRBasic program times functions through various instructions but the method o...

Страница 60: ...ge 6 channels SE 1 to 6 Input voltage range 2500 mV to 2500 mV Maximum frequency 200 kHz Resolution 136 ns Note Both pulse count and period average measurements are used to measure frequency output se...

Страница 61: ...port RS 232 configurable for serial input Refer to the appendices Digital I O Control Port Expansion p 541 Pulse Frequency Input Expansion Modules p 538 and Serial Input Output Peripherals p 539 for...

Страница 62: ...ecessary to secure the ground potential of the datalogger and shunt transients away from electronics Minimum 14 AWG wire is recommended 5 1 3 4 Power Terminals Read More See Power Sources p 82 5 1 3 4...

Страница 63: ...Peripherals p 539 for model information 9 pin CS I O port 1 port for communicating through Campbell Scientific telecommunications peripherals Approved CS I O telecommunication interfaces are listed i...

Страница 64: ...anel temperature at each scan and the one minute sample of panel temperature TCTemps displays two thermocouple temperatures Custom Keyboard and Display Menus p 486 and Keyboard Display p 69 The CR1000...

Страница 65: ...ion programs OS updates are occasionally made available at www campbellsci com OS and settings remain intact when power is cycled For more complex applications some settings may need adjustment Change...

Страница 66: ...it the code with CRBasic Editor Note Once a Short Cut generated program has been edited with CRBasic Editor it can no longer be modified with Short Cut 5 1 7 Memory and Final Data Storage Read More Se...

Страница 67: ...d through a telecommunications link to an ASCII file on the supporting computer using Campbell Scientific datalogger support software see Datalogger Support Software p 76 See also the manual and Help...

Страница 68: ...800 Communication can occur via RS 232 CS I O or digital I O ports Advantages of PakBus Simultaneous communication between the CR800 and other devices Peer to peer communication no PC required Other P...

Страница 69: ...ot a datalogger installation conveniently and in most weather conditions 5 1 9 4 1 Custom Menus Read More To implement custom menus see CRBasic Editor Help for the DisplayMenu instruction CRBasic prog...

Страница 70: ...sure to IP threats to send the latest operating system to the CR800 available at www campbellsci com and to disable un used services and secure those that are used Actions to take may include the foll...

Страница 71: ...ypass does not allow telecommunications access without first correcting the security code Note These features are not operable in CR1000KDs with serial numbers less than 1263 Contact Campbell Scientif...

Страница 72: ...pass codes are 1 through 65535 0 is no security Note If a pass code is set to a negative value a positive code must be entered to unlock the CR800 That positive code will equal 65536 negative securit...

Страница 73: ...urity2 code data can be collected public variables can be set and the clock can be set If the user enters the Security1 code all functions are unrestricted 5 1 10 2 1 Security By Pass Security can be...

Страница 74: ...communications encryption key see Communications Encryption p 75 5 1 10 4 File Encryption Encryption is available for CRBasic program files and provides a means of securing proprietary code or making...

Страница 75: ...p 397 With reasonable care the CR800 should give many years of reliable service 5 1 11 1 Protection from Water The CR800 and most of its peripherals must be protected from moisture Moisture in the ele...

Страница 76: ...upport Software Read More For a complete listing of available datalogger support software see the appendix Software p 546 PC200W Starter Software is available at no charge at www campbellsci com It su...

Страница 77: ...ured weather stations The software allows you to initialize the setup interrogate the station display data and generate reports from one or more weather stations PCONNECT Palm Datalogger Software supp...

Страница 78: ...Section 5 System Overview 78...

Страница 79: ...V 1 Note V1 is calculated from the ratiometric measurement accuracy See manual section Resistance Measurements p 291 for more information 12 Offset definitions Offset 1 5 x Basic Res 1 0 V for DIFF m...

Страница 80: ...Section 6 CR800 Specifications 80...

Страница 81: ...Range The CR800 is designed to operate reliably from 25 to 50 C 40 C to 85 C optional in non condensing environments 7 3 Enclosures Illustrated in figure Enclosure p 82 is a typical use of an enclosur...

Страница 82: ...of the ac to dc rectification process Excessive switching noise or ac p 425 ripple present on the output side of a power supply can increase measurement noise and so increase measurement error In add...

Страница 83: ...ain amperes The CR800 typically has a quiescent current draw of 0 5 mA with display off 0 6 mA with a 1 Hz sample rate and 10 mA with a 100 Hz sample rate With the external keyboard display on an addi...

Страница 84: ...al short circuits Voltage on the 12V and SW12 terminals can vary widely and will fluctuate with the dc supply used to power the CR800 so be careful to match the datalogger power supply to the requirem...

Страница 85: ...0 mVdc to 2500 mVdc excitation Check the accuracy specification of these channels in CR800 Specifications to understand their limitations Specifications are only applicable for loads not exceeding 25...

Страница 86: ...e The SW12 terminal supply is unregulated and can supply up to 900 mA at 20 C See table Current Source and Sink Limits p 84 A resettable polymeric fuse protects against over current Reset is accomplis...

Страница 87: ...d connected to the CR800 Ground Lug with a 12 AWG wire In low conductive substrates such as sand very dry soil ice or rock a single ground rod will probably not provide an adequate earth ground For th...

Страница 88: ...ry strikes induce voltage in power lines or wires connected to instrumentation While elaborate expensive and nearly infallible lightning protection systems are on the market Campbell Scientific for ma...

Страница 89: ...A lightning rod serves two purposes Primarily it serves as a preferred strike point Secondarily it dissipates charge reducing the chance of a lightning strike Figure Lightning Protection Scheme p 89 s...

Страница 90: ...ter channels should help Problem leads can also be tied directly to the ground lug to minimize induced single ended offset voltages 7 5 3 Ground Potential Differences Because a single ended measuremen...

Страница 91: ...loop When Rg is large the error is negligible Note that the geometry of the electrodes has a great effect on the magnitude of this error The Delmhorst gypsum block used in the Campbell Scientific 227...

Страница 92: ...ware 7 6 1 Device Configuration Utility Device Configuration Utility or DevConfig is the preferred tool for configuring the CR800 It is made available as part of LoggerNet PC400 RTDAQ or at www campbe...

Страница 93: ...on the left side and tabs on the right side After choosing a device on the left choose from the list of PC COM ports installed on the PC COM1 COM2 etc A selection of baud rates is offered only if the...

Страница 94: ...e expense If the OS must be sent and the site is difficult or expensive to access try the OS download procedure on an identically programmed more conveniently located CR800 Note OS file has obj extens...

Страница 95: ...Section 7 Installation 95 Figure 35 DevConfig OS download window Figure 36 Dialog box confirming OS download...

Страница 96: ...R800 settings even settings critical to supporting the telecommunications link Newer operating systems minimize this risk Caution Depending on the method and quality of telecommunications sending an O...

Страница 97: ...its factory default settings The reverted values will not take effect until the final changes have been applied This button will remain disabled if the device does not support the DevConfig protocol...

Страница 98: ...loyment Tab Illustrated in figure DevConfig Deployment Tab p 98 the Deployment tab allows the user to configure the datalogger prior to deploying it Deployment tab settings can also be accessed throug...

Страница 99: ...cified by Selected Port Verify Interval specifies the interval in seconds at which the datalogger will expect to have received packets from neighbors on the port specified by Selected Port A value of...

Страница 100: ...ttings to archive or to use as a template for another datalogger Cancel causes the datalogger to ignore the changes Read File provides the opportunity to load settings saved previously from this or an...

Страница 101: ...king for CTS Handshake Timeout RS 232 this specifies in tens of milliseconds the timeout that the CR800 will wait between packets if CTS is not asserted Files Manager Setting specifies the number of f...

Страница 102: ...x from which to select a program file to be sent to the datalogger The field above the button is updated as the send operation progresses When the program has been sent the Current Program Last Compil...

Страница 103: ...ital settings 7 6 3 3 1 Include File The Include file is a CRBasic program file that resides in CR800 memory and compiles as an insert to the user entered program It is essentially a subroutine stored...

Страница 104: ...Section 7 Installation 104 Figure 43 Include File settings via DevConfig Figure 44 Include File settings via PakBusGraph...

Страница 105: ...og Instruction SlowSequence Scan 1 Sec 0 0 If TimeIntoInterval 9 24 Hr Then SW12 1 Modem on at 9 00 AM If TimeIntoInterval 17 24 Hr Then SW12 0 Modem off at 5 00 PM NextScan NOTE No EndProg Instructio...

Страница 106: ...ogram Otherwise any file marked as Run Now will be used 3 If there is a file specified in the Include File Name setting it is compiled at the end of the program selected in 1 4 If there is no file sel...

Страница 107: ...d PakBus protocol allows complex networks to be developed Setup of individual devices is difficult Settings are distributed across a network Different device types need settings coordinated Caveats Ne...

Страница 108: ...nd CS I O ME baud rates based on device links Optimal packet size limits based upon anticipated routes Fundamentals of Planning a Network Add a background optional Place stations peripherals etc Estab...

Страница 109: ...during program executions Constants are given alphanumeric names and assigned values at the beginning declarations of a CRBasic program Note Keywords and predefined constants are reserved for internal...

Страница 110: ...a program otherwise data may be lost Read More See File Management p 324 and the Campbell Scientific mass storage media USB drive documentation available at www campbellsci com 7 7 2 1 Preserving Data...

Страница 111: ...m RTDAQ Clock Program Send Program DevConfig Logger Control Send Program Reset memory and set program attributes to Run Always Figure 46 CRBasic Editor Program Send File Control window Table 7 Data Ta...

Страница 112: ...8 Binary B1101 13 Hexadecimal HFF 255 Binary format 1 high 0 low is useful when loading the status of multiple flags or ports into a single variable e g storing the binary number B11100000 preserves...

Страница 113: ...ggers when data should be stored Triggers may be a fixed interval a condition or both Table size Set the size of a data table Other on line storage devices Send data to a Campbell Scientific mass stor...

Страница 114: ...C Declare public variables dimension array and declare units Declarations Define data tables DataTable Temp 1 2000 DataInterval 0 10 min 10 Average 1 RefTemp FP2 0 Average 6 TC FP2 0 EndTable Define d...

Страница 115: ...ure in some programs However in general programs that confine text lines to single statements are easier for humans to read In most cases regarding statements separated by as being separate lines is s...

Страница 116: ...variables should be no more than 35 characters long This allows for four additional characters that are added as a suffix to the variable name when it is output to a data table Variable names can con...

Страница 117: ...pC 1 CRBasic Example 7 Using a Variable Array in Calculations Public TempC 4 Public TempF 4 Dim T BeginProg Scan 1 Sec 0 0 Therm107 TempC 4 1 Vx1 0 250 1 0 0 For T 1 To 4 TempF T TempC T 1 8 32 Next T...

Страница 118: ...can be configured with various data types to optimize program execution and memory usage The declaration of variables via the Dim or Public instructions allows an optional type descriptor As that spe...

Страница 119: ...iables Final data storage Use to store count data 2 147 483 648 Speed math with integers is faster than with Floats Resolution has 32 bits compared to 24 bits in IEEE4 Usually not suitable for final d...

Страница 120: ...nd As String STRING ASCII String word size varies Dim Public variables Final data storage Size is defined by the CR800 operating system When converting from STRING to FLOAT numerics at the beginning o...

Страница 121: ...Data Storage Example Sample 1 CR800Time Nsec EndTable Flags Flags are a useful program control tool While any variable of any data type can be used as a flag using Boolean variables especially variabl...

Страница 122: ...m globally the compile error undeclared variable will occur To make locally defined variable public which makes them displayable in cases where making them public will lead to a name conflict with oth...

Страница 123: ...efined constant If a predefined constant such as SubScan is used as a variable in a program an error similar to the following may be but is not always displayed at CRBasic pre compile Compile Failed l...

Страница 124: ...c or Dim variable in the body of the program However once the value is stored into a final storage table the field name that is system created for the table derived from the alias must be used when ac...

Страница 125: ...SlowSequence SlowSequence code starts executing after any declaration sequence Only declaration sequences can occur after EndSequence and before SlowSequence or EndProg 7 7 3 5 1 Data Tables Data are...

Страница 126: ...new OS 6 datalogger program name send new program 7 datalogger program signature send change Program 8 table name change program The second header line reports field names This line consists of a set...

Страница 127: ...their accuracy The fourth line of the header reports the data process used to produce the field of data e g avg average his historgram etc Subsequent lines are observed data and associated record keep...

Страница 128: ...condition for example True and the size to make the table in RAM for example auto allocated Name The table name can be any combination of numbers letters and underscore up to 20 characters in length...

Страница 129: ...rd is not written the CR800 recognizes the omission as a lapse and increments the SkippedRecord counter in the Status table Lapses waste significant memory in the data table and may cause the data tab...

Страница 130: ...the data table is called regardless of whether a record was written to the data table Typically time series data averages totals maxima etc that are output to a data table based on an interval only i...

Страница 131: ...s True or False is controlled by Flag1 When Flag1 is high or True DisableVar is True When it is False DisableVar is False When False is entered as the argument for DisableVar all readings are included...

Страница 132: ...tion More information is available in CRBasic Editor Help Web Page Sequences The WebPageBegin WebPageEnd instructions are used to declare a web page that is displayed when a request for the defined HT...

Страница 133: ...and processing tasks separately and possibly simultaneously Measurements are scheduled to execute at exact times and with the highest priority resulting in more precise timing of measurement and usua...

Страница 134: ...datalogger uses a queuing system for processing tasks similar to the one used in pipeline mode The main difference when running a program in sequential mode is that there is no pre scheduling of measu...

Страница 135: ...nstructions Instructions General Guidelines Syntax Form Scan NextScan Use in most programs Begins ends the main scan BeginProg Scan NextScan EndProg SlowSequence EndSequence Use when measurements or p...

Страница 136: ...essing in the scan to lag behind measurements at times without affecting measurement timing Use of the CRBasic Editor default size is normal Refer to section SkippedScan p 405 for troubleshooting tips...

Страница 137: ...ded within most measurement instructions A priority scheme is used in sequential mode to avoid conflicting use of measurement hardware As illustrated in figure Sequential Mode Scan Priority Flow Diagr...

Страница 138: ...n get the semaphore it waits for the slow sequence to release the semaphore A slow sequence scan does not hold the semaphore for the whole of its scan It releases the semaphore after each use of the h...

Страница 139: ...easurement and Data Storage Processing CRBasic instructions have been created for making measurements and storing data Measurement instructions set up CR800 hardware to make measurements and store res...

Страница 140: ...Array Constant Variable or Expression Constant Variable Array or Expression Name Name or list of Names Variable or Expression Variable Array or Expression 7 7 3 8 3 Names in Arguments Table Rules for...

Страница 141: ...sion Suppose the variable TC is a thermocouple temperature CRBasic Example 18 Use of Expressions in Arguments DataTable Name TrigVar Size DataTable Temp TC 100 5000 When the trigger is TC 100 a TC tem...

Страница 142: ...point variable or constant 24 bits or a function that results in a floating point the rest of the expression is evaluated using floating point 24 bit math even if the final function is to convert the...

Страница 143: ...tements Use and instead For example use If X Y then do rather than If X Y then do When programming extended cyclical summation of non integers use the AddPrecise instruction Otherwise as the size of t...

Страница 144: ...d to Long Boolean is converted to 1 or 0 When a FLOAT is converted to a LONG it is truncated This conversion is the same as the INT function Arithmetic Functions p 475 The conversion is to an integer...

Страница 145: ...event For example an RH measurement of 100 indicates a condensation event such as fog rain or dew The CR800 can render the state of the event into binary form for further processing i e the event is e...

Страница 146: ...LSE Condition CRBasic Instruction s Used Memory Location of Binary Result Time TimeIntoInterval Variable System IfTime Variable System Control Port Trigger WaitDigTrig System Communications VoiceBeg S...

Страница 147: ...be FALSE 0 or all bits set to 0 or TRUE 1 or all bits set to 1 Complementing a Boolean turns TRUE to FALSE all bits complemented to 0 Example Program a AND b 26 AND 26 b11010 AND b11010 b11010 NOT b11...

Страница 148: ...2 PhraseNum 2 Wrd 1 Wrd 4 Wrd 1 Wrd 5 Wrd 1 Wrd 6 Wrd 7 Wrd 1 Wrd 8 CallTable Test NextScan EndProg 7 7 3 10 Program Access to Data Tables A data table is a memory location wherein data records are st...

Страница 149: ...mes of Data Processes Abbreviation Process Name Tot Totalize Avg Average Max Maximum Min Minimum SMM Sample at Max or Min Std Standard Deviation MMT Moment No abbreviation Sample Hst Histogram 1 H4D H...

Страница 150: ...ty p 70 Many signatures are recorded in the Status table which is a type of data table Signatures recorded in the Status table can copied to a variable using the programming technique described in the...

Страница 151: ...utput signal is preferred but not always possible or practical By using the FieldCal or FieldCalStrain instruction a linear sensor output can be corrected in the CR800 after the measurement by adjusti...

Страница 152: ...e validity of and loads values from a CAL file SampleFieldCal an optional data storage output instruction that writes the latest calibration values to a data table not to the CAL file and a reserved B...

Страница 153: ...value 5 Set mode variable 1 to start calibration Mode Variable Interpretation 0 and 6 calibration in progress 0 calibration encountered an error 2 calibration in process 6 calibration complete 7 8 1 4...

Страница 154: ...mmands to delete cal files and then send the demonstration program again to the CR800 Term equivalents are as follows offset y intercept zero multiplier slope gain 7 8 1 5 1 Zero or Tare Option 0 Zero...

Страница 155: ...hange variable mV to 1050 5 To simulate conditions for a 30 day service calibration again with desiccated chamber conditions set variable KnownRH to 0 0 Change the value in variable CalMode to 1 to st...

Страница 156: ...l mV 0 05 mg l mV Offset 37 50 mg l 37 23 mg l RH reading 30 mg l 30 mg l 1 Send the program in CRBasic example FieldCal Offset Demo Program p 156 to the CR800 An excitation channel has been programm...

Страница 157: ...ing channel VX1 EX1 ExciteV Vx1 mV 0 Make the calibrated measurement VoltSE SaltContent 1 mV2500 6 1 0 250 Multiplier Offset Perform a calibration if CalMode 1 FieldCal 1 SaltContent 1 Multiplier Offs...

Страница 158: ...iezometer Temperature C 21 4 0 Barometer Pressure mb 991 0 1 Send CRBasic example FieldCal Zero Basis Demo Program p 158 to the CR800 2 To simulate the pressure transducer in zero conditions Digits_Me...

Страница 159: ...ment instruction commented out BP_Measured 991 FieldCal 4 Equation_Parameters 3 0 Offset CalMode 0 1 1 Pressure GageFactor Digits_Measured Digits_Offset Temp_K _ Temp_Measured Temp_Offset BP_Measured...

Страница 160: ...ier and offset drift output 30 l s 285 mV output 10 l s 522 mV a Set variable SignalmV to 285 Set variable KnownFlow to 30 0 b Start the 7 day service calibration by setting variable CalMode 1 c When...

Страница 161: ...ocedure sets the sensitivity of a simulated soil water content sensor 1 CRBasic example FieldCal Multiplier Only Demonstration Program p 161 to the CR800 2 To simulate the soil water sensor place a ju...

Страница 162: ...usively for strain applications wherein microstrain is the unit of measure The FieldCal instruction FieldCal Demonstration Programs p 154 is typically used in non microstrain applications Shunt calibr...

Страница 163: ...s an arbitrary zero if desired Zeroing is normally done after the shunt calibration Zero and shunt options can be combined through a single CR800 program The following program is provided to demonstra...

Страница 164: ...rogram to measure quarter bridge strain gage Measurements Public Raw_mVperV Public MicroStrain Variables that are arguments in the Zero Function Public Zero_Mode Public Zero_mVperV Variables that are...

Страница 165: ...stance resistance of gage at rest then set Shunt_Mode 1 When Shunt_Mode increments to 3 position shunt resistor and set KnownRes shunt resistance then set Shunt_Mode 4 FieldCalStrain 13 MicroStrain 1...

Страница 166: ...Option 13 p 165 keep the 249 k resistor in place to simulate a strain Using the external keyboard display or software numeric monitor change the value in variable Zero_Mode to 1 to start the zero cal...

Страница 167: ...that uses the CR800 IP stack or a cell modem with the PPP IP key enabled the CR800 has TCP IP functionality that enables capabilities discussed in this section Note For information on available TCP IP...

Страница 168: ...e appendix Network Links p 545 7 8 2 2 Default HTTP Web Server The CR800 has a default home page built into the operating system The home page can be accessed using the following URL http ipaddress 80...

Страница 169: ...code requiring the use of quotation marks CHR 34 is used while regular quotation marks are used to define the beginning and end of alphanumeric strings inside the parentheses of the HTTPOut instructio...

Страница 170: ...Section 7 Installation 170 Figure 55 Home page created using WebPageBegin instruction Figure 56 Customized numeric monitor web page...

Страница 171: ...CHR 34 155 CHR 34 class _ CHR 34 style1 CHR 34 a td HTTPOut p h2 Current Data h2 p HTTPOut p Time time 4 minutes seconds p HTTPOut p Temperature Temperature p HTTPOut p h2 Links h2 p HTTPOut p a href...

Страница 172: ...P server such as another datalogger or web camera This is done using the CRBasic FTPClient instruction Refer to a manual for a Campbell Scientific network link see the appendix Network Links p 545 ava...

Страница 173: ...tus table to see the assigned IP address This is shown under the field name IPInfo 7 8 2 12 DNS The CR800 provides a Domain Name Server DNS client that can query a DNS server to determine if an IP add...

Страница 174: ...communications with the CR800 through a terminal emulator program It is easily accessed through Campbell Scientific datalogger support software p 76 but may also be accessible with terminal emulator p...

Страница 175: ...ommand and Response Set Command Name Command Syntax 1 Response 2 Break Continuous spacing for at least 12 milliseconds None Acknowledge Active a a CR LF Send Identification aI allccccccccmmmmmmvvvxxx...

Страница 176: ...le as String 3 This command may result in a service request Address Commands A single probe should be connected to an SDI 12 input when using these commands Address Query Command Command requests the...

Страница 177: ...Example Command 5M7 Response 500201 atttnn indicates address 5 data ready in 2 seconds will report 1 value v 7 instructs the sensor to return the voltage of its internal battery Start Concurrent Meas...

Страница 178: ...y aR0 through aR4 If a sensor is unable to take a continuous measurement then it must return its address followed by CR LF carriage return and line feed in response to an R command If a CRC was reques...

Страница 179: ...ds with data Cv CR800 Issues aCv command Sensor Responds with atttnn CR800 If ttt 0 then issues aDv command s Sensor Responds with data CR800 Else if ttt 0 then moves to next CRBasic program instructi...

Страница 180: ...c Temp1 Temp2 Temp3 Temp4 BeginProg Scan 5 Sec 0 0 Non SDI 12 measurements here SDI12Recorder Temp1 1 0 M 1 0 0 SDI12Recorder Temp2 1 1 M 1 0 0 SDI12Recorder Temp3 1 2 M 1 0 0 SDI12Recorder Temp4 1 3...

Страница 181: ...immediately after receiving data the sensors will be in a high power state continuously To remedy this problem measurements need to be started with C command but stopped short of receiving the next m...

Страница 182: ...p_Tmp X 2e9 when 2e9 changes indicates a change Next X Measure SDI 12 sensors SDI12Recorder Temp_Tmp 1 1 0 cmd 1 1 0 0 SDI12Recorder Temp_Tmp 2 1 1 cmd 2 1 0 0 SDI12Recorder Temp_Tmp 3 1 2 cmd 3 1 0 0...

Страница 183: ...en RunSDI12 False GroupDone 0 For X 1 To 4 IndDone X 0 Retry X 0 Next X Else GroupDone 0 EndIf EndIf End of measurement sequence NextScan EndProg CRBasic Example 34 Using SDI12Sensor Command Program t...

Страница 184: ...ed Command Support SDI12Recorder sends any string enclosed in quotation marks in the Command parameter If the command string is a non standard SDI 12 command any response is captured into the variable...

Страница 185: ...xpecting an aMx command range from 0 to 9 Valid Reps when expecting an aCx command are 0 to 20 The Reps parameter is not range checked for valid entries at compile time When the SDI 12 recorder receiv...

Страница 186: ...ensorSetup 2 1 0 1 Delay 1 500 mSec SDI12SensorResponse Source Loop EndSequence EndProg Table 27 SDI 12 Sensor Setup Results Measurement Command from SDI 12 Recorder Source Variables Accessed from the...

Страница 187: ...318 mA for 15 seconds is not excessive but if 16 probes were wired to the same SDI 12 port the resulting power draw would be excessive Spreading sensors over several SDI 12 terminals will help reduce...

Страница 188: ...rsions among variables declared as Public or Dim See Expressions with Numeric Data Types p 143 for conversion types Note To avoid programming conflicts pass information into local variables and or def...

Страница 189: ...ublic i_sub As Long Declare Data Table DataTable pi_results True 1 Sample 1 counter IEEE4 EndTable Declare Subroutine Declares j 4 as local array can only be used in subroutine Sub ProcessSub j 2 As L...

Страница 190: ...sion models but may be used to model transport direction in a variable trajectory model 3 WVc 1 Unit vector mean wind direction 1 4 WVc 1 Unit vector mean wind direction 1 WVc 2 Standard deviation of...

Страница 191: ...standard deviation over the data storage interval and are sub interval standard deviations A sub interval is specified as a number of scans The number of scans for a sub interval is given by Desired...

Страница 192: ...re for polar sensors or in the case of orthogonal sensors Resultant mean wind direction u Standard deviation of wind direction u using Campbell Scientific algorithm The algorithm for u is developed by...

Страница 193: ...as the deviation about the mean speed Equating the two expressions for Cos and using the previous equation for si Solving for i 2 one obtains Summing i 2 over N samples and dividing by N yields the va...

Страница 194: ...plete information DisplayMenu Marks the beginning and end of a custom menu Only one allowed per program Note Label must be at least 6 characters long to mask default display clock EndMenu Marks the en...

Страница 195: ...ing for a custom menu that facilitates viewing data entering notes and controlling a device figure Custom Menu Example Home Screen p 195 through figure Custom Menu Example Control LED Boolean Pick Lis...

Страница 196: ...on 196 Figure 63 Custom menu example Predefined notes pick list Figure 64 Custom menu example Free Entry notes window Figure 65 Custom menu example Accept Clear notes window Figure 66 Custom menu exam...

Страница 197: ...le Temp Array Delarations supporting blank line menu item Const Escape Hit Esc Word indicates action to exit dead end Declarations supporting Enter Notes menu item Public SelectNote As String 20 Hold...

Страница 198: ...enu to write a blank line DisplayValue Escape a blank line EndSubMenu End of dummy submenu SubMenu View Data Create Submenu named PanelTemps DisplayValue Ref Temp C RefTemp Item for Submenu from Publi...

Страница 199: ...StartFlag True AND CountDown 0 Then Interprocess count down and manual LED ToggleLED False EndIf PortSet 4 ToggleLED Set control port according to result of processing NextScan EndProg 7 8 7 Condition...

Страница 200: ...nt to the CR800 which may help keep costs down over very expensive telecommunications links CRBasic example Conditional Compile p 200 shows a sample program that demonstrates use of conditional compil...

Страница 201: ...0 Main Scan Scan ScanRate Sec 0 0 Measure using different parameters and a different SE channel depending on the datalogger type the program is running in If LoggerType CR3000 This instruction is used...

Страница 202: ...f interest The manufacturer of the instrument must specify what information in the byte is of interest For instance two bytes may be received one for character 2 the other for character b The pair of...

Страница 203: ...l duplex asynchronous RS 232 TTL C1 5 VDC SDI 12 C3 5 VDC SDI 12 C1 C2 C3 5 VDC SDM used with Campbell Scientific peripherals only 7 8 8 3 Protocols PakBus is the protocol native to the CR800 and tran...

Страница 204: ...ding left to right cr Carriage return Data bits Number of bits used to describe the data and fit between the start and stop bits Sensors typically use 7 or 8 data bits Duplex Can be half or full Full...

Страница 205: ...2 or TTL signals a serial port see table CR800 Serial Ports p 203 must be opened and configured through CRBasic with the SerialOpen instruction The SerialClose instruction can be used to close the ser...

Страница 206: ...Open can be used again to reconfigure the same serial port or before the port can be used to communicate with a PC 7 8 8 5 1 Input Instruction Set Basics SerialOpen 1 Be aware of buffer size ring memo...

Страница 207: ...then a time gap is the only remaining separator of records Using COM1 or COM2 coincidentally detects a time gap of 100 bits if the records are less than 256 bytes Buffer size margin one extra record o...

Страница 208: ...lInString 42 0 35 01 Declare the string variable large enough to accept the string o Example Public SerialInString As String 25 Observe the input string in the input string variable in software numeri...

Страница 209: ...on Example Public SerialOutString As String 100 SerialOut and SerialOutBlock output the same data except that SerialOutBlock transmits null values while SerialOut strings are terminated by a null valu...

Страница 210: ...to variables Allocate extra memory to the buffer when needed but recognize that added memory to the buffer reduces memory available for long term data storage Note SerialInRecord running in pipeline...

Страница 211: ...simulated data comes out of COM1 as an alpha numeric string CRBasic Example 40 Receiving an RS 232 String To demonstrate CR800 Serial I O features this program simulates a serial sensor by transmittin...

Страница 212: ...immediately available serial device with which to develop and test programs Using HyperTerminal a developer can simulate the output of a serial device or capture serial input Note HyperTerminal is pr...

Страница 213: ...Section 7 Installation 213 Figure 69 HyperTerminal New Connection description Figure 70 HyperTerminal Connect To settings...

Страница 214: ...Section 7 Installation 214 Figure 71 HyperTerminal COM Port Settings Tab Click File Properties Settings ASCII Setup and set as shown Figure 72 HyperTerminal ASCII setup...

Страница 215: ...e 74 HyperTerminal text capture file example Engage text capture by clicking on Transfer Capture Text Browse select the file and then click OK 7 8 8 6 4 Serial Input Test Program CRBasic example Measu...

Страница 216: ...n This will produce some noise on the intended data output signal Monitor the CR800 RS 232 port with the HyperTerminal instance described in Configure HyperTerminal p 212 Send C command file to set th...

Страница 217: ...ons Year InStringSplit 1 DOY InStringSplit 2 Hour InStringSplit 3 Minute InStringSplit 4 Second InStringSplit 5 uSecond 0 Check if it is a leap year If Year Mod 4 0 and Year Mod 100 0 then it is a lea...

Страница 218: ...se Is 153 Month 5 Date DOY 121 Case Is 183 Month 6 Date DOY 152 Case Is 214 Month 7 Date DOY 182 Case Is 245 Month 8 Date DOY 213 Case Is 275 Month 9 Date DOY 244 Case Is 306 Month 10 Date DOY 274 Cas...

Страница 219: ...2 Date DOY 334 EndSelect EndIf EndSub PROGRAM BeginProg StationID 4771 Scan 1 Sec 3 0 Measurement Section PulseCount KWH_In 1 1 2 0 1 0 Activate this line in working program KWH_In 4 5 Simulation dele...

Страница 220: ...I data format and output to COM1 Read datalogger clock RealTime rTime If TimeIntoInterval 0 5 Sec Then Load OneMinData table data for processing into printable ASCII GetRecord OneMinData OneMinTable 1...

Страница 221: ...r SerialOpen the port is powered down and in a state waiting for characters to come in Under normal operation the port is powered down waiting for input After receiving input there is a 40 second soft...

Страница 222: ...by the program for 30 ms or so in fact no data were in the serial buffer for 30 ms or so A As a result of internal buffering in the CR800 and or external interfaces data may not appear in the serial p...

Страница 223: ...lling Data Output and Processing TrigVar is the third parameter in the DataTable instruction It controls whether or not a data record is written to final storage TrigVar control is subject to other co...

Страница 224: ...ual to 0 1 2 3 or 4 when the data table is called Public counter DataTable Test counter 2 or counter 3 100 Sample 1 counter FP2 Average 1 counter FP2 False Totalize 1 counter FP2 False EndTable BeginP...

Страница 225: ...25 2 Time variable array dimensioned to 2 and As Long Sample instruction assumes the first time variable array element holds seconds since 1990 and the second element holds microseconds into the secon...

Страница 226: ...al 0 5 Min 10 Sample 1 MaxVar FP2 Sample 1 TimeOfMaxVar Nsec EndTable Program BeginProg Scan 1 Sec 0 0 PanelTemp PTempC 250 MaxVar FirstTable PTempC_Max TimeOfMaxVar FirstTable PTempC_TMx CallTable Fi...

Страница 227: ...a standard time stamp Adding offsets requires the time stamp be converted to numeric form the offset applied then the new time be converted back to string forms These are accomplished by 1 reading Pub...

Страница 228: ...tion of the decimal integer modulo divide p 436 256 is used Example Given LONG integer 5435 Find BOOL8 representation of 5435 Solution 5435 256 21 2304687 0 2304687 256 59 Binary representation of 59...

Страница 229: ...lation 229 Variable aliasing p 124 can be employed in the CRBasic program to make the data more understandable Figure 76 Alarms toggled in bit shift example Figure 77 Bool8 data from bit shift example...

Страница 230: ...ong DataTable Bool8Data True 1 DataInterval 0 1 Sec 10 store bits 1 through 16 in columns 1 through 16 of data file Sample 2 FlagsBool8 1 Bool8 store bits 17 through 32 in columns 17 through 32 of dat...

Страница 231: ...Flags Flags OR h80000 b10000000000000000000 If Alarm 21 Then Flags Flags OR h100000 b100000000000000000000 If Alarm 22 Then Flags Flags OR h200000 b1000000000000000000000 If Alarm 23 Then Flags Flags...

Страница 232: ...ing is a discussion of fast measurement programming techniques in association with VoltSE single ended analog voltage measurement instruction Techniques discussed can also be used with the following i...

Страница 233: ...2 and so forth 1 1 1 to completion then 2 2 2 to completion then 3 3 3 and so forth Excitation for Bridge Measurements Provided in instruction Provided in instruction Provided in instruction Measurem...

Страница 234: ...Measurement Rate 101 to 600 Hz To measure at rates between 100 and 600 Hz the SubScan NextSubScan instruction pair is added Measurements over 100 Hz do not do not have 100 duty cycle but are accomplis...

Страница 235: ...has to be 100 s plus measure time outside the SubScan EndSubScan construct plus the time sub scans consume Because the task sequencer controls sub scans it is not finished until all sub scans and any...

Страница 236: ...easurements over only the leading 86 of the scan Note that burst mode places all measurements for a given burst in a single variable array and stores the array in a single but very long record in the...

Страница 237: ...ial Channel The differential analog input channel number preceded by a dash Valid arguments range from 1 to 3 Measure Offset No change from standard measurement mode False allows for faster measuremen...

Страница 238: ...If the difference between the codes is zero codes for the next characters are compared When unequal codes or NULL are encountered NULL terminates all strings the difference between the last compared A...

Страница 239: ...ring 123 7 8 13 3 String NULL Character All strings are automatically NULL terminated NULL Chr 0 or counts as one of the characters in the string Assignment of just one character is that character fol...

Страница 240: ...7 1 4 0 A 0 1 Result is 123A56789 7 8 13 5 Extracting String Characters A specific character in the string can be accessed by using the dimensional syntax that is when the third dimension of a string...

Страница 241: ...tring The battery is 12 4 Volts Use CRBasic expression StringVar 11 Mid The battery is 12 4 Volts _ InStr 1 The battery is 12 4 Volts is 2 3 Len The battery is 12 4 Volts Result 12 4 Volts 7 8 13 8 Fo...

Страница 242: ...perature and panel temperature deltaT airtempC PTemp when the difference in air temperatures is 3 turn LED on and trigger the data table s faster interval If deltaT 3 Then PortSet 4 true int_fast true...

Страница 243: ...atus table as ProgSignature See CRBasic example Program Signatures p 243 7 8 16 2 Binary Runtime Signature The binary runtime signature is calculated only from program code It does not include comment...

Страница 244: ...cumented Any text preceded by an apostrophe is ignored by the CRBasic compiler One thermocouple is measured twice using the wiring panel temperature as the reference temperature The first measurement...

Страница 245: ...lt Volts Units PTemp deg C Units AirTemp deg C Units AirTempF2 deg F Units DeltaT_C deg C Declare an interval driven output table DataTable OneMin True 1 Time driven data storage DataInterval 0 1 Min...

Страница 246: ...mp PTemp_C _60Hz Type T Thermocouple measurements TCDiff AirTemp_C 1 mV2_5C 1 TypeT PTemp_C True 0 _60Hz 1 0 TCDiff AirTemp_F 1 mV2_5C 1 TypeT PTemp_C True 0 _60Hz 1 8 32 Convert from degree C to degr...

Страница 247: ...ing the result by the AvgRun Number parameter 3rd parameter Public MeasuredRain Public TotRun RainAvg Const Number 15 0 BeginProg Scan 1 Sec 0 0 PulseCount MeasuredRain 1 1 2 0 0 01 0 AvgRun RainAvg 1...

Страница 248: ...r2 Counter2 1 Battery Batt_volt CallTable Test Call Data Table Test NextScan End slow sequence scan EndProg End executable section of program 7 8 17 4 Groundwater Pump Test CRBasic example Groundwater...

Страница 249: ...hen ExitScan NextScan 10 Second Data Interval If Flag 1 True Then Scan 10 Sec 0 60 Counter 2 Counter 2 1 Battery Batt_volt PanelTemp PTemp 250 TCDiff Level 1 mV2_5 1 TypeT PTemp True 0 250 1 0 0 If Ti...

Страница 250: ...al Scan 2 Min 0 200 Counter 5 Counter 5 1 Battery Batt_volt PanelTemp PTemp 250 TCDiff Level 1 mV2_5 1 TypeT PTemp True 0 250 1 0 0 If TimeIntoInterval 0 1 Min Then TimeIntoTest TimeIntoTest 1 EndIf C...

Страница 251: ...g to create and use a scaling array Several multipliers and offsets are entered at the beginning of the program and then utilized by several measurement instructions throughout the program CRBasic Exa...

Страница 252: ...t Measure 5 thermocouples on an AM16 32 Multiplexer 2x32 mode PortSet 1 1 Count 6 Start with 6 since scaling arrays 1 5 already used SubScan 0 uSec 5 PulsePort 2 10000 TCDiff Temp_C Count 1 mV2_5C 6 T...

Страница 253: ...7 7 Capturing Events CRBasic example Capturing Events p 253 demonstrates programming to output data to a data table at the occurrence of an event CRBasic Example 58 BeginProg Scan NextScan EndProg Syn...

Страница 254: ...ventCount 1 1 Call data table s CallTable Event CallTable OneMin NextScan EndProg 7 8 18 PRT Measurement PRTs platinum resistance thermometers are high accuracy resistive devices used in measuring tem...

Страница 255: ...0 C depending on the grade of sensor Highest accuracy is usually achieved by calibrating individual sensors over the range of use and applying corrections to the RS RO value input to the PRTCalc inst...

Страница 256: ...7584810E 05 f 1 1550000E 06 g 1 7909000E 00 h 2 9236300E 00 i 9 1455000E 00 j 2 5581900E 02 Table 46 PRTCalc Type Code 2 Sensor US Industrial Standard alpha 0 00392 Reference Logan Enterprises Consta...

Страница 257: ...16 Reference JIS C 1604 1981 National Instruments Constant Coefficient a 3 9739000E 03 d 2 3480000E 06 e 1 8139880E 05 f 1 1740000E 06 g 1 7297410E 00 h 2 8905090E 00 i 8 8326690E 00 j 2 5159480E 02 T...

Страница 258: ...eating of the PRT If the voltage drop across the PRT is 25 mV self heating should be less than 0 001 C in still air To maximize measurement resolution optimize the excitation voltage Vx such that the...

Страница 259: ...g if the 10 k resistor is 5 low i e RS R1 RS Rf 115 54 9715 54 and VX must be 2 102 V to keep VS less than 25 mV Calculating the BrHalf4W Multiplier The result of BrHalf4W is equivalent to RS Rf X RS...

Страница 260: ...e p 260 for wiring diagram Public Rs_Ro Public Deg_C BeginProg Scan 1 Sec 0 0 BrHalf4W Dest Reps Range1 Range2 DiffChan1 ExChan MPS Ex_mV RevEx RevDiff Settling Integration Mult Offset BrHalf4W Rs_Ro...

Страница 261: ...re resistance by assuming that the resistance of wire A is the same as the resistance of wire B The maximum difference expected in wire resistance is 2 but is more likely to be on the order of 1 The r...

Страница 262: ...antages Uses half as many input channels as four wire half bridge Example PRT Specifications Alpha 0 00392 PRTType 2 This example measures a 100 ohm PRT in a four wire full bridge as shown in figure P...

Страница 263: ...mperature Thus the output voltage can go both positive and negative as the bath temperature changes allowing the full use of the measurement range The resistance of the PRT is approximately 119 7 ohms...

Страница 264: ...us value X1 is the oldest value included in the average i e N 1 values back from the most recent NANs are ignored in the processing of AvgRun unless all values in the population are NAN AvgRun uses hi...

Страница 265: ...Running Average Frequency Response p 266 where the X axis is 0 4 For a 100 Hz input signal with an Amplitude of 10 V peak to peak a running average outputs a 100 Hz signal with an amplitude of 7 57 V...

Страница 266: ...s the result of performing a running average on the Accel2 variable Both values were stored at a rate of 500 Hz Figure Running Average Signal Attenuation p 267 show the two values plotted in a single...

Страница 267: ...Section 7 Installation 267 Figure 84 Running average signal attenuation...

Страница 268: ...Section 7 Installation 268...

Страница 269: ...nt is made For instance a scan may start at 15 00 00 execute time consuming code then make a measurement at 15 00 00 51 The time stamp attached to the measurement if the CallTable instruction is calle...

Страница 270: ...Do WaitTriggerSequence CallTable Test Loop EndProg Other time processing CRBasic instructions are governed by these same rules Consult CRBasic Editor Help for more information on specific instructions...

Страница 271: ...dm 2 and VL Vcm Vdm 2 respectively Figure 86 PGIA with input signal decomposition 8 1 2 1 Input Limits The input limits specification is the voltage range relative to CR800 ground which both H and L i...

Страница 272: ...or Voltage Measurements and Voltage Measurement Accuracy Self Calibration and Ratiometric Measurements Deciding whether a differential or single ended measurement is appropriate for a particular senso...

Страница 273: ...in and lead resistance may result in a different ground potential between the two instruments Hence a differential measurement should be made on the analog output from an external signal conditioner D...

Страница 274: ...ars Offset error depends on measurement type and input range For differential measurements with input reversal Offset Error 1 5 Basic Resolution 1 0 V where Basic Resolution is the published resolutio...

Страница 275: ...ror Gain Error Offset Error 1 5 mV 1 00 V 2 50 mV In contrast the error for a 500 mV input under the same constraints is 1 30 mV The figure Voltage Measurement Accuracy p 275 illustrates the total err...

Страница 276: ...d An auto ranged measurement will return NAN Not A Number if the voltage exceeds the range picked by the first measurement To avoid problems with a signal on the edge of a range AutoRange selects the...

Страница 277: ...oltage and the voltage measurement is made If the associated input is open floating the input voltages will remain near 300 mV and ground resulting in an over range output NAN on the 2 5 mV 7 5 mV 25...

Страница 278: ...to cancel these unwanted offsets The table Analog Measurement Instructions and Offset Voltage Compensation Options p 278 lists available options Table 53 Analog Measurements and Offset Voltage Compens...

Страница 279: ...the CR800 measures the offset voltage of the ground reference prior to each VoltSe or TCSe measurement This offset voltage is subtracted from the subsequent measurement 8 1 2 6 3 Background Calibrati...

Страница 280: ...Line Noise Rejection Grid or mains power 50 or 60 Hz 230 or 120 Vac can induce electrical noise at integer multiples of 50 or 60 Hz Small analog voltage signals such as thermocouples and pyranometers...

Страница 281: ...lf cycle limit Table ac Noise Rejection on Large Signals p 281 lists details of the half cycle ac power line noise rejection technique Table 56 ac Noise Rejection on Large Signals Applies to analog in...

Страница 282: ...oth the source resistance and fixed input capacitance 3 3 nfd of the CR800 Rise and decay waveforms are exponential Figure Input Voltage Rise and Transient Decay p 282 shows rising and decaying wavefo...

Страница 283: ...llowing general practices can be used to minimize or measure settling errors Do not use wire with PVC insulated conductors PVC has a high dielectric which extends input settling time Where possible ru...

Страница 284: ...ble BeginProg Scan 1 Sec 3 0 BrFull PT 1 1 mV7_5 1 Vx1 1 2500 True True 100 250 1 0 0 BrFull PT 2 1 mV7_5 1 Vx1 1 2500 True True 200 250 1 0 0 BrFull PT 3 1 mV7_5 1 Vx1 1 2500 True True 300 250 1 0 0...

Страница 285: ...re Related topics can be found in Offset Voltage Compensation p 278 The CR800 self calibrates to compensate for changes induced by fluctuating operating temperatures and aging Without self calibration...

Страница 286: ...f calibration The worst case is 91 segments 4 s segment 364 s per complete self calibration During instrument power up the CR800 computes calibration coefficients by averaging ten complete sets of sel...

Страница 287: ...a maximum of 54 for all possible integration durations and input voltage ranges chosen An example use of the Calibrate instruction programmed to calibrate all input ranges is given as Calibrate Dest...

Страница 288: ...SE Offset 5000 50 Hz Rejection CalSeOffset 14 SE Offset 2500 50 Hz Rejection CalSeOffset 15 SE Offset 250 50 Hz Rejection CalSeOffset 16 SE Offset 25 50 Hz Rejection CalSeOffset 17 SE Offset 7 5 50 Hz...

Страница 289: ...34 mV LSB 4 SE Offset 2500 250 ms 5 LSB 5 Diff Offset 2500 250 ms 5 LSB 6 Gain 2500 250 ms 0 67 mV LSB 7 SE Offset 250 250 ms 5 LSB 8 Diff Offset 250 250 ms 5 LSB 9 Gain 250 250 ms 0 067 mV LSB 10 SE...

Страница 290: ...fset 2500 50 Hz Rejection 5 LSB 41 Diff Offset 2500 50 Hz Rejection 5 LSB 42 Gain 2500 50 Hz Rejection 0 34 mV LSB 43 SE Offset 250 50 Hz Rejection 5 LSB 44 Diff Offset 250 50 Hz Rejection 5 LSB 45 Ga...

Страница 291: ...ire Full bridge Measurement p 293 shows CR800 code for measuring and processing four wire full bridge circuits All bridge measurements have the parameter RevEx which has an option to make one set of m...

Страница 292: ...Instruction BrHalf Fundamental Relationship 2 Three Wire Half Bridge 1 3 CRBasic Instruction BrHalf3W Fundamental Relationship 2 Four Wire Half Bridge 1 3 CRBasic Instruction BrHalf4W Fundamental Rel...

Страница 293: ...surement CRBasic Example 64 Four Wire Full Bridge Measurement and Processing Declare Variables Public X Public X1 Public R1 Public R2 Public R3 Public R4 Main Program BeginProg R2 1000 Resistance of R...

Страница 294: ...fset is equal to one of the following where the Basic Resolution is the resolution of a single A D p 425 conversion Note that excitation reversal reduces offsets by a factor of two Offset 1 5 x Basic...

Страница 295: ...dge measurement that uses the BrFull instruction as follows The relationship defining the BrFull instruction is X 1000 V1 Vx where V1 is the voltage measurement and Vx is the excitation voltage Result...

Страница 296: ...a bridge configuration code Table StrainCalc Instruction Equations p 296 shows the equation used by each configuration code Each code can be preceded by a negative sign Use a positive code when the b...

Страница 297: ...ly to the CR800 wiring panel The lack of an insulating wiring terminal cover and the nature of the plastic encasement will probably induce significant error in the reference junction temperature measu...

Страница 298: ...or switch closure signals TimerIO instruction has additional capabilities Its primary function is to measure the time between state transitions Note Consult CRBasic Editor Help for more information o...

Страница 299: ...w pulse counter programming in CRBasic Editor Help for the PulseCount instruction Dedicated pulse input channels P1 through P2 as shown in figure Pulse Input Channels p 300 can be configured to read h...

Страница 300: ...put voltages ranging from thousandths of Volts at low rotational speeds to several volts at high rotational speeds Pulse channels contain internal signal conditioning hardware for measuring low level...

Страница 301: ...hannels C1 C4 8 1 5 2 1 High Frequency Mode Digital I O channels have a small 25 ns input RC filter time constant between the terminal block and the CMOS input buffer which allows for higher frequency...

Страница 302: ...he resolution of pulse counters is one count or 1 Hz Counters are read at the beginning of each scan and then cleared Counters will overflow if accumulated counts exceed 16 777 216 resulting in errone...

Страница 303: ...ital I O channels C1 C4 8 1 5 3 1 Frequency Resolution Frequency resolution of a PulseCount frequency measurement is calculated as where FR Resolution of the frequency measurement Hz S Scan Interval o...

Страница 304: ...Option parameter Doing so enters an averaging interval in milliseconds for a direct running average computation However use caution when averaging Averaging of any measurement reduces the certainty th...

Страница 305: ...ut channels So while TimerIO frequency measurement may be superior for clean signals a pulse channel filter much higher may be required to get a measurement on a dirty signal Input filters however att...

Страница 306: ...ncy Signals As shown for low level ac inputs increasing voltage is required at increasing frequencies to overcome filter attenuation on pulse input channels ac mV RMS Maximum Frequency 20 200 2000 500...

Страница 307: ...g circuitry The threshold allows direct connection of standard digital signals but it is not recommended for small amplitude sensor signals For sensor amplitudes less than 20 mV peak to peak a dc bloc...

Страница 308: ...CS I O port with the proper interface see the appendix CS I O Serial Interfaces p 545 the RS 232 port or the digital I O communication ports C1 C2 C3 C4 If additional serial inputs are required serial...

Страница 309: ...is is usually only a concern with sensors acquired from manufacturers other than Campbell Scientific Campbell Scientific sensors are engineered for optimal performance with factory installed cables 8...

Страница 310: ...a output intervals Techniques to synchronize measurements across a network include 1 LoggerNet p 76 when reliable telecommunications are common to all CR800s in a network the LoggerNet automated clock...

Страница 311: ...each other using the GPS instruction CR800s built since October of 2008 serial numbers 7920 can be synchronized within a few microseconds of each other and within 200 s of UTC While a GPS signal is av...

Страница 312: ...particular application 8 2 4 Control Outputs Controlling power to an external device is a common function of the CR800 On board control terminals and peripheral devices are available for binary on off...

Страница 313: ...uit with Relay p 314 shows a typical relay driver circuit in conjunction with a coil driven relay which may be used to switch external power to some device In this example when the control port is set...

Страница 314: ...cessed values and transfer these values in digital form to an analog output device The analog output device performs a digital to analog conversion to output an analog voltage or current The output le...

Страница 315: ...el ac input modules increase the number of low level ac signals a CR800 can monitor by converting low level ac to high frequency pulse Refer to the appendix Pulse Frequency Input Expansion Modules p 5...

Страница 316: ...with File Control or the FilesManage instruction Use USR drive to store other file types Available CPU memory is reported in Status table field CPUDriveFree External Flash Optional 2 GB USB drive USB...

Страница 317: ...bles Final Storage is given lowest priority in SRAM memory allocation Stores data resulting from CR800 measurements This memory is termed Final Storage Fills memory remaining after all other demands a...

Страница 318: ...more commonly to store processed values such as averages maxima minima histograms FFTs etc Data are stored periodically or conditionally in data tables in SRAM as directed by the CRBasic program see S...

Страница 319: ...ted using support software Retrieve p 431 command or automatically using the datalogger support software Setup File Retrieval tab functions Monitor use of available USR memory to ensure adequate space...

Страница 320: ...pbellsci com Table 73 TableFile Instruction Data File Formats Elements Included TableFile Format Option Base File Format Header Information Time Stamp Record Number 0 1 TOB1 X X X 1 TOB1 X X 2 TOB1 X...

Страница 321: ...in PTemp TS RN Min Smp 2010 12 20 11 31 30 7 13 29 20 77 2010 12 20 11 31 45 8 13 26 20 77 2010 12 20 11 32 00 9 13 29 20 8 CSIXML CSIXML files contain header information and data in an XML p 448 form...

Страница 322: ...ata Origins Includes the following metadata series file type station name CR800 model name CR800 serial number OS version CRBasic program name program signature data table name Line 2 Data Field Names...

Страница 323: ...its Declare variables as DIM instead of Public DIM variables do not require buffer memory for data retrieval Reduce arrays to the minimum size needed Arrays save memory over the use of scalars as ther...

Страница 324: ...p 444 command external keyboard display Data Reset Data Tables 8 3 3 4 Formatting Drives CPU USR and USB drives can be formatted individually Formatting a drive erases all files on that drive If the c...

Страница 325: ...trol 2 power up with Campbell Scientific mass storage media USB drive 5 web API FileControl Deleting files from memory drives File Control 2 power up with Campbell Scientific mass storage media USB dr...

Страница 326: ...and 2 see table Powerup ini Commands p 329 Run Now Runs only when file sent to CR800 a File Control 2 with Run Now checked b Campbell Scientific mass storage media USB drive power up 3 using commands...

Страница 327: ...ogger This simple process results in the specified file being automatically uploaded to the CR800 with optional run attributes such as Run Now Run on Power Up or Run Always set for individual files It...

Страница 328: ...overwritten just previous program 4 Formats a specified drive A powerup ini file takes precedence during power up Although it sets file attributes for the programs it uploads its presence on a drive d...

Страница 329: ...riables can be preserved Applications Command 1 Copies the specified program to the designated drive and sets the run attribute of the program to Run Always Data on a CF card from the previously runni...

Страница 330: ...at the USR drive 5 usr Powerup ini Example Load an operating system obj file into FLASH as the new OS 9 CR800 Std 04 obj Powerup ini Example A program file is carried on an external USB drive Do not c...

Страница 331: ...or Codes Error Code Description 1 Invalid format 2 Device capabilities error 3 Unable to allocate memory for file operation 4 Max number of available files exceeded 5 No file entry exists in directory...

Страница 332: ...ontrol commands Telecommunications systems require three principal components hardware carrier signal and protocol For example a common way to communicate with the CR800 is with PC200W software by way...

Страница 333: ...HF RF PC COM Port Short haul Telephone CCITT v 24 PC COM Port Land line Telephone CCITT v 92 PDA Infrared Port Infrared SIR Satellite System Satellite Transceiver RF CS Mass Storage Device Direct Conn...

Страница 334: ...ng characters can be corrupted by concurrent use of the CS I O for SDC communication PakBus communication uses a low level protocol of a pause finish ready sequence to stop incoming data while SDC occ...

Страница 335: ...dress is changed to an unknown value a field visit with a laptop and DevConfig may be required to discover the unknown address 8 5 2 Nodes Leaf Nodes and Routers A PakBus network consists of two to 40...

Страница 336: ...scription PakBus Leaf Node PakBus Router PakBus Aware Transparent CR200X Datalogger CR800 Datalogger CR1000 Datalogger CR3000 Datalogger CR5000 Datalogger LoggerNet Software NL100 Serial port network...

Страница 337: ...neighbors are adjacent nodes Links are established through a process called discovery Discovery occurs when nodes exchange hellos A hello exchange occurs during a hello message between two nodes 8 5 3...

Страница 338: ...and vary in reliability Redundant paths can provide backup links in the event the primary path fails Redundant and unreliable paths can be eliminated by activating neighbor filters in the various node...

Страница 339: ...ent of the file it uses whatever size restrictions that apply to the link Hence the size of the responses to the file receive commands that the CR800 sends is governed by the Max Packet Size setting f...

Страница 340: ...r packets and resulting retries The minimum recommended Beacon Interval setting is 60 seconds If communications traffic is high consider setting beacon intervals of several minutes If data throughput...

Страница 341: ...ch CR800 CR800s can also be programmed to exchange data with each other the data exchange feature is not demonstrated in this example 8 5 6 1 LAN Wiring Use three conductor cable to connect CR800s as...

Страница 342: ...tc 2 Click on the Connect button at the lower left 3 Set CR800 settings using DevConfig as outlined in table PakBus LAN Example Datalogger Communications Settings p 344 Leave unspecified settings at d...

Страница 343: ...Section 8 Operation 343 Figure 108 DevConfig Deployment ComPorts Settings tab Figure 109 DevConfig Deployment Advanced tab...

Страница 344: ...in End Begin End CR800_1 1 115 2K Fixed 2 2 115 2K Fixed 3 4 Yes CR800_2 2 115 2K Fixed 1 1 Disabled No CR800_3 3 115 2K Fixed 1 1 115 2K Fixed 4 4 Yes CR800_4 4 115 2K Fixed 3 3 Disabled No 1 Setup c...

Страница 345: ...LoggerNet Network Map Setup PakBusPort As shown in figure LoggerNet Device Map Setup PakBusPort p 345 set the PakBusPort maximum baud rate to 115200 Leave other settings at the defaults Figure 112 Log...

Страница 346: ...er CR800 series dataloggers OS26 and newer Device Configuration Utility DevConfig v 2 04 and newer Network Planner v 1 6 and newer Portions of the protocol to which PakBus encryption is applied includ...

Страница 347: ...sends unsolicited responses to a specific DNP master DNP communications are supported in the CR800 through the RS 232 port COM1 or COM2 or over TCP taking advantage of multiple communications options...

Страница 348: ...line 20 Syntax DNP ComPort BaudRate DNPSlaveAddr DNPVariable Associates a particular variable array with a DNP object group When the master polls the CR800 it returns all the variables specified along...

Страница 349: ...00000 0 10 o For digital measurements control ports DNPVariable Variable_Name Swath 1 2 0 B00000000 0 0 DNPVariable Variable_Name Swath 32 2 3 B00000000 0 10 3 Place DNPUpdate after Scan inside the ma...

Страница 350: ...of information and data between computers HMI software instruments RTUs and Modbus compatible sensors The CR800 communicates via Modbus over RS 232 RS 485 and TCP Modbus systems consist of a master P...

Страница 351: ...of the ModbusSlave instruction is set to 0 Coils are assigned to Modbus registers 00001 to 09999 Digital Registers 10001 19999 Hold values resulting from a digital measurement Digital registers in the...

Страница 352: ...Basic Ports Flags Variables and Modbus Registers CR800 Feature Example CRBasic Declaration Equivalent Example Modbus Register Control Port Port Public Port 8 00001 to 00009 Flag Public Flag 17 00001 t...

Страница 353: ...Writes a value into a holding register in the ModBusSlave 15 Force multiple coils ports Forces multiple coils ports in the ModBusSlave to either on or off 16 Write multiple registers Writes values in...

Страница 354: ...two Modbus long 16 bit variables to one Modbus long 32 bit number is shown in the following example CRBasic Example 66 Concatenating Modbus Long Variables Requires CR800 OS v 3 CR1000 OS v 12 or CR30...

Страница 355: ...lable in the most recent CR800 operating system see operating system in the glossary API commands are also used with Campbell Scientific s RTMC web server datalogger support software p 76 The followin...

Страница 356: ...ntered in csipasswd the CR800 web server will default to the level of access assigned to anonymous The security level associated with the user name anonymous affects only API commands For example the...

Страница 357: ...FileControl ListFiles Specifies response format html xml json apply to all commands listed in column 2 toa5 and tob1 apply only to DataQuery mode DataQuery Specifies range of data with which to respo...

Страница 358: ...ere YYYY four digit year MM months into the year one or two digits 1 to 12 DD days into the month one or two digits 1 to 31 HH hours into the day one or two digits 1 to 23 MM minutes into the hour one...

Страница 359: ...106 command BrowseSymbols uri dl MainData for mat html Response symbols for all fields in a single table MainData are returned as HTML http 192 168 24 106 command BrowseSymbols uri dl MainData Con d4...

Страница 360: ...sponses HTML tabular response HTML page source DOCTYPE HTML PUBLIC IETF DTD HTML EN html head title BrowseSymbols Response title head body h1 BrowseSymbols Response h1 table border 1 tr th name th th...

Страница 361: ...ame Status uri dl Status type 6 is_enabled true is_read_only false can_expand true symbol name MainData uri dl MainData type 6 is_enabled true is_read_only false can_expand true symbol name BallastTan...

Страница 362: ...ad_only false can_expand true name BallastTank2 uri dl BallastTank2 type 6 is_enabled true is_read_only false can_expand true name BallastTank3 uri dl BallastTank3 type 6 is_enabled true is_read_only...

Страница 363: ...ed include data from date specified by p1 but not by p2 half open interval backfill returns data stored since a certain time interval for instance all the data since 1 hour ago The interval in seconds...

Страница 364: ...tml mode backfill p1 7200 Response backfill all records since 3600 seconds ago DataQuery Response The DataQuery format parameter determines the format of the response For more detail concerning data r...

Страница 365: ...XML Response When xml is entered in the DataQuery format parameter the response will be formatted as CSIXML Following is an example response xml version 1 0 standalone yes csixml version 1 0 head envi...

Страница 366: ...vals 66 time 2012 08 21T22 42 00 no 105 vals 66 time 2012 08 21T22 42 10 no 106 vals 66 time 2012 08 21T22 42 20 no 107 vals 66 time 2012 08 21T22 42 30 no 108 vals 66 TOA5 Response When toa5 is enter...

Страница 367: ...740396 0 2012 05 05 12 00 00 1 5 0 9067233 0 9640449 0 9015122 0 8702459 71 16611 0 2012 05 05 13 00 00 2 5 0 8897874 0 9366869 0 8793653 0 8428879 70 93591 0 2012 05 05 14 00 00 3 5 0 9041178 0 95101...

Страница 368: ...format dl tablename fieldname value Specifies the value to set format The following table lists optional output formats for SetValueEx result codes If not specified result codes output as HTML Result...

Страница 369: ...table name 7 Invalid fieldname 8 Invalid fieldname subscript 9 Invalid field data type 10 Datalogger communication failed 12 Blocked by datalogger security 15 Invalid web client authorization descrip...

Страница 370: ...he form http ip_address command ClockSet format html time YYYY MM DDTHH MM SS MS ClockSet requires a minimum csipasswd access level of 1 all access allowed Table 93 ClockSet API Command Parameters uri...

Страница 371: ...e outcome code HTML Response When html is entered in the ClockSet format parameter the response will be HTML Following are example responses HTML tabular response HTML page source DOCTYPE HTML PUBLIC...

Страница 372: ...ifies the URI for a LoggerNet source station to be checked Example http 192 168 24 106 command ClockCheck format html Response checks the host CR800 real time clock and requests the response be an HTM...

Страница 373: ...L 4 01 Transitional EN http www w3 org TR html4 loose dtd DOCTYPE HTML PUBLIC IETF DTD HTML EN html head title ClockCheck Response title head body h1 ClockCheck Response h1 table border 1 tr td outcom...

Страница 374: ...eters Parameter Description XPUT Instructs Curl exe to use the HTTPPut command v Instructs Curl exe to print all output to the screen S Instructs Curl exe to show errors T filename ext name of file to...

Страница 375: ...settings cannot be set To get a program file to run use the web API FileControl command Curl exe can be used to perform both operations as the following demonstrates Upload the program to the CR800 C...

Страница 376: ...17 Move the file specified by file2 to the name specified by file stop the currently running program delete its associated data tables and run the program specified by file2 without affecting the pro...

Страница 377: ...e CR800 will be unresponsive description Detail concerning the outcome code Example 192 168 24 106 command FileControl action 4 file cpu davetest c r1 Response delete the file davetest cr1 from the ho...

Страница 378: ...entify that the object is a directory if set to true size An integer that gives the size of for a file in bytes the value of is_dir is false or the bytes free for a directory last_write A string assoc...

Страница 379: ...rue td td 443904 td td 2012 06 22T00 00 00 td td false td td false td td false td td false td tr tr td CPU ModbusMasterTCPExample CR1 td td false td td 967 td td 2012 07 10T18 21 44 td td false td td...

Страница 380: ...0 td td YYYY mm dd hh mm ss xxx td td false td td false td td false td td false td tr tr td CPU lights web cr1 td td false td td 16994 td td YYYY mm dd hh mm ss xxx td td true td td true td td false t...

Страница 381: ...t_write yyyy mm ddThh mm ss xxx run_now true run_on_power_up true read_only false paused false 8 6 3 7 4 NewestFile Command NewestFile allows a web client to request a file such as a program or image...

Страница 382: ...fic to facilitate CR800 programming maintenance data retrieval and data presentation Starter software table Starter Software are those products designed for novice integrators Datalogger support softw...

Страница 383: ...e or toggles the option of the line the cursor is on Esc Back up one level in the menu Home Move cursor to top of the list End Move cursor to bottom of the list Pg Up Move cursor up one screen Pg Dn M...

Страница 384: ...Section 8 Operation 384 Figure 113 Using the keyboard display...

Страница 385: ...Section 8 Operation 385 8 8 1 Data Display Figure 114 Displaying data with the keyboard display...

Страница 386: ...8 8 1 2 Real Time Custom The external keyboard display can be configured with a user defined real time display The CR800 will keep the setup if the same program is running or until it is changed by t...

Страница 387: ...Section 8 Operation 387 Figure 116 Real time custom...

Страница 388: ...Section 8 Operation 388 8 8 1 3 Final Storage Tables Figure 117 Final storage tables...

Страница 389: ...Section 8 Operation 389 8 8 2 Run Stop Program Figure 118 Run Stop Program...

Страница 390: ...Section 8 Operation 390 8 8 3 File Display Figure 119 File display...

Страница 391: ...1 File Edit The CRBasic Editor is recommended for writing and editing datalogger programs When making minor changes in the field with the external keyboard display restart the program to activate the...

Страница 392: ...Section 8 Operation 392 8 8 4 Ports and Status Read More See the appendix Status Table and Settings p 505 Figure 121 Ports and status 8 8 5 Settings Figure 122 Settings...

Страница 393: ...Configure display 8 9 Program and OS File Compression Q What is Gzip A Gzip is the GNU zip archive file format This file format and the algorithms used to create it are open source and free to use for...

Страница 394: ...ansmitting programs or OSs over low baud rate terrestrial radio satellite or restricted cellular data plans Q Does my CR800 support Gzip A Version 25 of the standard CR800 operating system supports re...

Страница 395: ...to the CR800 web server The CR800 will not automatically decompress and use compressed files sent via File Control FTP or a low level OS download however these files can be manually decompressed by m...

Страница 396: ...Section 8 Operation 396...

Страница 397: ...perly The CR800 contains a lithium battery that operates the clock and SRAM when the CR800 is not powered The CR800 does not draw power from the lithium battery while it is powered by a 12 Vdc supply...

Страница 398: ...cations Table 105 Internal Lithium Battery Specifications Manufacturer Tadiran Model TL 5902S 3 6 V Capacity 1 2 Ah Self discharge rate 1 year 20 C Operating temperature range 55 C to 85 C When reasse...

Страница 399: ...gure 125 Pulling edge away from panel Pull one edge of the canister away from the wiring panel to loosen it from three connector seatings Figure 126 Removing nuts to disassemble canister Remove six nu...

Страница 400: ...thorization The following contact information is for US and International customers residing in countries served by Campbell Scientific Inc directly Affiliate companies handle repairs for customers wi...

Страница 401: ...returns until we receive this form If the form is not received within three days of product receipt or is incomplete the product will be returned to the customer at the customer s expense Campbell Sci...

Страница 402: ...Section 9 Maintenance 402...

Страница 403: ...available free of charge at www campbellsci com Operating systems undergo extensive testing prior to release by a professional team of product testers However the function of any new component to a da...

Страница 404: ...of the more common warning messages are listed in table Warning Message Examples p 404 Table 106 Warning Message Examples Example of Warning Message Meaning CPU DEFAULT CR1 Compiled in PipelineMode Er...

Страница 405: ...voice modem 10 3 1 2 SkippedScan Skipped scans are caused by long programs with short scan intervals multiple Scan NextScan instructions outside a SubScan or SlowSequence or by other operations that o...

Страница 406: ...pileResults message in the Status table For example the CR800 may detect that ExArray is not large enough and write Warning Variable ExArray out of bounds to the Status table The CR800 does not catch...

Страница 407: ...the CR800 Reasons may include The CR800 has a different usually older operating system that is not compatible with the PC compiler Check the two versions if in doubt the PC version is shown on the fi...

Страница 408: ...h auto range to automatically select the best input range a NAN indicates that either one or both of the two measurements in the auto range sequence over ranged A voltage input not connected to a sens...

Страница 409: ...0 NAN 1 0 1 0 NAN 1 1 1 0 NAN 0 0 1 1 0 NAN 1 0 1 0 NAN 1 1 1 0 NAN 0 0 1 0 NAN x 0 1 0 INF x 0 1 0 INF x 0 1 0 INF x 0 1 0 INF 0 1 0 0 INF 0 0 1 0 0 0 0 0 0 1 Table 108 Variable and FS Data Types wit...

Страница 410: ...e use of conditional statements to set DisableVar to TRUE as needed to filter NAN from output processes Note If all measurements result in NAN NAN will be stored as final storage data regardless of th...

Страница 411: ...ent All Campbell Scientific datalogger support software include utilities for altering PC PakBus addressing 10 4 3 Comms Memory Errors CommsMemFree is an array of three registers in the Status table p...

Страница 412: ...TLS The following expressions are used to pick the individual values from CommsMemFree 1 tiny CommsMemFree 1 100 lil CommsMemFree 1 100 100 mid CommsMemFree 1 10000 100 med CommsMemFree 1 1000000 100...

Страница 413: ...assuming a large PakBus network has not been just discovered The larger the discovered PakBus network and the larger the number of simultaneous TCP connections the smaller CommsMemFree 2 number will b...

Страница 414: ...freeq CommsMemFree 3 100 bigfreeq CommsMemFree 3 100 100 rcvdq CommsMemFree 3 10000 100 sendq CommsmemFree 3 1000000 100 10 5 Power Supplies 10 5 1 Overview Power supply systems may include batteries...

Страница 415: ...nels or transformers may need to be fixed or replaced Required Equipment Voltmeter 5 k resistor and a 50 1 W resistor for the charging circuit tests and to adjust the charging circuit voltage 10 5 3 D...

Страница 416: ...y batteries Yes Yes Recharge battery Is the battery voltage 12 Vdc No Yes The battery is good Battery voltage is adequate for CR800 operation However if the CR800 is to function for a long period Camp...

Страница 417: ...12V terminal and a G ground terminal on the charging regulator 2 Switch the power switch to ON 3 Measure the DC voltage across the resistor Is the measured voltage 13 3 to 14 1 V No Measure the voltag...

Страница 418: ...procedure outlined in this flow chart tests PS100 and CH100 charging regulators that use ac ac or ac dc transformers as power source If a need for repair is indicated after following the procedure see...

Страница 419: ...ower switch to ON 3 Measure the DC voltage across the resistor Is the measured voltage 13 3 to 14 1 V No Measure the voltage between the two pins in a battery connection receptacle Is the voltage 10 0...

Страница 420: ...e charging regulator is damaged and should be repaired or replaced 50 Load Test 1 Switch the power switch to OFF 2 Disconnect the power source transformer solar panel 3 Remove the 5 k resistor 4 Place...

Страница 421: ...inal mode options With exception of perhaps the C command terminal options are not necessary to routine CR800 operations To enter terminal mode connect a PC to the nine pin RS 232 port on the CR800 vi...

Страница 422: ...over telecommunications Data are dumped as non error checked ASCII 9 Read inloc binary Lists binary form of Public table A Operating system copyright Lists copyright notice and version of operating s...

Страница 423: ...Problem User downloads a new program then realizes that valuable data written prior to the download has not been collected Solution By running the following procedure immediately some or all of the l...

Страница 424: ...on 3 The CR800 will attempt to enter a terminal session when it receives non PakBus characters on the nine pin RS 232 port or CS I O port unless the port is first opened with the SerialOpen command If...

Страница 425: ...formation Interchange American National Standards Institute An encoding scheme in which numbers from 0 127 ASCII or 0 255 ANSI are used to represent pre defined alphanumeric characters Each number is...

Страница 426: ...at are viable If configured to do so a clock set command may be transmitted with the beacon This function can be used to synchronize the clocks of devices within the PakBus network See also PakBus p 4...

Страница 427: ...data will begin overwriting the oldest data Calibration Wizard Software The calibration wizard facilitates the use of the CRBasic field calibration instructions FieldCal and FieldCalStrain It is foun...

Страница 428: ...for more information CPU Central processing unit The brains of the CR800 CR1000KD An optional hand held keyboard display for use with the CR1000 and CR800 dataloggers See the appendix Keyboard Display...

Страница 429: ...int A data value which is sent to final storage p 432 as the result of an output processing data storage instruction Strings of data points output at the same time make up a record in a data table dc...

Страница 430: ...s DIM example 3 3 3 creates 27 variables DNS Domain name system A TCP IP application protocol DTE Data terminal equipment While the term has much wider meaning in the limited context of practical use...

Страница 431: ...excitation Application of a precise voltage usually to a resistive bridge circuit execution time Time required to execute an instruction or group of instructions If the execution time of a program ex...

Страница 432: ...data type for Public or Dim variables Same format as IEEE4 IEEE4 is the name used when declaring data type for stored data table data FP2 Two byte floating point data type Default CR800 data type for...

Страница 433: ...d information between two devices to assure each that it is connected to the other When not used as a clock line the CLK HS pin 7 line in the datalogger CS I O port is primarily used to detect the pre...

Страница 434: ...ponent 15 and 7956 are integers 1 5 and 79 56 are not intermediate storage The portion of memory allocated for the storage of results of intermediate calculations necessary for operations such as aver...

Страница 435: ...ch are declared in the Sub and Function instructions from global variables which are declared using Public or Dim LONG Data type used when declaring integers loop A series of instructions in a program...

Страница 436: ...y modulo divide A mathematical operation wherein the result of interest is the remainder after a division MSB Most significant bit the leading bit multi meter An inexpensive and readily available devi...

Страница 437: ...four bytes of seconds since 1990 and four bytes of nanoseconds into the second Null modem A device usually a multi conductor cable which converts an RS 232 port from DCE to DTE or from DTE to DCE offs...

Страница 438: ...initiations of a particular data table record output processing instructions Process data values and generate output arrays Examples of output processing instructions include Totalize Maximize Minimiz...

Страница 439: ...rement technique utilizing a high frequency digital clock to measure time differences between signal transitions Sensors commonly measured with period average include vibrating wire transducers and wa...

Страница 440: ...ence of instructions contained in program tables also used to set or clear flags Public A CRBasic command for declaring and dimensioning variables Variables declared with Public can be monitored durin...

Страница 441: ...nd zero RS 232 Recommended Standard 232 A loose standard defining how two computing devices can communicate with each other The implementation of RS 232 in Campbell Scientific dataloggers to PC commun...

Страница 442: ...evice or sensor that communicates with the CR800 via hardwire over a short distance using a proprietary protocol Seebeck Effect Induces micro Volt level thermal electromotive forces EMF across junctio...

Страница 443: ...memory It is derived using an algorithm which assures a 99 998 probability that if either the data or the data sequence changes the signature changes single ended Denotes a sensor or measurement termi...

Страница 444: ...y 444 state Whether a device is on or off Station Status command A command available in most datalogger support software available from Campbell Scientific The following figure is a sample of the Stat...

Страница 445: ...ished by synchronizing the transmitting and receiving devices to a common clock signal see Asynchronous p 425 system time When time functions are run outside the Scan NextScan construct the time regis...

Страница 446: ...ented in the Therm107 Therm108 and Therm109 instructions throughput The throughput rate is the rate at which a measurement can be taken scaled to engineering units and the reading stored in a data tab...

Страница 447: ...ging number or string Vac Volts alternating current Also VAC Mains or grid power is high level Vac usually 110 Vac or 220 Vac at a fixed frequency of 50 Hz or 60 Hz High level Vac is used as a primary...

Страница 448: ...to 10 of watchdog timer resets is of concern but normally indicates the user should just monitor the situation A large number 10 of errors accumulating over a short period of time should cause increa...

Страница 449: ...e define how well a data acquisition system performs To understand how the three relate to each other consider target practice as an analogy Figure Accuracy Precision and Resolution p 449 shows four t...

Страница 450: ...Section 11 Glossary 450...

Страница 451: ...sks Syntax PipelineMode SequentialMode Configures datalogger to perform tasks sequentially Syntax SequentialMode SetSecurity Sets numeric password for datalogger security levels 1 2 and 3 Executes at...

Страница 452: ...mensions are optional Syntax Dim variable name x y z ESSVariables Automatically declares all the variables required for the datalogger when used in an Environmental Sensor Station application Used in...

Страница 453: ...rd display or terminal C option The program is recompiled with the new values when values change See Constants p 122 Syntax ConstTable constant a value constant b value constant c value EndConstTable...

Страница 454: ...a collection of a data table in datalogger memory Syntax TableHide A 2 2 Data Destinations Note TableFile with Option 64 is now the preferred way to write data to a CF card in most applications See Ta...

Страница 455: ...es the covariance of values in an array over time Syntax Covariance NumVals Source DataType DisableVar NumCov FFT Performs a Fast Fourier Transform on a time series of measurements stored in an array...

Страница 456: ...output interval Syntax StdDev Reps Source DataType DisableVar Totalize Sums the total over the output interval Syntax Totalize Reps Source DataType DisableVar A 2 3 2 Multiple Source ETsz Stores evapo...

Страница 457: ...n obsolete instruction Resets the pulse counters and the running averages used in the pulse count instruction Syntax PulseCountReset A 4 Program Control Instructions A 4 1 Common Program Controls Begi...

Страница 458: ...am Syntax Exit For Next Repeats a group of instructions for a specified number of times Syntax For counter start To end Step increment statement block ExitFor statement block Next counter counter If T...

Страница 459: ...sion 1 statement block 1 Case expression 2 statement block 2 Case Is expression fragment Case Else statement block 3 EndSelect SlowSequence Marks the beginning of a section of code that will run concu...

Страница 460: ...Data list of constants Read VarExpr Restore DataLong Read Restore Defines a list of Long constants to be read using Read into a variable array later in the program Syntax DataLong list of constants R...

Страница 461: ...201 A 5 1 Diagnostics Battery Measures input voltage Syntax Battery Dest ComPortIsActive Returns a Boolean value based on whether or not activity is detected on the specified COM port Syntax variable...

Страница 462: ...easures a single ended thermocouple Syntax TCSe Dest Reps Range SEChan TCType TRef MeasOfs SettlingTime Integ Mult Offset A 5 4 Resistive Bridge Measurements Read More See Resistive Bridge p 291 BrFul...

Страница 463: ...or low Syntax SW12 State A 5 6 Pulse and Frequency Read More See Pulse p 297 Note Pull up resistors are required when using digital I O control ports for pulse input see Pulse Input on Digital I O Ch...

Страница 464: ...1 Control PortSet Sets the specified port high or low Syntax PortSet Port State PulsePort Toggles the state of a control port delays the specified amount of time toggles the port and delays a second t...

Страница 465: ...and power quality parameters for single split and three phase Y configurations Syntax ACPower DestAC ConfigAC LineFrq ChanV VMult MaxVrms ChanI IMult MaxIrms Reps DANGER ac power can kill User is resp...

Страница 466: ...the CR800 clock correct or provide other information from the GPS such as location and speed Proper operation of this instruction may require a factory upgrade of on board memory Syntax GPS GPS_Array...

Страница 467: ...ffset A 5 9 1 Wireless Sensor Network ArrayIndex Returns the index of a named element in an array Syntax ArrayIndex Name CWB100 Sets up the CR800 to request and accept measurements from the CWB100 wir...

Страница 468: ...CDM_VW300Config DeviceType CPIAddress SysOptions ChanEnable ResonAmp LowFreq HighFreq ChanOptions Mult Offset SteinA SteinB SteinC RF_MeanBins RF_AmpBins RF_LowLim RF_HighLim RF_Hyst RF_Form CDM_VW30...

Страница 469: ...the CR800 to select the ports to activate via a mask Commonly used with TimedControl Syntax SDMCD16Mask Source Mask SDMAddress SDMCVO4 Control the SDM CVO4 four channel current voltage output device S...

Страница 470: ...pendently of the TDR100 instruction Syntax SDMX50 SDMAddress Channel TDR100 Directly measures TDR probes connected to the TDR100 or via an SDMX50 Syntax TDR100 Dest SDMAddress Option Mux ProbeSelect W...

Страница 471: ...han Greater than or equal to Less than or equal to A 6 3 Bitwise Operators Bitwise shift operators and allow the program to manipulate the positions of patterns of bits within an integer CRBasic Long...

Страница 472: ...ssignment Raises the value of a variable to the power of an expression and assigns the result back to the variable Multiplication assignment Multiplies the value of a variable by the value of an expre...

Страница 473: ...ions Syntax result expr1 AND expr2 EQV Performs a logical equivalence on two expressions Syntax result expr1 EQV expr2 NOT Performs a logical negation on an expression Syntax result NOT expression OR...

Страница 474: ...an Atn X 1 5708 Hyperbolic Secant HSec 2 Exp X Exp X Hyperbolic Cosecant HCosec 2 Exp X Exp X Hyperbolic Cotangent HCotan Exp X Exp X Exp X Exp X Inverse Hyperbolic Sine HArcsin Log X Sqr X X 1 Invers...

Страница 475: ...INH Expr TAN Returns the tangent of an angle Syntax x TAN source TANH Returns the hyperbolic tangent of an expression or value Syntax x TANH Source A 6 7 Arithmetic Functions ABS Returns the absolute...

Страница 476: ...LN or LOG Returns the natural logarithm of a number Ln and Log perform the same function Syntax x LOG source x LN source Note LOGN LOG X LOG N LOG10 The LOG10 function returns the base 10 logarithm o...

Страница 477: ...ce of an RTD This instruction has been superseded by PRTCalc in most applications Syntax PRT Dest Reps Source Mult PRTCalc Calculates temperature from the resistance of an RTD according to a range of...

Страница 478: ...putes the spatial covariance of sets of data Syntax CovSpa Dest NumOfCov SizeOfSets CoreArray DatArray FFTSpa Performs a Fast Fourier Transform on a time series of measurements Syntax FFTSpa Dest N So...

Страница 479: ...erforming an independent running average on each element of the array The results will be a running aerage of a spatial average on the various source array s elements Randomize Initializes the random...

Страница 480: ...ighlimit MinAmp Form A 7 String Functions Read More See String Operations p 237 Concatenates string variables Concatenates string and numeric variables Compares two strings returns zero if identical A...

Страница 481: ...X CheckSum Returns a checksum signature for the characters in a string Syntax Variable CheckSum ChkSumString ChkSumType ChkSumSize CHR Inserts an ANSI character into a string Syntax CHR Code FormatFlo...

Страница 482: ...t SearchString NumChars Len Returns the number of bytes in a string Syntax Variable Len StringVar LowerCase Converts a string to all lowercase characters Syntax String LowerCase SourceString Mid Retur...

Страница 483: ...m Returns a copy of a string with no leading or trailing spaces Syntax variable Trim TrimString UpperCase Converts a string to all uppercase characters Syntax String UpperCase SourceString A 8 Clock F...

Страница 484: ...e DaylightSavingUS DSTSet IfTime Returns a number indicating True 1 or False 0 based on the datalogger s real time clock Syntax If IfTime TintoInt Interval Units Then or Variable IfTime TintoInt Inter...

Страница 485: ...e code to be executed EndVoice VoiceHangup Hangs up the voice modem Syntax VoiceHangup VoiceKey Recognizes the return of characters 1 9 or VoiceKey is often used to add a delay which provides time for...

Страница 486: ...stem Menu Counter allows selection of one of four values Each submenu displays two values from CR800 memory PanelTemps shows the CR800 wiring panel temperature at each scan and the one minute sample o...

Страница 487: ...nu A 11 Serial Input Output Read More See Serial I O p 201 MoveBytes Moves binary bytes of data into a different memory location when translating big endian to little endian data Syntax MoveBytes Dest...

Страница 488: ...g NumberTries TimeOut SerialOutBlock Send binary data out a communications port Used to support a transparent serial talk through mode Syntax SerialOutBlock ComPort Expression NumberBytes A 12 Peer to...

Страница 489: ...the GetVariables example in CRBasic example Retries in PakBus Communications p 492 The Timeout argument is entered in units of hundredths 0 01 of seconds If 0 is used then the default timeout defined...

Страница 490: ...omPort NeighborAddr PakBusAddr Security Timeout Tries TableNo DestTableName Note CR200 CR510PB CR10XPB and CR23XPB dataloggers do not respond to a GetDataRecord request from other PakBus dataloggers G...

Страница 491: ...s datalogger Syntax SendFile ResultCode ComPort NeighborAddr PakBusAddr Security TimeOut LocalFile RemoteFile SendGetVariables Sends an array of values to the host PakBus datalogger and or retrieve an...

Страница 492: ...signal and the baud rate is determined by the CR800 CRBasic Example 70 Retries in PakBus Communications For I 1 to 3 GetVariables ResultCode If ResultCode 0 Exit For Next A 13 Variable Management Arra...

Страница 493: ...le CR800 memory file CalFile pre dates and is not used with the FieldCal function Syntax CalFile Source Dest NumVals Device filename Option Encryption Encrypts decrypts a message string variable share...

Страница 494: ...dle and stores the result in a variable or variable array Syntax FileReadLine FileHandle Destination Length FileRename Changes the name of file on a CR800 drive Syntax FileRename drive OldFileName dri...

Страница 495: ...ts a filemark into a data table Syntax FileMark TableName GetRecord Retrieves one record from a data table and stores the results in an array May be used with SecsSince1990 Syntax GetRecord Dest Table...

Страница 496: ...ntax TableName TableSize 1 1 TableName TimeStamp Returns the time into an interval or a time stamp for a record in a specific data table Syntax TableName TimeStamp m n WorstCase Saves one or more wors...

Страница 497: ...or retrieves a file via FTP Syntax Variable FTPClient IPAddress User Password LocalFileName RemoteFileName PutGetOption HTTPGET Sends a request to an HTTP server using the Get method Syntax HTTPGET U...

Страница 498: ...nternet time server Syntax variable NetworkTimeProtocol NTPServer NTPOffset NTPMaxMSec PingIP Pings IP address Syntax variable PingIP IPAddress Timeout PPPOpen Establishes a PPP connection with a serv...

Страница 499: ...trNameSpace ElemName ElemNameSpace MaxDepth MaxNameSpaces A 17 Modem Control Read More For help on datalogger initiated telecommunication see Initiating Telecomms Callback p 333 DialModem Sends a mode...

Страница 500: ...ModBus slave Syntax ModBusMaster ResultCode ComPort BaudRate ModBusAddr Function Variable Start Length Tries TimeOut ModBusSlave Sets up a datalogger as a ModBus slave device Syntax ModBusSlave ComPo...

Страница 501: ...Instructions for GOES ARGOS INMARSAT C OMNISAT Refer to satellite transmitter manuals available at www campbellsci com A 20 1 Argos ArgosData Specifies the data to be transmitted to the Argos satelli...

Страница 502: ...PlatformID MsgWindow STChannel STBaud RChannel RBaud STInterval STOffset RInterval GOESStatus Requests status and diagnostic information from a Campbell Scientific GOES satellite transmitter Syntax G...

Страница 503: ...OMNISAT I transmitter for transmission via the INSAT 1 satellite Syntax INSATData ResultCode TableName TX_Window TX_Channel INSATSetup Configures the OMNISAT I transmitter for sending data over the IN...

Страница 504: ...Appendix A CRBasic Programming Instructions 504...

Страница 505: ...s table at regular intervals without use of a refresh button Note A lot of communications bandwidth and activity are needed to generate the Status table so if the CR800 is very tight on time just gett...

Страница 506: ...pedScan SkippedSlowScan PortStatus PortConfig Measurements ErrorCalib Data SkippedRecord DataFillDays Table 117 Status Table Fields and Descriptions Fieldname Description Variable Type Default Range E...

Страница 507: ...nature Signature of the compiled binary data structure for the current program Value is independent of comments added or non functional changes to the program Often changes with operating system chang...

Страница 508: ...teger 0 0 or 1 Status Error ProgErrors The number of compile or runtime errors for the current program Integer 0 Error VarOutOfBound7 Number of times an array was accessed out of bounds Integer 0 0 Ye...

Страница 509: ...digits per each buffer size category Least significant digit specifies the number of the smallest buffers Most significant digit specifies the number of the largest buffers When TLS is not active ther...

Страница 510: ...has its own entry in this array Integer array SecsPerRecord Output interval for a given table Each table has its own entry in this array Integer array DataFillDays Time in days to fill a given table E...

Страница 511: ...mber of buffers processing lagged measurement LastSystemScan8 The last time the background calibration executed Integer array Status LastSlowScan9 The last time SlowSequence scan s executed Integer ar...

Страница 512: ...r 1 RS232Handshaking RS 232 hardware handshaking buffer size If non zero hardware handshaking is active on the RS 232 port This setting specifies the maximum packet size sent between checking for CTS...

Страница 513: ...ose RS 232 is always hardware enabled Config Baudrate 17 Array of baud rates for comms Aliased to BaudrateRS 232 BaudrateME BaudrateSDC BaudrateCOM1 BaudrateCOM2 Integer array of 9 RS 232 115200 ME SD...

Страница 514: ...acketSize Maximum number of bytes per data collection packet _ 1000 USRDriveSize Configures the USR drive If 0 the drive is removed If non zero the drive is created Integer 0 8192 Min Yes Mem IPInfo I...

Страница 515: ...e g 777 for Redwing CDMA or a list of AT commands separated by e g ATV1 AT CGATT 0 ATD 99 1 that are used to initialize and dial through a modem before a PPP connection is attempted A blank string me...

Страница 516: ...the compile was caused by either a Program Send a File Control transaction or a watchdog reset 7 The VarOutOfBound error occurs when a program tries to write to an array variable outside of its declar...

Страница 517: ...munication can occur concurrently on the same port if the port was previously opened in the case of the CP UARTS for PakBus or if the port is always open CS I O 9 pin and RS 232 for PakBus the code is...

Страница 518: ...evel 3 Specifies Level 3 Security Zero disables level 3 Range 0 to 65535 See Security p 70 0 UTC Offset The offset in seconds that the CR800 s local time is from UTC This offset is used in email and H...

Страница 519: ...est begin uint2 1 dest begin 4094 dest end uint2 dest begin dest end 4094 Baud Rate Applies to the following communication ports RS232 ME SDC7 SDC8 SDC10 SDC11 COM1 COM2 This setting governs the baud...

Страница 520: ...us address pakbus address number 0 number 4000 If more than 10 neighbors are in the allowed list and the beacon interval is 0 the beacon interval is changed to 60 seconds and beaconing is used for nei...

Страница 521: ...a numeric code for the port the router will use Port Numeric Description Code ComRS232 1 ComME 2 ComSDC6 Com310 3 ComSDC7 4 ComSDC8 5 ComSDC9 Com320 6 ComSDC10 7 ComSDC11 8 Com1 9 Com2 10 IP 101 102 I...

Страница 522: ...mple above JPG files from node 129 are named CPU NorthWestnnn JPG and two files are retained The nnn serial number starts at 1 and will advance beyond nine digits In this example all TXT files from no...

Страница 523: ...file and as the default program The formal syntax for this setting follows include setting device name file name file extension device name CPU USR File extension dld cr8 Max Packet Size Specifies the...

Страница 524: ...rvice Port This setting specifies the TCP service port for PakBus communications with the datalogger Unless firewall issues exist this setting probably does not need to be changed from its default val...

Страница 525: ...for the private key in RSA format TLS Private Key Password Specifies the password that is used to decrypt the private key file IP Trace COM Port This setting specifies whether and on what port TCP IP...

Страница 526: ...Appendix B Status Table and Settings 526...

Страница 527: ...line for printers 7 CLK HS I O Clock Handshake Used with the SDE and TXD lines to address and transfer data to SDs When not used as a clock pin 7 can be used as a handshake line during printer output...

Страница 528: ...e following conditions 1 when the setting RS232Power is set or 2 when the SerialOpen for COMRS232 is used in the program These conditions leave RS 232 on with no timeout If SerialClose is used after S...

Страница 529: ...1 pin 6 pin 5 pin 5 pin 7 pin 8 pin 8 pin 7 pin 9 XXXXX pin 9 most null modems have no connection If the null modem cable does not connect pin 9 to pin 9 the modem will need to be configured to output...

Страница 530: ...Appendix C Serial Port Pinouts 530...

Страница 531: ...r Dec Hex Keyboard Display Char LoggerNet Char Hyper Terminal Char 0 0 NULL NULL 128 80 1 1 129 81 2 2 130 82 3 3 131 83 4 4 132 84 5 5 133 85 6 6 134 86 7 7 135 87 8 8 136 88 9 9 ht 137 89 10 a lf lf...

Страница 532: ...63 a3 36 24 164 a4 37 25 165 a5 38 26 166 a6 39 27 167 a7 40 28 168 a8 41 29 169 a9 42 2a 170 aa 43 2b 171 ab 44 2c 172 ac 45 2d 173 ad 46 2e 174 ae 47 2f 175 af 48 30 0 0 0 176 b0 49 31 1 1 1 177 b1...

Страница 533: ...48 H H H 200 c8 73 49 I I I 201 c9 74 4a J J J 202 ca 75 4b K K K 203 cb 76 4c L L L 204 cc 77 4d M M M 205 cd 78 4e N N N 206 ce 79 4f O O O 207 cf 80 50 P P P 208 d0 81 51 Q Q Q 209 d1 82 52 R R R 2...

Страница 534: ...68 h h h 232 e8 105 69 i i i 233 e9 106 6a j j j 234 ea 107 6b k k k 235 eb 108 6c l l l 236 ec 109 6d m m m 237 ed 110 6e n n n 238 ee 111 6f o o o 239 ef 112 70 p p p 240 f0 113 71 q q q 241 f1 114...

Страница 535: ...arity 0 1 B C Decimal locaters as defined in the table FP2 Decimal Locater Bits D P 13 bit binary value D being the MSB p 205 Largest 13 bit magnitude is 8191 but Campbell Scientific defines the large...

Страница 536: ...Appendix E FP2 Data Format 536...

Страница 537: ...sensor types are available from Campbell Scientific and are easily integrated into CR800 systems Please contact a Campbell Scientific applications engineer for specific model numbers Table 124 Wired S...

Страница 538: ...dity Dissolved oxygen Soil heat flux Infrared surface temperature Soil temperature Leaf wetness Solar radiation Pressure Surface temperature Quantum sensor Wind speed wind direction Rain F 2 Sensor In...

Страница 539: ...annel i o expansion module SDM IO16 16 channel i o expansion module F 2 4 Vibrating Wire Input Modules Vibrating wire input modules improve the measurement of vibrating wire sensors Table 130 Vibratin...

Страница 540: ...00 ohm current shunt module F 2 6 Terminal Strip Covers Terminal strips cover and insulate input terminals to improve thermocouple measurements Table 134 Terminal Strip Covers Datalogger Terminal Stri...

Страница 541: ...alog voltage output SDM CVO4 Four channel continuous voltage and current analog output F 4 3 Relay Drivers Relay drivers enable the CR800 to control large voltages Table 138 Relay Drivers Model Descri...

Страница 542: ...expandable high speed F 6 Power Supplies Several power supplies are available from Campbell Scientific to power the CR800 F 6 1 Battery Regulator Combination Read More Information on matching power su...

Страница 543: ...entific enclosures F 6 3 Battery Bases The CR800 is supplied with a base option Battery base options include either alkaline batteries or sealed rechargeable batteries A third option is a simple prote...

Страница 544: ...es regulator DCDC18R 12 Vdc to 18 Vdc boost regulator allows automotive supply voltages to recharge sealed rechargeable batteries Table 145 24 Vdc Power Supply Kits Model Description 28370 24 Vdc 3 8...

Страница 545: ...ect Serial Communications Devices Table 148 Direct Serial Interfaces Model Description 17394 RS 232 to USB cable not optically isolated 10873 RS 232 to RS 232 cable nine pin female to nine pin male SR...

Страница 546: ...a Storage Devices Data storage devices allow you to collect data on site with a small device and carry it back to the PC SneakerNet Campbell Scientific mass storage devices attach to the CR800 CS I O...

Страница 547: ...dataloggers over most telecommunications options LoggerNet PC Windows Top level datalogger support software Supports datalogger networks LoggerNet Admin PC Windows Advanced LoggerNet for large datalog...

Страница 548: ...Scientific OPC Server Feeds datalogger data into third party OPC compatible graphics packages PakBus Graph Bundled with LoggerNet Maps and provides access to the settings of a PakBus network RTMCPro...

Страница 549: ...ility Description LoggerNet SDK PC Windows Allows software developers to create custom client applications that communicate through a LoggerNet server with any datalogger supported by LoggerNet Requir...

Страница 550: ...Appendix F Other Campbell Scientific Products 550...

Страница 551: ...erage 84 Amperes Amps 425 Analog 36 60 270 425 Analog Control 314 Analog Input 36 Analog Input Expansion 312 Analog Input Range 276 Analog Measurement 90 274 408 Analog Output 61 314 463 Analog Sensor...

Страница 552: ...Translation 209 C Cable Length 282 309 CAL Files 151 CalFile 493 Calibrate 500 503 Calibration 76 134 152 278 285 309 Calibration Background 506 Calibration Functions 500 Call 457 Callback 168 333 42...

Страница 553: ...65 CS616 465 CS7500 465 CSAT3 465 Current 84 Current Sourcing Limit 86 312 Custom Display 386 Custom Menu 69 70 486 CVI 428 CWB100 467 CWB100Routes 467 CWB100RSSI 467 D Data Read Restore 460 Data Acqu...

Страница 554: ...3 Durable Setting 103 E Earth Ground 62 86 431 EC100 465 EC100Configure 465 Edge Timing 42 60 302 Edit File 391 Edit Program 391 Editor 46 Editor Short Cut 108 Email 167 496 EMailRecv 496 EMailSend 49...

Страница 555: ...27 FP2 118 432 535 FRAC 475 Fragmentation 318 Frequency 38 39 297 300 302 Frequency Resolution 303 FTP 432 FTPClient 496 Full Duplex 432 Full Memory Reset 506 518 Full Bridge 37 291 Function EndFuncti...

Страница 556: ...s CWB100Diagnostics 467 Instructions DataTime 453 Instructions Date 483 Instructions DisplayLine 486 Instructions Encryption 492 493 Instructions FormatLongLong 481 Instructions HTTPPOST 496 Instructi...

Страница 557: ...ematical Operator 470 Maximum 455 MaxSpa 478 MD5 digest 435 ME Pin 527 MeasOff 278 Measurement 408 Measurement Instruction 139 Median 455 Memory 66 151 315 Memory Free 506 MemoryTest 461 Menu Custom 1...

Страница 558: ...06 OS Signature 506 OS Version 506 Output 438 Output Array 438 Output Interval 438 Output Processing 130 OutputOpt 190 Overrange 259 277 408 436 Overrun 403 506 Overview 58 Overview Modbus 350 Overvie...

Страница 559: ...g Integrated 477 Processing Output 130 455 Processing Spatial 478 Processing Wind Vector 190 Processing Instructions 440 Processing Instructions Output 438 Program 65 Program Overrun 403 506 Program C...

Страница 560: ...Ex 278 Right 481 Ring Line Pin 3 441 Ring Memory 315 441 RING Pin 527 Ringing 441 RMS 441 RMSSpa 478 RND 479 Round 475 Route 489 Route Filter 518 Router 335 336 506 518 RoutersNeighbors 489 Routes 489...

Страница 561: ...73 Set CR800 ID 96 Set Time and Date 393 SetSecurity 451 SetStatus 495 Setting 96 392 Settings 518 Settling Error 283 Settling Time 280 282 283 284 285 309 SGN 475 Short Cut 46 Shunt Calibration 166 S...

Страница 562: ...5 System Time 135 445 Syst me Internationale 443 T Table 44 Table Data Header 146 Table Overrun 403 TableHide 130 453 TableName EventCount 495 TableName FieldName 495 TableName Output 495 TableName Re...

Страница 563: ...2 Variable Management 492 Variable Modifier 452 Variable Out of Bounds 506 Vdc 447 Vector 192 Vehicle Power Connection 83 Verify Interval 506 518 Via CRBasic 102 Vibrating Wire Input Module 315 Vibrat...

Страница 564: ...Index 564 WriteIO 464 Writing Program 108 X XML 448 XOR 473 Y Y intercept 141 142 Z Zero 155 166 Zero Basis 151...

Страница 565: ......

Страница 566: ...rta T5M 1W7 CANADA www campbellsci ca dataloggers campbellsci ca Campbell Scientific Centro Caribe S A CSCC 300N Cementerio Edificio Breller Santo Domingo Heredia 40305 COSTA RICA www campbellsci cc i...

Отзывы: