7 d – store a .dld program file, 8 f – store a file, 9 e – erase, reset and test the card – Campbell Scientific CSM1 Card Storage Module User Manual

Page 40

Advertising
background image

CSMCOM

4

3.7 D – Store a .DLD Program File

This option is used to store a .DLD program file, as created by EDLOG, into
one of the program areas of the card. CSMCOM first displays the current status
of the program areas in the card to show you which areas are in use. Next
CSMCOM asks you to enter the name of the .DLD file. CSMCOM appends the
.DLD suffix if necessary.

You are now asked in which card program area you wish to store the program.
Enter a number between 1 and 8.

CSMCOM now loads the program into the card, displaying a '.' as each 100
characters are transferred. A checksum verification is used to ensure the
program has been loaded without errors. If no errors occurred, 'OK' is added to
the end of the string of '.' characters, otherwise an error warning is displayed.

3.8 F – Store a File

Option F allows you to store non-program text or data files in the card.

Certain binary strings signify file delimiters (see the CSM1
manual) and these should not be included in the file. In addition,
Ctrl-Z (ASCII 26 decimal) is interpreted as being the end of a
text file so cannot be included in the file to be stored.

If the file stored has an odd number of bytes the storage module appends a null
character (ASCII 0 decimal) to the end of the file. A filemark is written at the
end of the file stored.

No validation of file storage is done for this option.

3.9 E – Erase, Reset and Test the Card

The E option should be used with caution as it completely erases all data and
programs in the card. At the same time the card memory is fully checked to
ensure the module can store and recall data correctly.

CSMCOM asks you to verify that you want to erase the card before this option
runs. Enter Y for yes or N for no as appropriate.

CSMCOM runs the E option by issuing the '1248K' command to the module
and displaying the status of the process. First a row of '+' symbols are
displayed. One _'+' is written for each 16 kbyte page of memory written to. At
the end of this row an equal number of '-' symbols are shown as the data is read
out and checked successfully.

A further two rows of '-' symbols are shown as further read/write tests are done
on the memory.

If an error occurs at any stage an 'x' is displayed and tests on memory after that
page are aborted. After an error is detected the memory that can be used is
limited to the pages of good memory tested before the failure.

NOTE

Advertising