Campbell Scientific CSM1 Card Storage Module User Manual

Page 28

Advertising
background image

Appendix D. Telecommunications Commands

D-2

An example of a status line is:

V1.1 M16 B2 E0 P3 A80313 R50632 L2 D23455 C23922

nnnnnnG
Move
display
pointer

Moves the display pointer to a specified location nnnnnn. The
status line is displayed after the pointer is moved.

nnnnnnC
Output
ASCII
data

Outputs data in a comma delineated, ASCII format. nnnnnn
arrays of data are dumped, or until the next filemark is reached.
0C means dump continuously until the next filemark. When the
command is completed the display pointer is moved to after the
end of the data dumped and the status line is sent.

nnnnnnF
Output
binary
data

Outputs nnnnnn storage locations of data, from the display
pointer, in a binary format. The data is output in exactly the
same format as was transmitted to the file for storage. Two bytes
of data are sent per location. At the end of the block of data, the
CSM1 waits. If the next character sent to the module is an 'S' it
transmits a two-byte binary checksum that is the signature of the
previous data. If any other character is sent the prompt is
returned by the CSM1. The display pointer is moved to after the
position of the data just dumped. The F command only dumps
up to a filemark in the card and returns no further data until
other instructions are used to move it past the filemark. It will
jump over programs stored between blocks of data providing
that the program is not delimited by filemarks. 0F causes a
continuous dump until the next filemark is reached.

nnnnnnH
F
Output
binary
and ASCII
data

This command is similar to the F command except data is sent in
both hex and ASCII formats, in a way similar to the DOS
DEBUG command. At the start of each line the location of the
first value output on that line is printed. This command is
intended for diagnostic purposes only. When dumping data, the
HF command does not stop at filemarks or programs, but shows
the hex representation of the filemark and program data.

NFM
Next
filemark

Changes the display pointer to point to the location after the next
filemark in the card. This instruction can take several seconds to
find a filemark if the files are large as the CSM1 has to scan
through the data to find the next filemark. The NFM command
ignores programs stored in the card, unless the program itself has
a filemark at the beginning. The status line is transmitted when
the filemark is found.

BFM
Back to
filemark

Moves the display pointer backwards in memory to find the
previous filemark. As with the NFM command the pointer is set
to point to the location after the filemark. The positions of the
previous two filemarks are recorded in the card to improve the
response time of this instruction. Moving further back than two
files can take several seconds if the files are large. The status
line is displayed when the filemark is found.

9H
Force
filemark

Forces a filemark to be stored in the card at the current SRP. The
status line is then displayed.

Advertising