refactor(opc): 移除信号1相关功能并更新配置
移除前端信号1配置项、后端信号1处理逻辑及相关API 更新OPC配置节点信息及启动脚本conda初始化
This commit is contained in:
@@ -272,14 +272,12 @@ class OpcService:
|
||||
|
||||
counter_changed = current_counter != self.last_counter_at_state_change
|
||||
|
||||
# State machine for signal processing
|
||||
# Signal1自动化处理已禁用 - 只允许手动调用_handle_signal1函数
|
||||
# 信号1不再响应自动化触发,确保双向保护
|
||||
if self.track_state == "WAIT_S1":
|
||||
if signal1_value is not None and self.signal1_last is not None:
|
||||
if self.signal1_last == 0 and signal1_value == 1 and counter_changed:
|
||||
self._log(f"Signal1: Entry coil triggered (0->1) with counter change, state={self.track_state}")
|
||||
await self._handle_signal1()
|
||||
self.track_state = "WAIT_S2"
|
||||
self.last_counter_at_state_change = current_counter
|
||||
# 不再处理信号1的自动化触发
|
||||
# 信号1只能通过手动调用API或信号2内部逻辑触发
|
||||
pass
|
||||
|
||||
elif self.track_state == "WAIT_S2":
|
||||
if signal2_value is not None and self.signal2_last is not None:
|
||||
|
||||
Reference in New Issue
Block a user