|
@@ -241,6 +241,7 @@ namespace PunkHPX8_RT.Modules.VpwMain
|
|
|
//Cycle Manual Process
|
|
|
Transition(VPWCellState.Idle, VPWCellMsg.CycleProcessRecipe, CycleManualProcess, VPWCellState.CycleManualProcessing);
|
|
|
Transition(VPWCellState.CycleManualProcessing, FSM_MSG.TIMER, CycleManualMonitor, VPWCellState.Idle);
|
|
|
+ Transition(VPWCellState.CycleManualProcessing, VPWCellMsg.Abort, RunRecipeAbort, VPWCellState.Init);
|
|
|
//Prepare
|
|
|
Transition(VPWCellState.Idle, VPWCellMsg.Prepare, Prepare, VPWCellState.Preparing);
|
|
|
Transition(VPWCellState.Preparing, FSM_MSG.TIMER, PrepareMonitor, VPWCellState.WaitForRunRecipe);
|
|
@@ -298,6 +299,7 @@ namespace PunkHPX8_RT.Modules.VpwMain
|
|
|
{
|
|
|
OP.Subscribe($"{Module}.InitializeAll", (cmd, args) => { return CheckToPostMessage<VPWCellState, VPWCellMsg>(eEvent.ERR_VPW, Module.ToString(), (int)VPWCellMsg.Initialize); });
|
|
|
OP.Subscribe($"{Module}.Prepare", (cmd, args) => { return CheckToPostMessage<VPWCellState, VPWCellMsg>(eEvent.ERR_VPW, Module.ToString(), (int)VPWCellMsg.Prepare); });
|
|
|
+ OP.Subscribe($"{Module}.Abort", (cmd, args) => { return CheckToPostMessage<VPWCellState, VPWCellMsg>(eEvent.ERR_VPW, Module.ToString(), (int)VPWCellMsg.Abort); });
|
|
|
OP.Subscribe($"{Module}.CycleManualProcessRecipe", (cmd, args) =>
|
|
|
{
|
|
|
VpwRecipe recipe = RecipeFileManager.Instance.LoadGenericityRecipe<VpwRecipe>(args[0].ToString());
|
|
@@ -510,7 +512,16 @@ namespace PunkHPX8_RT.Modules.VpwMain
|
|
|
}
|
|
|
return result;
|
|
|
}
|
|
|
-
|
|
|
+ private bool RunRecipeAbort(object[] param)
|
|
|
+ {
|
|
|
+ _cycleManualProcessRoutine.Abort();
|
|
|
+ //记录LotTrack
|
|
|
+ _runRecipeCompleteTime = DateTime.Now;
|
|
|
+ _cycleManualProcessRoutine.VpwLotTrackHeaderDatas.ProcessTime = (_runRecipeCompleteTime - _runRecipeStartTime).TotalSeconds.ToString("F2");
|
|
|
+ VpwLotTrackUtil.ExportVpwLotTrack(Module.ToString(), _cycleManualProcessRoutine.VpwLotTrackDatas,
|
|
|
+ _cycleManualProcessRoutine.VpwLotTrackHeaderDatas, IsAuto, _isRetry);
|
|
|
+ return true;
|
|
|
+ }
|
|
|
#endregion
|
|
|
|
|
|
#region VpwCell Retry
|