Attribut: displaymode
Das Pragma definiert den Darstellungsmodus einer einzelnen Variablen. Diese Festlegung überschreibt die globale Einstellung für die Darstellung der Monitoring-Variablen, die über die Befehle im Menü Darstellung: Binär, Dezimal und Hexadezimal erfolgt.
Syntax:
{attribute 'displaymode':= <display mode> }
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 Zeile mit der Deklaration der entsprechenden Variablen.
Beispiel 263. Beispiel
VAR
{attribute 'displaymode':='hex'}
dwVar1: DWORD;
END_VAR