Skip to main content

Attribute: displaymode

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 Display Mode – Binary, Decimal, and Hexadecimal 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 263. Example
VAR
    {attribute 'displaymode':='hex'}
    dwVar1: DWORD;
END_VAR