INSTRUCTION MANUAL SM4M/SM16M Storage Module Revision: 3/01 C o p y r i g h t ( c ) 2 0 0 0 - 2 0 0 1 C a m p b e l l S c i e n t i f i c , I n c .
Warranty and Assistance The SM4M/SM16M STORAGE MODULE is warranted by CAMPBELL SCIENTIFIC, INC. to be free from defects in materials and workmanship under normal use and service for twelve (12) 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.
SM4M/16M Storage Module Table of Contents PDF viewers note: These page numbers refer to the printed version of this document. Use the Adobe Acrobat® bookmarks tab for links to specific sections. Section 1. SM4M/SM16M Storage Module Overview .1-1 1.1 Specifications........................................................................................ 1-1 1.2 Physical Description ............................................................................. 1-2 1.3 Power .....................................
SM4M/16M Flash Storage Module Table of Contents 3.3 Special Data Storage Operations........................................................... 3-2 3.3.1 DSP4 Heads Up Display ............................................................. 3-2 3.3.2 Storing Burst Measurement Data from the 21X .......................... 3-2 Section 4. Storage Module Memory: Details of Data Storage .......................................... 4-1 4.1 4.2 4.3 4.4 4.5 File Marks ...................................................
SM4M/16M Flash Storage Module Instruction Manual Figures 1-1 1-2 1-3 1-4 5-1 Storage Module and SC12 Cable.......................................................... 1-2 Operation with Current Dataloggers ..................................................... 1-4 Pin-Enable Operations.......................................................................... 1-4 Telecommunications Command State...................................................
SM4M/16M Flash Storage Module Table of Contents This is a blank page.
Section 1. SM4M / SM16M Storage Module Overview Campbell Scientific’s SM4M and SM16M Storage Modules expand on-site 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 SM4M and SM16M are compatible with the CR500/510, CR10/10X, 21X, CR23X and CR7 dataloggers as well as the DSP4 Heads Up Display. This manual contains two broad divisions.
Section 1. SM4M/SM16M Storage Module Overview Baud Rates for data storage: Baud Rates for telecommunications: 9600, 76800 baud 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600, 76800, 115200. Memory Configuration: User selectable for either ring style (default) or fill and stop. Power Requirements: 5 ±0.3V DC @ 100mA (max.) Current drains: Active, processing, (e.g., memory test): 30–40 mA (avg.) Active, but waiting, (e.g., communications mode): 10mA (avg.
Section 1. SM4M/SM16M Storage Module Overview The SM4M and SM16M are identical except for the amount of memory they contain. The internal memory is split into 64 kb blocks. There are 64 blocks of memory in an SM4M and 256 blocks in an SM16M. This equates to a capacity of more than 2 million low-resolution storage values for the SM4M and more than 8 million low-resolution values for the SM16M (see Section 4.4). 1.3 Power 1.3.
Section 1. SM4M/SM16M Storage Module Overview STORE DATA W/ INSTRUCTION 96 STORE DATA W/ *8 MODE CR500/CR510/CR10/CR10X/CR23X Datalogger STORE DATA W/ *9 MODE 21X, CR7 SM4M/ 16M UPLOAD AND DOWNLOAD PROGRAMS W/ *D MODE *9 MODE COMMANDS CR500/CR510/CR10/CR10X/CR23X FIGURE 1-2. Operation with Current Dataloggers The Storage Module can store data either under program control (Instruction 96) or under user control (*8 Mode with CR500/510/10/10X/23X, *9 Mode with 21X and CR7).
Section 1. SM4M/SM16M Storage Module Overview Emulator mode. A list of direct telecommunication commands is shown in Appendix B. SM4M/ 16M Computer/ Terminal FIGURE 1-4. Telecommunications Command State 1.4.4 Memory Configuration The Storage Module’s memory can be configured as either Fill and Stop or Ring memory. In the Fill and Stop configuration, the Storage Module stops accepting data when its memory is full. No data write-over occurs with this configuration.
Section 1. SM4M/SM16M Storage Module Overview store contiguous File Marks; if a File Mark is the last thing stored in memory, a second file mark will not be stored. 1.4.7 Power-up Status Indication When power is applied to the Storage Module by plugging it into a datalogger or SC532(A), the red “ Status” LED will flash to indicate the status of the module.
Section 1. SM4M/SM16M Storage Module Overview 1.5 Quick Start-Up Procedure This Section describes the basics of storing and retrieving datalogger data. These operations are discussed in detail in Sections 3, 4 and 5 of this manual. 1.5.1 Preparation Before putting the Storage Module into service, connect it to a computer and use SMS to reset the Storage Module and test the memory.
Section 1. SM4M/SM16M Storage Module Overview This is a blank page.
Section 2. Storing Data from Current Dataloggers This section covers data storage from the CR500/510, CR10/10X, CR23X and from the 21X and CR7 with current software. See Section 3 for the 21X and CR7 with early operating systems. 2.1 Instruction 96 — Output Data Under Program Control Instruction 96 is used to send Final Storage data to a Storage Module under program control. Instruction 96 should be entered into the program table following the Output Processing Instructions.
Section 2. Storing Data from Current Dataloggers previous output, and updates the Storage Module Pointer to the DSP location. This transfer occurs in binary at 9600 baud. Under optimum conditions, the datalogger outputs 480 low resolution data points per second. For example, a full 128K CR10X takes over two minutes to complete the data transfer. If the execution interval is less than two minutes, the data transfer will be interrupted and will take longer to complete.
Section 2. Storing Data from Current Dataloggers Commands directed to addresses other than #1 can be accepted only by the SM with the correct address. Do not connect Storage Modules with the same address to a datalogger at the same time. If only one Storage Module is used with the datalogger, its address should be #1. When multiple Storage Modules are used in a datalogger system, each should be assigned its own address and set to Fill and Stop.
Section 2. Storing Data from Current Dataloggers NOTE This function is different from the *9 Mode in the CR500/510, CR10/10X or CR23X. 2.3 Storing Burst Measurement Data from the CR10/10X, CR23X or 21X Burst Measurement (Instruction 23) is a special datalogger instruction used to make fast analog voltage measurements. Two options are available for data retrieval with this instruction: 1. Data is stored in the datalogger Input Storage Locations or 2. Raw data is output from the datalogger serial port.
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. The Storage Module defaults to the Printer Enable Method each time it is powered up by 5V DC applied to pin 1 of its 9-pin ‘D’ connector.
Section 3. The Printer Enable Method of Data Storage Output Processing Instructions in the program table. Consult the datalogger manual for details about using Instruction 96. Do not use both the *4 Mode and Instruction 96 to activate a device in a datalogger program. Instruction: 96 Parameter: 01:22 Explanation: Option 22 selects binary printer output at 9600 baud. The left digit specifies the device option and the right, the baud rate. Refer to the datalogger manual for further details. 3.2.
Section 3. The Printer Enable Method of Data Storage 1. Data is stored in datalogger Input Storage locations or 2. Raw data is sent out the datalogger serial port. In the second case, the Storage Module can capture data at 76,800 baud. When the Burst Measurement (Instruction 23) is used with the 21X, select the destination (parameter 4) option as 2 for serial port output at 76,800 baud to send data to the Storage Module.
Section 3. The Printer Enable Method of Data Storage This is a blank page.
Section 4. Storage Module Memory: Details of Data Storage Detailed knowledge of the way data is stored in the Storage Module is not normally necessary for day-to-day use. However, if you ever need to work the exact memory available or try to extract corrupted data it may be helpful to know these details. 4.1 File Marks File Marks are used to separate data in the Storage Module.
Section 4. Storage Module Memory: Details of Data Storage The Dump Pointer is an internal Storage Module pointer used for keeping track of the current start-of-dump for Storage Module-to Storage Module data dumps and for the data retrieval options of the SMS program. The user can move the Dump Pointer with the 4H command (see Appendix B). The Dump Pointer marks the end point of the previous data dump and thus the start-ofdump location for the next dump.
Section 4. Storage Module Memory: Details of Data Storage calculated by taking the Storage Module size minus 4 bytes per block (used for internal marking purposes), MINUS the worst case erased data size. Table 4-1.
Section 4. Storage Module Memory: Details of Data Storage • A Storage Module in ring-mode has filled the memory, wrapped around and erased the block containing the start of bad data marker or an area of bad data which straddles flash blocks. The next block containing the remainder of the bad data has not been erased. In both cases the “ bad” data will be collected as normal data and written to a file.
Section 5. Data Retrieval Data retrieval is accomplished on PCs using SMS (part of the PC208W package). Other computers require a software program which makes use of the Storage Module telecommunications commands (Appendix B). This process requires both a hardware interface and a software program. 5.1 Hardware There are two interfaces which enable communication between a computer and the Storage Module: 1. The SC532(A) Peripheral to RS232 Interface 2.
Section 5. Data Retrieval ships with AC adapter but, in addition, offers the option of a remote power / field cable (item number 14020) to facilitate connection to datalogger power for the SC532A and the Storage Module where 120 VAC is not available. 5.1.2 Via Datalogger The Storage Module is linked to the CR500/510, CR10/10X or CR23X by the SC12 cable. The computer connection is via an SC32A (Figure 5-2), SC929 or SC532(A)/RAD modem interface.
Section 5. Data Retrieval 5.1.3 Via Remote Datalogger and Modem The data can be collected from a module, connected to one of the above dataloggers, via other telecommunication interfaces (e.g., phone lines). Please refer to the PC208W manual for further details. Modem Cable Standard Phone Lines SC12 9-pin Cable CR10X Datalogger COM200E Modem Surge Protector Computer Hayes Compatible Running PC208W Modem SM4M/ 16M FIGURE 5-4. Typical Setup for Remote Collection of Data Via Datalogger and Modem 5.
Section 5. Data Retrieval 5.3.2 Connection Via CR500/510, CR10/10X or CR23X Make the connections (see Figure 5-2 or 5-3) and establish communications with the datalogger. Send the command ‘xM,CR’ to the datalogger (where x is the Storage Module address 1...8). If the connections are correctly made and the Storage Module is properly addressed, it will send back ‘CR, LF, %.’ If the attempt to establish communications fails, the datalogger will return ‘*’.
Section 6. Storing and Retrieving Datalogger Programs CR500/510, CR10/10X, CR23X, 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.) Campbell Scientific’s SMS software allows programs to be transferred between the computer and the Storage Module.
Section 6. Storing and Retrieving Datalogger Programs The program is stored, retrieved, or erased by referring to a program number (1...8) in the Storage Module. If the program to be retrieved does not exist in the Storage Module, the error message ‘E99’ will be displayed. There are 128 kbytes of memory available for program storage. For example, you can store one 128 kbyte DLD file or eight 16kbyte files. Flash memory technology affects the use of memory when storing and erasing programs.
Appendix A. *9 Mode — Storage Module Commands The *9 Mode is used to issue commands to the storage module using the Keyboard/Display or a terminal/computer with all dataloggers except the 21X and CR7. These ‘commands’ are analogous in many respects to the datalogger functional (*) Modes. The key sequences for the *9 Mode commands have a generalized format.
Appendix A. *9 Mode—Storage Module Commands TABLE A-1. *9 Mode Commands for Storage Module Command Display Description 1 01:0000 RESET: enter 248 to erase all data and programs and reset pointers. While erasing, the SM does a simple check of the memory. The time required to reset an SM4M is approximately 1 minute; SM16M takes nearly 3 minutes. 01:XX The number of megabytes of data storage (4 for SM4M, 16 for SM16M).
Appendix B. Telecommunications Commands The Storage Module telecommunications commands can be issued to an Storage Module either via a direct SC532(A) connection to the Storage Module or via a remote connection where the Storage Module is connected to a datalogger. 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 and other functions.
Appendix B. Telecommunications Commands NOTE: In Ring mode, when data storage has gone around the memory more than once the Number of Locations Full will fluctuate. This is because memory is erased in 64 Kbyte blocks but filled an array at a time (see Section 4). NOTE AA Advanced Status Refer to the L command for a discussion of the switch settings. Example: B65536 T4194304 U131068 P131072 A00000000 F2097019 W00 C3060 is the expected response to the AA command after a SM4M has been reset.
Appendix B. Telecommunications Commands 09G Go To Next File The Display Location Pointer (DLP) is advanced to the beginning of the next file. The DLP is advanced as the Storage Module reads through the data until a File Mark or the Storage Reference Pointer is encountered. For long files, the delay involved could be noticeable. The status is displayed following command execution. This command can be used to locate every file in the Storage Module.
Appendix B. Telecommunications Commands 1243K Reset Error Counter This command resets the communications error counter (the number beginning with ‘E’) to zero, then displays the status line. Neither the programs nor the data stored in the module are affected by this command. 1248K Reset Storage Module Erases all data and programs, resets all pointers, fully tests memory and places a File Mark at the beginning of memory.
Appendix C. Storage Module 9-Pin Connector The pins on the 9-pin sub-miniature D connector on the Storage Module are numbered 1 to 9. A general description of the function of each pin follows: Pin 1 (Input) 5 VDC Supply provides power to the Storage Module. 5± 0.3 VDC @ 100mA. Processor held in reset when external power falls below 4 VDC. Damage to Storage Module hardware can occur if input on Pin 1 exceeds 5.5 VDC. Low power standby mode current drain is less than 200µA.
This is a blank page.
Appendix D. Upgrading the Operating System The Storage Module operating system is stored in flash memory. (It is NOT deleted when the Storage Module is reset.) The operating system can be upgraded using Campbell Scientific’s CSOS download utility. If you need to upgrade the module operating system, please contact Campbell Scientific for a copy of this utility compatible with the SM4M and SM16M. CAUTION Collect any data stored in the module before upgrading the operating system.
This is a blank page.
Appendix E. SC532A The SC532A differs from the SC532 in three ways: 1. 2. 3. Provides 12 V on PERIPHERAL Port pin 8 “ PROGRAM” mode Jack on SC532A POWER input The SC532A supplies 12 VDC via PERIPHERAL connector pin 8 for the purpose of powering 12 V peripherals. The SC532A’s internal jumper selects “ SC532” or “ PROG” mode. For the SM4M/SM16M leave the jumper in the factory default position of “ SC532.” “ PROG” is a special mode for satellite transmitters only.
This is a blank page.
This is a blank page.
Campbell Scientific Companies Campbell Scientific, Inc. (CSI) 815 West 1800 North Logan, Utah 84321 UNITED STATES www.campbellsci.com info@campbellsci.com Campbell Scientific Africa Pty. Ltd. (CSAf) PO Box 2450 Somerset West 7129 SOUTH AFRICA www.csafrica.co.za sales@csafrica.co.za Campbell Scientific Australia Pty. Ltd. (CSA) PO Box 444 Thuringowa Central QLD 4812 AUSTRALIA www.campbellsci.com.au info@campbellsci.com.au Campbell Scientific do Brazil Ltda.