SM192/716 STORAGE MODULE INSTRUCTION MANUAL REVISION: 6/14/93 COPYRIGHT (c) 1989, 1993 CAMPBELL SCIENTIFIC, INC.
WARRANTY AND ASSISTANCE The SM192/716 STORAGE MODULE 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.'s obligation under this warranty is limited to repairing or replacing (at CAMPBELL SCIENTIFIC, INC.'s option) defective products.
SM192/SM716 STORAGE MODULE TABLE OF CONTENTS PAGE WARRANTY 1. SM192/716 STORAGE MODULE OVERVIEW ............................................................ 1-1 1.1 1.2 1.3 Specifications ......................................................................................................................... 1-1 Physical Description ............................................................................................................... 1-2 Power ...................................................
TABLE OF CONTENTS 4. 4.1 4.2 4.3 STORAGE MODULE MEMORY AND DATA ENCODING ........................................ 4-1 File Marks ............................................................................................................................... 4-1 Pointers .................................................................................................................................. 4-1 Data Format and Input Buffer.............................................................................
SECTION 1. SM192/716 STORAGE MODULE OVERVIEW Campbell Scientific's SM192 and SM716 Storage Modules expand on-site RAM data storage for users of Campbell Scientific dataloggers. They also provide the user with a convenient method of transporting data from the field back to the office. The SM192 and SM716 are compatible with the CR10, 21X, CR7, and CR21 dataloggers as well as the DSP4 Heads Up Display. This manual contains two broad divisions. This Overview surveys the Storage Modules and their function.
SECTION 1. SM192/716 STORAGE MODULE OVERVIEW FIGURE 1.2-1. Storage Module and SC12 Cable 1.2 PHYSICAL DESCRIPTION The Storage Module is housed in a sealed stainless steel canister with a single 9-pin Dconnector. The Storage Module is connected to a datalogger via the SC12 9-Pin Peripheral Cable. The SM192 and SM716 are identical except for the amount of memory they contain. The SM192 has a CPU card with six 32k RAM chips, providing 192,896 bytes of storage.
SECTION 1. SM192/716 STORAGE MODULE OVERVIEW Expected Battery Life SM192 SM716 @ 25C @ 50C @ -25C about 10 yrs. about 3 yrs. about 6 yrs. about 6 yrs. about 2 yrs. about 4 yrs. NOTE: These figures apply when: 1. The SM is not connected to a primary power supply (such as a datalogger), and 2. The SM is continuously at one of the above temperatures. Meeting these conditions is unlikely in normal operation. 1.
SECTION 1. SM192/716 STORAGE MODULE OVERVIEW Figure 1.4-1 Operation with Current CR10, 21X, and CR7 Figure 1.4-2 Printer Enable Operations Figure 1.
SECTION 1. SM192/716 STORAGE MODULE OVERVIEW 1.4.4 MEMORY CONFIGURATION The Storage Module's memory can be configured as either Fill and Stop or Ring style memory. In the Fill and Stop configuration, the Storage Module stops accepting data when its memory is full. No data write-over occurs. In the Ring Memory configuration (the default setting), new data continue to be stored even after the memory is full. New data are written over the oldest data in the memory.
SECTION 2. STORING DATA FROM CR10, 21X, AND CR7 This section covers data storage from the CR10 and from the 21X and CR7 with current software. 21X Microloggers released after February 1989, and CR7 dataloggers released after August 1991, contain the OSX and OS7 Series PROMS which support two major SM functions that earlier versions do not: 1. Datalogger programs can be stored and retrieved in the *D Mode. 2.
SECTION 2. STORING DATA FROM CR10, 21X, AND CR7 CAUTION: Be sure to complete the data transfer before making any changes in the datalogger program. Changing a program and then compiling it will advance the datalogger's Storage Module Pointer to the position of the DSP. If this is done before connecting the Storage Module to allow the datalogger to transfer the data, the old data will NOT be automatically transferred to the Storage Module.
SECTION 2. STORING DATA FROM CR10, 21X, AND CR7 2.1.2 USE OF TWO STORAGE MODULES WITH 21X OR CR7 For large volumes of data, two SMs can be connected to the 21X or CR7. Use SMCOM to set one SM as Fill and Stop, and the other as Ring Memory. 2.2 *8 AND *9 MODE -- KEYBOARD INITIATED DATA TRANSFER 2.2.1 *8 MODE - CR10 The *8 Mode is used to manually initiate a Final Storage Data transfer from the CR10 to an external peripheral. Data transfer rate is 9600 baud.
SECTION 3. THE PRINTER ENABLE METHOD OF DATA STORAGE Data from the 21X and CR7 with PROMS older than the OSX and OX7 series PROMS and from the CR21 and DSP4 are stored in the Storage Module via the Printer Enable Method, i.e., data on the TD line (pin 9) are stored while the PE line (pin 6) is high. This is also the method of data storage with nondatalogger devices. The Storage Module defaults to the Printer Enable Method each time it is powered up by 5 VDC applied to Pin 1 of its 9-pin "D" connector.
SECTION 3. THE PRINTER ENABLE METHOD OF DATA STROAGE 3.2.1 INSTRUCTION 96 - OUTPUT UNDER PROGRAM CONTROL Instruction 96, available in the CR7X and in the Extended Software PROMs for the earlier versions of the 21X, is used to send Final Storage data to the Storage Module under program control. Instruction 96 should follow the Output Processing Instructions in the program table. Consult the datalogger manual for details about using Instruction 96.
SECTION 4. STORAGE MODULE MEMORY AND DATA ENCODING 4.1 FILE MARKS File Marks are used to separate data in the Storage Module. A File Mark is automatically placed in the SM's memory when the SM is connected to a power source (datalogger or retrieval interface) or when the datalogger compiles a program containing Instruction 96.
SECTION 4. STORAGE MODULE MEMORY AND DATA ENCODING receiving data plus 110 usec for each byte remaining in the input buffer after transmission is complete. As an example, it takes 130 msec to transmit 1000 bytes at 76,800 baud. The Storage Module has time to store 619 bytes (130 msec divided by 210 usec/byte) before the transmission has ended. That will leave 381 bytes in the input buffer when the PE line drops.
SECTION 5. DATA RETRIEVAL Data retrieval is accomplished on PCs using SMCOM. Other computers require a software program which makes use of the Storage Module Telecommunications Commands (Appendix D). This process requires both a hardware interface and a software program. 5.1 HARDWARE There are four interfaces which enable communication between a computer and the Storage Module: 1. The SC532 Peripheral to RS232 Interface 2. The PC201 Tape Read, Clock, Serial I/O Card (requires SC209 cable) 3.
SECTION 5. DATA RETRIEVAL 5.1-1 Storage Module Connected With SC532 5.1-2 Storage Module Connected to PC201 Card 5.1-3 Communication Via the CR10 5.
SECTION 5. DATA RETRIEVAL Complete details on the operation of SMCOM are contained in the PC208 manual. When using a computer other than an IBM PC/XT/AT/PS-2 or compatible, the SM232A is the recommended interface. It has a manually operated switch to raise the Storage Module's PE and CLK/HS lines. Thus the user's program doesn't need to raise pins 4 and 20 on the computer (as is necessary with the SC532 Interface).
SECTION 5. DATA RETRIEVAL 6. Send the last carriage return to execute the data retrieval. The same fundamental procedures used in a manually executed data transfer form the basis of SMCOM's data retrieval options. They can also be employed in a user-written program to automate data retrieval for non-IBM compatible computers. Appendix B contains a sample flow diagram. It can serve as the basis for a user-written data retrieval program. 5-4 5.3.
SECTION 6. STORING AND RETRIEVING DATALOGGER PROGRAMS CR10, 21X, and CR7 programs can be uploaded and downloaded between the datalogger and the Storage Module in the *D Mode. (OSX and OS7 series PROMS required for 21X and CR7.) SMCOM (or telecommunications commands) allows programs to be transferred between the computer and the SM. Using these capabilities, a program can be developed in the computer, stored in the SM, and then carried to the field and downloaded to the DATALOGGERS.
APPENDIX A. CR10 *9 MODE -- STORAGE MODULE COMMANDS The CR10 *9 Mode is used to issue commands to the Storage Module using the CR10KD keyboard/display or a terminal/computer. These "commands" are analogous in many respects to the datalogger functional (*) Modes. For example, command 7 is used to review stored data, and 8 is used to transfer data between two Storage Modules connected to a CR10. The key sequences for the *9 commands have a generalized format.
APPENDIX A. CR10 *9 MODE - STORAGE MODULE COMMANDS COMMAND DISPLAY DESCRIPTION 01:ABCD DISPLAY STATUS (A to advance to each window) Window 1: 5 AB CD 02:ABCD AB C D 03:A0CD A 0 C D 04:X.XXXX SRP location (chip no.) Total good RAM chips (1-22) Window 2: DLP location (chip no.) Unloaded Batt. Chk. 0=low, 1=OK No. of Programs stored (Max=8) Window 3: Errors logged (up to 9) Not Used Memory Config.
APPENDIX A. CR10 *9 MODE - STORAGE MODULE COMMANDS COMMAND DISPLAY DESCRIPTION XXXXXXXX 87654321 DISPLAY ADDRESSES OF CONNECTED SM'S 1 = occupied, 0 = unoccupied (Addresses 8-1 from left to right) 9 10 10:0X CHANGE ADDRESS X is current address, enter yA to change and then display address where y=1...8.
APPENDIX B.
APPENDIX C. NON-DATALOGGER APPLICATIONS All non-datalogger Storage Module operations are accomplished through the Printer Enable Method. The Storage Module can store data from devices other than dataloggers and computers providing that power and control requirements are met. Refer to Section C.3 for information on the pin configuration for the Storage Module's 9 pin D connector. C.
APPENDIX C. NON-DATALOGGER APPLICATIONS C.3 STORAGE MODULE 9-PIN CONNECTOR The pins on the 9 pin sub-miniature D connector on the Storage Module are numbered 1 through 9 on the white plastic base. A general description of the function of each pin follows: Pin 1 (Input) 5 VDC Supply provides power to the Storage Module. Requires 5 ± 0.4 VDC @ 100 mA. Processor held in reset when external power falls below 4.6 VDC. Internal battery supplies memory retention power when external power drops below 3 VDC.
APPENDIX D. TELECOMMUNICATIONS COMMANDS The SM Telecommunications Commands can be used over links through the CR10 or with the Storage Module connected to an interface such as the SC532, the SM232A, or the PC201. Establishing communication between the Storage Module and a computer/terminal is discussed in Section 5. The commands permit data storage and retrieval, switch setting, status checks, battery tests, and other functions. The Storage Module is ready for a command when it sends its prompt, %.
APPENDIX D. TELECOMMUNICATIONS COMMANDS external power. The battery should then be replaced. 100E LOADED BATTERY TEST: The state of the battery is compared to a 2.5 VDC reference after a 100 Ohm load is connected for 1 second. The Storage Module returns "1" if above 2.5 VDC or "0" if below. If the loaded test returns "0" and the unloaded test, "1", the battery has residual capacity, and should be replaced as soon as possible. This test uses approximately 3 minutes of the useful life of the battery.
APPENDIX D. TELECOMMUNICATIONS COMMANDS nJ STORE PROGRAM n (n = 1...8): The Storage Module responds with "<" after which the SM will store program data received on its TD line, recording its start position in the program directory. Subsequent data does not write over stored datalogger programs unless the directory entry is cleared or modified. Programs MUST start with the Start ASCII character (7D HEX) and end with two Ctrl-E (05 05 HEX) characters. Status is displayed following command execution.