VisualHMIアラート選択:on_select_warning推奨事項を表示

freeFree Technical Resource

This content is free to read, suitable for basic learning and search traffic.

アラート選択コールバックon_select_warning(screen_id, control_id, warning_id, starttime, stoptime, warning_text)(カスタムファームウェア専用):ユーザーが警告リストにあるアラームを選択します。トリガーされると、アラームID、開始時間、テキストが表示され、スクリプトは処理の提案と詳細を行うことができます。

1.前提条件とは

  • アラームコントロールコントロールID ≠ 0セルフペイントコントロールと同様、0番コントロールはトリガーされません
  • アラームコントロールを選択選択を許可する√

2.コールバックパラメータ

パラメータ説明書は
screen_id画面 IDです。
control_idコントロールID
warning_idアラームID
starttimeアラーム開始時刻(タイムスタンプ)
stoptimeアラーム終了時刻(タイムスタンプ)
warning_text警告テキスト

3.アプリケーション:アラームIDによる処理の推奨

g_solution == {
  [1]=“コンプレッサ排気圧力を確認する”、
  [2]= "復水器の熱を確認する"
  [3]= "冷媒漏れがないか確認"
  [100]=“ポンプのをチェック”
}

function make_datetime ts
  - タイムスタンプフォーマット、オンデマンド実装
  return os.date "%Y-%m-%d %H %M %S" ts
End of Endシングル

function on_select_warning screen_id_id warning_id
                            starttime、stoptime、warning_text
  local sol = g_Solution [warning_id]または“廃棄の提案がありません”
  set_string VT_LW、0x1100、"アラームID". warning_id
  set_string_LW、0x1101、make_dattime
  set_string VT_LW、0x1102、sol      --廃棄推奨事項をLW1102に表示
End of Endシングル

典型的なシナリオ:運用·保守担当者がアラートをクリックすると、画面に直接“このアラートの処理方法”が表示されます。マニュアルをめくるよりもはるかに速くなります。

2つの穴このAPIを使用してください。通常のファイルなし。制御ID≠0 +選択√を同時に満たす必要がある選択したアクションはコールバックを引き起こさない。

広州大彩科技Visual HMI開発ドキュメント(hmi-doc.gz-dc.com)LUAチュートリアル“警告選択”から整理され、著作権は大彩科技が所有しています。

Put this resource to use in a real project?

Go to the Tool Center for message parsing, CRC verification and device debugging, or submit your requirements for selection and integration advice.

Engineer Membership

Turn this article into actionable debugging resources

After activation, you can use advanced message parsing, resource pack downloads, code examples, engineering cases and priority technical support, suitable for real project delivery.

Unlimited Advanced Tools
Resource & Code Packs
Complete Engineering Case Library
Priority Technical Support

Leave a Reply

Your email address will not be published. Required fields are marked *.