SM4M / SM16M
Storage Module
User Guide
Issued 14.02.00
Copyright
Copied under licence by Campbell Scientific Ltd.
2000 Campbell Scientific, Inc.
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. The
guarantee will not apply to:
Equipment which has been modified or altered in any way without the
•
written permission of Campbell Scientific
Batteries
•
Any product which has been subjected to misuse, neglect, acts of God
•
or damage in transit.
Campbell Scientific will return guaranteed equipment by surface carrier
prepaid. Campbell Scientific will not reimburse the claimant for costs
incurred in removing and/or reinstalling equipment. This guarantee and
the Companys obligation thereunder is in lieu of all other guarantees,
expressed or implied, including those of suitability and fitness for a
particular purpose. Campbell Scientific is not liable for consequential
damage.
Please inform us before returning equipment and obtain a Repair Refer-
ence Number whether the repair is under guarantee or not. Please state the
faults as clearly as possible, and if the product is out of the guarantee
period it should be accompanied by a purchase order. Quotations for re-
pairs can be given on request.
When returning equipment, the Repair Reference Number must be clearly
marked on the outside of the package.
Note that goods sent air freight are subject to Customs clearance fees
which Campbell Scientific will charge to customers. In many cases, these
charges are greater than the cost of the repair.
Campbell Scientific Ltd,
Campbell Park, 80 Hathern Road,
Shepshed, Leicestershire, LE12 9RP UK
Tel: +44 (0) 1509 601141
Fax: +44 (0) 1509 601091
Email: support@campbellsci.co.uk
http://www.campbellsci.co.uk
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............................................................................. 1-3
1.3.2 Backup Power and Data Retention .............................................. 1-3
1.4 Function................................................................................................1-3
1.4.1 Operation with Current Dataloggers ........................................... 1-3
1.4.2 Operation with Dataloggers with Older Operating Systems ....... 1-4
1.4.3 Data Retrieval/Telecommunication Command State .................. 1-4
1.4.4 Memory Configuration ............................................................... 1-5
1.4.5 Baud Rates .................................................................................. 1-5
1.4.6 File Marks ................................................................................... 1-5
1.4.7 Power-up Status Indication ......................................................... 1-5
1.5 Quick Start-Up Procedure..................................................................... 1-6
1.5.1 Preparation .................................................................................. 1-6
1.5.2 Programming the Datalogger to Send Data to the SM ................ 1-6
1.5.3 Manual Dump ............................................................................. 1-7
1.5.4 Data Retrieval.............................................................................. 1-7
Section 2. Storing Data from Current Datal oggers .. .2-1
2.1 Instruction 96 – Output Data Under Program Control.......................... 2-1
2.1.1 Multiple Storage Modules with the CR500/510, CR10/10X
or CR23X .................................................................................. 2-2
2.1.2 Use of Two Storage Modules with the 21X or CR7 ................... 2-3
2.2 *8 and *9 Mode – Keyboard-Initiated Data Transfer........................... 2-3
2.2.1 *8 Mode CR500/510, CR23X, CR10/10X ............................... 2-3
2.2.2 *9 Mode 21X or CR7 ............................................................... 2-3
2.3 Storing Burst Measurement Data from the CR10/10X, CR23X
or 21X.................................................................................................. 2-3
2.3.1 Burst Data with CR10/10X, CR23X Dataloggers ....................... 2-4
2.3.2 Burst Data with 21X Dataloggers ............................................... 2-4
Section 3. The Printer Enable Method of
Data Storage............................................................3-1
3.1 Baud Rates............................................................................................ 3-1
3.2 Storing Data from the 21X and CR7.....................................................3-1
3.2.1 Instruction 96 Output Under Program Control ........................3-1
3.2.2 *4 Mode Output Device Enable ............................................... 3-2
3.2.3 *9 Mode Keyboard-Initiated Data Transfer ............................. 3-2
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
i
SM4M/SM16M Storage Module User Guide
Section 4. Storage Module Memory:
Details of Data Storage...........................................4-1
4.1 File Marks............................................................................................. 4-1
4.2 Pointers................................................................................................. 4-1
4.3 Data Formats – Space Requirements.................................................... 4-2
4.4 Available Storage.................................................................................. 4-2
4.5 Bad Data ............................................................................................... 4-3
Section 5. Data Retrieval.............................................5-1
5.1 Hardware............................................................................................... 5-1
5.1.1 SC532 Interface .......................................................................... 5-1
5.1.2 Via Datalogger ............................................................................ 5-2
5.1.3 Via Remote Datalogger and Modem........................................... 5-2
5.2 Datalogger Support Software................................................................5-3
5.2.1 SMS............................................................................................. 5-3
5.3 Data Retrieval Steps.............................................................................. 5-3
5.3.1 Windows/NT PCs........................................................................ 5-3
5.3.2 CR500/510, CR10/10X and CR23X
Telecommunications Interface...................................................... 5-3
Section 6. Storing and Retrieving
Datalogger Programs..............................................6-1
6.1 SMS Storage Module Support Software............................................... 6-1
6.2 *D Mode – with Datalogger ................................................................. 6 -1
6.3 Using DSP4 Heads Up Display to Store and
Retrieve Datalogger Programs............................................................. 6-2
Appendix A. *9 Mode—Storage Module Commands A-1
Appendix B. Telecommunications Commands........B-1
Appendix C. Storage Module 9-Pin Connector.........C-1
Appendix D. Upgrading the Operating System.........D-1
Figures
1-1 Storage Module and SC12 Cable .......................................................... 1-2
1-2 Operation with Current Dataloggers ..................................................... 1-3
1-3 Pin-Enable Operations .......................................................................... 1-4
1-4 Telecommunications Command State .................................................. 1-4
5-1 Storage Module Connected to a Portable PC via an SC532 Interface .. 5-1
5-2 Communication Via the CR500/510, CR10/10X or CR23X ................ 5-2
5-3 Communication Via the CR23X ........................................................... 5-2
5-4 Typical Setup for Remote Collection of Data Via Datalogger
and Modem.......................................................................................... 5-2
Tables
4-1 Ring-Memory Effective Memory Capacity .......................................... 4-2
6-1 *D Mode Keyboard Commands ........................................................... 6-1
A-1 *9 Mode Commands for Storage Module .......................................... A-2
ii
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. The Overview surveys the Storage Modules and
their function. It also explains how to quickly begin using an SM for straightforward data
storage operations. The remainder of the manual is a technical reference which describes in
detail such operations as: storing data from current dataloggers, storing data from older
dataloggers, data retrieval, and datalogger program storage and retrieval.
The Overview should be read by all users, as should Section 5 (Data Retrieval). Users with
the CR500/510, CR10/10X, CR23X or with the 21X or CR7 with recent operating systems (i.e.
current dataloggers) should read Section 2, while users of Campbell Scientifics older
dataloggers should read Section 3. Section 6 (Storing and Retrieving Datalogger Programs)
and Appendix B (Telecommunication Commands) may be used as needed.
SMS (Storage Module Software) simplifies communication procedures between dataloggers
and storage modules. SMS is part of Campbell Scientifics PC208W Windows-based
datalogger support software. Contact Campbell Scientific for further information.
1.1 Specifications
Storage Capacity:
SM4M: 2 Million low-resolution data values
SM16M: 8 Million low-resolution data values
Program storage: stores up to eight programs with a total capacity
of 128 kbytes (including labels)
Dimensions: 135 x 75 x 20 mm
Weight: 200 g
Canister: Sealed
Processor: Hitachi H8S
Operating system: 64 kbytes, flash memory based, user
downloadable.
Operating Temp. Range: -35°Cto+65°C (-55°Cto+85°C optional)
Baud Rates for data storage: 9600, 76800 baud
Baud Rates for
telecommunications: 1200, 2400, 4800, 9600, 19200, 38400, 57600,
76800, 115200.
Memory Configuration: User selectable for either ring style (default) or fill
and stop.
1-1
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
Peak current (flash erase): 60mA
A.
Maintenance: There are no user-serviceable parts inside the
Storage Module.
Logan, UT
L
O
S
D
I
SN:
SM4M
A
T
S
O
T
S
E
T
MADE IN USA
E
L
U
D
O
M
E
G
A
R
1.2 Physical Description
The Storage Module is housed in a sealed canister with a single, 9- pin
D-connector. The Storage Module is connected to a datalogger via the SC12
9-conductor ribbon cable.
There are two LEDs (light emitting diodes) adjacent to the connector. A red status
LED indicates the operational status of the module at power-up (see section 1.4)
and a green LED lights when data is being stored in the module.
The SM4M and SM16M are identical except for the amount of memory they
contain. The internal memory is split into 64kb blocks. There are 64 blocks of
STATUS
W
R
ITE
Figure 1-1 Storage Module and SC12 Cable
1-2
1.3 Power
1.3.1 Primary Power
1.3.2 Backup Power and Data Retention
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.
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. Pin 2 is both the power
ground and signal ground.
The modules use non-volatile flash EEPROM memory, which does not require
power to retain data. There is no internal battery.
The flash memory will retain stored data for approximately 10 years. Typically,
the flash memory can be erased and rewritten a minimum of 100,000 times.
1.4 Function
1.4.1 Operation with Current Datal ogger s
STORE DATA W/ INSTRUCT ION 96
The SM4M and SM16M Storage Modules supplement the storage capacity in a
datalogger. The Storage Modules can store data from Campbell Scientific
dataloggers and from other devices which properly enable them.
All Storage Module operations occur in one of three basic operational modes:
1. Interactive communication with the datalogger for data and program storage
and retrieval.
2. The Printer-Enable Method for data storage with the 21X and CR7 which
have older operating systems, and also with the DSP4.
3. The Telecommunications Command State for data retrieval and other
miscellaneous operations.
The Storage Module uses an interactive command structure with handshaking
when connected to the CR500/510, the CR10/10X, CR23X, or to the 21X or CR7
fitted with recent software (see Figure 1-2). If the SM is not connected the
datalogger does not send data. The datalogger detects when the SM is connected
and sends the backlogged data the next time it executes Instruction 96.
Datalogger
STORE DATA W/ *8 MODE CR500/CR510/CR10/CR10X/CR23X
STORE DATA W/ *9 MODE 21X, CR7
UPLOAD AND DOWNLO AD PROGRAMS W/ *D MODE
*9 MODE COMMANDS CR500/CR510/CR10/CR10X/CR23X
Figure 1-2 Operation with Current Dataloggers
SM4M/
16M
1-3
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.2 Operation with Dataloggers with Ol der Operating Systems
(Printer-Enable Method)
In the Printer-Enable Method (see Figure 1-3), the Storage Module stores all data
received (on pin 9) while the printer enable line (pin 6) is high. The Storage
Module automatically detects the baud rate from the sending device (9600 or
76800 only). The datalogger cannot detect if the SM is connected. Data is sent
whether or not the SM is connected.
21X
CR7X
CR7
CR21
DSP4
SM4M/
16M
Figure 1-3 Pin-Enable Operations
Data can be stored in the SM under program control (Instruction 96 or *4 Mode)
or under user control (*9 Mode). Operations with the DSP4 Heads Up Displays
also use the Printer-Enable Method. (See Section 3).
1.4.3 Data Retrieval / Telecommunication Command State
Data retrieval and other interactive operations with a computer take place in the
Telecommunications command state see Figure 1-4. PC208W uses the
Telecommunications Commands for data retrieval. Direct telecommunication
commands can also be sent from SMS (part of PC208W) in the Terminal
Emulator mode. A list of direct telecommunication commands is shown in
Appendix B.
Computer/
Terminal
SM4M/
16M
1-4
Figure 1-4 Telecommunications Command State
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. The Storage Modules memory configuration can be changed using SMS or
with command 4 of the CR500/510, CR10/10X and CR23X *9 Mode.
1.4.5 Baud Rates
The Storage Module automatically detects the baud rate of data sent to it.
When using the telecommunications commands, sending several carriage returns
will cause the Storage Module to match the computers baud rate (see
specifications above).
1.4.6 File Marks
File Marks are used to separate data in the Storage Module. A File Mark is
automatically placed in the SMs memory when the SM is connected to a power
source (datalogger or retrieval interface) or when the datalogger compiles a
program containing Instruction 96. For example, if the user has retrieved data
from one datalogger, disconnects the SM and then connects it to a second
datalogger, a File Mark is placed in the data when the second datalogger is
connected. This mark follows the data from the first datalogger and precedes the
data from the second. A File Mark can also be inserted under program control.
Section 1. SM4M/SM16M Storage Module Overview
CAUTION
The SM must be disconnected from power for a minimum of
10 seconds to be certain it places a File Mark in the SM when
reconnected.
A File Mark can be placed in the data by using SMS or the CR500/510,
CR10/10X or CR23X *9 Mode command 3. The Storage Module will not store
back-to-back 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, the red Status LED will flash to indicate the status of the module.
CAUTION
The SM must be disconnected from power for a minimum of
10 seconds to ensure it powers down and performs the status
check when reconnected.
After connection there will be a short delay when neither LED is illuminated. The
length of the delay is variable and is partly determined by the address of the
module. This delay avoids excessive power consumption during power-up, when
several modules are connected to the datalogger. For a module at address 1 the
initial delay will be up to 2 seconds. The delay increases by approximately one
second for each increase in the address number.
1-5
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.
The total number of flashes indicates the status of the module, as follows:
Module OK 1 flash
Module operating system corrupted 2 flashes
OK and Program area full 3 flashes
Flash memory corrupted 4 flashes
OK - has wrapped around at least once 5 flashes
Storage module full 7 flashes
Previous operating system load failed 10 flashes
If the module is connected to a datalogger which has data to send, the green
Write LED may start to flash shortly after the end of the Status flash, as the
module becomes available to receive data and store it.
The module will only receive data if the status is OK, is OK and program area full
or OK and has wrapped around at least once. For any of the other status
conditions the module will not accept any further data until the fault has been
corrected.
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 SM and test the memory.
If it is not possible to use a PC and SMS, you must establish communication
between the SM, the available computer or terminal (see Section 5), and reset the
SM using the telecommunications commands (see Appendix B) or use the *9
Mode in the CR500/510, CR10/10X or CR23X.
There are two possible reset mechanisms. A full reset and test (command 1248K),
which erases the memory and then carries out a thorough test of the storage
memory, and the quick reset (command 1249K). While the 1248K command
thoroughly checks the module, it can take some time to perform this test (over 20
minutes for larger modules). A quick reset, resets all the memory pointers and
erases the flash chips. It also does a less rigorous test of the flash memory, but the
test is adequate for most purposes. An SM16M will take around 3 minutes to
perform a quick reset.
1.5.2 Programming the Datalogger to Send Data to the SM
1-6
Instruction 96 is used in the datalogger program to send data to the Storage
Module. The SM is connected to the datalogger with the SC12 cable. Each time
Instruction 96 is executed, Final Storage data accumulated since the last transfer is
sent to the Storage Module.