虚拟模式下 跳过联锁(Interlock)检查,因为虚拟模式没有真实安全门信

This commit is contained in:
zhengxuan.zhang
2026-05-21 17:15:27 +08:00
parent 43d0e7fa89
commit de4a7121db
5 changed files with 27 additions and 12 deletions
@@ -65,6 +65,8 @@ namespace XP.Hardware.RaySource.Implementations
public override XRayResult ConnectVariables()
{
_isConnected = true;
_eventAggregator.GetEvent<VariablesConnectedEvent>().Publish(true);
_eventAggregator.GetEvent<RaySourceStatusChangedEvent>().Publish(RaySourceStatus.Closed);
_logger.Info("[Simulated] PVI 变量连接成功");
return XRayResult.Ok();
}