background image

APPENDIX D.  TELECOMMUNICATIONS COMMANDS

D-2

external power.  The battery should then be
replaced.

100E   LOADED BATTERY TEST:  The state of
the battery is compared to a 2.5 VDC reference
after a 100 Ohm load is connected for 1
second.  The Storage Module returns "1" if
above 2.5 VDC or "0" if below.  If the loaded test
returns "0" and the unloaded test, "1", the
battery has residual capacity, and should be
replaced as soon as possible.  This test uses
approximately 3 minutes of the useful life of the
battery.

nnnnF   BINARY DUMP:  Dump nnnn locations
(2 bytes each)  until the next File Mark from the
location of the DLP.  The dump will stop if the
Storage Reference Pointer is reached, followed
by 2 bytes displaying the Campbell Scientific
Inc. signature of the transmitted data.  No data
conversion is made.  Stored programs are
jumped over.  "F" is the same as "1F".  "0F"
means dump continuously and do not jump over
stored programs.  Status is not displayed
following command execution.

nnnnnnG   GO TO LOCATION nnnnnn:  Use
this command to position the Display Location
Pointer to any location in the Storage Module.
The Status is then displayed.

0nG   GO TO FILE MARK n (n = 1...5):  File
Mark 1 is the beginning of the most current file.
File Mark 2 is the beginning of the file before the
most current file in the SM, etc.  Addresses of
the last 5 files are maintained in memory for
rapid access.  The command 03G would move
the Display Location Pointer (DLP) to File Mark
3.  The status is then displayed.

08G   GO TO DUMP POINTER:  The Display
Location Pointer (DLP) is advanced to the
Dump Pointer position.  The Dump Pointer is
set to the beginning of memory when the SM is
reset.  It is advanced only by the CR10 (*9)
Storage Module-to-Storage Module Dump
command, the "4H" command, or by the
SMCOM program "A" or "U" options.

09G   GO TO NEXT FILE:  The Display
Location Pointer (DLP) 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
could be noticeable.  The status is displayed

following command execution.  This command
can be used to locate every file in the Storage
Module.

0H   STORE:  The Storage Module will store all
data received on the Transmit Data line (TD)
until the SM is deactivated when the PE (Pin 6)
and CLK/HS (Pin 7) lines go low.  External
power must remain applied for at least 5 msec
following data transmission for "housekeeping".
The SM stores 2 bytes at a time, so if the total
number of bytes transmitted is an odd number,
a NULL character will be added at the end of
the transmission.  This command is not
available in telecommunications through the
CR10.

3H   MOVE STORAGE REFERENCE
POINTER:  Moves the Storage Reference
Pointer (SRP) to the same location as the
Display Location Pointer.  The Display Location
Pointer is set with the nnnnnnG command.
Status is displayed following command
execution.

CAUTION:  This command is not intended
for general use.  The next transmitted data
is written to the SM beginning at the current
location of the Storage Reference Pointer.
Thus, data will be written-over if the "SRP"
is moved backwards.

4H   MOVE DUMP POINTER TO DISPLAY
LOCATION POINTER:  The Dump Pointer is
moved to the current position of the Display
Location Pointer.  Refer to command "08G"
regarding the Dump Pointer.  This command is
not intended for general use.

9H   STORE FILE MARK IN DATA:  Used to
designate a new area of memory in the Storage
Module.  File Marks are automatically placed in
the data upon application of external power (5
VDC) or when a CR10 program with Instruction
96 is compiled.  Status is displayed following
command execution.

nI   DUMP PROGRAM n (n = 1...8):  If program
"n" is found, the Storage Module dumps it to the
user device, otherwise it sends a null program
(30 05 05 HEX) followed by a prompt without a
carriage return and line feed.

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: