
APPENDIX B. CONTROL PORT SERIAL I/O INSTRUCTION 15
B-16
07:
13
Input termination character
Terminate on carriage return
08:
75
Max characters to receive
09:
200
Delay for CTS/input
Wait 2 seconds for input
10:
11
First input location
Store VALUE #1 in Location 11, #10 in 20
11:
1
Multiplier
12:
0.0000
Offset
03:
P95
End
Input Location Labels:
11:VALUE #1
16:VALUE #6
12:VALUE #2
17:VALUE #7
13:VALUE #3
18:VALUE #8
14:VALUE #4
19:VALUE #9
15:VALUE #5
20:VALUE #10
Program Example # 3
This program will decode the $GPGGA and $GPVTG strings, format them in input locations, and set the
CR23X clock according to the GPS time. The primary reason for formatting the data strings is to parse
long data strings into multiple input locations. The CR23X can display 5 significant digits. The
maximum value that can be displayed in an input location is 99999. Data in the GPS string is anywhere
from 1 to 8 characters. Data fields such as time has 6 digits (i.e. HHMMSS) and will exceed the 99999
input location value limit. To get around this problem, data will be parsed and separated into individual
input locations.
If the GPS receiver is to be used to keep the CR23X clock updated (via P114) caution should be used
when pulse count type measurements (i.e. wind speed, velocity) are made. This can increase or
decrease the total number of counts based on if the datalogger clock was slow or fast. The program
code below can be put into a conditional type statement (P92, P95) to be executed on an less frequent
interval rather than once per second (i.e. once per day).
CR23X#3 PROGRAM EXAMPLE
*Table 1 Program
01:
1
Execution Interval (seconds)
; LOOK FOR $GPGGA AND $GPVTG STRINGS
; READ IN SERIAL GPS DATA VIA NULL MODEM AND
; CR23X 9-PIN RS-232 PORT
01:
Port Serial I/O (P15)
1:
1
Reps
2:
03
Configuration Code
;RS-232 ASCII, 4800 BAUD
3:
1
Delay (0.01 seconds)
4:
9
RS-232 Port
;GET GPS DATA VIA CSI 9-PIN RS-232
PORT
5:
1
Output Loc [ HOUR_MIN ]
6:
0
No. of Locs to Send
7:
42
Termination Character
;ASTERISK *
8:
100
Maximum Characters
;GGA + VTG CHARACTERS
9:
100
CTS/Input Wait
10:
27
Loc [ RAW_TIME ]
11:
1.0
Mult
Summary of Contents for CR23X
Page 8: ...CR23X TABLE OF CONTENTS vi This is a blank page ...
Page 12: ...CR23X MICROLOGGER OVERVIEW OV 2 1 2 3 A 4 5 6 B 7 8 9 C 0 D FIGURE OV1 1 CR23X Micrologger ...
Page 34: ...CR23X MICROLOGGER OVERVIEW OV 24 This is a blank page ...
Page 50: ...SECTION 1 FUNCTIONAL MODES 1 16 This is a blank page ...
Page 72: ...SECTION 4 EXTERNAL STORAGE PERIPHERALS 4 8 This is a blank page ...
Page 88: ...SECTION 6 9 PIN SERIAL INPUT OUTPUT 6 10 This is a blank page ...
Page 110: ...SECTION 7 MEASUREMENT PROGRAMMING EXAMPLES 7 22 This is a blank page ...
Page 134: ...SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES 8 24 This is a blank page ...
Page 164: ...SECTION 9 INPUT OUTPUT INSTRUCTIONS 9 30 This is a blankpage ...
Page 188: ...SECTION 11 OUTPUT PROCESSING INSTRUCTIONS 11 8 This is a blankp age ...
Page 221: ...SECTION 13 CR23X MEASUREMENTS 13 21 FIGURE 13 5 1 Circuits Used with Instructions 4 9 ...
Page 229: ...14 3 1 2 3 A 4 5 6 B 7 8 9 C 0 D FIGURE 14 3 1 CR23X Battery Pack and Panel ...
Page 240: ...SECTION 14 INSTALLATION AND MAINTENANCE 14 14 This is a blank page ...
Page 244: ...APPENDIX A GLOSSARY A 4 This is a blank page ...
Page 268: ...APPENDIX B CONTROL PORT SERIAL I O INSTRUCTION 15 B 24 This is a blank page ...
Page 276: ...APPENDIX C BINARY TELECOMMUNICATIONS C 8 This is a blank page ...
Page 278: ...This is a blank page ...
Page 282: ...APPENDIX F DYNAGAGE SAP FLOW P67 F 4 This is a blank page ...
Page 299: ...APPENDIX I TD OPERATING SYSTEM ADDENDUM FOR CR510 CR10X AND CR23X MANUALS ...
Page 300: ...This is a blank page ...
Page 302: ...This is a blank page ...
Page 308: ...TABLE DATA ADDENDUM AD 6 This is a blank page ...
Page 324: ...TD ADDENDUM SECTION 1 FUNCTIONAL MODES AD 1 8 This is a blank page ...
Page 340: ...TD ADDENDUM SECTION 8 PROCESSING AND PROGRAM CONTROL EXAMPLES AD 8 10 This is a blank page ...
Page 342: ...This is a blank page ...
Page 373: ...This is a blank page ...