Campbell CFM100 User Guide

CFM100 CompactFlash® Module
Revision: 1/11
Copyright © 2000-2011
Campbell Scientific, Inc.
The CFM100 COMPACT FLASH 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. The customer shall assume all costs of removing, reinstalling, and shipping defective products to Campbell Scientific, Inc. Campbell Scientific, Inc. will return such products by surface carrier prepaid. This warranty shall not apply to any Campbell Scientific, Inc. products which have been subjected to modification, misuse, neglect, accidents of nature, or shipping damage. This warranty is in lieu of all other warranties, expressed or implied, including warranties of merchantability or fitness for a particular purpose. Campbell Scientific, Inc. is not liable for special, indirect, incidental, or consequential damages.
Products may not be returned without prior authorization. The following contact information is for US and International customers residing in countries served by Campbell Scientific, Inc. directly. Affiliate companies handle repairs for customers within their territories. Please visit www.campbellsci.com to determine which Campbell Scientific company serves your country.
To obtain a Returned Materials Authorization (RMA), contact Campbell Scientific, Inc., phone (435) 753-2342. After an applications engineer determines the nature of the problem, an RMA number will be issued. Please write this number clearly on the outside of the shipping container. Campbell Scientific's shipping address is:
CAMPBELL SCIENTIFIC, INC.
RMA#_____ 815 West 1800 North Logan, Utah 84321-1784
For all returns, the customer must fill out a “Declaration of Hazardous Material and Decontamination” form and comply with the requirements specified in it. The form is available from our website at completed form must be either emailed to repair@campbellsci.com 435-750-9579. Campbell Scientific will not process any returns until we receive this form. If the form is not received within three days of product receipt or is incomplete, the product will be returned to the customer at the customer’s expense. Campbell Scientific reserves the right to refuse service on products that were exposed to contaminants that may cause health or safety concerns for our employees.
www.campbellsci.com/repair
. A
or faxed to
CFM100 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.
1. CFM100 CompactFlash® 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.5 Quick Start Procedure........................................................................... 1-3
1.5.1 Preparation .................................................................................. 1-3
1.5.2 Programming the Datalogger to Send Data to the CFM100....... 1-3
1.5.3 Data Retrieval ............................................................................. 1-4
2. File Formats ..............................................................2-1
2.1 Data Files.............................................................................................. 2-1
2.2 Program Files........................................................................................ 2-1
2.3 Power-up Files (powerup.ini) ............................................................... 2-1
2.3.1 Creating and Editing Powerup.ini............................................... 2-2
2.3.2 Applications ................................................................................ 2-3
2.3.3 Program Execution...................................................................... 2-4
2.3.4 Example Power-up.ini Files........................................................ 2-4
2.3 Camera Files ......................................................................................... 2-5
3. Programming ............................................................3-1
3.1 The CardOut Instruction....................................................................... 3-1
3.2 Program Examples................................................................................ 3-1
3.2.1 Ring Mode .................................................................................. 3-1
3.2.2 Fill and Stop Mode...................................................................... 3-2
3.2.3 Mixed Modes .............................................................................. 3-2
3.3 Table Size and Mode ............................................................................ 3-4
4. Data Retrieval............................................................4-1
4.1 Via a Communication Link................................................................... 4-1
4.2 Transporting CF Card to Computer...................................................... 4-1
4.2.1 Converting File Formats ............................................................. 4-1
4.2.2 Reinserting the Card ................................................................... 4-2
4.2.3 Card Swapping............................................................................ 4-2
i
CFM100 Table of Contents
Appendices
A. Formatting CF Card................................................. A-1
B. PC/CF Card Information.......................................... B-1
Figure
Tables
A.1 Windows Explorer ..............................................................................A-1
A.2 CR1000KD ......................................................................................... A-2
A.3 LoggerNet File Control....................................................................... A-2
1-1. CompactFlash Module......................................................................... 1-2
2.3.1-1. Powerup.ini Commands................................................................. 2-3
B-1. CRBasic Dataloggers and PC/CF Cards ............................................ B-1
B-2. SLC and MLC Performance Characteristics...................................... B-1
B-3. Comparison of Industrial and Commercial Grade Cards................... B-2
B-4. Silicon Systems and Campbell Scientific PC/CF Model Numbers.... B-2
ii

Section 1. CFM100 CompactFlash® Module Overview

