11 Bijlage
Voorbeelden voor de telegramopbouw
Hierna worden voorbeelden getoond, hoe de modules kunnen worden gecombineerd en hoe het
bijbehorende datatelegram is opgebouwd.
Voorbeeld 1
•
AI FB1 (OUT)
•
AI FB2 (OUT)
•
AI FB3 (OUT)
By-
1
2
te-No.
For-
IEEE-754-Floating point
maat
value
Value
AI FB1 (OUT)
Voorbeeld 2
•
AI FB1 (OUT)
•
Free Place
•
Free Place
Byte-No.
Formaat
Value
Opmerking:
Dataformaat van het uitgangssignaal
Byte2 Byte1 Byte0
Byte4 Byte3
Status
Value (IEEE-754)
Fig. 47: Dataformaat van het uitgangssignaal
De statusbyte is gecodeerd conform profiel 3.02 "Profibus PA Profile for Process Control Devices".
De status "Meetwaarde OK" is als 80 (hex) gecodeerd (Bit7 = 1, Bit6 ... 0 = 0).
De meetwaarde wordt als 32 bits getal met drijvende komma in IEEE-754-formaat overgedragen.
Byte n
Bit
Bit
Bit
Bit
Bit
Bit
Bit
7
6
5
4
3
2
2
4
VZ
2
7
2
6
5
2
2
3
Sign
Exponent
Bit
(Exponent - 127)
VZ
2
Value = (-1)
Fig. 48: Dataformaat van de meetwaarde
Codering van de statusbyte bij PA-uitgangswaarde
Meer informatie over de codering van de statusbyte vindt u in de Device Description op
76
3
4
5
Status
IEEE-754-Floating point
AI FB1
1
IEEE-754-Floating point value
De bytes 6-15 zijn in dit voorbeeld niet bezet.
Byte n+1
Bit
Bit
Bit
Bit
Bit
Bit
1
0
4
7
6
5
3
2
2
-3
2
2
0
2
2
-2
2
-4
2
1
-1
Significant
(1 + Significant)
6
7
8
9
value
AI FB2 (OUT)
2
3
AI FB1 (OUT)
Byte n+2
Bit
Bit
Bit
Bit
Bit
Bit
Bit
7
4
6
5
0
2
1
2
2
2
-9
2
-10 -11 -12 -13 -14 -15 -16 -17
2
-8
2
2
-6
-7
-5
Significant
10
11
12
13
Status
IEEE-754-Floating point
value
AI FB2
AI FB3 (OUT)
4
Bit
Bit
Bit
Bit
Bit
Bit
Bit
0
3
2
1
7
6
5
2
2
2
2
2
2
2
VEGABAR 82 • Profibus PA
14
15
Status
AI FB3
5
Status
AI FB1
Byte n+3
Bit
Bit
Bit
Bit
Bit
4
3
2
1
0
-18 -19 -20 -21 -22 -23
2
2
2
2
2
Significant