将tcp协议修改为opcua协议

This commit is contained in:
2025-11-18 11:22:04 +08:00
parent cfaf1d5d92
commit bd5d933540
8 changed files with 325 additions and 381 deletions

6
readme.md Normal file
View File

@ -0,0 +1,6 @@
# 功能
使用opc_tcp通讯读取服务端的上料斗和下料斗重量的数值并且显示在界面上。当服务端断开状态图标会切换重量值清零会一直重连服务端。
当服务端那边连接不上重量那边的客户端,上料斗或下料斗的值会变为"error",我这边客户端接收到"error"值时,会状态图标会切换,重量值清零,直到接收到正常值
# 使用教程
使用前需要修改的参数opcua_client.py文件中需要修改的地方有
![img.png](参数修改.png)