ウォーターポンプシミュレーションサーバー
単純なウォーターポンプの機械シミュレーションを実装したOPC UAサーバーです。
「ウォーターポンプシミュレーションサーバー」は、「ウォーターポンプ」および「Qt Quick ウォーターポンプ」の各サンプル向けに、OPC UAを使用して作成されています。
シミュレーション
シミュレーションこの OPC UA サーバーは、2 つのタンク、ウォーターポンプ、およびバルブを備えた機械のシミュレーションを実行します。 第1のタンクから第2のタンクへ水を汲み上げ、その後、バルブを開くことで第2のタンクから水を排出することができます。どちらの操作にもユーザーが設定可能なセットポイントがあり、第2のタンクへ汲み上げる水量や排出する水量を制御することが可能です。
サーバー上には以下のノードが存在します:
| NodeId | 関数 |
|---|---|
| ns=2;s=Machine | そのマシン用のメソッドノードおよび変数ノードを含むフォルダ |
| ns=2;s=Machine.State | マシンの状態 |
| ns=2;s=Machine.Tank1.PercentFilled | 第1タンクの現在の充填状況 |
| ns=2;s=Machine.Tank2.PercentFilled | 2番目のタンクの現在の充填状況 |
| ns=2;s=Machine.Tank2.TargetPercent | ポンプ運転および洗浄の目標値 |
| ns=2;s=Machine.Tank2.ValveState | 第2タンクのバルブの状態 |
| ns=2;s=Machine.Designation | 表示用の、人間が読み取れる機械の名称 |
| ns=2;s=Machine.Start | ポンプを起動するには、このメソッドを呼び出します |
| ns=2;s=Machine.Stop | ポンプを停止するには、このメソッドを呼び出します |
| ns=2;s=Machine.FlushTank2 | タンク2を洗浄するには、このメソッドを呼び出します |
| ns=2;s=Machine.Reset | シミュレーションをリセットするには、このメソッドを呼び出します |
すべてのメソッドは、成功した場合はGood を返し、操作が不正な場合(たとえば、第1タンクが空の状態でのポンプの起動など)はBadUserAccessDenied を返します。
© 2026 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.