增强稳定性,使用线程实时读取PLC中db_100中的数据并存储起来,read_generic从存储的文件中读取
This commit is contained in:
@ -636,7 +636,6 @@ class CacheManager:
|
||||
"""通用读取接口"""
|
||||
with self.lock:
|
||||
area = self.cache.get(plc_name, {}).get(area_name)
|
||||
print("area:",area)
|
||||
if not area:
|
||||
return None, "Area not found", "unknown", 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user