Campbell Scientific GPS16-HVS Garmin GPS Receiver User Manual

Page 19

Advertising
background image

Appendix A. CR23X/CR10X Programs

9) HDPFrac, Horizontal Dilution of Precision, tenths

10) Elevation, Elevation in meters

11) Geoidal, Geoidal separation in meters

12) Geoidalth, Geoidal separation in meters, tenths

13) Age, Age of differential GPS data

14) Agetenth, Age of differential GPS data, tenths

15) DiffID, Differential reference station ID

Additional input locations used in the example program are:

18) Orig_TM, Copy of original time

19) Int1, Place holder for math

20) Hours, formatted hours

21) Minutes, formatted minutes

22) Seconds, formatted seconds

23) remainder, place holder for math

Before writing any datalogger code, it’s best to enter all the input locations

needed. In Edlog, open the input location editor (F5) and enter names for the

input locations listed above. When an input location is needed, use the input

location pick list (F6).

;{CR23X}
;

*Table 1 Program
01: 60

Execution Interval (seconds)


; Instruction to eliminate warning about unused subroutine, not needed
1: If Flag/Port (P91)
1: 11

Do if Flag 1 is High

2: 98

Call Subroutine 98


*Table 2 Program
02: 0.0000 Execution Interval (seconds)

*Table 3 Subroutines

1: Beginning of Subroutine (P85)
1: 98

Subroutine 98


;--- read serial data non-buffered
2: Port Serial I/O (P15)
1: 1

Reps

2: 61

-- RS-232 ASCII (decimal delimiter), 1200 Baud

3: 1

Delay (0.01 sec units) before TX

4: 5

No RTS/DTR, C5 TXD/RXD

5: 1

Start Loc for TX [ Raw_Time ]

6: 0

Number of Locs to TX

7: 42

Termination Character for RX

8: 100

RX Buffer Size or Max Chars to RX if Par 2 indexed (--)

9: 80

Time Out for CTS (TX) and/or RX (0.01 sec units)

10: 1

Start Loc for RX [ Raw_Time ]

11: 1.0

Mult for RX

12: 0.0

Offset for RX


;--- filter for $GPGGA
3: Extended Parameters (P63)
1: 36

Option ;$

2: 71

Option ;G

3: 80

Option ;P

4: 71

Option ;G

5: 71

Option ;G

A-5

Advertising