beautypg.com

6 memory testing and system status - *b – Campbell Scientific CR23X Micrologger User Manual

Page 43

background image

SECTION 1. FUNCTIONAL MODES

1-9

A

06: Prog. Bytes Unused

Bytes free in program memory. The user cannot change

+XXXXX

this window. It is a function of window 5 and the program.

A

07: Prog. Bytes Available The user cannot change this window. It is a function of Window
+XXXXX

5 and total available memory.

A

08: Label Bytes Used

The user cannot change this window. It is a function of the

+XXXXX

program.

A

09: Label Bytes Free

The user cannot change this window. It is a function of Window

+XXXXX

8 and the program.

Input Storage, Intermediate Storage, and Final
Storage are erased when memory is
repartitioned. This feature may be used to clear
memory without altering programming. The
number of locations does not actually need to
be changed; the same value can be keyed in
and entered.

If Intermediate Storage size is too small to
accommodate the programs or instructions
entered, the "E:04" ERROR CODE will be
displayed in the

0

,

6

, and

B

Modes. The user may remove this error code
by entering a larger value for Intermediate
Storage size. Intermediate Storage and
Program Memory can be automatically
allocated by entering 0 for their size. When
automatic allocation is used, all data are erased
any time the program is exchanged and
recompiled. Final Storage size is maximized by
limiting Intermediate Storage and Program
Memory to the minimum necessary. The size of
Final Storage and the rate at which data are
stored determines how long it will take for Final
Storage to fill, at which point new data will write
over old.

After repartitioning memory, the program must
be recompiled. Compiling erases Intermediate
Storage. Compiling with

0

erases Input

Storage; compiling with

6

leaves Input

Storage unaltered.

ENTERING 98765 for the number of bytes to
allocate for program memory COMPLETELY
RESETS THE CR23X. All memory is erased
including any stored programs and memory is
checked. Memory allocation returns to the
default. The reset operation requires
approximately 5 minutes for a CR23X. Memory
reset can be aborted by pressing any key on the
keypad, or raising the ring line high.

1.6 MEMORY TESTING AND SYSTEM

STATUS -

B

The

B

Mode is used to check the status of

the program’s operating system, memory, and
lithium battery. Table 1.6-1 describes what the
values seen in the

B

Mode represent.

A signature is a number which is a function of
the data and the sequence of data in memory.
It is derived using an algorithm which assures a
99.998% probability that if either the data or its
sequence changes, the signature changes.
The algorithm used to calculate the signature is
described in Appendix C.

The signature of the program memory is used
to determine if the program tables have been
altered. The program signature is calculated
only at compile time. In the background FLASH
memory of the program is periodically checked
against RAM memory of the program. If a byte
is different, an E08 watchdog error is flagged.

During the self check on reset, the signature
computed for the OS is compared with a stored
signature to determine if a failure has occurred.
The operating system (OS) signature is
calculated in the background of 8 bytes per
second and is updated at least once every three
days. It is also done when memory is reset or a
new operating system is downloaded.

The contents of windows 6 and 7, Operating
System (OS) version and version revision, are
helpful in determining what OS is in the
datalogger. As different versions are released,
there may be operational differences. When
calling Campbell Scientific for datalogger
assistance, please have these numbers
available.

Window 13 is a real time display (updated every
0.1 seconds) of the “Program Time”, the time it
takes Table 1 to execute. The resolution is
0.407

µ

s, and the range is 6.826 seconds. To

read this time as part of a datalogger program,
see the description for Instruction P130.