
GPS16X-HVS GPS Receiver
Array(7) = Magnetic variation (positive = East, negative =
West)
Array(8) = Fix Quality (0 = invalid, 1 = GPS, 2 = differential
GPS, 6 = estimated)
Array(9) = Number of Satellites
Array(10) = Altitude, meters
Array(11) = Pulse per second (PPS) length, microseconds
Array(12) = Seconds since last GPRMC sentence
Array(13) = GPS Ready, 10 = ready
Array(14) = Maximum clock change, milliseconds (10 msec
resolution)
Array(15) = Clock change count
ComPort The ComPort parameter is the control port pair to which the
GPS device is attached. Valid options are COM1 (C1/C2),
COM2 (C3/C4), COM3 (C5/C6), and COM4 (C7/C8). Rx is
used to read in the NMEA sentences and Tx is used to monitor
the PPS from the GPS. This instruction expects a baud rate of
38,400 bps.
TimeOffset The TimeOffset parameter is the local time offset, in seconds,
from UTC.
MaxTimeDiff The MaxTimeDiff parameter is the maximum difference in
time between the datalogger clock and the GPS clock that will
be tolerated before the clock is changed. If a negative value is
entered, the clock will not be changed.
NMEAStrings The NMEAStrings parameter is the string array that holds the
NMEA sentences. If it exists, the GPRMC sentence will reside
in NMEAStrings(1), and the GPGGA sentence will reside in
NMEAStrings(2). Any other sentences will reside in
subsequent indexes into the array (on a first-in basis). Once an
index in the array is used to store a particular sentence, that
sentence will always be stored in that location when updates to
the sentence are received.
5.2 Example Program Using GPS Instruction
The following wiring and short program provide an example of using the GPS
instruction with the Garmin GPS16X-HVS.
'Program the GPS16X-HVS to use 38.4 kbaud, no parity, 8 data bits, and 1 stop bit
'*** Wiring ***
'C7 GPS16X-HVS pulse per second (gray)
'C8 GPS16X-HVS RS-232 TxD (white)
'G GPS16X-HVS power control (yellow)
'12V GPS16X-HVS power (red)
'G GPS16X-HVS power and RS-232 signal reference (black)
‘G Ground (blue)
‘G Shield (shield)
8
Comentarios a estos manuales