修改device错误绑定
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -207,7 +207,6 @@ namespace SicModules.PMs.Routines
|
||||
private ModuleName moduleName;
|
||||
|
||||
private IoThrottleValve2 _IoThrottle;
|
||||
private IoInterLock _pmIoInterLock;
|
||||
|
||||
private int _rotationCheckSpeed = 0; //设置旋转速度为0后检查是否转速低于此数值
|
||||
private int _rotationCloseTimeout; //旋转停止超时
|
||||
@@ -272,7 +271,6 @@ namespace SicModules.PMs.Routines
|
||||
_rotationCloseTimeout = SC.GetValue<int>($"PM.{Module}.RotationCloseTimeout");
|
||||
_pmPressureMaxDiff = SC.GetValue<double>($"PM.{Module}.ThrottlePressureMaxDiff");
|
||||
_throttleTimeout = SC.GetValue<int>($"PM.{Module}.ThrottlePressureTimeout");
|
||||
_pmIoInterLock = DEVICE.GetDevice<IoInterLock>($"{Module}.PMInterLock");
|
||||
_rotationCloseTimeout = SC.GetValue<int>($"PM.{Module}.RotationCloseTimeout");
|
||||
|
||||
_pressureLoopCount = SC.GetValue<int>($"PM.{Module}.LeakCheck.CyclePurgeCount");
|
||||
|
||||
Reference in New Issue
Block a user