3. Instruction Set

M1002

 

D1036

Set communication protocol

 

 

 

 

 

MOV

H81

 

 

 

 

 

as 9600,8,N,1

 

 

 

 

 

 

M1138

 

 

 

 

 

 

SET

Retain communication setting

 

 

 

 

 

 

 

 

 

 

MOV

K2000

D1249

Set receiving time-out as 2s

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2.Then enable M0 to execute GPS instruction with sentence identifier $GPGGA

M0

SET M1312

M0

GPS K0 D0

M1314

Y0

M1315

Y1

3.When receiving completed, M1314 = ON. When receiving failed, M1315 = ON. The received data will be stored in devices starting with D0.

No.

Content

No.

Content

D0

Hour

D8

East / West

 

 

 

 

D1

Minute

D9

GPS data valid / invalid

 

 

 

 

D2

Second

D10~D11

Altitude

 

 

 

 

D3~D4

Latitude

D12~D13

Latitude. Unit: ±dd.ddddd

 

 

 

 

D5

North / South

D14~D15

Longitude. Unit: ±ddd.ddddd

 

 

 

 

D6~D7

Longitude

 

 

 

 

 

 

4.Pin number description on GPS module (LS20022)

Pin No. of GPS

1

2

3

Definition

VCC(+5V)

Rx

Tx

 

 

 

 

4

GND

5

GND

5.Pin number description on PLC COM1:

Pin No. of COM1

1

2

3

4

5

6

7

8

Definition

VCC(+5V)

--

Rx

Tx

--

--

GND

 

 

 

 

 

 

 

 

 

3 - 4 0 1

Page 517
Image 517
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual K2000 D1249 Set receiving time-out as 2s, Gnd