增强稳定性,使用线程实时读取PLC中db_100中的数据并存储起来,read_generic从存储的文件中读取

This commit is contained in:
您çšpengqi
2025-09-26 19:49:56 +08:00
parent 83b374ffea
commit 485bbcc3f0
5 changed files with 592 additions and 101 deletions

View File

@ -1427,7 +1427,6 @@ class APIServer:
endpoint="read_generic")
def read_generic(plc_name, area_name, offset, data_type):
"""通用读取接口"""
print("Enter Read generic")
# 检查请求参数
count = request.args.get('count', 1, type=int)
if count < 1: