Campbell Scientific CR800 and CR850 and Control, CR800 and CR850 Measurement and Control Systems Owner's manual

  • Hello! I am an AI chatbot trained to assist you with the Campbell Scientific CR800 and CR850 and Control Owner's manual. I’ve already reviewed the document and can help you find the information you need or explain it in simple terms. Just ask your questions, and providing more details will help me assist you more effectively!
OPERATOR'S MANUAL
CR800-Series Dataloggers
Preliminary for OS v.28: 4/20/15
Want to get going? Go to the Quickstart
(p. 41)
section. Want
to see notes pertaining to this preliminary manual release?
Go to Release Notes
(p. 34).
Copyright © 2000 – 2015
Campbell Scientific, Inc.
Warranty
The CR800 Measurement and Control Datalogger is warranted for three (3) years
subject to this limited warranty:
Limited Warranty: Products manufactured by CSI are warranted by CSI to be free
from defects in materials and workmanship under normal use and service for
twelve months from the date of shipment unless otherwise specified in the
corresponding product manual. (Product manuals are available for review online
at www.campbellsci.com.) Products not manufactured by CSI, but that are resold
by CSI, are warranted only to the limits extended by the original manufacturer.
Batteries, fine-wire thermocouples, desiccant, and other consumables have no
warranty. CSI's obligation under this warranty is limited to repairing or replacing
(at CSI's option) defective Products, which shall be the sole and exclusive remedy
under this warranty. The Customer assumes all costs of removing, reinstalling,
and shipping defective Products to CSI. CSI will return such Products by surface
carrier prepaid within the continental United States of America. To all other
locations, CSI will return such Products best way CIP (port of entry) per
Incoterms ® 2010. This warranty shall not apply to any Products which have been
subjected to modification, misuse, neglect, improper service, accidents of nature,
or shipping damage. This warranty is in lieu of all other warranties, expressed or
implied. The warranty for installation services performed by CSI such as
programming to customer specifications, electrical connections to Products
manufactured by CSI, and Product specific training, is part of CSI's product
warranty. CSI EXPRESSLY DISCLAIMS AND EXCLUDES ANY IMPLIED
WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
PARTICULAR PURPOSE. CSI hereby disclaims, to the fullest extent allowed by
applicable law, any and all warranties and conditions with respect to the Products,
whether express, implied or statutory, other than those expressly provided herein.
3
Assistance
Products may not be returned without prior authorization. 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 within their territories. Please visit www.campbellsci.com to determine
which Campbell Scientific company serves your country.
To obtain a Returned Materials Authorization (RMA), contact CAMPBELL
SCIENTIFIC, INC., phone (435) 227-2342. After an application engineer
determines the nature of the problem, an RMA number will be issued. Please
write this number clearly on the outside of the shipping container. Campbell
Scientific's shipping address is:
CAMPBELL SCIENTIFIC, INC.
RMA#_____
815 West 1800 North
Logan, Utah 84321-1784
For all returns, the customer must fill out a "Statement of Product Cleanliness and
Decontamination" form and comply with the requirements specified in it. The
form is available from our web site at www.campbellsci.com/repair. A completed
form must be either emailed to repair@campbellsci.com or faxed to 435-227-
9579. Campbell Scientific is unable to process any 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 Scientific reserves the right to refuse service on products that
were exposed to contaminants that may cause health or safety concerns for our
employees.
5
Precautions
DANGER — MANY HAZARDS ARE ASSOCIATED WITH INSTALLING,
USING, MAINTAINING, AND WORKING ON OR AROUND TRIPODS,
TOWERS, AND ANY ATTACHMENTS TO TRIPODS AND TOWERS SUCH
AS SENSORS, CROSSARMS, ENCLOSURES, ANTENNAS, ETC. FAILURE
TO PROPERLY AND COMPLETELY ASSEMBLE, INSTALL, OPERATE,
USE, AND MAINTAIN TRIPODS, TOWERS, AND ATTACHMENTS, AND
FAILURE TO HEED WARNINGS, INCREASES THE RISK OF DEATH,
ACCIDENT, SERIOUS INJURY, PROPERTY DAMAGE, AND PRODUCT
FAILURE. TAKE ALL REASONABLE PRECAUTIONS TO AVOID THESE
HAZARDS. CHECK WITH YOUR ORGANIZATION'S SAFETY
COORDINATOR (OR POLICY) FOR PROCEDURES AND REQUIRED
PROTECTIVE EQUIPMENT PRIOR TO PERFORMING ANY WORK.
Use tripods, towers, and attachments to tripods and towers only for purposes for
which they are designed. Do not exceed design limits. Be familiar and comply
with all instructions provided in product manuals. Manuals are available at
www.campbellsci.com or by telephoning 435-227-9000 (USA). You are
responsible for conformance with governing codes and regulations, including
safety regulations, and the integrity and location of structures or land to which
towers, tripods, and any attachments are attached. Installation sites should be
evaluated and approved by a qualified engineer. If questions or concerns arise
regarding installation, use, or maintenance of tripods, towers, attachments, or
electrical connections, consult with a licensed and qualified engineer or
electrician.
General
• Prior to performing site or installation work, obtain required approvals and
permits. Comply with all governing structure-height regulations, such as
those of the FAA in the USA.
• Use only qualified personnel for installation, use, and maintenance of tripods
and towers, and any attachments to tripods and towers. The use of licensed
and qualified contractors is highly recommended.
• Read all applicable instructions carefully and understand procedures
thoroughly before beginning work.
• Wear a hardhat and eye protection, and take other appropriate safety
precautions while working on or around tripods and towers.
• Do not climb tripods or towers at any time, and prohibit climbing by other
persons. Take reasonable precautions to secure tripod and tower sites from
trespassers.
• Use only manufacturer recommended parts, materials, and tools.
Utility and Electrical
• You can be killed or sustain serious bodily injury if the tripod, tower, or
attachments you are installing, constructing, using, or maintaining, or a tool,
stake, or anchor, come in contact with overhead or underground utility lines.
• Maintain a distance of at least one-and-one-half times structure height, or 20
feet, or the distance required by applicable law, whichever is greater, between
overhead utility lines and the structure (tripod, tower, attachments, or tools).
7
• Prior to performing site or installation work, inform all utility companies and
have all underground utilities marked.
• Comply with all electrical codes. Electrical equipment and related grounding
devices should be installed by a licensed and qualified electrician.
Elevated Work and Weather
• Exercise extreme caution when performing elevated work.
• Use appropriate equipment and safety practices.
• During installation and maintenance, keep tower and tripod sites clear of un-
trained or non-essential personnel. Take precautions to prevent elevated tools
and objects from dropping.
• Do not perform any work in inclement weather, including wind, rain, snow,
lightning, etc.
Maintenance
• Periodically (at least yearly) check for wear and damage, including corrosion,
stress cracks, frayed cables, loose cable clamps, cable tightness, etc. and take
necessary corrective actions.
• Periodically (at least yearly) check electrical ground connections.
WHILE EVERY ATTEMPT IS MADE TO EMBODY THE HIGHEST
DEGREE OF SAFETY IN ALL CAMPBELL SCIENTIFIC PRODUCTS, THE
CUSTOMER ASSUMES ALL RISK FROM ANY INJURY RESULTING
FROM IMPROPER INSTALLATION, USE, OR MAINTENANCE OF
TRIPODS, TOWERS, OR ATTACHMENTS TO TRIPODS AND TOWERS
SUCH AS SENSORS, CROSSARMS, ENCLOSURES, ANTENNAS, ETC.
8
Table of Contents
1. Introduction ................................................................ 33
1.1 HELLO .................................................................................................. 33
1.2 Typography ............................................................................................ 33
1.3 Capturing CRBasic Code ....................................................................... 34
1.4 Release Notes ......................................................................................... 34
2. Cautionary Statements .............................................. 37
3. Initial Inspection ........................................................ 39
4. System Quickstart ..................................................... 41
4.1 Data-Acquisition Systems — Quickstart ............................................... 41
4.2 Sensors — Quickstart ............................................................................ 42
4.3 Datalogger — Quickstart ....................................................................... 43
4.3.1.1 Wiring Panel — Quickstart ................................................. 43
4.4 Power Supplies — Quickstart ................................................................ 44
4.4.1 Internal Battery — Quickstart ...................................................... 45
4.5 Data Retrieval and Telecommunications — Quickstart ........................ 45
4.6 Datalogger Support Software — Quickstart........................................... 46
4.7 Tutorial: Measuring a Thermocouple ..................................................... 46
4.7.1 What You Will Need .................................................................... 46
4.7.2 Hardware Setup ............................................................................ 47
4.7.2.1 External Power Supply ........................................................ 47
4.7.3 PC200W Software Setup .............................................................. 48
4.7.4 Write CRBasic Program with Short Cut ....................................... 50
4.7.4.1 Procedure: (Short Cut Steps 1 to 5) ..................................... 50
4.7.4.2 Procedure: (Short Cut Steps 6 to 7) ..................................... 51
4.7.4.3 Procedure: (Short Cut Step 8) ............................................. 52
4.7.4.4 Procedure: (Short Cut Steps 9 to 12) ................................... 53
4.7.4.5 Procedure: (Short Cut Steps 13 to 14) ................................. 54
4.7.5 Send Program and Collect Data .................................................... 55
4.7.5.1 Procedure: (PC200W Step 1) .............................................. 55
4.7.5.2 Procedure: (PC200W Steps 2 to 4) ..................................... 55
4.7.5.3 Procedure: (PC200W Step 5) .............................................. 56
4.7.5.4 Procedure: (PC200W Step 6) .............................................. 57
4.7.5.5 Procedure: (PC200W Steps 7 to 10) ................................... 58
4.7.5.6 Procedure: (PC200W Steps 11 to 12) ................................. 59
4.7.5.7 Procedure: (PC200W Steps 13 to 14) ................................. 59
5. System Overview ....................................................... 61
5.1 Measurements — Overview ................................................................... 62
5.1.1 Time Keeping — Overview .......................................................... 63
5.1.2 Analog Measurements — Overview ............................................. 63
5.1.2.1 Voltage Measurements — Overview .................................. 63
5.1.2.1.1 Single-Ended Measurements — Overview................ 65
5.1.2.1.2 Differential Measurements — Overview ................... 66
5.1.2.2 Current Measurements — Overview ................................... 66
5.1.2.3 Resistance Measurements — Overview .............................. 66
9
Table of Contents
5.1.2.3.1 Voltage Excitation ..................................................... 67
5.1.2.4 Strain Measurements — Overview ..................................... 68
5.1.3 Pulse Measurements — Overview ................................................ 68
5.1.3.1 Pulses Measured .................................................................. 69
5.1.3.2 Pulse-Input Channels .......................................................... 69
5.1.3.3 Pulse Sensor Wiring ............................................................ 70
5.1.4 Period Averaging — Overview .................................................... 70
5.1.5 Vibrating-Wire Measurements — Overview ................................ 71
5.1.6 Reading Smart Sensors — Overview ........................................... 72
5.1.6.1 SDI-12 Sensor Support — Overview .................................. 72
5.1.6.2 RS-232 — Overview ........................................................... 72
5.1.7 Field Calibration — Overview ..................................................... 73
5.1.8 Cabling Effects — Overview ........................................................ 73
5.1.9 Synchronizing Measurements — Overview ................................. 74
5.2 PLC Control — Overview ...................................................................... 74
5.3 Datalogger — Overview ........................................................................ 75
5.3.1 Time Keeping — Overview .......................................................... 75
5.3.2 Wiring Panel — Overview ........................................................... 75
5.3.2.1 Switched Voltage Output — Overview ............................... 78
5.3.2.2 Voltage Excitation — Overview ........................................ 79
5.3.2.3 Grounding Terminals .......................................................... 79
5.3.2.4 Power Terminals ................................................................. 80
5.3.2.4.1 Power In ..................................................................... 80
5.3.2.4.2 Power Out Terminals ................................................. 80
5.3.2.5 Communication Ports .......................................................... 81
5.3.2.5.1 CS I/O Port ................................................................ 81
5.3.2.5.2 RS-232 Ports .............................................................. 81
5.3.2.5.3 SDI-12 Ports .............................................................. 82
5.3.2.5.4 SDM Port ................................................................... 82
5.3.2.5.5 CPI Port ..................................................................... 82
5.3.2.5.6 Ethernet Port .............................................................. 82
5.3.3 Keyboard Display — Overview ................................................... 82
5.3.3.1 Integrated Keyboard Display .............................................. 83
5.3.3.2 Character Set ....................................................................... 83
5.3.3.3 Custom Menus — Overview ............................................... 83
5.3.4 Measurement and Control Peripherals — Overview .................... 84
5.3.5 Power Supplies — Overview ........................................................ 85
5.3.6 CR800 Configuration — Overview .............................................. 85
5.3.7 CRBasic Programming — Overview ............................................ 86
5.3.8 Memory — Overview ................................................................... 86
5.3.9 Data Retrieval and Telecommunications — Overview ................ 87
5.3.9.1 PakBus® Communications — Overview ............................ 88
5.3.9.2 Telecommunications ........................................................... 88
5.3.9.3 Mass-Storage Device .......................................................... 88
5.3.9.4 Data-File Formats in CR800 Memory ................................. 89
5.3.9.5 Data Format on Computer ................................................... 89
5.3.10 Alternate Telecommunications — Overview ............................. 89
5.3.10.1 Modbus .............................................................................. 89
5.3.10.2 DNP3 — Overview ........................................................... 90
5.3.10.3 TCP/IP — Overview ......................................................... 90
5.3.11 Security — Overview ................................................................. 90
5.3.12 Maintenance — Overview .......................................................... 92
10
Table of Contents
5.3.12.1 Protection from Moisture — Overview ............................ 92
5.3.12.2 Protection from Voltage Transients .................................. 92
5.3.12.3 Factory Calibration ........................................................... 92
5.3.12.4 Internal Battery — Details ................................................ 93
5.4 Datalogger Support Software — Overview ........................................... 93
6. Specifications ............................................................ 95
7. Installation .................................................................. 97
7.1 Protection from Moisture — Details ...................................................... 97
7.2 Temperature Range ................................................................................ 97
7.3 Enclosures .............................................................................................. 97
7.4 Power Supplies — Details ..................................................................... 98
7.4.1 CR800 Power Requirement .......................................................... 99
7.4.2 Calculating Power Consumption .................................................. 99
7.4.3 Power Sources .............................................................................. 99
7.4.3.1 Vehicle Power Connections .............................................. 100
7.4.4 Uninterruptable Power Supply (UPS) ......................................... 100
7.4.5 External Power Supply Installation ............................................ 100
7.5 Switched Voltage Output — Details .................................................... 101
7.5.1 Switched-Voltage Excitation ...................................................... 102
7.5.2 Continuous Regulated (5V Terminal) ......................................... 102
7.5.3 Continuous Unregulated Voltage (12V Terminal) ..................... 103
7.5.4 Switched Unregulated Voltage (SW12 Terminal) ...................... 103
7.6 Grounding ............................................................................................ 103
7.6.1 ESD Protection ........................................................................... 103
7.6.1.1 Lightning Protection ......................................................... 105
7.6.2 Single-Ended Measurement Reference ....................................... 106
7.6.3 Ground-Potential Differences ..................................................... 107
7.6.3.1 Soil Temperature Thermocouple ....................................... 107
7.6.3.2 External Signal Conditioner .............................................. 107
7.6.4 Ground Looping in Ionic Measurements .................................... 107
7.7 CR800 Configuration — Details .......................................................... 109
7.7.1 Configuration Tools .................................................................... 109
7.7.1.1 Configuration with DevConfig ......................................... 109
7.7.1.2 Network Planner ............................................................... 110
7.7.1.2.1 Overview ................................................................. 111
7.7.1.2.2 Basics ...................................................................... 112
7.7.1.3 Configuration with Status/Settings/DTI ............................ 112
7.7.1.4 Configuration with Executable CPU: Files ....................... 113
7.7.1.4.1 Default.cr8 File ........................................................ 114
7.7.1.4.2 Executable File Run Priorities ................................. 114
7.7.2 CR800 Configuration — Details ................................................ 115
7.7.2.1 Updating the Operating System (OS) ................................ 115
7.7.2.1.1 OS Update with DevConfig Send OS Tab ............... 116
7.7.2.1.2 OS Update with DevConfig ..................................... 117
7.7.2.1.3 OS Update with DevConfig ..................................... 117
7.7.2.1.4 OS Update with DevConfig ..................................... 119
7.7.2.2 Restoring Factory Defaults ............................................... 120
7.7.2.3 Saving and Restoring Configurations ............................... 120
7.8 CRBasic Programming — Details ....................................................... 120
7.8.1 Program Structure ....................................................................... 121
11
Table of Contents
7.8.2 Writing and Editing Programs .................................................... 123
7.8.2.1 Short Cut Programming Wizard ........................................ 123
7.8.2.2 CRBasic Editor ................................................................. 123
7.8.2.2.1 Inserting Comments into Program ........................... 124
7.8.2.2.2 Conserving Program Memory ................................. 124
7.8.3 Sending CRBasic Programs ........................................................ 124
7.8.3.1 Preserving Data at Program Send ...................................... 125
7.8.4 Programming Syntax .................................................................. 126
7.8.4.1 Program Statements .......................................................... 126
7.8.4.1.1 Multiple Statements on One Line ............................ 126
7.8.4.1.2 One Statement on Multiple Lines ............................ 126
7.8.4.2 Single-Statement Declarations .......................................... 127
7.8.4.3 Declaring Variables ........................................................... 127
7.8.4.3.1 Declaring Data Types .............................................. 128
7.8.4.3.2 Dimensioning Numeric Variables ........................... 132
7.8.4.3.3 Dimensioning String Variables ................................ 132
7.8.4.3.4 Declaring Flag Variables ......................................... 133
7.8.4.4 Declaring Arrays ............................................................... 133
7.8.4.5 Declaring Local and Global Variables .............................. 134
7.8.4.6 Initializing Variables ......................................................... 135
7.8.4.7 Declaring Constants .......................................................... 135
7.8.4.7.1 Predefined Constants ............................................... 136
7.8.4.8 Declaring Aliases and Units .............................................. 136
7.8.4.9 Numerical Formats ............................................................ 137
7.8.4.10 Multi-Statement Declarations ......................................... 138
7.8.4.10.1 Declaring Data Tables ........................................... 138
7.8.4.10.2 Declaring Subroutines ........................................... 145
7.8.4.10.3 'Include' File .......................................................... 145
7.8.4.10.4 Declaring Subroutines ........................................... 149
7.8.4.10.5 Declaring Incidental Sequences ............................. 149
7.8.4.11 Execution and Task Priority ............................................ 149
7.8.4.11.1 Pipeline Mode ........................................................ 150
7.8.4.11.2 Sequential Mode .................................................... 151
7.8.4.12 Execution Timing ............................................................ 152
7.8.4.12.1 Scan() / NextScan .................................................. 153
7.8.4.12.2 SlowSequence / EndSequence ............................... 153
7.8.4.12.3 SubScan() / NextSubScan ...................................... 154
7.8.4.12.4 Scan Priorities in Sequential Mode ........................ 154
7.8.4.13 Programming Instructions ............................................... 156
7.8.4.13.1 Measurement and Data-Storage Processing ........... 156
7.8.4.13.2 Argument Types .................................................... 157
7.8.4.13.3 Names in Arguments ............................................. 157
7.8.4.14 Expressions in Arguments ............................................... 158
7.8.4.15 Programming Expression Types ..................................... 158
7.8.4.15.1 Floating-Point Arithmetic ...................................... 159
7.8.4.15.2 Mathematical Operations ....................................... 159
7.8.4.15.3 Expressions with Numeric Data Types .................. 160
7.8.4.15.4 Logical Expressions ............................................... 162
7.8.4.15.5 String Expressions ................................................. 164
7.8.4.16 Programming Access to Data Tables .............................. 165
7.8.4.17 Programming to Use Signatures ...................................... 167
7.9 Programming Resource Library ........................................................... 167
12
Table of Contents
7.9.1 Advanced Programming Techniques .......................................... 167
7.9.1.1 Capturing Events ............................................................... 167
7.9.1.2 Conditional Output ............................................................ 168
7.9.1.3 Groundwater Pump Test ................................................... 169
7.9.1.4 Miscellaneous Features ..................................................... 172
7.9.1.5 PulseCountReset Instruction ............................................. 175
7.9.1.6 Scaling Array .................................................................... 175
7.9.1.7 Signatures: Example Programs ......................................... 176
7.9.1.7.1 Text Signature ......................................................... 176
7.9.1.7.2 Binary Runtime Signature ....................................... 176
7.9.1.7.3 Executable Code Signatures .................................... 176
7.9.1.8 Use of Multiple Scans ....................................................... 177
7.9.2 Compiling: Conditional Code ..................................................... 178
7.9.3 Displaying Data: Custom Menus — Details ............................... 180
7.9.4 Data Input: Loading Large Data Sets ......................................... 186
7.9.5 Data Input: Array-Assigned Expression ..................................... 187
7.9.6 Data Output: Calculating Running Average ............................... 190
7.9.7 Data Output: Triggers and Omitting Samples ............................ 193
7.9.8 Data Output: Two Intervals in One Data Table .......................... 195
7.9.9 Data Output: Using Data Type Bool8 ......................................... 196
7.9.10 Data Output: Using Data Type NSEC ...................................... 200
7.9.10.1 NSEC Options ................................................................. 200
7.9.11 Field Calibration — Details ...................................................... 203
7.9.11.1 Field Calibration CAL Files ............................................ 204
7.9.11.2 Field Calibration Programming ....................................... 204
7.9.11.3 Field Calibration Wizard Overview ................................ 205
7.9.11.4 Field Calibration Numeric Monitor Procedures .............. 205
7.9.11.4.1 One-Point Calibrations (Zero or Offset) ................ 206
7.9.11.4.2 Two-Point Calibrations (gain and offset) .............. 206
7.9.11.4.3 Zero Basis Point Calibration .................................. 207
7.9.11.5 Field Calibration Examples ............................................. 207
7.9.11.5.1 FieldCal() Zero or Tare (Opt 0) Example .............. 207
7.9.11.5.2 FieldCal() Offset (Opt 1) Example ........................ 209
7.9.11.5.3 FieldCal() Slope and Offset (Opt 2) Example ....... 211
7.9.11.5.4 FieldCal() Slope (Opt 3) Example ......................... 214
7.9.11.5.5 FieldCal() Zero Basis (Opt 4) Example --
8 10 30 .............................................................................. 216
7.9.11.6 Field Calibration Strain Examples .................................. 216
7.9.11.6.1 Field Calibration Strain Examples ......................... 217
7.9.11.6.2 Field Calibration Strain Examples ......................... 217
7.9.11.6.3 FieldCalStrain() Quarter-Bridge Shunt Example... 219
7.9.11.6.4 FieldCalStrain() Quarter-Bridge Zero ................... 220
7.9.12 Measurement: Excite, Delay, Measure ..................................... 221
7.9.13 Measurement: Faster Analog Rates .......................................... 221
7.9.13.1 Measurements from 1 to 100 Hz ..................................... 223
7.9.13.2 Measurement Rate: 101 to 600 Hz .................................. 224
7.9.13.2.1 Measurements from 101 to 600 Hz 2 .................... 224
7.9.13.3 Measurement Rate: 601 to 2000 Hz ................................ 225
7.9.14 Measurement: PRT ................................................................... 227
7.9.14.1 Measuring PT100s (100 Ω PRTs) ................................... 227
7.9.14.1.1 Self-Heating and Resolution .................................. 227
7.9.14.1.2 PRT Calculation Standards .................................... 227
7.9.14.2 PT100 in Four-Wire Half-Bridge .................................... 231
13
Table of Contents
7.9.14.2.1 Calculating the Excitation Voltage ........................ 231
7.9.14.2.2 Calculating the BrHalf4W() Multiplier ................. 232
7.9.14.2.3 Choosing Rf ........................................................... 232
7.9.14.3 PT100 in Three-Wire Half Bridge ................................... 233
7.9.14.4 PT100 in Four-Wire Full-Bridge ..................................... 235
7.9.15 PLC Control — Details............................................................. 237
7.9.16 Serial I/O: Capturing Serial Data .............................................. 238
7.9.16.1 Introduction ..................................................................... 238
7.9.16.2 I/O Ports .......................................................................... 239
7.9.16.3 Protocols .......................................................................... 240
7.9.16.4 Glossary of Serial I/O Terms .......................................... 240
7.9.16.5 Serial I/O CRBasic Programming ................................... 242
7.9.16.5.1 Serial I/O Programming Basics ............................. 242
7.9.16.5.2 Serial I/O Input Programming Basics .................... 244
7.9.16.5.3 Serial I/O Output Programming Basics ................. 245
7.9.16.5.4 Serial I/O Translating Bytes .................................. 245
7.9.16.5.5 Serial I/O Memory Considerations ........................ 246
7.9.16.5.6 Demonstration Program ......................................... 247
7.9.16.6 Serial I/O Application Testing ........................................ 248
7.9.16.6.1 Configure HyperTerminal ..................................... 248
7.9.16.6.2 Create Send-Text File ............................................ 251
7.9.16.6.3 Create Text-Capture File ....................................... 251
7.9.16.6.4 Serial I/O Example II ............................................. 251
7.9.16.7 Serial I/O Q & A ............................................................. 257
7.9.17 Serial I/O: SDI-12 Sensor Support — Programming
Resource ........................................................................................ 259
7.9.17.1 SDI-12 Transparent Mode ............................................... 260
7.9.17.1.1 SDI-12 Transparent Mode Commands .................. 261
7.9.17.2 SDI-12 Recorder Mode ................................................... 265
7.9.17.3 SDI-12 Sensor Mode ....................................................... 272
7.9.17.4 SDI-12 Power Considerations ......................................... 274
7.9.18 String Operations ...................................................................... 275
7.9.18.1 String Operators .............................................................. 275
7.9.18.2 String Concatenation ....................................................... 276
7.9.18.3 String NULL Character ................................................... 278
7.9.18.4 Inserting String Characters .............................................. 279
7.9.18.5 Extracting String Characters ........................................... 279
7.9.18.6 String Use of ASCII / ANSII Codes ............................... 279
7.9.18.7 Formatting Strings ........................................................... 280
7.9.18.8 Formatting String Hexadecimal Variables ...................... 280
7.9.19 Subroutines ............................................................................... 281
7.9.20 TCP/IP — Details ..................................................................... 282
7.9.20.1 PakBus Over TCP/IP and Callback ................................. 283
7.9.20.2 Default HTTP Web Server .............................................. 283
7.9.20.3 Custom HTTP Web Server ............................................. 284
7.9.20.4 FTP Server ...................................................................... 287
7.9.20.5 FTP Client ....................................................................... 287
7.9.20.6 Telnet .............................................................................. 287
7.9.20.7 SNMP .............................................................................. 287
7.9.20.8 Ping (IP) .......................................................................... 288
7.9.20.9 Micro-Serial Server ......................................................... 288
7.9.20.10 Modbus TCP/IP ............................................................. 288
14
Table of Contents
7.9.20.11 DHCP ............................................................................ 288
7.9.20.12 DNS .............................................................................. 288
7.9.20.13 SMTP ............................................................................ 288
7.9.21 Wind Vector ............................................................................. 288
7.9.21.1 OutputOpt Parameters ..................................................... 289
7.9.21.2 Wind Vector Processing .................................................. 289
7.9.21.2.1 Measured Raw Data .............................................. 290
7.9.21.2.2 Calculations ........................................................... 291
8. Operation .................................................................. 295
8.1 Measurements — Details ..................................................................... 295
8.1.1 Time Keeping — Details ............................................................ 295
8.1.1.1 Time Stamps ..................................................................... 295
8.1.2 Analog Measurements — Details ............................................... 297
8.1.2.1 Voltage Measurements — Details..................................... 297
8.1.2.1.1 Voltage Measurement Mechanics ............................ 297
8.1.2.1.2 Voltage Measurement Limitations .......................... 300
8.1.2.1.3 Voltage Measurement Quality ................................. 303
8.1.2.2 Thermocouple Measurements —- Details ........................ 319
8.1.2.3 Current Measurements — Details ..................................... 319
8.1.2.4 Resistance Measurements — Details ................................ 319
8.1.2.4.1 Ac Excitation ........................................................... 323
8.1.2.4.2 Resistance Measurements — Accuracy ................... 323
8.1.2.5 Strain Measurements — Details ........................................ 324
8.1.2.6 Auto-Calibration — Details .............................................. 326
8.1.2.6.1 Auto Calibration Process ......................................... 326
8.1.3 Pulse Measurements — Details .................................................. 331
8.1.3.1 Pulse Measurement Terminals .......................................... 333
8.1.3.2 Low-Level Ac Measurements — Details .......................... 334
8.1.3.3 High-Frequency Measurements ........................................ 334
8.1.3.3.1 Frequency Resolution .............................................. 335
8.1.3.3.2 Frequency Measurement Q & A .............................. 336
8.1.3.4 Switch-Closure and Open-Collector Measurements ......... 336
8.1.3.5 Edge Timing ...................................................................... 337
8.1.3.6 Edge Counting .................................................................. 337
8.1.3.7 Pulse Measurement Tips ................................................... 338
8.1.3.7.1 TimerIO() NAN Conditions .................................... 340
8.1.3.7.2 Input Filters and Signal Attenuation ........................ 340
8.1.4 Period Averaging — Details ....................................................... 341
8.1.5 Vibrating-Wire Measurements — Details .................................. 343
8.1.5.1 Time-Domain Measurement ............................................. 343
8.1.6 Reading Smart Sensors — Details .............................................. 344
8.1.6.1 RS-232 and TTL ............................................................... 344
8.1.6.2 SDI-12 Sensor Support — Details .................................... 344
8.1.7 Field Calibration — Overview ................................................... 345
8.1.8 Cabling Effects ........................................................................... 345
8.1.8.1 Analog-Sensor Cables ....................................................... 345
8.1.8.2 Pulse Sensors .................................................................... 345
8.1.8.3 RS-232 Sensors ................................................................. 346
8.1.8.4 SDI-12 Sensors ................................................................. 346
8.1.9 Synchronizing Measurements ..................................................... 346
8.2 Measurement and Control Peripherals — Details ................................ 348
15
Table of Contents
8.2.1 Analog-Input Modules ................................................................ 348
8.2.2 Pulse-Input Modules ................................................................... 348
8.2.2.1 Low-Level Ac Input Modules — Overview ..................... 348
8.2.3 Serial I/O Modules — Details .................................................... 348
8.2.4 Terminal-Input Modules ............................................................. 349
8.2.5 Vibrating-Wire Modules ............................................................. 349
8.2.6 Analog-Output Modules ............................................................. 349
8.2.7 PLC Control Modules — Overview ........................................... 349
8.2.7.1 Terminals Configured for Control ..................................... 349
8.2.7.2 Relays and Relay Drivers .................................................. 350
8.2.7.3 Component-Built Relays ................................................... 350
8.3 Memory ................................................................................................ 351
8.3.1 Storage Media ............................................................................. 351
8.3.1.1 Memory Drives — On-Board ........................................... 355
8.3.1.1.1 Data Table SRAM ................................................... 355
8.3.1.1.2 CPU: Drive .............................................................. 355
8.3.1.1.3 USR: Drive .............................................................. 355
8.3.1.1.4 USB: Drive .............................................................. 356
8.3.2 Data-File Formats ....................................................................... 357
8.3.3 Resetting the CR800 ................................................................... 360
8.3.3.1 Full Memory Reset ............................................................ 360
8.3.3.2 Program Send Reset .......................................................... 361
8.3.3.3 Manual Data-Table Reset .................................................. 361
8.3.3.4 Formatting Drives ............................................................. 361
8.3.4 File Management ........................................................................ 361
8.3.4.1 File Attributes ................................................................... 363
8.3.4.2 Files Manager .................................................................... 363
8.3.4.3 Data Preservation .............................................................. 364
8.3.4.4 Powerup.ini File — Details ............................................... 365
8.3.4.4.1 Creating and Editing Powerup.ini ............................ 366
8.3.4.5 File Management Q & A ................................................... 368
8.3.5 File Names .................................................................................. 368
8.3.6 File-System Errors ...................................................................... 368
8.4 Data Retrieval and Telecommunications — Details ............................ 370
8.4.1 Protocols ..................................................................................... 370
8.4.2 Conserving Bandwidth ............................................................... 370
8.4.3 Initiating Telecommunications (Callback).................................. 371
8.5 PakBus® Communications — Details ................................................. 372
8.5.1 PakBus Addresses ....................................................................... 372
8.5.2 Nodes: Leaf Nodes and Routers ................................................. 372
8.5.2.1 Router and Leaf-Node Configuration ................................ 373
8.5.3 Linking PakBus Nodes: Neighbor Discovery ............................. 374
8.5.3.1 Hello-Message................................................................... 375
8.5.3.2 Beacon ............................................................................... 375
8.5.3.3 Hello-Request .................................................................... 375
8.5.3.4 Neighbor Lists ................................................................... 375
8.5.3.5 Adjusting Links ................................................................. 375
8.5.3.6 Maintaining Links ............................................................. 376
8.5.4 PakBus Troubleshooting ............................................................. 376
8.5.4.1 Link Integrity .................................................................... 376
8.5.4.1.1 Automatic Packet-Size Adjustment ......................... 376
8.5.4.2 Ping (PakBus) ................................................................... 377
16
Table of Contents
8.5.4.3 Traffic Flow ...................................................................... 377
8.5.5 LoggerNet Network-Map Configuration .................................... 377
8.5.6 PakBus LAN Example ................................................................ 379
8.5.6.1 LAN Wiring ...................................................................... 379
8.5.6.2 LAN Setup ........................................................................ 380
8.5.6.3 LoggerNet Setup ............................................................... 382
8.5.7 Route Filters ............................................................................... 384
8.5.8 PakBusRoutes ............................................................................. 384
8.5.9 Neighbors ................................................................................... 385
8.5.10 PakBus Encryption ................................................................... 385
8.6 Alternate Telecommunications — Details ........................................... 386
8.6.1 DNP3 — Details ......................................................................... 387
8.6.1.1 DNP3 Introduction ............................................................ 387
8.6.1.2 Programming for DNP3 .................................................... 387
8.6.1.2.1 Declarations (DNP3 Programming) ........................ 387
8.6.1.2.2 CRBasic Instructions (DNP3) ................................. 388
8.6.1.2.3 Programming for DNP3 Data Acquisition............... 389
8.6.2 Modbus — Details ...................................................................... 391
8.6.2.1 Modbus Terminology ........................................................ 391
8.6.2.1.1 Glossary of Modbus Terms ..................................... 392
8.6.2.2 Programming for Modbus ................................................. 392
8.6.2.2.1 Declarations (Modbus Programming) ..................... 392
8.6.2.2.2 CRBasic Instructions (Modbus) .............................. 393
8.6.2.2.3 Addressing (ModbusAddr) ...................................... 393
8.6.2.2.4 Supported Modbus Function Codes ......................... 393
8.6.2.2.5 Reading Inverse-Format Modbus Registers ............ 394
8.6.2.3 Troubleshooting (Modbus) ................................................ 394
8.6.2.4 Modbus over IP ................................................................. 394
8.6.2.5 Modbus Q and A ............................................................... 395
8.6.2.6 Converting Modbus 16-Bit to 32-Bit Longs ..................... 395
8.6.3 TCP/IP — Details ....................................................................... 396
8.6.3.1 PakBus Over TCP/IP and Callback ................................... 396
8.6.3.2 Default HTTP Web Server ................................................ 397
8.6.3.3 Custom HTTP Web Server ............................................... 398
8.6.3.4 FTP Server ........................................................................ 400
8.6.3.5 FTP Client ......................................................................... 400
8.6.3.6 Telnet ................................................................................ 401
8.6.3.7 SNMP ................................................................................ 401
8.6.3.8 Ping (IP) ............................................................................ 401
8.6.3.9 Micro-Serial Server ........................................................... 401
8.6.3.10 Modbus TCP/IP............................................................... 401
8.6.3.11 DHCP .............................................................................. 401
8.6.3.12 DNS ................................................................................ 402
8.6.3.13 SMTP .............................................................................. 402
8.6.3.14 Web API .......................................................................... 402
8.6.3.14.1 Authentication ....................................................... 402
8.6.3.14.2 Command Syntax .................................................. 403
8.6.3.14.3 Time Syntax .......................................................... 405
8.6.3.14.4 Data Management — BrowseSymbols
Command ......................................................................... 405
8.6.3.14.5 Data Management — DataQuery Command ......... 409
8.6.3.14.6 Control — SetValueEx Command ........................ 415
8.6.3.14.7 Clock Functions — ClockSet Command ............... 417
17
Table of Contents
8.6.3.14.8 Clock Functions — ClockCheck Command .......... 419
8.6.3.14.9 File Management — Sending a File to a
Datalogger ........................................................................ 420
8.6.3.14.10 File Management — FileControl Command ....... 422
8.6.3.14.11 File Management — ListFiles Command ............ 424
8.6.3.14.12 File Management — NewestFile Command ........ 428
8.7 Datalogger Support Software — Details .............................................. 429
8.8 Keyboard Display — Details ............................................................... 430
8.8.1 Data Display ............................................................................... 432
8.8.1.1 Real-Time Tables and Graphs ........................................... 433
8.8.1.2 Real-Time Custom ............................................................ 433
8.8.1.3 Final-Memory Tables ........................................................ 435
8.8.2 Run/Stop Program ...................................................................... 436
8.8.3 File Display ................................................................................. 437
8.8.3.1 File: Edit ............................................................................ 437
8.8.4 Ports and Status........................................................................... 438
8.8.5 Settings ....................................................................................... 439
8.8.5.1 Set Time / Date.................................................................. 439
8.8.5.2 PakBus Settings ................................................................. 440
8.8.6 Configure Display ....................................................................... 440
8.9 Program and OS File Compression Q and A ........................................ 440
8.10 Security — Details ............................................................................. 443
8.10.1 Vulnerabilities .......................................................................... 443
8.10.2 Pass-Code Lockout ................................................................... 444
8.10.2.1 Pass-Code Lockout By-Pass ............................................ 445
8.10.3 Passwords ................................................................................. 446
8.10.3.1 .csipasswd ....................................................................... 446
8.10.3.2 PakBus Instructions ......................................................... 446
8.10.3.3 TCP/IP Instructions ......................................................... 446
8.10.3.4 Settings — Passwords ..................................................... 446
8.10.4 File Encryption ......................................................................... 447
8.10.5 Communication Encryption ...................................................... 447
8.10.6 Hiding Files .............................................................................. 447
8.10.7 Signatures ................................................................................. 447
9. Maintenance — Details ............................................ 449
9.1 Protection from Moisture — Details .................................................... 449
9.2 Replacing the Internal Battery .............................................................. 449
9.3 Factory Calibration or Repair Procedure .............................................. 452
10. Troubleshooting ..................................................... 455
10.1 Troubleshooting — Essential Tools ................................................... 455
10.2 Troubleshooting — Basic Procedure .................................................. 455
10.3 Troubleshooting — Error Sources ...................................................... 455
10.4 Troubleshooting — Status Table ........................................................ 457
10.5 Programming ...................................................................................... 457
10.5.1 Program Does Not Compile ...................................................... 457
10.5.2 Program Compiles / Does Not Run Correctly .......................... 457
10.5.3 NAN and ±INF ......................................................................... 458
10.5.3.1 Measurements and NAN ................................................. 458
18
Table of Contents
10.5.3.1.1 Voltage Measurements .......................................... 458
10.5.3.1.2 SDI-12 Measurements ........................................... 458
10.5.3.2 Floating-Point Math, NAN, and ±INF ............................ 458
10.5.3.3 Data Types, NAN, and ±INF .......................................... 459
10.5.3.4 Output Processing and NAN ........................................... 460
10.5.4 Status Table as Debug Resource ............................................... 461
10.5.4.1 CompileResults ............................................................... 461
10.5.4.2 SkippedScan .................................................................... 463
10.5.4.3 SkippedSlowScan ............................................................ 463
10.5.4.4 SkippedRecord ................................................................ 464
10.5.4.5 ProgErrors ....................................................................... 464
10.5.4.6 MemoryFree .................................................................... 464
10.5.4.7 VarOutOfBounds ............................................................ 464
10.5.4.8 Watchdog Errors ............................................................. 464
10.5.4.8.1 Status Table WatchdogErrors ................................ 465
10.5.4.8.2 Watchdoginfo.txt File ............................................ 465
10.6 Troubleshooting — Operating Systems ............................................. 466
10.7 Troubleshooting — Auto-Calibration Errors ..................................... 466
10.8 Communications ................................................................................ 466
10.8.1 RS-232 ...................................................................................... 466
10.8.2 Communicating with Multiple PCs .......................................... 467
10.8.3 Comms Memory Errors ............................................................ 467
10.8.3.1 CommsMemFree(1) ........................................................ 467
10.8.3.2 CommsMemFree(2) ........................................................ 468
10.8.3.3 CommsMemFree(3) ........................................................ 469
10.9 Troubleshooting — Power Supplies ................................................... 469
10.9.1 Troubleshooting Power Supplies — Overview ........................ 470
10.9.2 Troubleshooting Power Supplies — Examples -- 8 10 30 ........ 470
10.9.3 Troubleshooting Power Supplies — Procedures ...................... 470
10.9.3.1 Battery Test ..................................................................... 470
10.9.3.2 Charging Regulator with Solar-Panel Test ...................... 471
10.9.3.3 Charging Regulator with Transformer Test .................... 473
10.9.3.4 Adjusting Charging Voltage ........................................... 474
10.10 Terminal Mode ................................................................................. 475
10.10.1 Serial Talk Through and Comms Watch ................................ 477
10.11 Logs .................................................................................................. 478
10.12 Troubleshooting — Data Recovery .................................................. 478
11. Glossary ................................................................. 481
11.1 Terms ................................................................................................. 481
11.2 Concepts ............................................................................................. 507
11.2.1 Accuracy, Precision, and Resolution ........................................ 507
12. Attributions ............................................................ 509
Appendices
A. CRBasic Programming Instructions ...................... 511
A.1 Program Declarations .......................................................................... 511
A.1.1 Variable Declarations & Modifiers ............................................ 512
19
Table of Contents
A.1.2 Constant Declarations ................................................................ 513
A.2 Data-Table Declarations ...................................................................... 514
A.2.1 Data-Table Modifiers ................................................................. 514
A.2.2 Data Destinations ....................................................................... 515
A.2.3 Processing for Output to Final-Data Memory ............................ 516
A.2.3.1 Single-Source ................................................................... 516
A.2.3.2 Multiple-Source ................................................................ 518
A.3 Single Execution at Compile ............................................................... 518
A.4 Program Control Instructions .............................................................. 519
A.4.1 Common Program Controls ....................................................... 519
A.4.2 Advanced Program Controls ...................................................... 522
A.5 Measurement Instructions ................................................................... 524
A.5.1 Diagnostics ................................................................................ 524
A.5.2 Voltage ....................................................................................... 525
A.5.3 Thermocouples........................................................................... 525
A.5.4 Resistive-Bridge Measurements ................................................ 525
A.5.5 Excitation ................................................................................... 526
A.5.6 Pulse and Frequency .................................................................. 527
A.5.7 Digital I/O .................................................................................. 527
A.5.7.1 Control.............................................................................. 528
A.5.7.2 Measurement .................................................................... 529
A.5.8 SDI-12 Sensor Suppport — Instructions ................................... 529
A.5.9 Specific Sensors ......................................................................... 529
A.5.9.1 Wireless Sensor Network ................................................. 532
A.5.10 Peripheral Device Support ....................................................... 532
A.6 PLC Control — Instructions ................................................................ 536
A.7 Processing and Math Instructions ........................................................ 537
A.7.1 Mathematical Operators ............................................................. 537
A.7.2 Arithmetic Operators ................................................................. 537
A.7.3 Bitwise Operations ..................................................................... 537
A.7.4 Compound-Assignment Operators ............................................. 539
A.7.5 Logical Operators ...................................................................... 539
A.7.6 Trigonometric Functions ............................................................ 540
A.7.6.1 Intrinsic Trigonometric Functions .................................... 540
A.7.6.2 Derived Trigonometric Functions .................................... 541
A.7.7 Arithmetic Functions ................................................................. 542
A.7.8 Integrated Processing ................................................................. 544
A.7.9 Spatial Processing ...................................................................... 545
A.7.10 Other Functions ........................................................................ 546
A.7.10.1 Histograms ..................................................................... 547
A.8 String Functions .................................................................................. 548
A.8.1 String Operations ....................................................................... 548
A.8.2 String Commands ...................................................................... 549
A.9 Time Keeping — Instructions ............................................................. 552
A.10 Voice-Modem Instructions ................................................................ 554
A.11 Custom Menus — Instructions .......................................................... 555
A.12 Serial Input / Output .......................................................................... 556
A.13 Peer-to-Peer PakBus® Communications ........................................... 558
A.14 Variable Management ....................................................................... 562
A.15 File Management ............................................................................... 563
A.16 Data-Table Access and Management ................................................ 565
A.17 TCP/IP — Instructions ...................................................................... 567
20
/