修改device错误绑定

This commit is contained in:
SIC1016\caipeilun
2026-08-19 10:25:32 +08:00
parent 8b8246bec0
commit 67cdb3e88e
6 changed files with 43 additions and 127 deletions
@@ -207,7 +207,7 @@ namespace SicModules.PMs.Routines
private ModuleName moduleName;
private PMModule _pmModule;
private IoThrottleValve2 _IoThrottle;
private IoInterLock _pmIoInterLock;
//private IoInterLock _pmIoInterLock;
private int _rotationCheckSpeed = 0; //设置旋转速度为0后检查是否转速低于此数值
private int _rotationCloseTimeout = 20; //旋转停止超时
@@ -242,7 +242,7 @@ namespace SicModules.PMs.Routines
Name = "Clean";
_IoThrottle = DEVICE.GetDevice<IoThrottleValve2>($"{Module}.TV");
_pmIoInterLock = DEVICE.GetDevice<IoInterLock>($"{Module}.PMInterLock");
//_pmIoInterLock = DEVICE.GetDevice<IoInterLock>($"{Module}.PMInterLock");
}
public override Result Start(params object[] objs)
@@ -267,13 +267,13 @@ namespace SicModules.PMs.Routines
_throttleFinalPressure = SC.GetValue<double>($"PM.{Module}.Clean.FinalPressure");
//Purge Succeed 清掉
_pmIoInterLock.DoLidOpenRoutineSucceed = false;
_pmIoInterLock.DoLidCloseRoutineSucceed = false;
if (!_pmIoInterLock.SetPMCleanRoutineRunning(true, out string reason))
{
EV.PostAlarmLog(Module, $"can not Clean,{reason}");
return Result.FAIL;
}
//_pmIoInterLock.DoLidOpenRoutineSucceed = false;
//_pmIoInterLock.DoLidCloseRoutineSucceed = false;
//if (!_pmIoInterLock.SetPMCleanRoutineRunning(true, out string reason))
//{
// EV.PostAlarmLog(Module, $"can not Clean,{reason}");
// return Result.FAIL;
//}
_checkPMPt2Over1000 = false;
@@ -438,13 +438,13 @@ namespace SicModules.PMs.Routines
private void SetRoutineRuningDo()
{
_pmIoInterLock.DoLidCloseRoutineRunning = false;
//_pmIoInterLock.DoLidCloseRoutineRunning = false;
}
private void SetRoutineSuccessedDo()
{
_pmIoInterLock.SetLidClosedRoutineSucceed(true, out string reason);
_pmIoInterLock.DoLidOpenRoutineSucceed = false;
//_pmIoInterLock.SetLidClosedRoutineSucceed(true, out string reason);
//_pmIoInterLock.DoLidOpenRoutineSucceed = false;
}