E L C P r o g r a m m i n g M a n u a l
F or more info rmat io n vi sit: www.e a to n.c om M N 0 5 003 00 3 E
3-426
No.
Content
Range
Format
Note
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
Day
1 ~ 31
Word
D
+ 11
Month
1 ~ 12
Word
D
+ 12
Year 2000
~
Word
D + 13~14
Latitude
-90 ~ 90
Float
Unit:
±
dd.ddddd
D + 15~16
Longitude
-180 ~ 180
Float
Unit:
±
ddd.ddddd
4.
When applying the GPS instruction, COM1 has to be in Master mode, i.e. M1312 must be
enabled to send the request. In addition, M1314 = ON indicates receiving completed. M1315 =
ON indicates an error. (D1250 = K1, receive time-out; D1250 = K2, checksum error)
5.
Associated M flags and special D registers:
No.
Function
M1312
COM1 (RS-232) sending request
M1313
COM1 (RS-232) ready for data receiving
M1314
COM1 (RS-232) data receiving completed
M1315
COM1 (RS-232) data receiving error
M1138
Retaining communication setting of COM1
D1036
COM1 (RS-232) Communication protocol
D1249
COM1 (RS-232) data receiving time-out setting. (Suggested value: >1s)
D1250
COM1 (RS-232) communication error code
6.
Before using the GPS data, check the value in
D
+9. If
D
+9 = 0, the GPS data is invalid.
7.
If an error occurs, the previous data in
D
registers will not be cleared, i.e. the previous received
data remains.
Program example:
S
entence identifier: $GPGGA
1. Set COM1communication protocol first
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 the GPS instruction with sentence identifier $GPGGA
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...