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

AVEVA™ InTouch HMI

GetTokenConnectionStatus() 函数

  • Last UpdatedApr 24, 2026
  • 1 minute read

在 AVEVA Operations Control 连接体验中检索 AVEVA Identity Manager 和 CONNECT 的连接状态。该功能也可用于脱机连接模式。

语法

该脚本函数的语法如下:

resultcode = GetTokenConnectionStatus();

Resultcode 表示连接状态的令牌。

返回值

  • 结果码 0:应用程序已连接 AVEVA Identity Manager 与 CONNECT。

  • 结果码 1:应用程序已连接 AVEVA Identity Manager,但与 CONNECT 断开。

  • 结果码 2:应用程序与 AVEVA Identity Manager、CONNECT 均断开。

  • 结果码 3:设备离线时刷新 AVEVA Identity Manager,并恢复与 CONNECT 的连接。

  • 结果码 4:脱机连接模式下使用 Windows Active Directory (AD) 凭据登录。

  • 结果码 5:脱机连接模式下使用 Windows Active Directory (AD) 凭据登录,并恢复与 CONNECT 的连接。

  • 结果码 6:AVEVA Identity Manager 与 CONNECT 连接失败,但用户此前已通过 AVEVA ID 或 Microsoft Windows Active Directory (AD) 凭据成功认证。

示例:

int AccessTokenStatus=GetTokenConnectionStatus()

In This Topic
Related Links