beautypg.com

2 program transfer with storage module, 3 set datalogger id – Campbell Scientific CR23X Micrologger User Manual

Page 47

background image

SECTION 1. FUNCTIONAL MODES

1-13

TABLE 1.8-4. Retrieving a Program from

Internal Flash

Key entry

Display

D

13: Enter Command
00

7

A

07: Program ID
00

You may now enter one of the following options:

xx

A

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.

0

A

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
program. When retrieving a program, the
programs are searched beginning with the last
program saved; the most recently saved version
will be retrieved. An older program with a
duplicate name cannot be retrieved. When the
flash program memory is full, all programs must
be erased before any more can be added (error
94 will be displayed).

1.8.2 PROGRAM TRANSFER WITH STORAGE

MODULE

Storage Modules can store up to eight separate
programs. The Storage Module and
Keyboard/Display or Modem/Terminal must both
be connected to the CR23X. After keying

D

, the command 7N, is entered (N is the

Storage Module address 1-8, Section 4.4.1).
Address 1 will work with any Storage Module
address; the CR23X will search for the lowest
address Storage Module that is connected. The
command to save, load, or clear a program and
the program number (Table 1.8-5) is entered.
After the operation is finished "13:0000" is
displayed. Error 96 indicates that the Storage
Module is not connected or the wrong address
was given.

TABLE 1.8-5 Transferring a Program using a

Storage Module

Key entry

Display

D

13: Enter Command
00

7

N

A

7N: Save, Load, Clr
00

(N is Storage Module address 1-8)

You may now enter one of the following options:

1

x

Save Program x to Storage
Module (x = 1-8)

2

x

Load Program x from Storage
Module (x = 1-8)

3

x

Erase Program x in Storage
Module (x = 1-8)

The datalogger can be programmed on power-
up using a Storage Module. If a program is
stored as program number 8, and the Storage
Module is connected to the datalogger I/O at
power-up, program number 8 is automatically
loaded into the active program area of the
datalogger and run.

1.8.3 SET DATALOGGER ID

Command 8 is used to set the datalogger ID.
The ID can be moved to an input location with
Instruction 117 and can then be sampled as
part of the data.

TABLE 1.8-6 Setting Datalogger ID

Key Entry

Display

D

13: Enter Command
00

8

A

08: Datalogger ID
0XXX

Where XXX are 0s or the current ID. You may
now key in the ID (1-12, 14-254).