TD OPERATING SYSTEM ADDENDUM FOR CR510, CR10X, AND CR23X MANUALS REVISION: 1/03 COPYRIGHT 2002-2003 CAMPBELL SCIENTIFIC, INC.
This is a blank page.
TABLE DATA ADDENDUM 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 options available for transferring that data to external devices. The standard operating systems support both on site external storage (i.e., storage modules) that may be manually retrieved and telecommunications.
TABLE DATA ADDENDUM 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 to monitor 3 thermocouples (TC). Each hour a temperature for each of the three TC is to be stored. The table has 4 fields : "DATE_TIME TEMP1 TEMP2 TEMP3". Each hour a new "record" would be added.
TABLE DATA ADDENDDUM • 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 start with a letter. • Add labels for the Final Storage values. Use the same character as are allowed for Input Location labels. See Section 2.1 AD3.
TABLE DATA ADDENDUM AD4 Summary of Differences from the Datalogger Manual: Section Overview Differences Section 1 Section 1.5 A Mode is replaced by addendum – the TD loggers allocate memory differently. Section 1.8 - *D Mode is replaced by TD Addendum – TD loggers do not support storeing multiple programs or Storage Modules. PakBus Settings are added to the *D Mode. Replaced entirely by TD Addendum. Section 3.7.1 does not apply to the TD operating system which does not use Output Flag 0. Table 3.
TABLE DATA ADDENDDUM 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.
TABLE DATA ADDENDUM This is a blank page.
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 OV4.1-1 below. The following sections OV4, OV5, and OV6 replace those in the CR10X Manual. OV4.
TD ADDENDUM—OVERVIEW 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 interval and stores the processed results. A generalized programming sequence is: 1. Enter the execution interval. In most cases, the execution interval is determined by the desired sensor scan rate. 2.
TD ADDENDUM—OVERVIEW 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 one of two ways: 1. Keyed in using the CR10X keyboard 2. Stored on disk/seat from computer A program is created by keying it directly into the datalogger as described in Section OV5, or on a PC using EDLOG.
TD ADDENDUM—OVERVIEW Key (ID:Data) Explanation *0 LOG 1 *6 A 06:0000 01:21.234 Exit Table 1, enter *0 Mode, compile table and begin logging. Enter *6 Mode (to view Input Storage). Advance to first storage location. Panel temperature is 21.234°C (the display will show the actual temperature). Wait a few seconds: 01:21.423 *1 2A 01:00 02:P00 84 A 02:P84 01:0.0000 0 01:0 A 0 02:0.000 02:0 A 1000 03:0.0000 03:1000.
TD ADDENDUM—OVERVIEW 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 (copperconstantan) thermocouple; the CR10X should have arrived with a short type T thermocouple connected to differential channel 5.
TD ADDENDUM—OVERVIEW SAMPLE PROGRAM 2 Instruction # (Loc:Entry) Parameter (Par#:Entry) Description *1 Enter Program Table 1 01:60 60 second (1 minute) execution interval Key "#D" repeatedly until is displayed 01:P00 Erase previous Program before continuing. 01:1 Measure internal temperature Store temp in Location 1 01:1 02:1 03:5 04:1 05:1 06:2 07:1 08:0 Measure thermocouple temperature (differential) 1 repetition Range code (2.
TD ADDENDUM—OVERVIEW 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 Explanation *5 A 00:21:32 05:01.01 Enter *5 Mode. Clock running but not set correctly. Advance to month-day (MMDD). 1004 05:1004 Key in MMDD (Oct 4 in this example). A 05:1990 Enter and advance to location for year.
TD ADDENDUM—OVERVIEW DATALOGGER MD9 MULTIDROP INTERFACE COAXIAL CABLE MD9 MULTIDROP INTERFACE SC12 CABLE RF95 RF MODEM COM210 PHONE MODEM SC932 INTERFACE RF100/RF200 TRANSCIEVER W/ ANTENNA & CABLE SRM-6A RAD SHORTHAUL MODEM SC32A RS-232 INTERFACE 2 TWISTED PAIR WIRES UP TO 5 MI.
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 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.
TD ADDENDUM SECTION 1. FUNCTIONAL MODES Flash Memory (EEPROM) Operating System (96 Kbytes-CR10X) (128 Kbytes-CR23X) How it works: The Operating System is loaded into Flash Memory at the factory. System Memory is used while the CR10X is running for calculations, buffering data and general operating tasks. Any time a user loads a program into the datalogger, the program is compiled in SRAM and stored in the Active Program areas.
TD ADDENDUM SECTION 1. FUNCTIONAL MODES TABLE 1.5-2. Description of ∗A Mode Data Keyboard Entry ∗ A Display ID: Data 01: XXXX A 02: XXXX A 03: XXXXX A 04: XXXXX A 05: A A A 06: 07: 06: Description of Data Input Storage Locations (minimum of 28, maximum of 6655, but the usable maximum is less than this because intermediate and program storage require some of this memory). This value can be changed by keying in the desired number.
TD ADDENDUM SECTION 1. FUNCTIONAL MODES 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 information on Commands 1 and 2 that are used for these operations. When "∗D" is keyed in, the CR10X will display "13:00". A command (Table 1.8-1) is entered by keying the command number and "A". TABLE 1.8-1.
TD ADDENDUM SECTION 1. FUNCTIONAL MODES 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 Rate / Set RS232 Power Key Entry Display Comments *D 13:00 Enter Command 12A 12:00 Connect Baud Rate Enter Baud Rate Code X (Table 1.8-11). TABLE 1.8-10. Baud Rate Codes X=0 X=1 X=2 X=3 TABLE 1.8-11.
TD ADDENDUM SECTION 1. FUNCTIONAL MODES 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.11 SET PAKBUS ROUTER BEACON INTERVAL TABLE 1.8-13. Set Beacon interval 1.8.9 ALLOCATE MEMORY FOR GENERAL PURPOSE FILES *D16:xx ;allocate xx 64K byte chunks of memory for general purpose files. The area comes out of final storage space. Files are stored in a circular buffer (ring memory) in this space. 1.8.
TD ADDENDUM SECTION 1. FUNCTIONAL MODES 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 aged after 2.5 times this interval and the Hello attempt will be reinitiated. A A 01:xxxx 01:xx PakBus Address of neighbor Swath of neighbors with sequential addresses starting with above address.
TD ADDENDUM SECTION 1. FUNCTIONAL MODES This is a blank page.
THIS SECTION ENTIRELY REPLACES THE DATALOGGER MANUAL SECTION 2. 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 datalogger, Final Storage is organized into Data Storage Tables. These data tables should not be confused with the program tables *1, *2, and *3 that contain the datalogger program.
TD ADDENDUM—SECTION 2. INTERNAL DATA STORAGE • 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 addition to a timestamp, each record has record number. The record numbers are unique within a data table. Record numbers are 4 byte unsigned numbers ranging from 0 to 4,294,967,296.
TD ADDENDUM—SECTION 2. INTERNAL DATA STORAGE 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 RESOLUTION or HIGH RESOLUTION format. 2.2.1 RESOLUTION AND RANGE LIMITS Low resolution data is a 2 byte format with 4 significant digits and a maximum magnitude of +7999.
TD ADDENDUM—SECTION 2. INTERNAL DATA STORAGE TABLE 2.3-1. *7 Mode Command Summary KEY A ACTION "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 record C "Climbs" up the table, toward the oldest data, stops on oldest record. D "Drops" down the table, toward the newest data, stops on newest record. # Enter Time Mode to display timestamp.
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 the TD operating system. The following table replaces Table 3.10-1 for the TD operating system. TABLE 3.10-1.
TD ADDENDUM—SECTION 3.
THIS SECTION ENTIRELY REPLACES THE CR10X MANUAL SECTION 8. 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). The CR510TD may not support all the examples.
TD ADDENDUM—SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES 05: 01: 02: 03: P84 0 0 0 Data Table Seconds into interval Every time Records (0=auto; -=redirect) 06: 01: 02: P70 1 2 Sample Reps Loc smpl10avg 07: P 02: 03: End Table 1 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.
TD ADDENDUM—SECTION 8.
TD ADDENDUM—SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES FIGURE 8.3-1. AM416 Wiring Diagram For Thermocouple and Soil Moisture Block Measurements EXAMPLE PROGRAM MULTIPLEXING THERMOCOUPLES AND SOIL MOISTURE BLOCK * 01: 1 600 01: 01: 02: 03: 04: 05: 06: P11 1 4 1 1 1 0 02: 01: P86 41 Do Set high Port 1 03: 01: 02: P87 0 16 Beginning of Loop Delay Loop Count 04: 01: P86 72 Do Pulse Port 2 05: 01: 02: P14 1 21 Thermocouple Temp (DIFF) Rep 2.
TD ADDENDUM—SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES 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, Subroutine 98 and control port 8 are substituted for a pulse counting channel to count switch closures on a tipping bucket rain gage. The subroutine adds 0.254 (mm, bucket calibrated for 0.
TD ADDENDUM—SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES 8.5 SDM-A04 ANALOG OUTPUT MULTIPLEXER TO STRIP CHART This example illustrates the use of the SDMA04 4 Channel Analog Output Multiplexer to output 4 analog voltages to strip chart. While of questionable value because of current requirements and strip chart reliability, some archaic regulations require strip chart backup on weather data. The SDM-A04 may be used with the CR10 to provide analog outputs to strip charts.
TD ADDENDUM—SECTION 8.
TD ADDENDUM—SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES Time into Test, min 00 10 30 100 300 1000 to 10 to 30 to 100 to 300 to 1000 and greater Output Interval Loop # 10 sec. 30 sec. 1 min. 2 min. 5 min. 10 min. 1 2 3 4 5 6 This is accomplished with a series of loops (Instruction 87), where the delay and count parameters are used to implement the frequency of measurement (and output) and the duration of the that frequency. The unit of delay is the execution interval.
TD ADDENDUM—SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES Loop 6, Output every 10 minutes until stopped by user 17: 01: 02: P87 60 0 Beginning of Loop Delay Loop Count 18: 01: P86 1 Do Call Subroutine 1 19: 01: 02: P91 21 31 If Flag/Port Do if flag 1 is low Exit Loop if true 20: P95 End 21: P End Table 1 * 3 Table 3 Subroutines 01: 01: P85 1 02: 01: 02: P6 1 22 03: 1 04: 1 05: 1500 06: 1 07: .46199 08: 102 Beginning of Subroutine Subroutine Number Full Bridge Rep 7.
TD ADDENDUM—SECTION 8. PROCESSING AND PROGRAM CONTROL EXAMPLES This is a blank page.
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 specified Input Location. Entering 0 or a number greater than the maximum value of the time/date for the modulo divide will result in the actual time/date value being stored.
This is a blank page.
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. Instruction 84 is only in the TD operating system. *** 73 MAXIMUM *** FUNCTION This instruction stores the MAXIMUM value taken (for each input location specified) over a given output interval.
TD ADDENDUM—SECTION 11. OUTPUT PROCESSING INSTRUCTIONS 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 records will be allocated first, and then the remaining memory will be divided among the automatically allocated tables such that they will be filled at the same time.
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 this section are only in the PakBus operating system. Wireless Networks More recent CR10X, CR510, and CR23X dataloggers with the PakBus operating system use the PakBus communications protocol.
Section 12. Program Control Instructions TABLE 12-1. CR205/CR210/CR215 in PakBus Network General Description PRO CON/limitations PakBus Instructions used in Datalogger Programming 12-2 Stand Alone Datalogger CR205 is programmed as a stand alone datalogger. Data are stored in datalogger and retrieved by computer running Loggernet • Data are stored in Datalogger, loggernet will automatically retry if communication fails.
Section 12. Program Control Instructions Radio Settings CR205 Power Mode and Header RF400 on CR10X or CR23X Beacon Interval RF400 on computer LoggerNet Settings When RF400 with direct access to network is connected to computer. Stand Alone SendGetData P190 Wireless Sensor P193 Datalogger 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 cycling interval should be used in network; i.
Section 12. Program Control Instructions 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 value in the remote datalogger's public (or input location) table (i.e., code 26 or 27 is used in parameter 3), Instruction 63 or 68 must follow this instruction to enter the variable name that will be accessed.
Section 12. Program Control Instructions 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 a Modbus network that will be communicated with using this instruction (the slave device). The Modbus address is set in the datalogger's *D8 mode. The valid range of IDs for a Modbus slave device are 1 - 99.
Section 12. Program Control Instructions 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 with using this instruction when Command 22 is used for parameter 3 (send input location data to another datalogger).
Section 12. Program Control Instructions 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 another datalogger in the PakBus network (Parameter 3 set to 22), this is the first input location in the remote datalogger in which to store the first data value.
Section 12. Program Control Instructions 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 input locations, see Input Locations. Result Code Location The input location in which to store the results of the data transfer.
Section 12. Program Control Instructions 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 also be used to remove a datalogger from the PakBus network. 3: 1: 2: 3: PakBus - Send Message (P192) 00 Port 0000 Address 2 Clock Report Message Type Entry 2 13 Description Clock report; sends the current time.
Section 12. Program Control Instructions 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 to Manually Inserting Input Locations Into Edlog. Number of Remotes The number of remote dataloggers/wireless sensors in the PakBus network that will be communicated with using this instruction.
Section 12. Program Control Instructions 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, between transmission from each remote. If this parameter is left at 0, the master datalogger will automatically assign the delay based on the routing table (usually about 3 seconds between remotes).
Section 12. Program Control Instructions 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 to the dataloggers/wireless sensors in the group. The range of values sent to the remote(s) is determined by the Swath to Send parameter (parameter 8).
Section 12. Program Control Instructions 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 on the clock value transmitted from the host (or master) datalogger specified by the address provided in parameter 1.
Section 12. Program Control Instructions 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 an overrange value (-99999). If the host sends more than the number of data values indicated by the swath, the extra values will be discarded by the local datalogger.
Section 12. Program Control Instructions 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 indicates a failure. A -2 indicates that communication was established with the datalogger at the specified address, but the datalogger was not programmed as a host (master) datalogger using Instruction 193.
Section 12. Program Control Instructions Result Location Result Code -1001 -1002 -1003 0 >1 Description The attempted setting is a read-only setting Out of space in the remote Syntax error Success Number of communication failures Routing Table Information (P199) A program control instruction that is used to store the datalogger's routing table information in a series of input locations. This instruction is used most often as a trouble-shooting tool.
Section 12.
Section 12. Program Control Instructions 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 beacon is broadcast to all devices within range.