feat(opc): 添加S7直写支持并更新字段映射格式

- 在OpcConfig模型中新增S7终端、机架和槽位配置
- 实现S7直写功能,替代原有的OPC写入方式
- 更新前端字段映射占位符为S7地址格式
- 修改焊接完成信号触发条件说明
- 添加S7 INT32读取功能用于数据版本控制
This commit is contained in:
2026-04-24 16:58:58 +08:00
parent 95ec77afae
commit 8b15f78e78
4 changed files with 238 additions and 48 deletions

View File

@@ -187,4 +187,7 @@ class OpcConfig(BaseModel):
write_counter_node: str = ""
write_source_node: str = ""
write_target_node: str = ""
write_s7_endpoint: str = ""
write_s7_rack: int = 0
write_s7_slot: int = 1
write_nodes: Dict[str, Dict[str, str]] = {}