Campbell Scientific GPS16X-HVS GPS Receiver User Manual

Page 31

Advertising
background image

Appendix B. CR23X Wiring and Programming

; Move minutes and seconds right of decimal
7: Z=X*F (P37)
1: 18

X Loc [ Orig_TM ]

2: .0001

F

3: 19

Z Loc [ Int1 ]


; Pluck off hours
8: Z=INT(X) (P45)
1: 19

X Loc [ Int1 ]

2: 20

Z Loc [ Hours ]


; Subtract hours out
9: Z=X-Y (P35)
1: 19

X Loc [ Int1 ]

2: 20

Y Loc [ Hours ]

3: 19

Z Loc [ Int1 ]


; Move decimal left 2 places
10: Z=X*F (P37)
1: 19

X Loc [ Int1 ]

2: 100

F

3: 19

Z Loc [ Int1 ]


; Pluck off minutes
11: Z=INT(X) (P45)
1: 19

X Loc [ Int1 ]

2: 21

Z Loc [ Minutes ]


; Subtract out minutes
12: Z=X-Y (P35)
1: 19

X Loc [ Int1 ]

2: 21

Y Loc [ Minutes ]

3: 19

Z Loc [ Int1 ]


; Move decimal left 2 places
13: Z=X*F (P37)
1: 19

X Loc [ Int1 ]

2: 100

F

3: 19

Z Loc [ Int1 ]


; Pluck of seconds
14: Z=INT(X) (P45)
1: 19

X Loc [ Int1 ]

2: 22

Z Loc [ Seconds ]


; Write data to final storage every time there is
; a valid read of GPS data
15: Do (P86)
1: 10

Set Output Flag High (Flag 0)


16: Set Active Storage Area (P80)^18796
1: 1

Final Storage Area 1

2: 101

Array ID


; Write datalogger based time stamp
17: Real Time (P77) ^27570
1: 0011

Hour/Minute,Seconds (midnight = 0000)


; Write GPS based time stamp
18: Sample (P70) ^6080
1: 3

Reps

2: 20

Loc [ Hours ]


; Set resolution to high for latitude and Longitude
19: Resolution (P78)
1: 1

High Resolution

B-7

Advertising