Esempio della struttura di un messaggio, Formato dati del segnale d'uscita – VEGA VEGABAR 81 Profibus PA - Operating Instructions Manuale d'uso

Pagina 70

Advertising
background image

70

11 Appendice

VEGABAR 81 • Profibus PA

45020-IT

-131205

Sono disponibili due tipi di moduli:

Short für Profibusmaster, di supporto solo ad un byte „Identifier Format“, per es. Allen

Bradley

Long per Profibusmaster di supporto solo al byte „Identifier Format“, per es. Siemens

S7-300/400

Esempio della struttura di un messaggio

Trovate qui sotto esempi di combinazioni di moduli e la relativa struttura del messaggio.
Esempio 1

AI FB1 (OUT)

AI FB2 (OUT)

AI FB3 (OUT)

Byte-

No.

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

For-

mato

IEEE-754-Floating point

value

Stato

IEEE-754-Floating point

value

Stato

IEEE-754-Floating point

value

Stato

Value

AI FB1 (OUT)

AI FB1

AI FB2 (OUT)

AI FB2

AI FB3 (OUT)

AI FB3

Esempio 2

AI FB1 (OUT)

Free Place

Free Place

Byte-No.

1

2

3

4

5

Format

IEEE-754-Floating point value

Status

Value

AI FB1 (OUT)

AI FB1

Avviso:

In questo esempio i byte 6-15 non sono assegnati.

Formato dati del segnale d'uscita

Byte4 Byte3 Byte2 Byte1 Byte0

Status

Value (IEEE-754)

Figura 38: Formato dati del segnale d'uscita

Il byte di stato é codificato e corrisponde al profilo 3.02 "Profibus PA Profile for Process Control

Devices". Lo stato "Valore di misura OK" é codificato come 80 (hex) (Bit7 = 1, Bit6 … 0 = 0).
Il valore di misura sarà trasmesso come numero da 32 bit a virgola mobile in formato IEEE-754.

Byte n

Byte n+1

Bit

7

VZ

Exponent

Bit

6
2

Bit

5
2

Bit

4
2

Bit

3
2

Bit

2
2

Bit

1
2

Bit

0
2

Bit

7
2

Bit

6
2

Bit

5
2

Bit

4
2

Bit

3
2

Bit

2
2

Bit

1
2

Bit

0
2

Sign

Bit

Significant

7

6

5

4

3

2

1

0

-1

-2

-3

-4

-5

-6

-7

Byte n+2

Byte n+3

Bit

7
2

Significant

Bit

6
2

Bit

5
2

Bit

4
2

Bit

3
2

Bit

2
2

Bit

1
2

Bit

0
2

Bit

7
2

Bit

6
2

Bit

5
2

Bit

4
2

Bit

3
2

Bit

2
2

Bit

1
2

Bit

0
2

Significant

-9

-10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23

-8

Value = (-1)

VZ

2

(Exponent - 127)

(1 + Significant)

Figura 39: Formato dati del valore di misura

Advertising