Campbell Scientific’s CFM100 CompactFlash® Module stores the datalogger’s data on a removable CompactFlash (CF) card. The CFM100 module connects to the datalogger via the 40-pin peripheral port. Currently, only our CR1000 and CR3000 dataloggers have the 40-pin peripheral port; the CFM100 is not compatible with the CR200-series, CR800, CR850, CR5000, and CR9000X dataloggers.
This section of the manual surveys the CFM100 and its function. It also explains how to quickly begin using a CFM100 for straightforward data storage operations. The remainder of the manual is a technical reference which describes in detail such operations as: file formats, datalogger programming and data retrieval.

1.1 Specifications

Storage Capacity: Depends on card size (up to 2 GB supported) Dimensions: 4.0" x 3.3" x 2.6" (10.0 x 8.3 x 6.5 cm) Weight: 132.5 g Operating Temp. Range: -35°C to +65°C (-55°C to +85°C optional) Typical Access Speed: 200 - 400 Kb/sec Memory Configuration: User selectable for either ring style (default) or
fill and stop. Power Requirements: 12 V supplied through CR1000 peripheral port Power: The CFM100 receives power from the datalogger through the peripheral port.
The following currents are for the CR1000 with the CFM100 attached and can vary with the card.
Writing to card with RS-232 port active: 30 mA (avg.)
Reading from card with RS-232 port active: 20 mA (avg.)
Writing to card with RS-232port not active: 20 mA (avg.)
Reading from card with RS-232 port not active: 15 mA (avg.)
Low Power Standby State: 700–800 μA Maintenance: There are no user-serviceable parts inside the
module.
1-1
Section 1. CFM100 CompactFlash® Module Overview
STATUS
SN:
12057
Logan, Utah
MADE IN USA
CONTROL
CompactFlash Memory Module
CFM100
CARD
FIGURE 1-1. CompactFlash Module

1.2 Physical Description

The CFM100 connects to a datalogger peripheral port and has a slot for a Type I or Type II CompactFlash (CF) card (3.3V, 75 mA).
There is one red-green-orange LED (light emitting diode) and two buttons: control and eject. The LED indicates the status of the module. The LED will flash red when the CF card is being accessed, solid green when it is OK to remove the card, solid orange to indicate an error, and flashing orange if the card has been removed and has been out long enough that CPU memory has wrapped and data is being overwritten without being stored to the card. The control button must be pressed before removing a card to allow the datalogger to store any buffered data to the card and then power it off.
1-2

1.3 Power

1.3.1 Primary Power

1.3.2 Backup Power and Data Retention

1.4 Function

Section 1. CFM100 CompactFlash® Module Overview
The CompactFlash Module is powered by 12 VDC received from the datalogger through the peripheral port.
The module accepts CompactFlash (CF) cards which do not require power to retain data.
Typically, a CF card can be erased and rewritten a minimum of 100,000 times. Industrial CF cards, graded for 2,000,000 write cycles, are recommended for most applications.
The CFM100/CF card combination can be used to expand the datalogger’s memory, transport data/programs from the field site(s) to the office, upload datalogger power up functions, and store JPEG images from the CC640 camera. Data stored on cards can be retrieved through a communication link to the datalogger or by removing the card and carrying it to a computer. The computer can read the CF card either with the CF1 adapter or 17752 Reader/Writer. The CF1 adapter allows the PC’s PCMCIA card slot to read the CF card; the 17752 Reader/Writer allows the PC’s USB port to read the CF card. User-supplied CF adapters may also be used.
CAUTION
LoggerNet’s File Control should not be used to retrieve data from a CompactFlash card. Using File Control to retrieve the data can result in a corrupted data file.

1.5 Quick Start Procedure

This Section describes the basics of storing and retrieving datalogger data. These operations are discussed in detail in Sections 3 and 4 of this manual.

1.5.1 Preparation

CAUTION

1.5.2 Programming the Datalogger to Send Data to the CFM100

Always power down the datalogger before installing or removing the CFM100 to/from the datalogger.
After powering down the datalogger, plug the CFM100 into the datalogger peripheral port. Restore power to the datalogger. Insert formatted CF card. (For instructions on formatting a CF card, see Appendix A.)
The CardOut instruction is used in the datalogger program to send data to the CF card. The CardOut instruction must be entered within each DataTable declaration that is to store data to the CF card. The file is saved to the card with the name stationname.tablename and a .DAT extension.
1-3
Section 1. CFM100 CompactFlash® Module Overview
The CardOut instruction has the following parameters: StopRing: A constant is entered for the StopRing parameter to specify
whether the DataTable created should be a Ring Mode table (0) or a Fill and Stop table (1).
Size: The Size parameter is the minimum number of records that will be included in the DataTable. If –1000 is entered, the size of the file on the card will be the same as the size of the internal table on the datalogger. If any other negative number is entered, the memory that remains after creating any fixed­size tables on the card will be allocated to this table. If multiple DataTables are set to a negative number, the remaining memory will be divided among them. The datalogger attempts to size the tables so that all of them will be full at the same time
In the following example, the minimum batt_voltage and a sample of PTemp is written to the card each time the data table is called. The StopRing parameter is 0 for Ring mode. This means that once the data table is full, new data will begin overwriting old data. The size parameter is –1, so all available space on the card will be allocated to the table.
DataTable (Table1,1,-1) CardOut (0 ,-1) Minimum (1,batt_volt,FP2,0,False) Sample (1,PTemp,IEEE4) EndTable
CAUTION
To prevent losing data, collect data from the CF card before sending the datalogger a new or modified program. When a program is sent to the datalogger using the Send button in the Connect screen of LoggerNet or PC400, an attribute is sent along with the program that commands the datalogger to erase all data on the CF card from the currently running program.

