워터 펌프 시뮬레이션 서버

간단한 워터 펌프 기계 시뮬레이션을 구현하는 OPC UA 서버입니다.

워터 펌프 시뮬레이션 서버는 워터 펌프용 OPC UA 및 Qt Quick 워터 펌프 예제를 사용하여 생성됩니다.

시뮬레이션

OPC UA 서버는 두 개의 탱크, 워터 펌프, 밸브가 포함된 기계의 시뮬레이션을 실행합니다. 첫 번째 탱크에서 두 번째 탱크로 물을 펌핑한 다음 밸브를 열어 두 번째 탱크에서 물을 플러시할 수 있습니다. 두 작업 모두 사용자가 구성할 수 있는 설정값이 있어 두 번째 탱크로 펌핑되거나 두 번째 탱크에서 플러시되는 물의 양을 제어할 수 있습니다.

서버에는 다음 노드가 존재합니다:

NodeId함수
ns=2;s=Machine머신에 대한 메서드 및 변수 노드가 포함된 폴더
ns=2;s=Machine.State머신의 상태
ns=2;s=Machine.Tank1.PercentFilled첫 번째 탱크의 현재 충전 상태
ns=2;s=Machine.Tank2.PercentFilled두 번째 탱크의 현재 충전 상태
ns=2;s=Machine.Tank2.TargetPercent펌핑 및 플러싱을 위한 설정값
ns=2;s=Machine.Tank2.ValveState두 번째 탱크의 밸브 상태
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 을 반환하고 작동이 잘못된 경우(예: 첫 번째 탱크가 비어 있는데 펌프를 시작하려고 시도하는 경우) BadUserAccessDenied 을 반환합니다.

파일을 반환합니다:

Qt Quick 워터 펌프워터 펌프도참조하세요 .

© 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.