Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

指定用于选择图形层的规则

  • Last UpdatedSep 24, 2024
  • 2 minute read

缺省规则基于“选择组”的“选择”对指定给每个层。在离心泵“符号向导”示例中,“相对方向选择组”层规则直接映射到向导选项选择。选择“相对方向”选项将显示泵配置中选定层的图形元素。

Default layers assignments Layer Properties list Wizard Options list

修改缺省层规则以显示或隐藏转速计。如果泵相对方向为“左”或“右”,我们建议层规则选择适当的“相对方向”层和转速计层。“转速计左”和“转速计右”层规则包括 AND 语句,可选择转速计和符号向导的管道相对方向:

TachLeft: Orientation.Left&HasTach.True

TachRight: Orientation.Right&HasTach.True

包含转速计时用于选择“上”和“下”相对方向配置的层规则更加复杂,因为转速计的位置在两个相对方向中相同。“转速计上”层规则包括使用 OR 语句结合的单独的 Top 和 Bottom 复合表达式。

(Orientation.Top&HasTach.True)|(Orientation.Bottom&HasTach.True)

使用符号向导预览,验证每组层规则是否仅定义单个唯一的符号向导配置。当符号向导包括其它配置中的元素或缺少元素时,规则错误会变得明显。

符号向导配置

向导选项和相应活动配置层规则

A pump symbol where orientation equals left and has tachometer equals false

Orientation.Left&HasTach.False

A pump symbol where orientation equals left and has tachometer equals true

Orientation.Left&HasTach.True

A pump symbol where orientation equals right and has tachometer equals false

Orientation.Right&HasTach.False

A pump symbol where orientation equals right and has tachometer equals true

Orientation.Right&HasTach.True

A pump symbol where orientation equals top and has tachometer equals false

Orientation.Top&HasTach.False

A pump symbol where orientation equals top and has tachometer equals true

(Orientation.Top&HasTach.True)|(Orientation.Bottom&HasTach.True)

A pump symbol where orientation equals bottom and has tachometer equals false

Orientation.Bottom&HasTach.False

A pump symbol where orientation equals bottom and has tachometer equals true

(Orientation.Top&HasTach.True)|(Orientation.Bottom&HasTach.True)

规则提示

  • 符号向导规则同时求值。用括号将复合表达式括住,复合表达式在规则中括号外部的其它运算符之前求值。

  • 规则无法单独引用“选择组”。始终编写以层次方式引用“选择组”内“选择”的规则表达式:ChoiceGroup.Choice

  • 编写规则时使用运算符字符(&、|、!)而不是布尔关键字(AND、OR 和 NOT)可节省空间。使用运算符字符可降低长规则超出规则字段边框的可能性。