1 internal flash program storage – Campbell Scientific CR10X Measurement and Control System User Manual
Page 47

SECTION 1. FUNCTIONAL MODES
1-11
TABLE 1.8-1.
∗∗∗∗D Mode Commands
Command
Description
1
Send (Print) ASCII Program
2
Load ASCII Program,
∗0 Compile
2--
Load ASCII Program,
∗6 Compile
6
Store Program in Flash
7
Load Program from Flash
7N
Save/Load/Clear Program from
Storage Module N
8
Set Datalogger ID
9
Set Full/Half Duplex
10
Set Powerup Options
12
Set Initial Baud
13
Set Compile Option
If the CR10X program has not been compiled
when the command to save a program is entered,
it will be compiled before the program is saved.
When a program is loaded, it is immediately
compiled and run. When a command is complete,
"13:0000" is displayed;
∗D must be entered again
before another command can be given.
TABLE 1.8-2. Program Load Error Codes
E 94
Program Storage Area full
E 95
Program does not exist in flash
E 96
Storage Module not connected or
wrong address
E 97
Data not encountered within 30 sec.
E 98
Uncorrectable errors detected
E 99
Wrong type of file or Editor Error
1.8.1 INTERNAL FLASH PROGRAM STORAGE
Several programs can be stored in the CR10X
Flash Memory and later recalled and run using
the
∗D Mode. The Flash Electrically Erasable
Programmable Read Only Memory is non-
volatile memory that can only be erased in 16K
blocks. The CR10X has 128K of Flash
EEPROM memory, one 16K block is reserved
for storing extra programs.
When a program is loaded and compiled, it is
saved as the active program. The active
program will be automatically loaded and run
when the CR10X is powered up. (If a Storage
Module with a program 8 is connected when the
CR10X powers-up, the Storage Module
program 8 will be loaded into the CR10X and
become the active program.)
The active program can be stored in internal
flash memory program storage with
∗D
command 6 (Table 1.8-3). Programs can be
retrieved with
∗D command 7 (Table 1.8-4).
TABLE 1.8-3 Storing Program in
Internal Flash
Key entry
Display
∗D
13:00
6A
06:00
You may now enter one of the following options:
xxA
Save active program as
number xx, xx may be 1-98.
A
Scroll forward and
B
backward through saved
program numbers. The
numbers are displayed in the
order saved.
99A99A
Clear all saved programs.
0A
Display number of bytes free in
saved program area.
TABLE 1.8-4 Retrieving a Program from
Internal Flash
Key entry
Display
∗D
13:00
7A
07:00
You may now enter one of the following options:
xxA
Retrieve program number xx
(the most recent xx saved). To
have the program compile like
∗6 (no resetting of input
locations, flags, or ports) press
C (xx--) before A.
0A
Erase active program (i.e., load a
blank program; memory allocation
and Final Storage are reset).
A
Scroll forward and
B
backward through saved
program numbers.
Scrolling through the program names begins
with the oldest program. "A" advances to the
next newer program, "B" backs up to the next
older program. While scrolling, at any time
typing in a number (xxA) will cause a save or a
retrieve operation.
Each program saved takes up the memory
required for the program + 6 bytes.
Flash memory can only be written to once
before being erased. Because it can only be
erased in 16K blocks, if one stored program is
to be erased, all must be erased. To allow
revising a program and storing it with the same
number (name) as an earlier version, the same
number can be used by more than one saved