3. Instruction

Set

API

Mnemonic

 

 

Operands

Function

 

 

 

Controllers

 

177

 

GPS

 

 

 

 

GPS data receiving

ES2

SS2

SA2 SX2

SE

 

 

 

 

 

EX2

 

 

 

 

Type

Bit Devices

 

 

Word devices

 

 

 

Program Steps

 

OP

 

X

Y

M

S

K

H KnX KnY KnM KnS T C

D

E

F GPS: 5 steps

 

 

S

 

 

 

 

*

*

 

*

 

 

 

 

 

D

 

 

 

 

 

 

 

*

 

 

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

16-bit

 

 

32-bit

 

ES2

SS2

SA2

SX2

SE

ES2

SS2

SA2

SX2

SE

ES2

SS2

SA2

SX2

SE

EX2

EX2

EX2

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

 

 

 

 

 

zWhen 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

 

 

 

 

 

 

3 - 3 9 9

Page 515
Image 515
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual GPS data receiving