beautypg.com

Ov5.1 sample program 1 – Campbell Scientific CR510 Basic Datalogger User Manual

Page 24

background image

CR510 OVERVIEW

OV-12

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. To raise the ring line, press any
key on the CR10KD keyboard display or call the
CR510 with the computer during the power up
sequence (i.e., while “HELLO” is displayed on
the CR10KD).

In order to ensure that there is no active
program in the CR510, we will load an empty
program using the *D Mode:

Display Will Show:

Key

(ID:Data)

Explanation

00:00

Enter mode

D

13:00

Enter *D Mode

7

13:7

7 is command to load

program from flash

A

07:00

Execute command 7,

CR510 is ready for
program number

0

07:0

Load Program 0 (empty

program)

A

Execute program load,

after a short wait, the
display will show

13:0000

Indicating that the

command is complete.

OV5.1 SAMPLE PROGRAM 1

EDLOG Listing Program 1:

*Table 1 Program
01:

5.0

Execution Interval (seconds)

1: Internal Temperature (P17)

1:

1

Loc [ CR510Temp ]

2: Do (P86)

1:

10

Set Output Flag High

3: Sample (P70)

1:

1

Reps

2:

1

Loc [ CR510Temp ]

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

Display Will Show:

Key

(ID:Data)

Explanation

00:00

Enter mode.

1

01:0000

Enter Program Table 1.

A

01:0.0000

Advance to execution

interval (In seconds)

5

01:5

Key in an execution

interval of 5 seconds.

A

01:P00

Enter the 5 second

execution interval and
advance to the first program
instruction location.

1

7

01:P17

Key in Instruction 17

which directs the CR510
to measure the internal
temperature in degrees
C. This is an
Input/Output Instruction.

A

01:0000

Enter Instruction 17 and

advance to the first
parameter.

1

01:1

The input location to

store the measurement,
location 1.

A

02:P00

Enter the location # and

advance to the second
program instruction.

The CR510 is now programmed to read the internal
temperature every 5 seconds and place the reading
in Input Storage Location 1. The program can be
compiled and the temperature displayed.

Display Will Show:

Key

(ID:Data)

Explanation

0

LOG 1

Exit Table 1, enter

0

Mode, compile table and
begin logging.

6

06:0000

Enter

6 Mode (to view

Input Storage).

A

01:21.234

Advance to first storage
location. Internal
datalogger temp. is
21.234

o

C (display shows

actual temperature so
exact value will vary).