beautypg.com

2 edlog programming, 1 cr10x program, Edlog programming – Campbell Scientific WXT520 Weather Transmitter User Manual

Page 15: Cr10x program

background image

WXT520 Weather Transmitter

6.6.2 Edlog Programming

Our CR500, CR510, CR10(X), and CR23X dataloggers are programmed with
Edlog.

These dataloggers use Instruction 105 to read the WXT520. Your datalogger
manual has a detailed explanation of Instruction 105.

Please note that Edlog only allocates one input location for Instruction 105.
Additional input locations need to be inserted manually using the Input
Location Editor.

6.6.2.1 CR10X Program

The following example is the portion of a CR10X program that measures the
WXT520. A complete program will include output processing instructions.

; wind direction wind speed

; Get WXT520 Values 1 - 6 (Dn=Wd min, Dm=Wd avg, Dx=Wd max, Sn=Ws min, Sm=Ws avg, Sx=Ws max)

22: SDI-12 Recorder (P105) ;
1: 0

SDI-12

Address

2: 1

Start

Measurement

(aM1!)

; corresponds with Wind message Command R1

3: 2

Port

; control port for SDI-12 comms

4: 15

Loc [ Value1 ]

5: 1.0

Mult

6: 0.0

Offset

23: Excitation with Delay (P22)
1: 1

Ex

Channel

2: 0

Delay W/Ex (0.01 sec units)

3: 50

Delay After Ex (0.01 sec units)

4: 0

mV

Excitation

; Get WXT520 Values 7 - 9 (Ta= air temp, Ua= rel humidity, Pa= air pressure)

24: SDI-12 Recorder (P105)
1: 0

SDI-12

Address

2: 2

Start

Measurement

(aM2!)

; corresponds with Pressure Humidity and

3: 2

Port

Temp Message Command R2

4: 21

Loc [ Value7 ]

5: 1.0

Multiplier

6: 0.0

Offset

25: Excitation with Delay (P22)
1: 1

Ex

Channel

2: 0

Delay W/Ex (0.01 sec units)

3: 50

Delay After Ex (0.01 sec units)

4: 0

mV

Excitation

; rain hail

; Get WXT520 Values 10 - 15 (Rc= amount, Rd= duration, Ri= intensity, Hc= amount, Hd= duration, Hi = intensity)

26: SDI-12 Recorder (P105)
1: 0

SDI-12

Address

2: 3

Start

Measurement

(aM3!)

; corresponds with Precip Message Command R3

3: 2

Port

4: 24

Loc [ Value10 ]

5: 1.0

Multiplier

6: 0.0

Offset

9