Siemens SIMATIC LOGO! CMR2020 Operating Instructions Manual page 110

Hide thumbs Also See for SIMATIC LOGO! CMR2020:
Table of Contents

Advertisement

Operation
7.2 Monitoring
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
0
1
2
3
4
5
6
7
8
9
10
11
12
13
110
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
LOGO! CMR2020 / LOGO! CMR2040
Operating Instructions, 09/2014, C79000-G8976-C356-01

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic logo! cmr2040

Table of Contents