background image

5-1

SECTION 5.  DATA RETRIEVAL

Data retrieval is accomplished on PCs using SMCOM.  Other computers require a software program
which makes use of the Storage Module Telecommunications Commands (Appendix D).  This process
requires both a hardware interface and a software program.

5.1  HARDWARE

There are four interfaces which enable
communication between a computer and the
Storage Module:

1.

The SC532 Peripheral to RS232 Interface

2.

The PC201 Tape Read, Clock, Serial I/O
Card (requires SC209 cable)

3.

The CR10 (not possible with other
dataloggers)

4.

The SM232A Storage Module RS232
Interface

The PC201 Card functions 

ONLY

 with IBM

PC/XT/AT's and compatibles.  The SC532 can
function with any computer having an RS232
port BUT both the PC201 and the SC532
require a software program to raise the CLK/HS
and PE lines (by raising pins 20 and 4,
respectively, on the computer) in order to
activate the SM (Section 5.2).  SMCOM
program performs this function automatically.
The SM232A functions with any RS232
computer or terminal which raises the DTR line
when powered up.

5.1.1  SC532

A standard 25-pin ribbon cable links the SC532
to the computer's 25-pin serial port.  If the
computer has a 9-pin serial port, a 9-pin to 25-
pin adaptor cable is required.  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 into a standard 120 VAC outlet.  The use of
battery power is possible and is described in the
SC532 manual.

5.1.2  SC209/PC201

The SC209 - Storage Module connector cable
(available from Campbell Scientific Inc.) links
the 9-pin port on the Storage Module to the 34
pin connector on the PC201 card (Figure 5.1-2).

5.1.3  VIA CR10

The Storage Module is linked to the CR10 by
the SC12 cable.  SCOM establishes
communication between the computer and the
CR10 over direct cable or telecommunication
link (Figure 5.1-3).

5.1.4 SM232A

The AC adaptor is plugged into a 120 VAC
outlet.  The serial port of the terminal/computer
is connected to the "TO TERMINAL" connector
on the SM232A with a 25-pin cable.  An SC12
9-pin ribbon cable, links the Storage Module to
the "TO STORAGE MODULE" connector on the
SM232A.  The central toggle switch is placed in
the "DATA TO TERMINAL AND MODEM"
position; the other toggle switch in the
"TRANSPARENT" position.  (Figure 5.1-4).

5.2  SOFTWARE

SMCOM (PC208 Software) is used with IBM
PC/XT/AT/PS-2 or compatibles.  It functions
with any of the hardware interfaces listed in
Section 5.1.  SMCOM automates the storage
and retrieval of data and programs and also has
a terminal emulator for the manual execution of
telecommunications commands.

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: