A5E36197302
SmartLinx PROFIBUS DP-V1 – Operating Instructions
Page 21
m
m
m
m
m
A
pp
lic
ati
on
la
ye
r
For example, when reading words 7 and 8, the 32 bits would look as follows:
The whole is read as a 32-bit integer.
Split values
Two parameters may sometimes be combined, forming one value. This pair of numbers is
presented as xx:yy. An example is Echo Confidence as shown in Measurement View 2
(see
The LCD Display section of your Siemens device operating instructions). In this case,
a pair of 8-bit unsigned integers are viewed as a single value.
xx = the average noise value in dB
yy = the peak noise in dB
The number which corresponds to xx:yy, either for reading or setting a parameter, is
determined by the following formula:
For storing to the device:
value = (xx + 128) x 256 + (yy + 128)
For reading from the device:
xx
= (value / 256) – 128
yy
= (value % 256) – 128
where % is the modulus operator.
The modulus can be computed by following these steps:
value
1
= value / 256
value
2
= remainder of value
1
value
3
= value
2
x 256
yy = value
3
– 128
It may simplify parameter to notice:
xx = (most significant byte of value) – 128
yy = (least significant byte of value) – 128
Text messages
If a device parameter returns a text message, that message is converted to an integer
and provided in the register. The numbers are shown in the following table
word 7
word 8
15
MSW
0
15
LSW
0
31
32-bit integer value (UINT32)
0
Note:
Used for Level products only
Number
Text message
22222
Invalid value
30000
OFF
30001
ON
30002
Parameter values of multiple points do not match.
30003
Parameter does not exist.
Summary of Contents for PROFIBUS DP-V1
Page 1: ...Operating Instructions SmartLinx PROFIBUS DP V1 08 2015 Edition Communication ...
Page 4: ...ii mmmmm Table of Contents ...
Page 30: ......
Page 31: ......