TOP 7
Aus iSysBus Doku
Protokoll / ISB-Protokoll / TOP 7
Inhaltsverzeichnis |
Datenaufbau
| Byte 0 | Byte 1 | Byte 2 | Byte 3 | Byte 4 | Byte 5 | Byte 6 | Byte 7 |
| TOP | CMD | TOV | VALUE | --- | --- | --- | |
| 0x07 | tttt tttt | MMMMMMMM | VEEEEMMM | --- | --- | --- | |
Command (CMD)
Das Command-Byte steuert bestimmte Eigenschaften:
| CMD | Beschreibung |
| 0 | Lesen |
| 1 | Antwort |
| 2 | Schreiben |
TOV
Der TOV (Type Of Value) definiert die Einheit des dezimalen Wertes. Folgende Interpretationen sind derzeit vorhanden:
Datenaufbau für TOP 7
| ID | Typ | tttt tttt | Einheit | Auflösung | Wertebereich |
| 0x00 | --- | ||||
| 0x01 | Temperatur | 0000 0001 | °C | 0,01 °C | -273,0 °C - 670670.0 °C |
| 0x02 | 0000 0010 |
VALUE
Der Wert ist eine Gleitkommazahl (Float) in folgender Schreibweise:
V EEEE MMM MMMMMMMM
V stellt das Vorzeichen dar (0 für negative Zahlen, 1 für positive) EEEE ist der Exponent MMM MMMMMMMM ist die Mantisse
Damit ergibt sich folgende Schreibweise:
- Wert = (0,01*M)*2^E
- E = [0 ... 15]
- M = [-2048 ... 2047]
Wertebereich: [-671 088,64 ... 670 760,96]
Der Wert 7FFFh ist reserviert für ungültige Werte