SM4M / SM16M Storage Module User Guide Issued 14.02.00 Copyright 2000 Campbell Scientific, Inc. Copied under licence by Campbell Scientific Ltd.
Guarantee This equipment is guaranteed against defects in materials and workmanship. This guarantee applies for thirty-six months from date of delivery. We will repair or replace products which prove to be defective during the guarantee period provided they are returned to us prepaid.
Contents Section 1. SM4M/SM16M Storage Module Overview..................................................................1-1 1.1 Specifications........................................................................................ 1-1 1.2 Physical Description ............................................................................. 1-2 1.3 Power .................................................................................................... 1-3 1.3.1 Primary Power....................................
SM4M/SM16M Storage Module User Guide Section 4. Storage Module Memory: Details of Data Storage...........................................4-1 4.1 4.2 4.3 4.4 4.5 File Marks............................................................................................. 4-1 Pointers ................................................................................................. 4-1 Data Formats – Space Requirements .................................................... 4-2 Available Storage......................
Section 1. SM4M / SM16M Storage Module Overview Campbell Scientifics 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.
SM4M/SM16M Storage Module User Guide Power Requirements: 5 ±0.3V DC @ 100mA (max.) Current drain: Active, processing, e.g. memory test: 3040mA (avg.) Active, but waiting, e.g. communications mode: 10mA (avg.) Typical current during data storage from a datalogger: 15mA (avg.) Low Power Standby State: less than 200µA.
Section 1. SM4M/SM16M Storage Module Overview 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. 1.3 Power 1.3.1 Primary Power The Storage Module is powered by 5V DC received from the datalogger or from data retrieval interfaces such as the SC532 9-pin Peripheral to RS232 Interface. Pin 1 of the 9-pin D-connector supplies the 5V DC.
SM4M/SM16M Storage Module User Guide The SM can store data either under program control (Instruction 96) or under user control (*8 Mode with CR500/510, CR10/10X and CR23X, *9 Mode with 21X and CR7). Datalogger programs can be stored in and retrieved from the Storage Module using the *D Mode. The CR500/510, CR10/10X and CR23X *9 Mode enables the user to directly execute commands such as: change address, view data, etc. (See your datalogger manual for full details.) 1.4.
Section 1. SM4M/SM16M Storage Module Overview 1.4.4 Memory Configuration The Storage Modules 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. In the Ring Memory configuration (the default setting), new data continues to be stored even after the memory is full. Once full, new data is written over the oldest data.
SM4M/SM16M Storage Module User Guide The first flash after the delay will last from 1 to 2 seconds, depending on the last use of the module. Further flashes follow with a 0 .5 second OFF and 0.5 second ON spacing.
Section 1. SM4M/SM16M Storage Module Overview For the CR7 and 21X without Instruction 96, the *4 Mode can be used to send data to the storage module. The Output Enable code should be set to X1, Printer Enabled ASCII. The DSP4 outputs data to a storage module when the storage module function (or, for older versions of software, the printer function) is enabled. 1.5.
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.
SM4M/SM16M Storage Module User Guide the data transfer. If the execution interval is less than two minutes, the data transfer will be interrupted and will take longer to complete. 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.
Section 2. Storing Data from Current Dataloggers Instruction 96 can be entered two or more times in a program to sort data to specific Storage Modules. Three important considerations are: 1. All Storage Modules to be used must be connected to the datalogger with SC12 cables. 2. Time must be allowed between the execution of multiple instances of Instruction 96 to Storage Modules.
SM4M/SM16M Storage Module User Guide 2.3.1 Burst Data with CR10/10X, CR23X Dataloggers Entering a 3 for the third digit in parameter 4 of Instruction 23 selects the Storage Module as the destination for the Burst data. All SMs connected should be set to Fill and Stop and have consecutive addresses. The Burst data will be sent to the first available (lowest addressed) Storage Module, followed by the next lowest addressed, and so on. 2.3.
Section 3. The Printer Enable Method of Data Storage Data from the 21X and CR7 with PROMs older than the OSX and OS7 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.
SM4M/SM16M Storage Module User Guide 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.2 *4 Mode — Output Device Enable The *4 Mode is used to enable the output of Final Storage data to a printer. The Storage Module will capture this printer output.
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 calculate and utilise 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.
SM4M/SM16M Storage Module User Guide 4.3 Data Formats – Space Requirements The modules store data in the format in which it is sent to them. There is no conversion or encoding of the data received before it is stored. Data can be sent to the module in either the Campbell Scientific Final Storage Format (binary) or in the Printable ASCII format. One low resolution data point requires two bytes in binary format.
Section 4. Storage Module Memory: Details of Data Storage 4.5 Bad Data The storage module has mechanisms that detect corrupted data being received from the datalogger. When bad data is received the module will immediately stop storing the data. The datalogger will detect this and retransmit the entire data from the last point that the storage module had confirmed receiving the data. This process does have some consequence for memory use. Data is stored as received.
Section 5. Data Retrieval Data retrieval is accomplished on PCs using SMS (part of the PC208W datalogger support software package). Other computers require a software program which makes use of the Storage Module telecommunications commands (see 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 Peripheral to RS232 Interface 2.
SM4M/SM16M Storage Module User Guide of data a lengthy process, compared to direct connection to a PC, where baud rates up to 115200 are supported. The SC32A internal SDM blocking jumper should be in place. Without the jumper in place (and sometimes with the SC929), Windows may report a framing error after correctly collecting data with SMS.
Section 5. Data Retrieval The telecommunications part of the PC208W datalogger support software package is used to schedule and make data collection from the datalogger or storage module. Please refer to the PC208W manual for further details. 5.2 Datalogger Support Software 5.2.
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 are required for the 21X and CR7.) Campbell Scientifics SMS software 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 datalogger.
SM4M/SM16M Storage Module User Guide When a program is erased, the space it occupied is not freed until the entire program storage area is erased. Thus, when you erase a program, the amount of free space in the storage module program area does not increase. However, you can reuse the program number to store another program. The program storage area can be erased either by issuing one of the module erase/reformat/test commands or by manually deleting all of the programs in the module.
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.
SM4M/SM16M Storage Module User Guide Table A-1 *9 Mode Commands for Storage Module Command 1 4 5 6 7 8 9 10 A-2 Display 01:0000 Description 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; the 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 SM telecommunications commands can be issued to an SM either via a direct SC532 connection to the Storage Module or via a remote connection where the SM 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. The Storage Module is ready for a command when it sends its prompt, %.
SM4M/SM16M Storage Module User Guide AA Advanced Status nnnnB nnnnC Comma Delineated ASCII Dump nnnnF Binary Dump nnnnnnG Go To Location nnnnnn OD Go To the Oldest Data 01G Go To Last File 08G Go To Dump Pointer 09G Go To Next File 09GG Go To Next File, with Progress indicator 0H Store B-2 Data Flash Block size in bytes, Total Data Flash in bytes, Largest Unused program space in bytes, Total Program storage area in bytes, Active programs stored (A10005008 means programs 1,5 and 8 are stored), F Numb
Appendix B. Telecommunications Commands 4H Move Dump Pointer To Display Location Pointer 9H Store File Mark in Data nl Dump Program n (n = 1…8) nJ Store Program n (n = 1…8) nJJ Store Program n, with Checksum Signature n0nJ Clear Program n (n = 1…8) 1243K Reset Error Counter 1248K Reset Storage Module CAUTION The Dump Pointer is moved to the current position of the Display Location Pointer. Refer to command 08G regarding the Dump Pointer. This command is not intended for general use.
SM4M/SM16M Storage Module User Guide 1249K Quick Reset abfeL Switch Settings This command is similar to the 1248K command it also erases all data and programs. However, it does not do a complete memory test, it simply resets the memory pointers and instructs the flash memory to erase itself. This is much faster than the 1248K command and is designed for routine erasure of the module. If the module has been corrupted, use the 1248K command instead.
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) 5V DC Supply provides power to the Storage Modul e. 5± 0.3V DC @ 100mA. Processor is held in reset when external power falls below 4V DC. Damage to SM hardware can occur if input on Pin 1 exceeds 5.5V DC. Low power standby mode current drain is less than 200 µA. Pin 2 (Input) Power and signal GROUND.
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.) It is possible to upgrade the operating system using Campbell Scientifics CSOS download utility. Please contact Campbell Scientific for a copy of this utility compatible with the SM4M and SM16M if you need to change the module operating system.