background image

SECTION 2.  STORING DATA FROM CR10, 21X, AND CR7

2-2

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.  If this is done before
connecting the Storage Module to allow the
datalogger to transfer the data, the old data
will 

NOT

 be automatically transferred to the

Storage Module.  Also, the Instruction 96
data transfer will not take place while the
datalogger is in communication with another
device, e.g. a computer or an active
CR10KD.

To be certain that the SM has been connected
during an execution of Instruction 96, the user
can:

1.

Leave the SM connected longer than
the execution interval of the Program
Table that includes Instruction 96,

 or

2.

Use the SC90 9 pin Serial Line Monitor.
The SC90 contains an LED which lights
during data transmission.  The user
connects the SM to the datalogger with
the SC90 on the line and waits for the
LED to light.  WHEN THE LED GOES
OFF, data transfer is complete and the
SM can be disconnected.

To avoid data loss, data must be retrieved
before the datalogger's ring memory wraps
around and begins to write over the oldest data.

2.1.1  MULTIPLE STORAGE MODULES WITH

CR10

The CR10 uses synchronous addressing to
communicate with multiple peripherals (CR10
Manual, Sections 6.2 and 6.6).  Up to 8 Storage
Modules can be connected to a single CR10.
Each is assigned an address, 1 through 8.
Addresses are assigned in the *9 Mode
(Command 10), or in the Telecommunications
Command State (the L Command).  These are
discussed in Appendixes A and D of this
manual, respectively.  The default Storage
Module address on reset (as sent from the
factory) is #1.  This will be sufficient for most
users.

At a given time, only one Storage Module will
execute commands directed to SM #1.  If there
is no Storage Module with address #1, the
Storage Module with the lowest numbered
address will execute the commands sent to SM
#1.  Commands directed to addresses other
than #1 can be executed ONLY by the SM with
the correct address.  Do NOT connect Storage
Modules with the same address to a CR10 at
the same time.

If only one Storage Module is used with the
CR10, its address should be #1.  When multiple
Storage Modules are used in a CR10 system,
each should be assigned its own address and
set to Fill and Stop.  Instruction 96 is used in the
CR10 program to send data to Storage Module
address #1.  The lowest numbered Storage
Module will fill up first, followed by the next
lowest address, and so on.  Alternatively, data
can be sent to specific Storage Modules via
direct addressing by the CR10 (using a
separate Instruction 96 for each SM).

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 CR10 with SC12
cables.

2.

Time must be allowed between the
execution of multiple 96 commands to
Storage Modules.  Add 5 msec to the
time it takes to store the number of
bytes to be transmitted (1 msec per
byte) before executing the next
Instruction 96 which addresses a
different Storage Module.

3.

Use of the keyboard or
telecommunications during the
execution of the Instruction 96 may
backlog the data to be sent to the
Storage Modules.  In this event, during
the next execution of Instruction 96 all
backlogged data will be sent to the
Storage Module addressed in that
instruction.

Summary of Contents for SM192

Page 1: ...SM192 716 STORAGE MODULE INSTRUCTION MANUAL REVISION 6 14 93 COPYRIGHT c 1989 1993 CAMPBELL SCIENTIFIC INC...

Page 2: ...rchantability 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 authorizatio...

Page 3: ...FROM CR10 21X AND CR7 2 1 2 1 Instruction 96 Output Data Under Program Control 2 1 2 1 1 Multiple Storage Modules with CR10 2 2 2 1 2 Use of Two Storage Modules with 21X or CR7 2 3 2 2 8 and 9 Mode K...

Page 4: ...nd Retrieve Datalogger Programs 6 1 LIST OF TABLES 6 1 1 D Mode Keyboard Commands for the CR10 and 21X 6 1 A 1 9 Commands for Storage Module A 1 LIST OF FIGURES 1 2 1 Storage Module and SC12 Cable 1 2...

Page 5: ...ers released after February 1989 and CR7 dataloggers released after August 1991 contain the OSX and OS7 Series PROMS which support two major SM functions that earlier versions do not 1 The D storage a...

Page 6: ...the datalogger or from data retrieval interfaces such as the SC532 9 pin Peripheral to RS232 Interface the SM232A Storage Module RS232 Interface or the PC201 Clock SIO Tape Read Card Pin 1 of the 9 p...

Page 7: ...connected and sends the backlogged data the next time it executes Instruction 96 The SM can store data either under program control Instruction 96 or under user control 8 Mode with CR10 9 Mode with 2...

