ウォーターポンプシミュレーションサーバー

シンプルなウォーターポンプマシンのシミュレーションを実装したOPC UAサーバーです。

Water Pump Simulation ServerはWater PumpおよびQt Quick Water Pumpのサンプル用にOPC UAを使用して作成されています。

シミュレーション

OPC UAサーバーは、2つのタンク、水ポンプ、バルブを含む機械のシミュレーションを実行します。1つ目のタンクから2つ目のタンクに水を汲み上げ、バルブを開くことで2つ目のタンクから水を流すことができます。どちらの操作にも、ユーザーが設定可能な設定値があり、第2のタンクに汲み上げたり、第2のタンクから流したりする水の量を制御できる。

サーバーには以下のノードが存在する:

NodeId機能
ns=2;s=Machineマシンのメソッドノードと変数ノードを含むフォルダ
ns=2;s=Machine.Stateマシンの状態
ns=2;s=Machine.Tank1.PercentFilled最初のタンクの現在の充填状態
ns=2;s=Machine.Tank2.PercentFilled(充填率2つ目のタンクの現在の充填状態
ns=2;s=Machine.Tank2.TargetPercentポンピングとフラッシングの設定値
ns=2;s=Machine.Tank2.ValveState第2タンクのバルブの状態
ns=2;s=機械.指定表示用に人間が読み取れる機械の名称
ns=2;s=Machine.Startこのメソッドを呼び出してポンプを始動させる
ns=2;s=Machine.Stopポンプを停止するには、このメソッドを呼び出します。
ns=2;s=Machine.FlushTank2このメソッドをコールして、タンク 2 を洗浄する
ns=2;s=Machine.Resetこのメソッドを呼び出してシミュレーションをリセットする

すべてのメソッドは、成功した場合はGood を返し、操作が不正な場合はBadUserAccessDenied を返します(たとえば、最初のタンクが空のときにポンプを起動しようとした場合など)。

ファイル

Qt Quick Water PumpおよびWater Pumpも参照してください

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.