Delta DVP-ES2 User Manual
Page 517
3 . I n s t r u c t i o n S e t
3 - 4 0 1
M1002
MOV
H81
D1036
SET
M1138
MOV
K2000
D1249
Set communication protocol
as 9600,8,N,1
Retain communication setting
Set receiving time-out as 2s
2.
Then enable M0 to execute GPS instruction with sentence identifier $GPGGA
M0
GPS
K0
D0
SET
M1312
M0
M1314
M1315
Y0
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
4
5
Definition VCC(+5V)
Rx
Tx
GND
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