EasyManua.ls Logo

Siemens SIMATIC LOGO! CMR2020 - Page 110

Siemens SIMATIC LOGO! CMR2020
154 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Operation
7.2 Monitoring
LOGO! CMR2020 / LOGO! CMR2040
110 Operating Instructions, 09/2014, C79000-G8976-C356-01
Data structure of the GPS position data
The block of data transferred to the BM is written byte by byte and has a length of 16 bytes.
The data block is structured as follows:
Note
Representation of the letters
Letters are represented as decimal ASCII characters: For example "78" for "N" and "83" for
"S" and "69" for "E" and "87" for "W".
Note
Application on the BM: "Evaluating "state" and "count"
To ensure data consistency, the BM application needs to evaluate the "state" and "count"
bytes:
1.
If "state" = "invalid": Data is currently being written by the CMR.
Access is possible only if "state" = "valid" is set.
2.
If "state" = "valid": Next, you read the Write Counter and store the value read in.
3.
After you have completely read the data structure, check whether or not the
Write Counter has changed its value.
If the value has not changed, you can continue to use the data structure.
If the value has changed, repeat the read cycle and start at "1.".
Byte number
Parameter
Meaning
0
latNS
North / South (N/S)
1
latD
Degrees (0 ... 179)
2
latM
Minutes (0 ... 59)
3
latS
Seconds (0 ... 59)
4
latSF
Seconds Fraction (0 ... 99)
5
lngEW
East / West (E/W)
6
lngD
Degrees (0 ... 179)
7
lngM
Minutes (0 ... 59)
8
lngS
Seconds (0 ... 59)
9
lngSF
Seconds Fraction (0 ... 99)
10
11
alt Altitude meters (-32767 ... +32767)
12
satNum
Number of satellites in use
13 state GPS signal state (0,1,2)
0: invalid
"invalid = 0" is set by the CMR during a write procedure.
1: current position
2: not current position

Table of Contents

Related product manuals