CFM100 Compact Flash Module Instruction Manual Issued: 30.7.12 Copyright © 2000-2012 Campbell Scientific Inc. Printed under Licence by Campbell Scientific Ltd.
Guarantee This equipment is guaranteed against defects in materials and workmanship. This guarantee applies for twelve 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.
PLEASE READ FIRST About this manual Please note that this manual was originally produced by Campbell Scientific Inc. primarily for the North American market. Some spellings, weights and measures may reflect this origin. Some useful conversion factors: Area: 1 in2 (square inch) = 645 mm2 Length: 1 in. (inch) = 25.4 mm 1 ft (foot) = 304.8 mm 1 yard = 0.914 m 1 mile = 1.609 km Mass: 1 oz. (ounce) = 28.35 g 1 lb (pound weight) = 0.454 kg Pressure: 1 psi (lb/in2) = 68.95 mb Volume: 1 UK pint = 568.
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 Compact Flash Module Overview............. 1-1 1.1 Specifications........................................................................................ 1-1 1.2 Physical Description ............................................................................. 1-2 1.3 Power ................................................................
Figure 1-1. Compact Flash Module ....................................................................... 1-2 Tables 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.
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.
CFM100 CompactFlash Module ST AT U S CO NT RO Co CF act mp Fla sh CA L RD M1 Me mo 00 ry M odu le SN : Log an, 120 Uta h 57 MA DE IN US A 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.
Section 1. CFM100 CompactFlash® Module Overview 1.3 Power 1.3.1 Primary Power The CompactFlash Module is powered by 12 VDC received from the datalogger through the peripheral port. 1.3.2 Backup Power and Data Retention 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. 1.
CFM100 CompactFlash Module 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.
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.
CFM100 Compact Flash Module 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.
Section 2. File Formats Table 2.3.1-1. Powerup.ini Commands Command Description 1 Run always, preserve CF data files 2 Run on power-up 5 Format 6 Run now, preserve CF data files 9 Load OS (File = .obj) 13 Run always, erase CF data files now 14 Run now, erase CF data files now By using PreserveVariables() instruction in the datalogger CRBASIC program, with options 1 & 6, data and variables can be preserved. EXAMPLE 2.3.1-1. Powerup.ini code.
CFM100 Compact Flash Module 3) If neither Run on Power-up nor Run Now programs are changed, the previous Run on Power-up program runs. 2.3.4 Example Power-up.ini Files Example 2.3.4-1 through Example 2.3.4-6 are example powerup.ini files. EXAMPLE 2.3.4-1. Run Program on Power-up. ’Copy pwrup.cr1 to USR:, will run only when powered-up later 2,pwrup.cr1,usr: EXAMPLE 2.3.4-2. Format the USR: drive. ’Format the USR: drive 5,,usr: EXAMPLE 2.3.4-3. Send OS on Power-up.
Section 3. Programming 3.1 The CardOut Instruction The CardOut Instruction is used to send data to a CF card. The CardOut Instruction must be entered within each DataTable declaration that is to store data to the CF card. Data is stored to the card when a call is made to the data table. CardOut (StopRing, Size) Parameter & Data Type StopRing Constant Size Constant Enter A code to specify if the Data Table on the CF card is fill and stop or ring (newest data overwrites oldest).
CFM Compact Flash Module PROGRAM 'CR1000 Public temp DataTable (Table1,1,-1) CardOut (0, -1) Maximum (1,temp,FP2,False,False) Minimum (1,temp,FP2,False,False) EndTable BeginProg Scan(1,SEC,3,0) PanelTemp(temp,250) CallTable Table1 NextScan EndProg 3.2.2 Fill and Stop Mode The following program outputs a sample of the panel temperature to the card once a second. The first parameter of the CardOut instruction is 1, which sets the table on the card to fill and stop mode.
Section 3. Programming Tables 3 and 4 will output the maximum and minimum of the panel temperature and battery voltage to the card once every five seconds. (The tables will be called once a second. The DataInterval instruction causes data to only be stored every five seconds.) The first parameter of the CardOut instructions is 0, which sets the tables on the card to ring mode.
CFM Compact Flash Module 3.3 Table Size and Mode The size of each data table in CPU memory is set as part of the DataTable instruction and the size of each data table on the CF card is set with the CardOut instruction. Because they are set independently, they can be different. It is important to note that if the CPU memory is set to fill and stop mode, once a table is full, all data storage to the table will stop. No more records will be stored to the CPU memory or the card.
Section 4. Data Retrieval Data stored on CF cards can be retrieved through a communication link to the datalogger or by removing the card and carrying it to a computer. 4.1 Via a Communication Link Data can be transferred to a computer via a communications link using one of Campbell Scientific’s datalogger support software packages (e.g., PC200, PC400, LoggerNet). There is no need to distinguish whether the data is to be collected from the CPU memory or a CF card.
CFM100 CompactFlash Module 4.2.2 Reinserting the Card If the same card is inserted again into the CFM100, the datalogger will store all data to the card that has been generated since the card was removed that is still in the CPU memory. If the data tables have been left on the card, new data will be appended to the end of the old files. If the data tables have been deleted, new ones will be generated. NOTE Check the status of the card before leaving the datalogger.
Section 4. Data Retrieval data is copied, use Windows Explorer to delete all data files from the card. NOTE: Windows98 and WindowsME users need to shift-delete to completely delete files. Using standard delete may create an invisible recycle bin on the CF card. 6. At the next card swap, eject CF-B and insert the clean CF-A. 7. Running CardConvert on CF-B will result in separate data files containing records since CF-A was ejected. Card Convert can increment the filename to TOA5_stationname_tablename_0.
CFM100 CompactFlash Module 4-4
Appendix A. Formatting CF Card The CF card can be formatted using 1) Windows Explorer, 2) the CR1000KD or 3) LoggerNet File Control. A.1 Windows Explorer To format card using Windows Explorer: 1) Insert CF card into CF adapter or CF reader. 2) Windows Explorer should identify a drive as a removable disk (F:\). 3) Select that drive and right click. 4) Choose Format.
CFM100 Compact Flash Module 5) Choose FAT32 under file system, give the card a label, then Start. (The CR1000 will work with either FAT or FAT 32.) A.2 CR1000KD To format card using the CR1000KD: 1) Insert CF card into CFM100. 2) From Main Menu of CR1000KD, choose PCCard. 3) Choose Format Card.. 4) Choose Yes to proceed. A.3 LoggerNet File Control To format card using LoggerNet File Control: 1) Insert CF card into CFM100.
Appendix A. Formatting CF Card 3) Choose FileControl under the Tools menu of the Connect screen. 4) Highlight CRD. 5) Press Format. 6) Press Yes to confirm.
CFM100 Compact Flash Module This is a blank page.
Appendix B. PC/CF Card Information PC or CompactFlash (CF) cards provide a relatively inexpensive, off-the-shelf means of retrieving data from many of our CRBasic dataloggers or expanding the on-board datalogger memory. The datalogger’s memory can be expanded up to 2 Gbytes with the use of these cards. Some dataloggers can use either a PC or CF card, and others can only use a CF card with the appropriate expansion module. Table B-1 lists the compatibility between dataloggers and cards. Table B-1.
CFM100 Compact Flash Module There are two types of CF cards available today: Industrial grade and Standard or Commercial grade. Industrial grade PC/CF cards are held to a higher standard; specifically they operate over a wider temperature range, offer better vibration and shock resistance, and have faster read/write times than their commercial counterparts (Table B-3).
Appendix B. PC/CF Card Information 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 8108 Garbutt Post Shop QLD 4814 AUSTRALIA www.campbellsci.com.au • info@campbellsci.com.au Campbell Scientific do Brazil Ltda.