Attribute 'displaymode'
The pragma defines the display mode of an individual variable. This setting overwrites the global setting for the display of the monitoring variables, which is defined by the commands in the menu Debug > Representation.
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 location: Line above the declaration line of a variable
Example:
VAR
{attribute 'displaymode':='hex'}
nVar1 : DWORD;
END_VAR
See also:
- TC3 User Interface documentation: Command Display Mode - Binary, Decimal, Hexadecimal