04.01.2015 Views

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

CR1000 Manual - Campbell Scientific

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table of Contents<br />

7.7.3.4 Single-Line Declarations.................................................... 115<br />

7.7.3.4.1 Variables................................................................... 115<br />

7.7.3.4.2 Constants .................................................................. 122<br />

7.7.3.4.3 Alias and Unit Declarations...................................... 124<br />

7.7.3.5 Declared Sequences ........................................................... 125<br />

7.7.3.5.1 Data Tables............................................................... 125<br />

7.7.3.5.2 Subroutines............................................................... 132<br />

7.7.3.5.3 Incidental Sequences ................................................ 132<br />

7.7.3.6 Execution and Task Priority............................................... 132<br />

7.7.3.6.1 Pipeline Mode........................................................... 133<br />

7.7.3.6.2 Sequential Mode....................................................... 134<br />

7.7.3.7 Execution Timing............................................................... 135<br />

7.7.3.7.1 Scan() / NextScan ..................................................... 136<br />

7.7.3.7.2 SlowSequence / EndSequence.................................. 137<br />

7.7.3.7.3 SubScan() / NextSubScan......................................... 137<br />

7.7.3.7.4 Scan Priorities in Sequential Mode........................... 137<br />

7.7.3.8 Instructions......................................................................... 139<br />

7.7.3.8.1 Measurement and Data-Storage Processing.............. 139<br />

7.7.3.8.2 Argument Types ....................................................... 140<br />

7.7.3.8.3 Names in Arguments ................................................ 140<br />

7.7.3.8.4 Expressions in Arguments ........................................ 141<br />

7.7.3.8.5 Arrays of Multipliers and Offsets ............................. 141<br />

7.7.3.9 Expressions ........................................................................ 142<br />

7.7.3.9.1 Floating-Point Arithmetic......................................... 142<br />

7.7.3.9.2 Mathematical Operations.......................................... 143<br />

7.7.3.9.3 Expressions with Numeric Data Types..................... 143<br />

7.7.3.9.4 Logical Expressions.................................................. 145<br />

7.7.3.9.5 String Expressions .................................................... 147<br />

7.7.3.10 Program Access to Data Tables ....................................... 148<br />

7.7.3.11 System Signatures ............................................................ 150<br />

7.7.4 Tips.............................................................................................. 150<br />

7.7.4.1 Use of Variable Arrays to Conserve Code Space............... 150<br />

7.7.4.2 Use of Move() to Conserve Code Space ............................ 150<br />

7.8 Programming Resource Library ............................................................ 151<br />

7.8.1 Calibration Using FieldCal() and FieldCalStrain()...................... 151<br />

7.8.1.1 CAL Files........................................................................... 151<br />

7.8.1.2 CRBasic Programming....................................................... 151<br />

7.8.1.3 Calibration Wizard Overview ............................................ 152<br />

7.8.1.4 <strong>Manual</strong> Calibration Overview............................................ 152<br />

7.8.1.4.1 Single-Point Calibrations (zero, offset, or zero<br />

basis) ................................................................................ 152<br />

7.8.1.4.2 Two-point Calibrations (multiplier / gain)................ 153<br />

7.8.1.5 FieldCal() Demonstration Programs .................................. 153<br />

7.8.1.5.1 Zero or Tare (Option 0) ............................................ 154<br />

7.8.1.5.2 Offset (Option 1) ...................................................... 155<br />

7.8.1.5.3 Zero Basis (Option 4) ............................................... 157<br />

7.8.1.5.4 Two-Point Slope and Offset (Option 2).................... 159<br />

7.8.1.5.5 Two-Point Slope Only (Option 3) ............................ 161<br />

7.8.1.6 FieldCalStrain() Demonstration Program .......................... 162<br />

7.8.1.6.1 Quarter-Bridge Shunt (Option 13)............................ 165<br />

7.8.1.6.2 Quarter-Bridge Zero (Option 10).............................. 165<br />

7.8.2 Information Services.................................................................... 166<br />

7.8.2.1 PakBus Over TCP/IP and Callback.................................... 167<br />

7.8.2.2 Default HTTP Web Server................................................. 167<br />

7.8.2.3 Custom HTTP Web Server ................................................ 168<br />

7.8.2.4 FTP Server ......................................................................... 171<br />

10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!