Attribute ‘displaymode’¶
With this pragma you define the display mode of an individual variable. This definition overwrites the global setting for the display of the monitoring variable, which takes place via the commands in the menu
.Syntax:
{attribute 'displaymode':=<displaymode>}
The following definitions are possible
- Binary format
{attribute 'displaymode':='bin'}
{attribute 'displaymode':='binary'}
- Decimal format
attribute 'displaymode':='dec'}
{attribute 'displaymode':='decimal'}
- Hexadecimal format
{attribute 'displaymode':='hex'}
attribute 'displaymode':='hexadecimal'}
Insertion position: line above the line with the declaration of the corresponding variables.
Example
VAR
{attribute 'displaymode':='hex'}
dwVar1: DWORD;
END_VAR
See also