Attribut 'displaymode'
Mit dem Pragma definieren Sie den Darstellungsmodus einer einzelnen Variablen. Diese Festlegung überschreibt die globale Einstellung für die Darstellung der Monitoring-Variablen, die über die Befehle im Menü Debug > Darstellung erfolgt.
Syntax: {attribute 'displaymode':=<displaymode>}
Folgende Definitionen sind möglich:
- Binärformat
- {attribute 'displaymode':='bin'}
- {attribute 'displaymode':='binary'}
- Dezimalformat
- {attribute 'displaymode':='dec'}
- {attribute 'displaymode':='decimal'}
- Hexadezimalformat
- {attribute 'displaymode':='hex'}
- {attribute 'displaymode':='hexadecimal'}
Einfügeort: Zeile oberhalb der Deklarationszeile einer Variablen
Beispiel:
VAR
{attribute 'displaymode':='hex'}
nVar1 : DWORD;
END_VAR
Siehe auch:
- Dokumentation TC3 User Interface: Befehl Darstellung - Binär, Dezimal, Hexadezimal