Attribute displaymode, L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 994

Advertising
background image

L-force | PLC Designer

Programming Reference

992

DMS 4.1 EN 03/2011 TD29

Attribute displaymode
With the help of the pragma {attribute 'displaymode'} the display mode of a single
variable can be defined. This setting will overwrite the global setting for the display
mode of all monitoring variables, done via the commands of the submenu Display
Mode (per default available in the Online menu).
The pragma must be positioned in the line above the line containing the variables
declaration.
Syntax:
{attribute 'displaymode’:=<displaymode>}
The following definitions are possible:
- for display in binary format:

{attribute 'displaymode':='bin'}
{attribute 'displaymode':='binary'}

- for display in decimal format:

{attribute 'displaymode':='dec'}
{attribute 'displaymode':='decimal'}

- for display in heximal format:

{attribute 'displaymode':='hex'}
{attribute 'displaymode':='hexadecimal'}


Example:
VAR
{attribute 'displaymode':='hex'}
dwVar1: DWORD;
END_VAR

Advertising