Note
Evaluate application on the BM: "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
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
LOGO! CMR2020,
LOGO! CMR2040
Operating Instructions, 10/2016, C79000-G8976-C356-03
Parameter
Meaning
latNS
North / South (N/S)
latD
Degrees (0 ... 179)
latM
Minutes (0 ... 59)
latS
Seconds (0 ... 59)
latSF
Seconds Fraction (0 ... 99)
lngEW
East / West (E/W)
lngD
Degrees (0 ... 179)
lngM
Minutes (0 ... 59)
lngS
Seconds (0 ... 59)
lngSF
Seconds Fraction (0 ... 99)
alt
Altitude meters (-32767 ... +32767)
satNum
Number of satellites in use
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
•
count
Write Counter: This is incremented each time the GPS data is written by
the CMR.
res1
reserved for later use
Configuration (WBM)
5.13 Monitoring
119