1.5.3 Data Retrieval

Data stored on cards can be retrieved through a communication link to the datalogger or by removing the card and carrying it to a computer with a CF adapter. With large files, transferring the CF card to a computer may be faster than collecting the data over a communication link. Data retrieval is discussed in detail in Section 4.
CAUTION
Removing a card while it is active can cause garbled data and can actually damage the card. Always press the control button and wait for a green light before removing card.
1-4
CAUTION
LoggerNet’s File Control should not be used to retrieve data from a CompactFlash card. Using File Control to retrieve the data can result in a corrupted data file.

Section 2. File Formats

This section covers the different types of files stored on the CF card

2.1 Data Files

The datalogger stores data on the CF card in TOB3 Format. TOB3 is a binary format that incorporates features to improve reliability of the CF cards. TOB3 allows the accurate determination of each record’s time without the space required for individual time stamps.
TOB3 format is different than the data file formats created when data are collected via a communications link. Data files read directly from the CF card generally need to be converted into another format to be used
When TOB3 files are converted to another format, the number of records may be slightly greater or less than the number requested in the data table declaration. There is always some additional memory allocated. When the file is converted this will result in additional records if no lapses occurred. If more lapses occur than were anticipated, there may be fewer records in the file than were allocated.
The CardConvert software included in LoggerNet, PC400, and PC200 will convert data files from one format to another.

2.2 Program Files

The CF card can be used to provide extra program storage space for the datalogger. Program files can be copied to the card while it is attached as a drive on the computer. They can also be sent to the card using LoggerNet’s File Control. They may also be copied from CPU memory to the card (or from the card to CPU memory) using the keyboard display.

2.3 Power-up Files (powerup.ini)

Users can insert a properly-configured CF card into the CFM100, cycle through the datalogger power, and have power up functions automatically performed.
Power-up functions of CompactFlash(R) cards can include
a) Sending programs to the CR1000 or CR3000 b) Setting attributes of datalogger program files c) Setting disposition of old CF files d) Sending an OS to the CR1000 or CR3000 e) Formatting memory drives f) Deleting data files
2-1
Section 2. File Formats
CAUTION
Test the power-up functions in the office before going into the field to ensure the power-up file is configured correctly.
The key to the CF power-up function is the powerup.ini file, which contains a list of one or more command lines. At power-up, the powerup.ini command line is executed prior to compiling the program. Powerup.ini performs three operations:
1) Copies the specified program file to a specified memory drive.
2) Sets a file attribute on the program file
3) Optionally deletes CF data files from the overwritten (just previous)
program.
Powerup.ini takes precedence during power-up. Though it sets file attributes for the programs it uploads, its presence on the CF does not allow those file attributes to control the power-up process. To avoid confusion, either remove the CF card or delete the powerup.ini file after the powerup.ini upload.

2.3.1 Creating and Editing Powerup.ini

Powerup.ini is created with a text editor, then saved as “powerup.ini”.
NOTE
Some text editors (such as WordPad) will attach header information to the powerup.ini file causing it to abort. Check the text of a powerup.ini file with the datalogger keyboard display to see what the datalogger actually sees.
Comments can be added to the file by preceding them with a single-quote character (‘). All text after the comment mark on the same line is ignored.
Syntax
Syntax allows functionality comparable to File Control in LoggerNet. Powerup.ini is a text file that contains a list of commands and parameters. The syntax for the file is:
Command,File,Device
where
Command = one of the numeric commands in Table 2.3.1-1. File = file on CF associated with the action. Name can be up to 22
characters.
Device = the device to which the associated file will be copied to.
Options are CPU:, USR:, and CRD:. If left blank or with invalid option, will default to CPU:.
2-2
Loading...
+ 22 hidden pages