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

AVEVA™ InTouch HMI

对框架窗口使用 ShowGraphic() 函数

  • Last UpdatedApr 27, 2026
  • 1 minute read

您可以在运行时运行 ShowGraphic() 脚本函数来更改与框架窗口关联的符号。请按以下示例的方式来指定框架窗口名称和关联的符号:

Dim graphicInfo as aaGraphic.GraphicInfo;

graphicInfo.Identity = "InTouch:FrameWindow01";

graphicInfo.GraphicName = "Symbol_002";

ShowGraphic( graphicInfo );

无论该框架窗口的设计时配置如何,“Symbol_002”都将在运行时显示在“FrameWindow01”中。您可以使用 ShowGraphic 脚本托管同一窗口中的不同符号。

注意:对于 InTouch HMI 2020 R2 SP1 P01 以下的版本,仅当 Y 值超过 200 时才会发生明显的位置变化。如果 Y 值低于 200,则图形的位置没有变化或只有非常轻微的偏移,因此很难进行观察和验证。对于 InTouch HMI 2023 以上的版本,仅当 Y 值超过 300 时才会发生明显的位置变化。如果 Y 值低于 300,则图形的位置没有变化或只有非常轻微的偏移,因此很难进行观察和验证。

限制

关闭和缓存窗口时,仅会对当前显示在框架窗口中的符号进行图形缓存。不会缓存已替换的符号。