Page 8: ...SECTION 1 SM192 716 STORAGE MODULE OVERVIEW 1 4 Figure 1 4 1 Operation with Current CR10 21X and CR7 Figure 1 4 2 Printer Enable Operations Figure 1 4 3 Telecommunications Command State...

Page 9: ...in the data from SMCOM or the CR10 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...

Page 10: ...a to Storage Module When output to the Storage Module is enabled with Instruction 96 the Storage Module s may either be left on site and periodically exchanged or brought to the site to milk the data...

Page 11: ...this manual respectively The default Storage Module address on reset as sent from the factory is 1 This will be sufficient for most users At a given time only one Storage Module will execute commands...

Page 12: ...og voltage measurements Two options are available for data retrieval with this instruction 1 Data are stored in datalogger Input Storage Locations or 2 Raw data are sent out the datalogger serial port...

Page 13: ...t When in this setting the SM can automatically change from capturing data at 76 800 baud to capturing data at 9600 baud This feature allows the use of two different baud rates in a single program The...

Page 14: ...to the Storage Module automatically when it is properly configured and connected to the CR21 Use SCOM to set the Storage Module baud rate to 300 to collect CR21 data The Encode Decode switch should be...

Page 15: ...3H command is used only during testing 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 fo...

Page 16: ...6 800 baud Bytes from the Storage Module input buffer are permanently stored in byte pairs The Campbell Scientific Inc dataloggers Final Storage Format data are always grouped in pairs Printable ASCII...

Page 17: ...Campbell Scientific Inc s SC12 9 pin ribbon cable links the Storage Module to the SC532 Figure 5 1 1 The SC532 requires 12 VDC nominal which is usually furnished by plugging the AC DC adaptor unit in...

Page 18: ...SECTION 5 DATA RETRIEVAL 5 2 5 1 1 Storage Module Connected With SC532 5 1 2 Storage Module Connected to PC201 Card 5 1 3 Communication Via the CR10 5 1 4 Storage Module Connected With SM232A...

Page 19: ...1 c Execute SMCOM PC208 manual 5 3 2 NON IBM COMPATIBLES The following instructions apply to a configuration using a terminal emulator program and the SM232A It is assumed for this example that the t...

Page 20: ...n data retrieval program 5 3 3 CR10 TELECOMMUNICATIONS INTERFACE Make the connections Figure 5 1 3 and establish communications with the CR10 Send the command XM CR to the CR10 where X is the Storage...

Page 21: ...Display Description D 13 00 Enter D Mode 7XA 7X 00 Address Storage Module X 1YA Store Program in SM as Y Y 1 8 2YA Load Program Y from SM 3YA Erase Program Y from SM 13 0000 command completed The pro...

Page 22: ...1 minute with the SM192 or 4 minutes with the SM716 the number of good RAM chips will be displayed 01 06 6 RAM chips in SM192 01 22 22 RAM chips in SM716 Most commands have at least one response Adva...

Page 23: ...y location pointer to SRP 9 Oldest data to SRP 1 5 will loop within file boundaries 0 7 9 allows display to cross boundaries If no file is found the display returns 07 00 At this point another file ca...

Page 24: ...A 3 COMMAND DISPLAY DESCRIPTION 9 DISPLAY ADDRESSES OF CONNECTED SM S XXXXXXXX 1 occupied 0 unoccupied 87654321 Addresses 8 1 from left to right 10 CHANGE ADDRESS 10 0X X is current address enter yA...

Page 25: ...B 1 APPENDIX B SAMPLE FLOW DIAGRAM FOR DATA RETRIEVAL PROGRAM...

Page 26: ...EVICES The Printer Enable Method Section 4 is used for non datalogger SM applications The PE line must be low when power is applied or removed If a switch is used to enable data storage the switch mus...

Page 27: ...DC and Pin 7 CLK HS is low 0 VDC the processor is set to receive data asynchronously on Pin 9 TD When the PE line is dropped data remaining in the input buffer are stored and the location pointers are...

Page 28: ...stored number of good Memory chips number of Errors logged max 255 number of Available storage locations number of locations Full Storage Reference Pointer Display Location Pointer and Checksum sum of...

Page 29: ...P is advanced to the beginning of the next file The DLP is advanced as the SM reads through the data until a File Mark or the Storage Reference Pointer is encountered For long files the delay involved...

Page 30: ...ch When used with a CR10 or 21X this switch can be set to 1 8 The address has no effect when used with other Campbell Scientific Inc dataloggers Following reset the SM address defaults to 1 b is the B...

Reviews: