Summary of CR510

  • Page 1

    Cr510 datalogger operator's manual revision: 2/03 copyright (c) 1986-2003 campbell scientific, inc..

  • Page 2

    This is a blank page..

  • Page 3

    Warranty and assistance the cr510 datalogger is warranted by campbell scientific, inc. To be free from defects in materials and workmanship under normal use and service for thirty-six (36) months from date of shipment unless specified otherwise. Batteries have no warranty. Campbell scientific, inc.'...

  • Page 4

    This is a blank page..

  • Page 5

    I cr510 measurement and control module table of contents page ov1. Physical description ov1.1 analog inputs ...................................................................................................................... Ov-1 ov1.2 excitation outputs ..............................................

  • Page 6

    Cr510 table of contents ii 2. Internal data storage 2.1 final storage areas, output arrays, and memory pointers ................................................... 2-1 2.2 data output format and range limits .................................................................................. 2-3 2.3 d...

  • Page 7

    Cr510 table of contents iii 7.8 100 ohm prt in 4 wire full bridge ........................................................................................7-7 7.9 pressure transducer - 4 wire full bridge ..............................................................................7-8 7.10 lysimeter ...

  • Page 8

    Cr510 table of contents iv appendices a. Glossary .............................................................................................................................. A-1 b. Additional telecommunications information b.1 telecommunications command with binary responses.........................

  • Page 9

    V features of cr510 the cr510 is programmed in the same way as the cr500 and executes existing cr500 programs. The cr510 has a clock and memory backed by an internal battery. This keeps the time and data while the cr510 is not connected to external power. General power up when primary power is appli...

  • Page 10

    This is a blank page..

  • Page 11

    Vii selected operating details 1. Storing data - data are stored in final storage only by output processing instructions and only when the output flag (flag 0) is set. (sections ov4.1.1 and 3.7.1) 2. Storing date and time - date and time are stored with the data in final storage only if the real tim...

  • Page 12

    Viii cautionary notes 1. Damage will occur to the analog input circuitry if voltages in excess of ±16 v are applied for a sustained period. Voltages in excess of ±5 v will cause errors and possible overranging on other analog input channels. 2. When using the cr510 with the ps12la, remember that the...

  • Page 13

    Ov-1 cr510 datalogger overview the cr510 is a fully programmable datalogger/controller with non-volatile memory and a battery backed clock in a small, rugged module. The combination of reliability, versatility, and telecommunications support make it a favorite choice for networks and single logger a...

  • Page 14

    Cr510 overview ov-2 ov1.2 excitation outputs the terminals labeled e1, and e2 are precision, switched excitation outputs used to supply programmable excitation voltages for resistive bridge measurements. Dc or ac excitation voltages between -2500 mv and +2500 mv are user programmable (section 9). Ov...

  • Page 15

    Cr510 overview ov-3 time when power is disconnected. The clock and static random access memory (sram) are powered by an internal lithium battery. Ov2. Memory and programming concepts ov2.1 internal memory the standard cr510 has 128 k of flash electrically erasable programmable read only memory (eepr...

  • Page 16

    Cr510 overview ov-4 figure ov2.1-1. Cr510 memory system memory (4096 bytes) active program (default 2048 bytes) input storage (default 28 locations, 112 bytes) intermediate storage (default 64 locations, 256 bytes) final storage area 1 (default 62,280 locations, 124,560 bytes) final storage area 2 (...

  • Page 17

    Cr510 overview ov-5 ov2.2 program tables, execution interval and output intervals the cr510 must be programmed before it will make any measurements. A program consists of a group of instructions entered into a program table. The program table is given an execution interval which determines how frequ...

  • Page 18

    Cr510 overview ov-6 each instruction in the table requires a finite time to execute. If the execution interval is less than the time required to process the table, an execution interval overrun occurs; the cr510 finishes processing the table and waits for the next execution interval before initiatin...

  • Page 19

    Cr510 overview ov-7 input/output instructions specify the conversion of a sensor signal to a data value and store it in input storage. Programmable entries specify: (1) the measurement type (2) the number of channels to measure (3) the input voltage range (4) the input storage location (5) the senso...

  • Page 20

    Cr510 overview ov-8 ov3. Communicating with cr510 an external device must be connected to the cr510's serial i/o port to communicate with the cr510. This may be either campbell scientific's cr10kd keyboard display or a computer/terminal. The cr10kd is powered by the cr510 and connects directly to th...

  • Page 21

    Cr510 overview ov-9 table ov3.1-2 key description/editing functions key action 0 - 9 key numeric entries into display ∗ enter mode (followed by mode number) a enter/advance b back up c change the sign of a number or index an input location to loop counter d enter the decimal point # clear the rightm...

  • Page 22

    Cr510 overview ov-10 ov4.1 programming sequence in routine applications, the cr510 measures sensor output signals, processes the measurements over some time interval and stores the processed results. A generalized programming sequence is: 1. Enter the execution interval. In most cases, the execution...

  • Page 23

    Cr510 overview ov-11 ov4.3 entering a program programs are entered into the cr510 in one of three ways: 1. Keyed in using the cr10kd keyboard. 2. Loaded from a pre-recorded listing using the ∗ d mode. There are 2 types of storage/input: a. Stored on disk/sent from computer. B. Stored/loaded from sto...

  • Page 24

    Cr510 overview ov-12 there will be a 128 second delay before compiling and running the program. This can be used to edit or change the program before it starts running. To raise the ring line, press any key on the cr10kd keyboard display or call the cr510 with the computer during the power up sequen...

  • Page 25

    Cr510 overview ov-13 wait a few seconds: 01:21.423 the cr510 has read the sensor and stored the result again. The internal temp is now 21.423 o c. The value is updated every 5 seconds when the table is executed. At this point the cr510 is measuring the temperature every 5 seconds and sending the val...

  • Page 26

    Cr510 overview ov-14 ov5.2 editing an existing program when editing an existing program in the cr510, entering a new instruction inserts the instruction; entering a new parameter replaces the previous value. To insert an instruction, enter the program table and advance to the position where the inst...

  • Page 27

    Cr510 overview ov-15 instruction # parameter (loc.:entry) (par.#:entry) description 07: p73 maximize instruction 01:1 one repetition 02:10 output time of daily maximum in hours and minutes 03:2 data source is input storage location 1. 08: p74 minimize instruction 01:1 one repetition 02:10 output the...

  • Page 28

    Cr510 overview ov-16 ov6. Data retrieval options there are several options for data storage and retrieval. These options are covered in detail in sections 2, 4, and 5. Figure ov6.1-1 summarizes the various possible methods. Regardless of the method used, there are three general approaches to retriev...

  • Page 29

    Cr510 overview ov-17 csm1 sm192/716 storage modules rf232 rf base station datalogger md9 multidrop interface rf95 rf modem sc932 interface dc112 phone modem rf100/rf200 transceiver w/ antenna & cable sc32a rs-232 interface srm-6a rad shorthaul modem md9 multidrop interface coaxial cable rf100/rf200 ...

  • Page 30

    Cr510 overview ov-18 ov7. Specifications program execution rate system tasks initiated in sync with real-time up to 64 hz. One measurement with data transfer is possible at this rate without interruption. Analog inputs number of channels: 2 differential or 4 single-ended, individually configured. Ra...

  • Page 31

    1-1 section 1. Functional modes 1.1 datalogger programs - ∗∗∗∗ 1, ∗∗∗∗ 2, ∗∗∗∗ 3, and ∗∗∗∗ 4 modes data acquisition and processing functions are controlled by user-entered instructions contained in program tables. Programming can be separated into 2 tables, each having its own user-entered execution...

  • Page 32

    Section 1. Functional modes 1-2 1.1.2 subroutines table 3 is used to enter subroutines which may be called with program control instructions in tables 1 and 2 or other subroutines. The group of instructions which form a subroutine starts with instruction 85, label subroutine, and ends with instructi...

  • Page 33

    Section 1. Functional modes 1-3 program * table 1 program 01: 0.0 execution interval (seconds) @@0 01: volts (se) (p1) 1: 1 reps 2: 1 ± 2.5 mv slow range 3: 1 se channel 4: 1 loc [ _________ ] 5: 1 mult @@1 6: 0 offset @@2 in the above example, ∗ 4 location 0 is assigned to the program table executi...

  • Page 34

    Section 1. Functional modes 1-4 modes will return to the mode without recompiling. When the ∗ 0 or ∗ b mode is used to compile, all output ports and flags are set low, the timer is reset, and data values contained in input and intermediate storage are reset to zero. When the ∗ 6 mode is used to comp...

  • Page 35

    Section 1. Functional modes 1-5 storage location 20, key in "*6 20 a". The id portion of the display shows the last 2 digits of the location number. If the value stored in the location being monitored is the result of a program instruction, the value on the keyboard/display will be the result of the...

  • Page 36

    Section 1. Functional modes 1-6 memory is then displayed in k bytes. The size of memory can be displayed in the ∗ b mode. Input storage is used to store the results of input/output and processing instructions. The values stored in input locations may be displayed using the ∗ 6 mode (section 1.3). Fi...

  • Page 37

    Section 1. Functional modes 1-7 figure 1.5-1. Cr510 memory system memory (4096 bytes) active program (default 2048 bytes) input storage (default 28 locations, 112 bytes) intermediate storage (default 64 locations, 256 bytes) final storage area 1 (default 62,280 locations, 124,560 bytes) final storag...

  • Page 38

    Section 1. Functional modes 1-8 1.5.2 ∗∗∗∗ a mode the ∗ a mode is used to 1) determine the number of locations allocated to input storage, intermediate storage, final storage area 2, final storage area 1, and program memory; 2) repartition this memory; 3) check the number of bytes remaining in progr...

  • Page 39

    Section 1. Functional modes 1-9 after repartitioning memory, the program must be recompiled. Compiling erases intermediate storage. Compiling with ∗ 0 erases input storage; compiling with ∗ 6 leaves input storage unaltered. If intermediate storage size is too small to accommodate the programs or ins...

  • Page 40

    Section 1. Functional modes 1-10 table 1.6-1. Description of ∗∗∗∗ b mode data keyboard display entry id: data description of data ∗ b 01: xxxxx program memory signature. The value is dependent upon the programming entered and memory allotment. If the program has not been previously compiled, it will...

  • Page 41

    Section 1. Functional modes 1-11 1.7 ∗∗∗∗ c mode -- security the ∗ c mode is used to block access to the user's program information and certain cr510 functions. There are 3 levels of security, each with its own 4 digit password. Setting a password to a non-zero value "locks" the functions secured at...

  • Page 42

    Section 1. Functional modes 1-12 program will be automatically loaded and run when the cr510 is powered up. (if a storage module with a program 8 is connected when the cr510 powers-up, the storage module program 8 will be loaded into the cr510 and become the active program.) the active program can b...

  • Page 43

    Section 1. Functional modes 1-13 table 1.8-5 transferring a program using a storage module key entry display ∗ d 13:00 7na 7n:00 (n is storage module address 1-8) you may now enter one of the following options: 1x save program x to storage module (x = 1-8) 2x load program x from storage module (x = ...

  • Page 44

    Section 1. Functional modes 1-14 this is a blank page..

  • Page 45

    2-1 section 2. Internal data storage 2.1 final storage areas, output arrays, and memory pointers final storage is the memory where final processed data are stored. Final storage data are transferred to your computer or external storage peripheral. The size of final storage is expressed in terms of m...

  • Page 46

    Section 2. Internal data storage 2-2 output processing instructions store data into final storage only when the output flag is set. The string of data stored each time the output flag is set is called an output array. The first data point in the output array is a 3 digit output array id. This id num...

  • Page 47

    Section 2. Internal data storage 2-3 2.2 data output format and range limits data are stored internally in campbell scientific's binary final storage format (appendix b.2). Data may be sent to final storage in either low resolution or high resolution format. 2.2.1 resolution and range limits low res...

  • Page 48

    Section 2. Internal data storage 2-4 another memory location may be entered, followed by the "a" key to jump to the start of the output array equal to or just ahead of the location entered. Whenever a location number is displayed by using the "#" key, the corresponding data point can be displayed by...

  • Page 49

    3-1 section 3. Instruction set basics the instructions used to program the cr510 are divided into four types: input/output (i/o), processing, output processing, and program control. I/o instructions are used to make measurements and store the readings in input locations or to initiate analog or digi...

  • Page 50

    Section 3. Instruction set basics 3-2 loop index, allows the increment step to be changed. See instructions 87 and 90, section 12, for more details. To index an input location (4 digit integer), c or "-" is pressed after keying the value but before entering the parameter. Two minus signs (--) will b...

  • Page 51

    Section 3. Instruction set basics 3-3 the instructions to output the average temperature every 10 minutes are in table 2 which has an execution interval of 10 seconds. The temperature will be measured 600 times in the 10 minute period, but the average will be the result of only 60 of those measureme...

  • Page 52

    Section 3. Instruction set basics 3-4 table 3.7-2. Example of the use of flag 9 1: if time is (p92) 1: 0 minutes (seconds --) into a 2: 10 interval (same units as above) 3: 10 set ouptut flag high (flag 0) 2: if (x !F) (p89) 1: 14 x loc [ wind_spd ] 2: 4 3: 4.5 f 4: 19 set intermed. Proc. Disable fl...

  • Page 53

    Section 3. Instruction set basics 3-5 3.8.1 if then/else comparisons program control instructions can be used for if then/else comparisons. When command 30 (then do) is used with instructions 83 or 88-92, the if instruction is followed immediately by instructions to execute if the comparison is true...

  • Page 54

    Section 3. Instruction set basics 3-6 ;logical or construction example: 11: if (x !F) (p89) 1: 1 x loc [ do_ppm ] 2: 4 3: 3.5 f 4: 30 then do 12: do (p86) 1: 41 set port 1 high 13: else (p94) 14: if (x !F) (p89) 1: 2 x loc [ counter ] 2: 3 >= 3: 10 f 4: 30 then do 15: do (p86) 1: 41 set port 1 high ...

  • Page 55

    Section 3. Instruction set basics 3-7 any number of groups of nested instructions may be used in any of the three programming tables. The number of groups is only restricted by the program memory available. 3.9 instruction memory and execution time each instruction requires program memory and uses v...

  • Page 56

    Section 3. Instruction set basics 3-8.

  • Page 57

    Section 3. Instruction set basics 3-9 table 3.9-2. Processing instruction memory and execution times r = no. Of reps. Input memory prog. Instruction loc. Inter. Loc. Bytes execution time (ms) 30 z=f 1 0 9 1.0 + 0.2 ∗ exponent 31 z=x 1 0 6 0.7 32 z=z+1 1 0 4 0.8 33 z=x+y 1 0 8 1.2 34 z=x+f 1 0 10 1.1...

  • Page 58

    Section 3. Instruction set basics 3-10 table 3.9-3. Output instruction memory and execution times r = no. Of reps. Inter. Mem. Final prog. Execution time (ms) instruction loc. Values 1 bytes flag 0 low flag 0 high 69 wind vector 2+9r (2, 3, or 4)r 12 options 00, 01, 02 4.0 + 17.4r 3.3 + 70.7r option...

  • Page 59

    Section 3. Instruction set basics 3-11 3.10 error codes there are four types of errors flagged by the cr510: compile, run time, editor, and ∗ d mode. Compile errors are errors in programming which are detected once the program is entered and compiled for the first time ( ∗ 0, ∗ 6, or ∗ b mode entere...

  • Page 60

    Section 3. Instruction set basics 3-12 26 compile exit loop without loop 27 compile if case without begin case 30 compile if and/or loop nested too deep 31 run time subroutines nested too deep 32 compile instruction 3 and interrupt subroutine use same port 40 editor instruction does not exist 41 edi...

  • Page 61

    4-1 section 4. External storage peripherals external data storage devices are used to provide a data transfer medium that the user can carry from the test site to the lab and to supplement the internal storage capacity of the cr510, allowing longer periods between visits to the site. The standard da...

  • Page 62

    Section 4. External storage peripherals 4-2 instruction 96 has a single parameter which specifies the peripheral to send output to. Table 4.1-1 lists the output device codes. Table 4.1-1. Output device codes for instruction 96 and ∗∗∗∗ 8 mode code device addressed printer 1y printable ascii 2y comma...

  • Page 63

    Section 4. External storage peripherals 4-3 4.2 manually initiated data output - ∗∗∗∗ 8 mode data transfer to a peripheral device can be manually initiated in the ∗ 8 mode. This process requires that the user have access to the cr510 through a terminal or the cr10kd. The ∗ 8 mode allows the user to ...

  • Page 64

    Section 4. External storage peripherals 4-4 figure 4.3-1. Example of cr510 printable ascii output format 4.3.2 comma separated ascii comma separated ascii strips all ids, leading zeros, unnecessary decimal points and trailing zeros, and plus signs. Data points are separated by commas. Arrays are sep...

  • Page 65

    Section 4. External storage peripherals 4-5 storage module with the lowest address that is not full (fill and stop configuration only) and addresses it. In other words, if a single storage module is connected, and it is not full, address 1 will address that storage module regardless of the address t...

  • Page 66

    Section 4. External storage peripherals 4-6 table 4.5-1. ∗∗∗∗ 9 commands for storage module command display description 1 01: 0000 reset, enter 248 to erase all data and programs. While erasing, the sm checks memory. The number of good chips is then 01: xx displayed (6 for sm192, 22 sm716). 3 03: 01...

  • Page 67

    5-1 section 5. Telecommunications telecommunications is used to retrieve data from final storage directly to a computer/terminal and to program the cr510. Any user communication with the cr510 that makes use of a computer or terminal instead of the cr10kd is through telecommunications. Telecommunica...

  • Page 68

    Section 5. Telecommunications 5-2 4. An illegal character increments a counter and zeros the command buffer, returning a ∗∗∗∗ . 5. Cr to datalogger means "execute". 6. Crlf from datalogger means "executing command". 7. Any character besides a cr sent to the datalogger with a legal command in its buf...

  • Page 69

    Section 5. Telecommunications 5-3 table 5.1-1. Telecommunications commands command description [f.S. Area]a select area/status - if 1 or 2 does not precede the a to select the final storage area, the cr510 will default to area 1. All subsequent commands other than a will address the area selected. D...

  • Page 70

    Section 5. Telecommunications 5-4 3142j toggle flags and set up for k command - used in the monitor mode and with the heads up display. See appendix c for details. K current information - in response to the k command, the cr510 sends datalogger time, user flag status, the data at the input locations...

  • Page 71

    6-1 section 6. 9-pin serial input/output 6.1 pin description all external communication peripherals connect to the cr510 through the 9-pin subminiature d- type socket connector located on the front of the terminal strip (figure 6.1-1). Table 6.1-1 shows the i/o pin configuration, and gives a brief d...

  • Page 72

    Section 6. 9-pin serial input/output 6-2 (me) modem (com200 rf95 sc32a) figure 6.2-1. Hardware enabled and synchronously addressed peripherals 6.2 enabling and addressing peripherals while several peripherals may be connected in parallel to the 9-pin port, the cr510 has only one transmit line (pin 9...

  • Page 73

    Section 6. 9-pin serial input/output 6-3 synchronously addressed peripherals include the cr10kd keyboard display, storage modules, sdc99 synchronous device interface (sdc99), and rf95 rf modem when configured as a synchronous device. The sdc99 interface is used to address peripherals which are norma...

  • Page 74

    Section 6. 9-pin serial input/output 6-4 6.5 modem/terminal peripherals the cr510 considers any device with an asynchronous serial communications port which raises the ring line (and holds it high until the me line is raised) to be a modem peripheral. Modem/terminals include campbell scientific phon...

  • Page 75

    Section 6. 9-pin serial input/output 6-5 state 2 requires all sds to drop the ring line and prepare for addressing. The cr510 then synchronously clocks 8 bits onto txd using clk/hs as a clock. The least significant bit is transmitted first and is always logic high. Each bit transmitted is stable on ...

  • Page 76

    Section 6. 9-pin serial input/output 6-6 table 6.7-1. Sc32a pin description pin = pin number o = signal out of the sc32a to a peripheral i = signal into the sc32a from peripheral 25-pin female port: pin # i/o abbreviation 1 ground 2 i tx 3 o rx 4 i rts (power) 5 o cts 6 o dsr 7 ground 8 o dcd 20 i d...

  • Page 77

    Section 6. 9-pin serial input/output 6-7 figure 6.7-1. Transmitting the ascii character 1 6.7.3 communication protocol/trouble shooting the ascii standard defines an alphabet consisting of 128 different characters where each character corresponds to a number, letter, symbol, or control code. An asci...

  • Page 78

    Section 6. 9-pin serial input/output 6-8 if nothing happens if the cr510 is connected to the sc32a rs232 interface and a modem/terminal, and an " ∗ " is not received after sending carriage returns: 1. Verify that the cr510 has power at the 12v and ground inputs, and that the cables connecting the de...

  • Page 79

    7-1 section 7. Measurement programming examples this section gives some examples of input programming for common sensors used with the cr510. These examples detail only the connections, input, program control, and processing instructions necessary to perform measurements and store the data in engine...

  • Page 80

    Section 7. Measurement programming examples 7-2 cr510 figure 7.2-1. Typical connection for active sensor with external battery ground at the li-6262 is 0.065 v higher than ground at the cr510. The li-6262 can be programmed to output a linear voltage (0 to 100 mv) that is proportional to differential...

  • Page 81

    Section 7. Measurement programming examples 7-3 02: do (p86) 1: 41 set port 1 high 03: excitation with delay (p22) 1: 2 ex channel 2: 0 delay w/ex (units = 0.01 sec) 3: 15 delay after ex (units = 0.01 sec) 4: 0 mv excitation 04: volts (se) (p1) 1: 1 reps 2: 5 2500 mv slow range 3: 2 se channel 4: 2 ...

  • Page 82

    Section 7. Measurement programming examples 7-4 cr510 figure 7.5-1. Wiring diagram for rain gage with long leads 7.5 tipping bucket rain gage with long leads a tipping bucket rain gage is measured with the pulse count instruction configured for switch closure. Counts from long intervals will be used...

  • Page 83

    Section 7. Measurement programming examples 7-5 next solve for v x : v x = i(r 1 +r s +r f ) = 2.21 v if the actual resistances were the nominal values, the cr510 would not over range with v x = 2.2 v. To allow for the tolerances in the actual resistances, it is decided to set v x equal to 2.1 volts...

  • Page 84

    Section 7. Measurement programming examples 7-6 7.7 100 ohm prt in 3 wire half bridge the temperature measurement requirements in this example are the same as in section 7.8. In this case, a three wire half bridge, instruction 7, is used to measure the resistance of the prt. The diagram of the prt c...

  • Page 85

    Section 7. Measurement programming examples 7-7 e1 cr510 h1 l1 ag figure 7.8-1. Full bridge schematic for 100 ohm prt program 01: 3w half bridge (p7) 1: 1 reps 2: 23 ± 25 mv 60 hz rejection range 3: 1 se channel 4: 1 excite all reps w/exchan 1 5: 2100 mv excitation 6: 1 loc [ rs_ro ] 7: 100.93 mult ...

  • Page 86

    Section 7. Measurement programming examples 7-8 even with an excitation voltage (v x ) equal to 2500 mv, v s can be measured on the +2.5 mv scale (40 ° c = 115.8 ohms = -2.006 mv, 60 ° c = 123.6 ohms = 1.714 mv). There is a change of approximately 2 mv from the output at 40 ° c to the output at 51 °...

  • Page 87

    Section 7. Measurement programming examples 7-9 cr510 figure 7.9-1. Wiring diagram for full bridge pressure transducer figure 7.10-1. Lysimeter weighing mechanism 7.10 lysimeter - 6 wire full bridge when a long cable is required between a load cell and the cr510, the resistance of the wire can creat...

  • Page 88

    Section 7. Measurement programming examples 7-10 of the bridge in the load cell is 350 ohms. The voltage drop across the load cell is equal to the voltage at the cr510 multiplied by the ratio of the load cell resistance, r s , to the total resistance, r t , of the circuit. If instruction 6 were used...

  • Page 89

    Section 7. Measurement programming examples 7-11 when the experiment is started, the water content of the soil in the lysimeter is approximately 25% on a volume basis. It is decided to use this as the reference (i.E., 0.25 x 1500 mm = 375 mm). The experiment is started at the beginning of what is ex...

  • Page 90

    Section 7. Measurement programming examples 7-12 cr510 figure 7.11-1. 6 227 gypsum blocks connected to the cr510 program 01: ac half bridge (p5) 1: 4 reps 2: 15 ± 2500 mv fast range 3: 1 se channel 4: 1 ex channel option 5: 2500 mv excitation 6: 1 loc [ h2o_bar_1 ] 7: 1 mult 8: 0 offset 02: br trans...

  • Page 91

    Section 7. Measurement programming examples 7-13 cr510 figure 7.12-1. Nonlinear thermistor probes connected to cr510 program 01: excite-delay (se) (p4) 1: 4 reps 2: 25 ± 2500 mv 60 hz rejection range 3: 1 se channel 4: 1 excite all reps w/exchan 1 5: 10 delay (units 0.01 sec) 6: 2000 mv excitation 7...

  • Page 92

    Section 7. Measurement programming examples 7-14 figure 7.13-1. A vibrating wire sensor the following calculations are based on using a geokon model 4500 vibrating wire sensor. An individual multiplier and offset must be calculated for each sensor used in a system. Multiplier the fundamental equatio...

  • Page 93

    Section 7. Measurement programming examples 7-15 the multiplier, m, is calculated to convert the reading to feet of water. M = 0.0151 (psi/digit) ∗ 2.3067 (ft of water/psi) ∗ -1000 digits/khz 2 = -34.831 ft of water/khz 2 after the probe reaches thermal equilibrium, the initial temperature, t 0 , is...

  • Page 94

    Section 7. Measurement programming examples 7-16 cr510 12 v or 5 v ch e1 figure 7.13-3. Hook up to avw1 program avw1 & cr510 used to measure 1 geokon vibrating wire sensor. * table 1 program 01: 60 execution interval (seconds) 01: excite-delay (se) (p4) 1: 1 reps 2: 15 ± 2500 mv fast range 3: 1 se c...

  • Page 95

    Section 7. Measurement programming examples 7-17 04: z=x+f (p34) 1: 1 x loc [ temp ] 2: -24 f 3: 3 z loc [ temp_comp ] 05: z=x*f (p37) 1: 3 x loc [ temp_comp ] 2: -.0698 f 3: 3 z loc [ temp_comp ] 06: z=x+y (p33) 1: 3 x loc [ temp_comp ] 2: 2 y loc [ pressure ] 3: 2 z loc [ pressure ] 07: if (xf) (p...

  • Page 96

    Section 7. Measurement programming examples 7-18 4h 4l ag g 12v g cr10x h l gnd 4 to 20 ma sensor 100 Ω ± 0.01% curs100 cr510 1h 1l ag figure 7.14-1 wiring diagram for curs100 terminal input module and 4 to 20 ma sensor..

  • Page 97

    8-1 section 8. Processing and program control examples the following examples are intended to illustrate the use of processing and program control instructions, flags, dual final storage, and the capability to direct the results of output processing instructions to input storage. The specific exampl...

  • Page 98

    Section 8. Processing and program control examples 8-2 in the above example, all samples for the average are stored in input locations. This is necessary when an average must be output with each new sample. In most cases, averages are desired less frequently than sampling. For example, it may be nec...

  • Page 99

    Section 8. Processing and program control examples 8-3 02: if time is (p92) 1: 0 minutes (seconds --) into a 2: 15 interval (same units as above) 3: 10 set output flag high 03: set active storage area (p80) 1: 3 input storage area 2: 2 array id or loc [ 15min_tot ] 04: totalize (p72) 1: 1 reps 2: 1 ...

  • Page 100

    Section 8. Processing and program control examples 8-4 program * table 1 program 01: 10.0 execution interval (seconds) 01: pulse (p3) 1: 1 reps 2: 1 pulse input channel 3: 2 switch closure 4: 10 loc [ precip_1 ] 5: .254 mult 6: 0 offset 02: pulse (p3) 1: 1 reps 2: 3 pulse channel 3 3: 2 switch closu...

  • Page 101

    Section 8. Processing and program control examples 8-5 12: end (p95) 13: end (p95) 14: end (p95) input locations 2 0_360_wd 6 0_540_out 10 0_540_wd 8.6 use of 2 final storage areas - saving data prior to event one of the uses of 2 final storage areas is to save a fixed amount of data before and afte...

  • Page 102

    Section 8. Processing and program control examples 8-6 13: if flag/port (p91) 1: 11 do if flag 1 is high 2: 30 then do 14: serial out (p96) 1: 81 all data to other fs area 15: do (p86) 1: 21 set flag 1 low 16: end (p95) 17: else (p94) 18: z=x+f (p34) 1: 2 x loc [ down_cnt ] 2: -1 f 3: 2 z loc [ down...

  • Page 103

    Section 8. Processing and program control examples 8-7 ;loop 2, output every 30 seconds for 20 minutes. ; 05: beginning of loop (p87) 1: 3 delay 2: 40 loop count 06: do (p86) 1: 1 call subroutine 1 07: end (p95) ;loop 3, output every 1 minute for 70 minutes. ; 08: beginning of loop (p87) 1: 6 delay ...

  • Page 104

    Section 8. Processing and program control examples 8-8 this is a blank page..

  • Page 105

    9-1 section 9. Input/output instructions table 9-1. Input voltage ranges and codes range code slow fast 2.72ms 250µs 60 hz 50 hz integ. Integ. Reject reject full scale range resolution* 1 11 21 31 ±2.5mv 0.33 µv 2 12 22 32 ±7.5mv 1. µv 3 13 23 33 ±25 mv 3.33 µv 4 14 24 34 ±250 mv 33.3 µv 5 15 25 35 ...

  • Page 106

    Section 9. Input/output instructions 9-2 volts to above 3.5 volts. The maximum input voltage is +20 volts. A problem, however, arises when the pulse is actually a low frequency signal (below about 10 hz) and the positive voltage excursion exceeds 5.6 vdc. When this happens, the excess voltage is shu...

  • Page 107

    Section 9. Input/output instructions 9-3 every 0.125 seconds, the cr510 processor transfers the values from the 8 (or 16) bit pulse counters into 16 bit accumulators (max count is 65,535) and the counters are hardware reset to zero. The pulses accumulate in these 16 bit accumulators until the progra...

  • Page 108

    Section 9. Input/output instructions 9-4 param. Data number type description 01: 2 repetitions 02: 2 range code (table 9-1) 03: 2 single-ended channel number for first measurement 04: 2 excitation channel number 05: 4 delay in hundredths of a second 06: 4 excitation voltage (millivolts) 07: 4 input ...

  • Page 109

    Section 9. Input/output instructions 9-5 resulting value, which is the ratio of the voltage across the sensor to the voltage across the reference resistor. A 1 before the excitation channel number (1x) causes the channel to be incremented with each repetition. Param. Data number type description 01:...

  • Page 110

    Section 9. Input/output instructions 9-6 param. Data number type description 01: 2 repetitions 02: 2 range code for v 1 (table 9-1) 03: 2 range code for v 2 04: 2 differential channel number for first measurement 05: 2 excitation channel number 06: 4 excitation voltage (millivolts) 07: 4 input locat...

  • Page 111

    Section 9. Input/output instructions 9-7 caution: never excite the 207 probe with dc excitation because the rh chip will be damaged. A 1 before the excitation channel number (1x) causes the channel to be incremented. The maximum rh polynomial error is given here: curve fit error -- range (%rh) error...

  • Page 112

    Section 9. Input/output instructions 9-8 *** 19 move signature into input *** location function this instruction stores the signature of the read only memory (rom) and user program memory (sram) into an input location. The signature is a result of the cr510 prom, the size of sram, and the entries in...

  • Page 113

    Section 9. Input/output instructions 9-9 *** 22 excitation with delay *** function this instruction is used in conjunction with others for measuring a response to a timed excitation using the switched analog outputs. It sets the selected excitation output to a specific value, waits for the specified...

  • Page 114

    Section 9. Input/output instructions 9-10 in table 2, a subsequent instruction in table 1 to read the timer will store the elapsed time since the timer was reset in table 2). Elapsed time is tracked in 0.125 second increments. The maximum interval that can be timed is 8191.875 seconds. The timer is ...

  • Page 115

    Section 9. Input/output instructions 9-11 param. Data number type description 01: 2 repetitions hit c (--) to skip repeat of excitation 02: 2 single-ended channel for first measurement 03: 2 excitation channel 04: 2 start frequency of sweep (100's of hz) 05: 2 end frequency of sweep (100's of hz) 06...

  • Page 116

    Section 9. Input/output instructions 9-12 parameter 1. Address enter the address of the sdi-12 sensor (0-9). †extended addresses (a through z and a through z) may be used by entering the decimal equivalent for the appropriate ascii character (see appendix c). For example, address ‘a’ would be entere...

  • Page 117

    Section 9. Input/output instructions 9-13 01: sdi-12 recorder (p105) 1: 1 sdi-12 address 2: 0 start measurement (am0!) 3: 1 port 4: 5 loc [ sendval_1 ] 5: 1 mult 6: 0 offset 02: extended parameters 4 digit (p68) 1: 65 option ;ascii character a 2: 48 option ;ascii character 0 3: 128 option ;send firs...

  • Page 118

    Section 9. Input/output instructions 9-14 sdi-12 data line attached to port 2, but if the break and the specified address are not received by instruction 106, the remainder of the subroutine is not executed. Two programming techniques exist for obtaining measurement values to be transferred by the s...

  • Page 119

    Section 9. Input/output instructions 9-15 parameter 3. Location this parameter determines the starting input location for the 'nn' values to be returned to the recorder. The 'm' or 'm1-m9' command issued by the sdi-12 recorder determines if the starting location is actually that specified in paramet...

  • Page 120

    Section 9. Input/output instructions 9-16 *** 131 enhanced vibrating wire measurement *** function excites a vibrating wire sensor with a swept frequency (from low frequency to high), then measures the response period and calculates 1/t 2 , where t is the period in ms. Excitation is normally provide...

  • Page 121

    10-1 section 10. Processing instructions to facilitate cross referencing, parameter descriptions are keyed [ ] to the values given on the prompt sheet. These values are defined as follows: [z] = destination input location for result [x] = input location of x [y] = input location of y [f] = fixed dat...

  • Page 122

    Section 10. Processing instructions 10-2 *** 36 x * y *** function multiply x by y and place the result in an input location (z). Param. Data number type description 01: 4 input location of x [x] 02: 4 input location of y [y] 03: 4 dest. Input location for x*y [z] input locations altered: 1 *** 37 x...

  • Page 123

    Section 10. Processing instructions 10-3 *** 43 abs(x) *** function take the absolute (abs) value of x and place the result in an input location. Param. Data number type description 01: 4 input location of x [x] 02: 4 dest. Input location for abs(x) [z] input locations altered: 1 *** 44 fractional v...

  • Page 124

    Section 10. Processing instructions 10-4 parameter 3 cannot be entered as an indexed location within a loop (instruction 87). To use instruction 49 within a loop, enter parameter 3 as a fixed location and follow 49 with the instruction 31 (move data). In instruction 31, enter the location in which 4...

  • Page 125

    Section 10. Processing instructions 10-5 05: fp offset 2 [b2] 06: fp multiplier 3 [a3] 07: fp offset 3 [b3] 08: fp multiplier 4 [a4] 09: fp offset 4 [b4] input locations altered: 4 *** 54 block move *** function executes a "block move" of data in input locations. Parameters specify the number of val...

  • Page 126

    Section 10. Processing instructions 10-6 *** 58 low pass filter *** function apply a numerical approximation to an analog resistor capacitor (rc) low pass (lp) filter using the following algorithm. F(xi) = w*xi + f(xi-1) * (1-w) where x = input sample, w = user entered weighting function (o f(xi)=x ...

  • Page 127

    Section 10. Processing instructions 10-7 and 13 to end. Following instruction 98 (255 character limit) base 10 value of ascii character (appendix e) 00 to end. Input locations altered: 0 *** 65 bulk load *** function instruction 65 inputs given values in up to eight input storage locations. The bulk...

  • Page 128

    Section 10. Processing instructions 10-8 this is a blank page..

  • Page 129

    11-1 section 11. Output processing instructions *** 69 wind vector *** function instruction 69 processes the primary variables of wind speed and direction from either polar (wind speed and direction) or orthogonal (fixed east and north propellers) sensors. It uses the raw data to generate the mean w...

  • Page 130

    Section 11. Output processing instructions 11-2 there are three output options that specify the values calculated. Option 0: mean horizontal wind speed, s. Unit vector mean wind direction, Θ 1. Standard deviation of wind direction, σ ( Θ 1). Standard deviation is calculated using the yamartino algor...

  • Page 131

    Section 11. Output processing instructions 11-3 *** 71 average *** function this instruction stores the average value over the given output interval for each input location specified. Param. Data number type description 01: 2 repetitions 02: 4 starting input location no. Outputs generated: 1 per rep...

  • Page 132

    Section 11. Output processing instructions 11-4 while the bin select value was within a particular sub-range, the value output to final storage must be divided by the fraction of time that the bin select value was within that particular sub- range (i.E., a standard histogram of the bin select value ...

  • Page 133

    Section 11. Output processing instructions 11-5 code result xxx1 seconds (with resolution of 0.125 sec.) xx1x hour-minute xx2x hour-minute, 2400 instead of 0000 x1xx julian day x2xx julian day, previous day during first minute of new day 1xxx year any combination of year, day, hr-min, and seconds is...

  • Page 134

    Section 11. Output processing instructions 11-6 param. Data number type description 01: 2 repetitions 02: 4 starting input location no. Outputs generated: 1 per repetition.

  • Page 135

    12-1 section 12. Program control instructions table 12-1. Flag description flag 0 output flag flag 1 to 8 user flags flag 9 intermediate processing disable flag table 12-2. Command codes 0 go to end of program table 2 1-9, 79-99 call subroutine 1-9, 79-99 1 10-19 set flag 0-9 high 20-29 set flag 0-9...

  • Page 136

    Section 12. Program control instructions 12-2 *** 86 do *** function this instruction unconditionally executes the specified command. Param. Data number type description 01: 2 command (table 12-2) *** 87 loop *** function instructions included between the loop instruction and the end instruction (95...

  • Page 137

    Section 12. Program control instructions 12-3 current values (samples at the time of output) of locations 2-10. Loops can be nested. Indexed locations within nested loops are indexed to the inner most loop that they are within. The maximum nesting level in the cr510 is 11 deep. This applies to if th...

  • Page 138

    Section 12. Program control instructions 12-4 *** 92 if time *** function the user specifies the number of minutes or seconds into an interval, the duration of the interval, and a command. The command is executed each time the real time is the specified time into the interval. The "if" condition wil...

  • Page 139

    Section 12. Program control instructions 12-5 *** 95 end *** function instruction 95 is used to indicate the end/return of a subroutine (instruction 85), the end of a loop (instruction 87), the end of an if then/else sequence (instructions 88-92 when used with command 30), or the end of a case seque...

  • Page 140

    Section 12. Program control instructions 12-6 addressed print device, y = baud code 1y = printable ascii 2y = comma separated ascii 3y = binary final storage format 7n = storage module n (n=1-8; section 4.4.2) (stored in binary format) 7n-- = output file mark to storage module n serial printer, comp...

  • Page 141

    Section 12. Program control instructions 12-7 parameter 2: when the instruction is executed and the interrupt disable flag (parameter 2) is low, the cr510 initiates the call. The datalogger will continue to attempt communications until the interrupt disable flag has been set high. As soon as the fla...

  • Page 142

    Section 12. Program control instructions 12-8 an “f” (70). Indicate a switch from rf to phone with a space (32) followed by a “t” (84). A carriage return (13) is used to end the series of characters to be used to initiate the call. Instruction 97 will never make a valid call if a 13 is not the last ...

  • Page 143

    Section 12. Program control instructions 12-9 *** 121 argos *** function this instruction is used to transmit data from cr510 final storage via an argos satellite. See the argos interface notes for information on instruction 121. *** 123 automatic programming of a tgt1 *** function instruction 123 p...

  • Page 144

    Section 12. Program control instructions 12-10 this is a blank page..

  • Page 145

    13-1 section 13. Cr510 measurements 13.1 fast and slow measurement sequence the cr510 makes voltage measurements by integrating the input signal for a fixed time and then holding the integrated value for the analog to digital (a/d) conversion. The a/d conversion is made with a 13 bit successive appr...

  • Page 146

    Section 13. Cr510 measurements 13-2 figure 13.2-1. Timing of single-ended measurement figure 13.2-2. Differential voltage measurement sequence 13.2 single-ended and differential voltage measurements note: either the high or low side of a differential channel can be used for single- ended measurement...

  • Page 147

    Section 13. Cr510 measurements 13-3 which both inputs of a differential measurement must lie in order for the differential measurement to be made. For example, if the high side of a differential input is at 2 v and the low side is at 1 v relative to cr510 ground, there is no problem; a measurement m...

  • Page 148

    Section 13. Cr510 measurements 13-4 figure 13.3-1. Input voltage rise and transient decay 13.3.1 the input settling time constant the rate at which an input voltage rises to its full value or that a transient decays to the correct input level are both determined by the input settling time constant. ...

  • Page 149

    Section 13. Cr510 measurements 13-5 cr510 figure 13.3-2. Typical resistive half bridge cr510 hi or lo input figure 13.3-3. Source resistance model for half bridge connected to the cr510 determining source resistance the source resistance used to estimate the settling time constant is the resistance ...

  • Page 150

    Section 13. Cr510 measurements 13-6 figure 13.3-4. Wire manufacturers capacitance specifications, c w cr510 figure 13.3-5. Model 024a wind direction sensor table 13.3-2. Properties of three belden lead wires used by campbell scientific belden rl c w wire # conductors insulation awg (ohms/1000ft.) (p...

  • Page 151

    Section 13. Cr510 measurements 13-7 cr510 figure 13.3-6. Resistive half bridge connected to single-ended cr510 input r o , the source resistance, is not constant because r b varies from 0 to 10 kohms over the 0 to 360 degree wind direction range. The source resistance is given by: r o = r d +(r b (r...

  • Page 152

    Section 13. Cr510 measurements 13-8 table 13.3-4. Measured peak excitation transients for 1000 foot lengths of three belden lead wires used by campbell scientific -----------------------v eo (mv) ----------------------- vx(mv) rf=1 kohm r f =10 kohm # # # # # # 8641 8771 8723 8641 8771 8723 2000 50 ...

  • Page 153

    Section 13. Cr510 measurements 13-9 table 13.3-5. Summary of input settling data for campbell scientific resistive sensors sensor belden ro cw ττττ * input model # wire # (kohms) (pfd/ft.) (us) range(mv) v x (mv) v eo (mv)** 107 8641 1 42 45 7.5 2000 50 207(rh) 8771 1 41 44 250 1500 85 wvu-7 8723 1 ...

  • Page 154

    Section 13. Cr510 measurements 13-10 source resistance at point p (column 5) is essentially the same as the input source resistance of configuration a. Moving r f' out to the thermistor as shown in figure 13.3-7c optimizes the signal settling time because it becomes a function of r f and c w only. C...

  • Page 155

    Section 13. Cr510 measurements 13-11 figure 13.3-7. Half bridge configuration for ysi #44032 thermistor connected to cr510 showing: a) large source resistance, b) large source resistance at point p, and c) configuration optimized for input settling.

  • Page 156

    Section 13. Cr510 measurements 13-12 cr510 figure 13.3-8. Measuring input settling error with the cr510 cr510 figure 13.3-9. Incorrect lead wire extension on model 107 temperature sensor 13.4 bridge resistance measurements there are 6 bridge measurement instructions included in the cr510 software. F...

  • Page 157

    Section 13. Cr510 measurements 13-13 integration as is normally the case (section 13.2). The result stored is the voltage measured. Instruction 8 does not have as good resolution or common mode rejection as the ratiometric bridge measurement instructions. It does provide a very rapid means of making...

  • Page 158

    Section 13. Cr510 measurements 13-14 figure 13.4-2. Excitation and measurement sequence for 4 wire full bridge table 13.4-1. Comparison of bridge measurement instructions instr. # circuit description 4 dc half bridge the delay parameter allows the user entered settling time com- pensate for capacita...

  • Page 159

    Section 13. Cr510 measurements 13-15 calculating the actual resistance of a sensor which is one of the legs of a resistive bridge usually requires the use of one or two processing instructions in addition to the bridge measurement instruction. Instruction 59 takes a value, x, in a specified input lo...

  • Page 160

    Section 13. Cr510 measurements 13-16 13.5 resistance measurements requiring ac excitation some resistive sensors require ac excitation. These include the 207 relative humidity probe, soil moisture blocks, water conductivity sensors, and wetness sensing grids. The use of dc excitation with these sens...

  • Page 161

    Section 13. Cr510 measurements 13-17 in figure 13.5-2, v x is the excitation voltage, r f is a fixed resistor, r s is the sensor resistance, and r g is the resistance between the excited electrode and cr510 earth ground. With r g in the network, the measured signal is: r s v 1 = v x ________________...

  • Page 162

    Section 13. Cr510 measurements 13-18 table will be overrun by the automatic calibration. If an overrun occurs every time calibration is executed, then 1 execution is skipped for every 512 times that the program table is executed. If the measurements are being averaged, the effect of the overrun is n...

  • Page 163

    14-1 section 14. Installation and maintenance 14.1 protection from the environment the normal environmental variables of concern are temperature and moisture. The standard cr510 is designed to operate reliably from -25 ° to +50 ° c (-55 ° to +85 ° c, optional). Internal moisture damage is reduced wi...

  • Page 164

    Section 14. Installation and maintenance 14-2 system operating time for the batteries can be determined by dividing the battery capacity (amp-hours) by the average system current drain. The cr510 draws quiescent state, 13 ma while processing, and 46 ma during an analog measurement; the length of ope...

  • Page 165

    Section 14. Installation and maintenance 14-3 panasonic a am-3 1.5v panasonic a am-3 1.5v intern al battery made in usa 12v alkaline battery pack bpalk a am-3 1.5 v panasonic a am -3 1.5 v panasonic panasonic a am-3 1.5v panasonic am-3 1.5v a logan , utah temporary battery figure 14.3-1. Bpalk power...

  • Page 166

    Section 14. Installation and maintenance 14-4 ps12 power supply with 12v charging regulator made in usa warning: permanent damage to rechargeable cells may result if discharged below 10.5 volts function int ext bat chg off on chg chg +12 +12 ps12 battery external battery - do not use with internal r...

  • Page 167

    Section 14. Installation and maintenance 14-5 ps12la. A common use for the ps512m is in radiotelemetry networks. The ps12la cannot be modified to a ps512m. The maximum current drain on the 5 volt supply of the ps512m is 150 milliamps. 14.4 solar panels auxiliary photovoltaic power sources may be use...

  • Page 168

    Section 14. Installation and maintenance 14-6 14.7 grounding 14.7.1 protection from lightning primary lightning strikes are those where lightning hits the datalogger or sensors directly. Secondary strikes occur when the lightning strikes somewhere near the system and induces a voltage in the wires. ...

  • Page 169

    Section 14. Installation and maintenance 14-7 in the field, an earth ground may be created through a grounding rod. A 12 awg or larger wire should be run between a terminal strip power ground (g) terminal and the earth ground. Campbell scientific's cm10 and cm6 tripods and ut3 tower come complete wi...

  • Page 170

    Section 14. Installation and maintenance 14-8 control port c1 figure 14.9-1. Relay driver circuit with relay control port c1 figure 14.9-2. Power switching without relay.

  • Page 171

    Section 14. Installation and maintenance 14-9 14.10 maintenance the cr510 terminal strip and power supplies require a minimum of routine maintenance. When not in use, the ps12la should be stored in a cool, dry environment with the ac charging circuit activated. The bpalk alkaline supply should not d...

  • Page 172

    Section 14. Installation and maintenance 14-10 this is a blank page..

  • Page 173

    A-1 appendix a. Glossary ascii: abbreviation for american standard code for information interchange (pronounced "askee"). A specific binary code of 128 characters represented by 7 bit binary numbers. Asynchronous: the transmission of data between a transmitting and a receiving device occurs as a ser...

  • Page 174

    Appendix a. Glossary a-2 input storage: that portion of memory allocated for the storage of results of input and processing instructions. The values in input storage can be displayed and altered in the ∗ 6 mode. Input/output instructions: used to initiate measurements and store the results in input ...

  • Page 175

    Appendix a. Glossary a-3 print peripheral: see print device. Processing instructions: these instructions allow the user to further process input data values and return the result to input storage where it can be accessed for output processing. Arithmetic and transcendental functions are included in ...

  • Page 176

    Appendix a. Glossary a-4 this is a blank page..

  • Page 177

    B-1 appendix b. Additional telecommunications information b.1 telecommunications command with binary responses command description [no. Of loc.]f binary dump - cr510 sends, in final storage format (binary, the number of final storage locations specified (from current mptr locations), then signature ...

  • Page 178

    Appendix b. Binary telecommunications b-2 user datalogger enters echo k k cr cr lf time minutes byte 1 time minutes byte 2 time tenths byte 1 time tenths byte 2 flags byte ports byte (if requested) data1 byte 1 data1 byte 2 data1 byte 3 data1 byte 4 data2 byte 1 data2 byte 2 data2 byte 3 data2 byte ...

  • Page 179

    Appendix b. Binary telecommunications b-3 as an example of a negative value, the datalogger returns bf 82 0c 49 hex. Data byte 1 = bf hex. Data byte 2 to 4 = 82 0c 49 hex (or 8522825 decimal). Data byte 1 is converted to binary to find the sign. Bf hex = 10111111 binary. The most significant bit is ...

  • Page 180

    Appendix b. Binary telecommunications b-4 lo resolution format - d,e,f, not all ones bits description a polarity, 0 = +, 1 = -. B, c decimal locators as defined below. D-h plus 13 bit binary value (d=msb). Second largest possible number without d, e, and f all 1 is 7167, byte but csi defines the lar...

  • Page 181

    Appendix b. Binary telecommunications b-5 csi defines the largest allowable range of a high resolution number to be 99999. Interpretation of the decimal locator for a 4 byte data value is given below. The decimal equivalent of bits gh is the negative exponent to the base 10. Bits decimal format g h ...

  • Page 182

    Appendix b. Binary telecommunications b-6 sending ascii program information program listings are sent in ascii. At the end of the listing, the cr510 sends control e (5 hex or decimal) twice. Table 1.8-4 is an example of the program listing sent in response to command. Your numbers may be different. ...

  • Page 183

    C-1 appendix c. Ascii table american standard code for information interchange decimal values and characters (x3.4-1968) dec. Char. Dec. Char. Dec. Char. Dec. Char. 0 control @ 32 space 64 @ 96 ` 1 control a 33 ! 65 a 97 a 2 control b 34 " 66 b 98 b 3 control c 35 # 67 c 99 c 4 control d 36 $ 68 d 1...

  • Page 184

    This is a blank page..

  • Page 185

    D-1 appendix d. Datalogger initiated communications datalogger initiated communications, commonly referred to as “callback," is when the datalogger initiates a call back to a computer. A cr510 uses instruction 97 to initiate a call. For complete information on instruction 97 and its parameters, refe...

  • Page 186

    Appendix d. Datalogger initiated communications d-2 6: do (p86) 1: 51 set port 1 low 7: if time is (p92) 1: 0 minutes (seconds --) into a 2: 60 interval (same units as above) 3: 10 set output flag high 8: real time (p77) 1: 120 day,hour/minute (2400 at midnight) 9: average (p71) 1: 2 reps 2: 1 loc [...

  • Page 187

    Appendix d. Datalogger initiated communications d-3 telecommunication parameters for station: 115 datalogger type: cr510 security code: 0 use asynchronous communications adapter: com2 communications baud rate: 9600 data file format: comma separated ascii final storage collection area: area 1 interfa...

  • Page 188

    Appendix d. Datalogger initiated communications d-4 this is a blank page..

  • Page 189

    E-1 appendix e. Call another datalogger via phone or rf e.1 introduction instructions 97, initiate telecommunications, and 63, extended parameters can be used to call another datalogger and collect data in input locations. This function can only be accomplished via phone or radio modems. E.2 program...

  • Page 190

    Appendix e. Call another datalogger via phone or rf e-2 interval of the remote datalogger), make the appropriate measurements, lower the flag, and allow for the input location to be transferred. Parameters 4, 5, 6, and 8 these parameters don’t apply when calling a datalogger. Leave these options as ...

  • Page 191

    Appendix e. Call another datalogger via phone or rf e-3 4: extended parameters (p63) 1: 13 terminate character 2: 00 3: 00 4: 00 5: 00 6: 00 7: 00 8: 00 programming example 2.2: calling cr510 using rf modems program: this program fragment calls a datalogger every 2 minutes at using the rf path of “4...

  • Page 192

    Appendix e. Call another datalogger via phone or rf e-4 03: p17 panel temperature 01: 2 loc : 04: p11 temp 107 probe 01: 1 rep 02: 1 in chan 03: 1 excite all reps w/exchan 1 04: 3 loc : 05: 1 mult 06: 0 offset 05: p86 do 01: 21 set low flag 1 06: p95 end 07: p end table 1.

  • Page 193

    F-1 appendix f. Modbus on the cr10(x) and cr510 modbus communication capability is available as a library special on the cr10(x) and cr510 dataloggers. The implementation of modbus on the cr10(x) and cr510 allows input locations, ports, and flags to be read or to be set. Not supported are historical...

  • Page 194

    Appendix f. Modbus on the cr10(x) and cr510 f-2 f.2.1 rf communications the campbell scientific uhf/vhf radio package is of course compatible with pc208. To also do modbus on scada packages using the campbell scientific radio package, a special operation system prom for the rf95 radio modem is neede...

  • Page 195

    Appendix f. Modbus on the cr10(x) and cr510 f-3 the register data is returned as two bytes per register and two registers per input location. Response for example 2: hex slave address 11 function 03 byte count 08 data hi (register 40009) c0 data lo (register 40009) 00 data hi (register 40010) 44 dat...

  • Page 196

    Appendix f. Modbus on the cr10(x) and cr510 f-4 this is a blank page..

  • Page 197

    Appendix g. Td operating system addendum for cr510, cr10x, and cr23x manuals.

  • Page 198

    This is a blank page..

  • Page 199

    Td operating system addendum for cr510, cr10x, and cr23x manuals revision: 1/03 copyright 2002-2003 campbell scientific, inc..

  • Page 200

    This is a blank page..

  • Page 201

    Table data addendum ad-1 td and pakbus operating system addendum for cr510, cr10x, and cr23x manuals ad1 major differences table data (td) operating systems have two major differences from the standard operating systems: first - the namesake - in the way data are stored internally and second, in the...

  • Page 202

    Table data addendum ad-2 ad2 overview of data storage tables within a data table, data is organized in records and fields. Each row in a table represents a record and each column represents a field. To understand the concept of tables it may be helpful to consider an example. A cr10-td is to be used...

  • Page 203

    Table data addenddum ad-3 • check the maximum and minimum instructions (instructions 73 and 74) as there is only one option to store time with the value. • edit input location labels removing all spaces and special characters. Only letters, numbers, and the “_” characters are allowed. Labels should ...

  • Page 204

    Table data addendum ad-4 ad4 summary of differences from the datalogger manual: section differences overview figure ov2.1-2: see figure 1.5-1 in addendum. Table ov3.2-1: see table ov4.1-1 in td addendum. Ov4, ov5, ov6 :see td addendum. Section 1 section 1.5 a mode is replaced by addendum – the td lo...

  • Page 205

    Table data addenddum ad-5 section 12 the td operating system does not use the output flag 0. Commands dealing with it are not valid. Instruction 92 – there is no option for minutes, time is in seconds only. Instructions not in td os: instruction 96 – serial output instruction 98 – send character ins...

  • Page 206

    Table data addendum ad-6 this is a blank page..

  • Page 207

    Ad-ov-1 measurement and control module overview while this section of the addendum references the cr10x, everything but the measurement instructions in the example programs applies to the other dataloggers as well. Table ov3.2-1 in the cr10x manual is incorrect for the td operating system. See table...

  • Page 208

    Td addendum—overview ad-ov-2 table ov4.2-2. Additional keys allowed in telecommunications key action - change sign, index (same as c) cr enter/advance (same as a) ov4.3 programming sequence in routine applications, the cr10x measures sensor output signals, processes the measurements over some time i...

  • Page 209

    Td addendum—overview ad-ov-3 location 5, the temperature from channel 2 in input location 6, etc. Detailed descriptions of the instructions are given in sections 9-12. Entering an instruction into a program table is described in ov5. Ov4.5 entering a program programs are entered into the cr10x in on...

  • Page 210

    Td addendum—overview ad-ov-4 key (id:data) explanation *0 log 1 exit table 1, enter *0 mode, compile table and begin logging. *6 06:0000 enter *6 mode (to view input storage). A 01:21.234 advance to first storage location. Panel temperature is 21.234 °c (the display will show the actual temperature)...

  • Page 211

    Td addendum—overview ad-ov-5 ov5.2 sample program 2 this second example is more representative of a real-life data collection situation. Once again the internal temperature is measured, but it is used as a reference temperature for the differential voltage measurement of a type t (copper- constantan...

  • Page 212

    Td addendum—overview ad-ov-6 sample program 2 instruction # parameter (loc:entry) (par#:entry) description *1 enter program table 1 01:60 60 second (1 minute) execution interval key "#d" repeatedly until 01:p00 erase previous program before continuing. Is displayed 01:p17 measure internal temperatur...

  • Page 213

    Td addendum—overview ad-ov-7 the program to make the measurements and send the desired data to final storage has been entered. The program is complete. The clock must now be set so that the date and time tags are correct. (here the example reverts back to the key by key format.) key display explanat...

  • Page 214

    Td addendum—overview ad-ov-8 datalogger md9 multidrop interface rf95 rf modem sc932 interface com210 phone modem rf100/rf200 transciever w/ antenna & cable sc32a rs-232 interface srm-6a rad shorthaul modem md9 multidrop interface coaxial cable rf100/rf200 transciever w/ antenna & cable sc532 rs-232 ...

  • Page 215

    Ad-1-1 section 1. Functional modes sections 1.5 and 1.8 are replaced by the following sections. 1.5 memory allocation - ∗a 1.5.1 internal memory when powered up with the keyboard display attached, the cr10kd displays hello while performing a self check. The total system memory is then displayed in k...

  • Page 216

    Td addendum  section 1. Functional modes ad-1-2 figure 1.5-1. Datalogger memory 1.5.2 ∗a mode the ∗a mode is used to 1) check the size of input storage, intermediate storage, final storage, program memory; pakbus and user settings memory 2) check the number of bytes remaining in flash program memor...

  • Page 217

    Td addendum  section 1. Functional modes ad-1-3 table 1.5-2. Description of ∗a mode data keyboard display entry id: data description of data ∗ a 01: xxxx input storage locations (minimum of 28, maximum of 6655, but the usable maximum is less than this because intermediate and program storage requir...

  • Page 218

    Td addendum  section 1. Functional modes ad-1-4 to which memory is cleared on powerup, to set the pakbus id, and to set communication to full or half duplex. Csi datalogger support software makes use of the ∗d mode to upload and download programs from a computer. Appendix c gives some additional in...

  • Page 219

    Td addendum  section 1. Functional modes ad-1-5 1.8.6 set initial baud table 1.8-10 shows the option codes available for setting the initial baud rate. Setting the initial baud rate forces the cr10x to try the selected baud rate first when connecting with a device. Table 1.8-9. Set initial baud rat...

  • Page 220

    Td addendum  section 1. Functional modes ad-1-6 the *d15 entries are sent when the program is retrieved. They can also be set like other *d settings via the dld file. 1.8.9 allocate memory for general purpose files *d16:xx ;allocate xx 64k byte chunks of memory for general purpose files. The area c...

  • Page 221

    Td addendum  section 1. Functional modes ad-1-7 table 1.8-14. Set pakbus neighbors key entry display comments *d 13:00 enter command 19a 19:00 port (17- sdc7, 18 – sdc8, 02 – csi/o, 02—cr23x rs232 port, 9600 baud a 19:0000 interval in seconds of the expected rate of communication. A neighbor is age...

  • Page 222

    Td addendum  section 1. Functional modes ad-1-8 this is a blank page..

  • Page 223

    This section entirely replaces the datalogger manual section 2. Ad-2-1 section 2. Internal data storage 2.1 final storage and data tables final storage is that portion of memory where final processed data are stored. It is from final storage that data is transferred to your computer. With the td dat...

  • Page 224

    Td addendum—section 2. Internal data storage ad-2-2 • the output interval is not an even multiple of the scan rate (table execution interval). • table execution is such that instruction 84 is not executed each scan. • table overruns occur. • watchdog errors (e08) occur. 2.1.2 record numbers in addit...

  • Page 225

    Td addendum—section 2. Internal data storage ad-2-3 the timestamp and record number labels are added automatically. 2.2 data output format and range limits data is stored internally in campbell scientific's binary final storage format (appendix c.2). Data may be sent to final storage in either low r...

  • Page 226

    Td addendum—section 2. Internal data storage ad-2-4 table 2.3-1. *7 mode command summary key action a "advances" along a record, when the end of the record is reached the 'cursor' advances to the first field in the next record. B "backs" up along a record, wraps to the last element in the previous r...

  • Page 227

    Ad-3-1 section 3. Instruction set basics section 3.7.1 does not apply to the td operating system which does not use output flag 0. Table 3.8-1 valid flag commands are 11 – 19 to set high and 21- 29 to set low. Because the td operating system does not use flag 0, commands 10 and 20 are not valid with...

  • Page 228

    Td addendum—section 3. Instruction set basics ad-3-2 94 program program storage area transfer full 95 program program does not exist in transfer flash memory 96 program addressed transfer device not connected 97 program data not received within transfer 30 seconds 98 program uncorrectable errors tra...

  • Page 229

    This section entirely replaces the cr10x manual section 8. Ad-8-1 section 8. Processing and program control examples this section contains examples for the cr10x. The appropriate voltage range codes would have to be selected for the cr23x (see cr23x manual section 8 for the measurement instructions)...

  • Page 230

    Td addendum—section 8. Processing and program control examples ad-8-2 05: p84 data table 01: 0 seconds into interval 02: 0 every time 03: 0 records (0=auto; -=redirect) 06: p70 sample 01: 1 reps 02: 2 loc smpl10avg 07: p end table 1 in the above example, all samples for the average are stored in inp...

  • Page 231

    Td addendum—section 8. Processing and program control examples ad-8-3 03: p92 if time is 01: 0 seconds into a 02: 900 second interval 03: 11 set high flag 1 04: p84 data table 01: 0 seconds into interval 02: -1 when flag 1 is high 03: -2 records (0=auto; -=redirect) 05: p72 totalize 01: 1 rep 02: 1 ...

  • Page 232

    Td addendum—section 8. Processing and program control examples ad-8-4 figure 8.3-1. Am416 wiring diagram for thermocouple and soil moisture block measurements example program multiplexing thermocouples and soil moisture block * 1 table 1 programs 01: 600 sec. Execution interval 01: p11 temp 107 prob...

  • Page 233

    Td addendum—section 8. Processing and program control examples ad-8-5 8.4 interrupt subroutine used to count switch closures (rain gage) subroutines given the label of 97 or 98 will be executed when control ports 7 or 8, respectively, go high (5 v, see instruction 85, section 12). In this example, s...

  • Page 234

    Td addendum—section 8. Processing and program control examples ad-8-6 8.5 sdm-a04 analog output multiplexer to strip chart this example illustrates the use of the sdm- a04 4 channel analog output multiplexer to output 4 analog voltages to strip chart. While of questionable value because of current r...

  • Page 235

    Td addendum—section 8. Processing and program control examples ad-8-7 10: p69 wind vector 01: 1 rep 02: 180 samples per sub-interval 03: 0 polar sensor/(s, d1, sd1) 04: 1 wind speed/east loc ws 05: 2 wind direction/north loc wd_360 11: p71 average 01: 2 reps 02: 3 loc temp_f 12: p end table 1 8.6 co...

  • Page 236

    Td addendum—section 8. Processing and program control examples ad-8-8 time into test, min output interval loop # 00 to 10 10 sec. 1 10 to 30 30 sec. 2 30 to 100 1 min. 3 100 to 300 2 min. 4 300 to 1000 5 min. 5 1000 and greater 10 min. 6 this is accomplished with a series of loops (instruction 87), ...

  • Page 237

    Td addendum—section 8. Processing and program control examples ad-8-9 loop 6, output every 10 minutes until stopped by user 17: p87 beginning of loop 01: 60 delay 02: 0 loop count 18: p86 do 01: 1 call subroutine 1 19: p91 if flag/port 01: 21 do if flag 1 is low 02: 31 exit loop if true 20: p95 end ...

  • Page 238

    Td addendum—section 8. Processing and program control examples ad-8-10 this is a blank page..

  • Page 239

    Ad-9-1 section 9. Input/output instructions *** 18 move time to input location **** function this instruction takes current time or date information and does a modulo divide (see instruction 46) on the time/date value with the number specified in the second parameter. The result is stored in the spe...

  • Page 240

    This is a blank page..

  • Page 241

    Ad-11-1 section 11. Output processing instructions instructions 73 – maximum and 74 – minimum have only one time option. (time is output as a quoted string.) instruction 80 – set active storage area, is not in the td operating system. Its functions are included in instruction 84 – data table. Instru...

  • Page 242

    Td addendum—section 11. Output processing instructions ad-11-2 records. If 0 is entered, records will be automatically allocated such that all automatic tables will be filled at the same time. If some tables specify the number of records and some tables are automatically allocated, the specified rec...

  • Page 243: Instructions

    12-1 section 12. Program control instructions the td operating system does not use the output flag 0. Commands dealing with it are not valid. Instructions 96 – serial output, 98 – send character, and 111 – load program from flash, are not in the td operating system. The instructions described in thi...

  • Page 244

    Section 12. Program control instructions 12-2 table 12-1. Cr205/cr210/cr215 in pakbus network stand alone datalogger sendgetdata p190 wireless sensor p193 general description cr205 is programmed as a stand alone datalogger. Data are stored in datalogger and retrieved by computer running loggernet ma...

  • Page 245

    Section 12. Program control instructions 12-3 stand alone datalogger sendgetdata p190 wireless sensor p193 radio settings radio address, net address, and hop sequence must be the same in all cr2xxs and rf400s in the network. Because only one header length can be set for a radio, only one power cycli...

  • Page 246

    Section 12. Program control instructions 12-4 notes: edlog allocates only one of the input locations used in parameters 5 and 7 of this instruction. The additional input locations must be inserted manually using the input location editor. If this instruction is used to retrieve a value or set a valu...

  • Page 247

    Section 12. Program control instructions 12-5 pakbus communication the unique address for the datalogger in the pakbus network that will be communicated with using this instruction. The pakbus address is set in the datalogger's *d15 mode. Modbus communication the unique address for the datalogger in...

  • Page 248

    Section 12. Program control instructions 12-6 desirable to delay execution of subsequent instructions if those instructions perform further processing on the response from the remote. Security enter the level 2 security code for the remote datalogger in the pakbus network that will be communicated w...

  • Page 249

    Section 12. Program control instructions 12-7 remote location pakbus communication if data is being received from another datalogger in the pakbus network (parameter 3 set to 21), this is the first input location in the remote datalogger from which to retrieve the data. If data is being sent to anot...

  • Page 250

    Section 12. Program control instructions 12-8 or unpacked with the least significant bit of the first byte, starting at this location. Incoming discrete values are set to -1.0 for on and 0 for off. Outgoing discrete values are translated as 0.0 to off and non-zero to on. For general information on i...

  • Page 251

    Section 12. Program control instructions 12-9 this instruction is not necessary in networks with wireless sensors and only one master datalogger, because the wireless network master (p193) and wireless network remote (p196) instructions perform these functions automatically. This instruction can als...

  • Page 252

    Section 12. Program control instructions 12-10 edlog allocates only one of the input locations used in parameters 7, 9, and 10 of this instruction. The additional input locations must be inserted manually using the input location editor. For information on manually inserting input locations, refer t...

  • Page 253

    Section 12. Program control instructions 12-11 example to set up the remotes for an hourly transmission at 15 minutes past the hour, the time into transmit interval would be set at 900 and the transmit interval would be set at 3600. Transmit delay between remotes the amount of delay, in seconds, bet...

  • Page 254

    Section 12. Program control instructions 12-12 for general information on input locations, see input locations. Swath to send the number of data values that will be sent to each remote when data is transferred. First location to send the input location which holds the first value that should be sent...

  • Page 255

    Section 12. Program control instructions 12-13 location with seconds until transmit the input location in which to store the number of seconds until it is time to transmit to the host datalogger. Use remote clock report (p195) a program control instruction that sets a remote datalogger's clock based...

  • Page 256

    Section 12. Program control instructions 12-14 swath to receive from master the number of data values that will be received from the host (master) datalogger when data is transferred. If the host sends less than the number of values indicated by the swath, the remaining locations will be filled with...

  • Page 257

    Section 12. Program control instructions 12-15 for general information on input locations, see input locations. Result code location the input location in which a code is stored to indicate the result of the data transfer. A 0 indicates the data transfer was successful; any number greater than 0 ind...

  • Page 258

    Section 12. Program control instructions 12-16 result location result code description -1001 the attempted setting is a read-only setting -1002 out of space in the remote -1003 syntax error 0 success >1 number of communication failures routing table information (p199) a program control instruction t...

  • Page 259

    Section 12. Program control instructions 12-17 the information returned using this instruction would be similar to: input location used value stored description 1 3 address of destination datalogger 2 3 address of repeater datalogger 3 1 response metric, 1 second (1 hop) 4 4 address of destination d...

  • Page 260

    Section 12. Program control instructions 12-18 desired interval in the communications interval field. This option is the same as the datalogger's *d18 mode. In some networks, a beacon interval might interfere with regular communication in the pakbus network (such as in an rf network), since the beac...

  • Page 261

    Lt-1 list of tables page overview ov3.1-1 ∗ mode summary ................................................................................................................ Ov-8 ov3.1-2 key description/editing functions ......................................................................................

  • Page 262

    List of tables lt-2 page 6. 9 pin serial input/output 6.1-1 pin description ....................................................................................................................... 6-1 6.6-1 sd addresses.....................................................................................

  • Page 263

    Lf-1 list of figures page overview ov2.1-1 cr510 memory ................................................................................................................... Ov-4 ov2.2-1 program and subroutine tables ........................................................................................

  • Page 264

    List of figures lf-2 8. Processing and program control examples 8.4-1 connections for rain gage .................................................................................................... 8-3 9. Input/output instructions 9-1 conditioning for long duration voltage pulses .......................