beautypg.com

Ov5.1 sample program 1 – Campbell Scientific CR23X Micrologger User Manual

Page 25

background image

CR23X MICROLOGGER OVERVIEW

OV-15

Display Explanation
HELLO

On power-up, the CR23X
displays "HELLO" while it
checks the memory

after a few seconds delay

1664 Kbytes

The size of the machine's total

memory memory

When the CR23X is turned on, it tests the FLASH
memory and loads the current program to RAM.
After the program compiles successfully, the
CR23X begins executing the program. If a key is
pressed while the CR23X is testing memory
(“HELLO” is on the display), there will be a 128
second delay before compiling and running the
program. This can be used to edit or change the
program before it starts running.

In order to ensure that there is no active
program in the CR23X, load an empty program
using the

D

Mode:

Display Will Show:

Key (ID:Data) Explanation

Mode

Enter

mode

D

13:Enter

Command Enter

D

Mode

00

7

13:

7 is command to

00 7

load program from

flash

A

07:Program ID

Execute command

00

7, CR23X is ready

for

program

number

0

07:Program ID

Load Program 0

00 00

(empty program)

A

Execute

program

load, after a short
wait, the display
will show

Prog. operation

Indicating that the

complete

command is

complete.

OV5.1 SAMPLE PROGRAM 1

EDLOG Listing Program 1:

*Table 1 Program
01:

5.0

Execution Interval (seconds)


1: Panel Temperature (P17)
1:

1

Loc [ CR23XTemp ]


2: Do (P86)
1:

10

Set Output Flag High


3: Sample (P70)
1:

1

Reps

2:

1

Loc [ CR23XTemp ]

In this example the CR23X is programmed to
read its panel temperature (using a built in
thermistor) every 5 seconds and to send the
results to Final Storage.

Display Will Show:

Key (ID:Data) Explanation

Mode

Enter

mode.

1

Mode 01 Go To

Enter Program

0000

Table

1.

A

Scan Interval

Advance to

execution

+0000

interval (In seconds)

5

Scan Interval

Key in an execution

+0.0000 5

interval of 5 seconds.

A

01:P00

Enter the 5 second
execution interval
and advance to the
first program
instruction location.

1

7

01:P00

Key in Instruction 17

17

which directs the

CR23X to measure

the

panel

temperature

in

degrees C. This is

an

Input/Output

Instruction.

A

Panel Temp

Enter Instruction 17

01:Loc

and advance to the

0000

first

parameter.

1

01:Loc

The input location to

0000 1

store the

measurement,

location

1.