beautypg.com

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

Page 27

background image

CR23X MICROLOGGER OVERVIEW

OV-17

The CR23X is now programmed to measure
the internal temperature every 5 seconds and
send each reading to Final Storage. Values in
Final Storage can be viewed using the

7

Mode.

Display Will Show:

Key (ID:Data) Explanation

7

Mode 07

Enter

7

Mode.

The Loc 13 Data

Storage

Pointer

(DSP) is at Location

13 (in this example).

A

Array ID

Advance to the first

01:

value, the Output

+0102

Array ID. 102

indicates the Output

Flag was set by the

second instruction in

Program Table 1.

A

02:

Advance to the first

+21.231

stored temperature.

A

Array ID

Advance to the next

01:

output array. Same

+0102

Output Array ID.

A

02:

Advance to 2nd

+21.42

stored temp, 21.42

deg.

C.

There are no date and time tags on the data.

They must be put there with Output Instruction

77. Instruction 77 is used in the next example.

If a terminal is used to communicate with the

CR23X, Telecommunications Commands

(Section 5) can be used to view entire Output

Arrays (in this case the ID and temperature) at

the same time.

OV5.2 SAMPLE PROGRAM 2

EDLOG Listing Program 2:

*Table 1 Program

01: 60.0

Execution

Interval

(seconds)

1: Panel Temperature (P17)

1:

1

Loc [ CR23XTemp ]

2: Thermocouple Temp (DIFF) (P14)

1:

1

Reps

2: 21

± 10 mV 60 Hz Rejection

3:

5

DIFF

Channel

4:

1

Type T (Copper-Constantan)

5:

1

Ref Temp Loc [ CR23XTemp ]

6:

2

Loc [ TCTemp ]

7:

1.0

Mult

8:

0.0

Offset


3: If time is (P92)
1:

0

Minutes (Seconds --) into a

2:

60

Interval (same units as above)

3:

10

Set Output Flag High


4: Real Time (P77)
1: 110

Day,Hour/Minute


5: Average (P71)
1:

2

Reps

2:

1

Loc [ CR23XTemp ]


6: If time is (P92)
1:

0

Minutes (Seconds --) into a

2: 1440

Interval (same units as above)

3:

10

Set Output Flag High


7: Real Time (P77)
1: 110

Day,Hour/Minute


8: Maximum (P73)
1:

1

Reps

2:

10

Value with Hr-Min

3:

2

Loc [ TCTemp ]


9: Minimum (P74)
1:

1

Reps

2:

10

Value with Hr-Min

3:

2

Loc [ TCTemp ]


10: Serial Out (P96)
1: 71

SM192/SM716/CSM1


This second example is more representative of

a real data collection application. Once again,

the panel temperature is measured, but it is

used as a reference temperature for the

differential voltage measurement of a type T

(copper-constantan) thermocouple; the CR23X

is initially supplied with a short type T

thermocouple connected to differential channel

5.

When using a type T thermocouple, the copper

lead (blue) is connected to the high input of the

differential channel, and the constantan lead

(red) is connected to the low input.

A thermocouple produces a voltage that is

proportional to the difference in temperature

between the measurement and the reference

junctions.