beautypg.com

Delta DVP-ES2 User Manual

Page 515

background image

3 . I n s t r u c t i o n S e t

3 - 3 9 9

API Mnemonic

Operands

Function

177

GPS

GPS data receiving

Controllers

ES2
EX2

SS2

SA2 SX2

SE

Bit Devices

Word devices

Program Steps

Type

OP

X Y

M S K H KnX KnY KnM KnS T C D E F

S

* *

*

D

*

GPS: 5 steps

PULSE 16-bit 32-bit

ES2
EX2

SS2 SA2 SX2 SE

ES2
EX2

SS2 SA2 SX2 SE

ES2
EX2

SS2 SA2 SX2 SE

Operands:

S: Sentence identifier for GPS data receiving D: Destination device for feedback data

Explanations:

1.

GPS data receiving instruction is only applicable on COM1 (RS-232), with communication

format: 9600,8,N,1, protocol: NMEA-0183, and communication frequency: 1Hz.

2. Operand S is sentence identifier for GPS data receiving. K0: $GPGGA, K1: $GPRMC.

3. Operand D stores the received data. Up to 17 consecutive words will be occupied and can

not be used repeatedly. Please refer to the table below for the explanations of each D device.

z When S is set as K0, sentence identifier $GPGGA is specified. D devices refer to:

No.

Content

Range

Format

Note

D + 0

Hour

0 ~ 23

Word

D + 1

Minute

0 ~ 59

Word

D + 2

Second

0 ~ 59

Word

D + 3~4

Latitude

0 ~ 90

Float

Unit: dd.mmmmmm

D + 5

North / South

0 or 1

Word

0(+)

ÆNorth, 1(-)ÆSouth

D + 6~7

Longitude

0 ~ 180

Float

Unit: ddd.mmmmmm

D + 8

East / West

0 or 1

Word

0(+)

ÆEast, 1(-)ÆWest

D + 9

GPS data valid / invalid

0, 1, 2

Word

0 = invalid

D + 10~11

Altitude

0 ~9999.9

Float

Unit: meter

D + 12~13

Latitude -90

~

90

Float

Unit:

±dd.ddddd

D + 14~15

Longitude

-180 ~ 180

Float

Unit:

±ddd.ddddd

z When S is set as K1, sentence identifier $GPRMC is specified. D devices refer to:

No.

Content

Range

Format

Note

D + 0

Hour

0 ~ 23

Word

D + 1

Minute

0 ~ 59

Word

This manual is related to the following products: