The pragma defines 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':= <display mode> }
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'}
-
Insert location: The line above the line with the declaration of the corresponding variables.
Example
VAR {attribute 'displaymode':='hex'} dwVar1: DWORD; END_VAR