优化PM发生Alarm时调用AbortRoutine()方法的位置。

This commit is contained in:
Liang Su 2023-06-28 11:39:11 +08:00
parent e961eb9715
commit ed53c7797e
1 changed files with 2 additions and 2 deletions

View File

@ -836,6 +836,7 @@ namespace SicModules.PMs
private bool FsmEnterError(object[] param) private bool FsmEnterError(object[] param)
{ {
AbortRoutine();
InvokeOnEnterError(Module); InvokeOnEnterError(Module);
if (IsOnline) if (IsOnline)
{ {
@ -1363,8 +1364,7 @@ namespace SicModules.PMs
{ {
return false; return false;
} }
AbortRoutine();
StopRamp(); StopRamp();
_pmInterLock.SetPMProcessRunning(false, out string reason); _pmInterLock.SetPMProcessRunning(false, out string reason);
_pmInterLock.SetPMPreProcessRunning(false, out reason); _pmInterLock.SetPMPreProcessRunning(false, out reason);