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

AVEVA™ InTouch HMI

SmartSymbol

  • Last UpdatedSep 24, 2024
  • 1 minute read

必须在应用程序中定义 SmartSymbol 模板,然后才能导入使用 SmartSymbol 模板的窗口。如果 SmartSymbol 模板不存在,则导入会失败,并且不会创建窗口。

可以为一个窗口指定多个 SmartSymbol。每个 SmartSymbol 在单独的 <SmartSymbol> </SmartSymbol> 元素中声明。

可以为 SmartSymbol 指定以下元素。

元素

描述

符号名称

SmartSymbol 名称。必需。

如果该名称与应用程序中的 SmartSymbol 模板名称不一致,或者缺失,则不会创建对象。

维数

对象的位置和大小。元素为 top、left、width、height。top、left、width 和 height 值以像素为单位。生成的坐标必须在 -32000 到 +32000 之间。width 和 height 都不能为 0。必需。

如果为 Dimension 元素指定了无效的值或该元素缺少值,则不会创建对象。

TagReplace

实例标记替换。

StringReplace

实例字符串替换。

示例:

<SmartSymbol>

<SymbolName>MyCoolSymbol</SymbolName>

<Dimension>

<Left>100</Left><Top>50</Top>

<Width>270</Width><Height>80</Height>

</Dimension>

<TagReplace>

<Find>Tag001</Find>

<Replace>Tag007</Replace>

</TagReplace>

<StringReplace>

<Find>Find This Text</Find>

<Replace>Replace it with this text</Replace>

</StringReplace>

</SmartSymbol>

最简示例:

<SmartSymbol>

<SymbolName>MyCoolSymbol</SymbolName>

<Dimension>

<Left>100</Left><Top>50</Top>

<Width>270</Width><Height>80</Height>

</Dimension>

</SmartSymbol>

Related Links