Skip to main content

属性:displaymode

编译指示定义单个变量的显示模式。该定义覆盖了监视变量显示的全局设置,该设置通过以下命令进行: 表示 - 二进制、十进制和十六进制 菜单

句法

{attribute 'displaymode':= <display mode> }

以下定义是可能的

  • 二进制格式

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

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

  • 十进制格式

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

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

  • 十六进制格式

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

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

插入位置:声明相应变量的行上方的行。

263. 例子
VAR
    {attribute 'displaymode':='hex'}
    dwVar1: DWORD;
END_VAR