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

AVEVA™ InTouch HMI

APUTranslateErrorCode() 函数

  • Last UpdatedApr 04, 2022
  • 1 minute read

将 APU 函数之一返回的错误码转换为简要描述错误码的中文字符串。

类别

查看

语法

[Result=] APUTranslateErrorCode(iErrorCode, sTagMessage);

参数

iErrorCode

整型错误码,通常由其它大多数 APU 函数返回。

sTagMessage

消息标记,用于接收错误消息。

附注

此函数将错误消息作为 sTagMessage 参数返回给某个消息标记。如果传递了未知的错误码,此函数可能会失败。

返回整型错误码。

示例

如果 Alarm Printer 的实例 15 当前不在运行,则本例将消息标记 errmsg 设置为“没有可用的实例”。

Status = APUTranslateErrorCode(APUSetAlarmGroupText(15,"$system"), ErrMsg);

In This Topic