|
@@ -22,6 +22,7 @@ using Venus_RT.Modules.VCE;
|
|
|
using Venus_RT.Devices.PreAligner;
|
|
|
using Venus_RT.Modules.TM.VenusEntity;
|
|
|
using SecsGem.Core.Application;
|
|
|
+using Aitex.Core.RT.RecipeCenter;
|
|
|
|
|
|
namespace Venus_RT.Modules
|
|
|
{
|
|
@@ -926,25 +927,26 @@ namespace Venus_RT.Modules
|
|
|
|
|
|
private bool FsmPauseJob(object[] objs)
|
|
|
{
|
|
|
- _AutoCycle.PauseJob((string)objs[0]);
|
|
|
+ _AutoCycle.PauseJob((string)objs[0],out var reason);
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
private bool FsmResumeJob(object[] objs)
|
|
|
{
|
|
|
- _AutoCycle.ResumeJob((string)objs[0]);
|
|
|
+ _AutoCycle.ResumeJob((string)objs[0],out var reason);
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
private bool FsmStopJob(object[] objs)
|
|
|
{
|
|
|
- _AutoCycle.StopJob((string)objs[0]);
|
|
|
+ _AutoCycle.StopJob((string)objs[0], out var reason);
|
|
|
+
|
|
|
return true;
|
|
|
}
|
|
|
|
|
|
private bool FsmAbortJob(object[] objs)
|
|
|
{
|
|
|
- _AutoCycle.AbortJob((string)objs[0]);
|
|
|
+ _AutoCycle.AbortJob((string)objs[0],out var reason);
|
|
|
return true;
|
|
|
}
|
|
|
|
|
@@ -1153,10 +1155,20 @@ namespace Venus_RT.Modules
|
|
|
return FaCreateJob(paras, out reason);
|
|
|
case "StartJob":
|
|
|
return FaStartJob(paras[0].ToString(), out reason);
|
|
|
+ case "StopJob":
|
|
|
+ return FaStopJob(paras[0].ToString(), out reason);
|
|
|
+ case "AbortJob":
|
|
|
+ return FaAbortob(paras[0].ToString(), out reason);
|
|
|
+ case "PauseJob":
|
|
|
+ return FaPauseJob(paras[0].ToString(), out reason);
|
|
|
+ case "ResumeJob":
|
|
|
+ return FaResumeJob(paras[0].ToString(), out reason);
|
|
|
case "Load":
|
|
|
return FaLoad(paras[0].ToString());
|
|
|
case "Unload":
|
|
|
return FaUnLoad(paras[0].ToString());
|
|
|
+ case "ReadID":
|
|
|
+ return FaReadId(paras[0].ToString());
|
|
|
|
|
|
}
|
|
|
return true;
|
|
@@ -1203,6 +1215,46 @@ namespace Venus_RT.Modules
|
|
|
return _AutoCycle.StartJob(jobName,out reason);
|
|
|
}
|
|
|
/// <summary>
|
|
|
+ /// Fa停止任务
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="jobName"></param>
|
|
|
+ /// <param name="reason"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ private bool FaStopJob(string jobName, out string reason)
|
|
|
+ {
|
|
|
+ return _AutoCycle.StopJob(jobName, out reason);
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// Fa中止任务
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="jobName"></param>
|
|
|
+ /// <param name="reason"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ private bool FaAbortob(string jobName, out string reason)
|
|
|
+ {
|
|
|
+ return _AutoCycle.AbortJob(jobName, out reason);
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// Fa暂停任务
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="jobName"></param>
|
|
|
+ /// <param name="reason"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ private bool FaPauseJob(string jobName, out string reason)
|
|
|
+ {
|
|
|
+ return _AutoCycle.PauseJob(jobName, out reason);
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// Fa恢复任务
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="jobName"></param>
|
|
|
+ /// <param name="reason"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ private bool FaResumeJob(string jobName, out string reason)
|
|
|
+ {
|
|
|
+ return _AutoCycle.ResumeJob(jobName, out reason);
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
/// Fa Load
|
|
|
/// </summary>
|
|
|
/// <param name="lp"></param>
|
|
@@ -1212,6 +1264,15 @@ namespace Venus_RT.Modules
|
|
|
return EFEM.EfemDevice.Load(ModuleHelper.Converter($"LP{lp}"));
|
|
|
}
|
|
|
/// <summary>
|
|
|
+ /// 读取Id
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="lp"></param>
|
|
|
+ /// <returns></returns>
|
|
|
+ private bool FaReadId(string lp)
|
|
|
+ {
|
|
|
+ return EFEM.EfemDevice.ReadCarrierId(ModuleHelper.Converter($"LP{lp}"));
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
/// Fa Unload
|
|
|
/// </summary>
|
|
|
/// <param name="lp"></param>
|
|
@@ -1220,14 +1281,18 @@ namespace Venus_RT.Modules
|
|
|
{
|
|
|
return EFEM.EfemDevice.Unload(ModuleHelper.Converter($"LP{lp}"));
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 获取所有Sequence
|
|
|
+ /// </summary>
|
|
|
+ /// <returns></returns>
|
|
|
public string[] GetSequenceList()
|
|
|
{
|
|
|
- return null;
|
|
|
+ return RecipeFileManager.Instance.GetSequenceNameList().ToArray();
|
|
|
}
|
|
|
|
|
|
public string GetSequenceBody(string ppid)
|
|
|
{
|
|
|
- return "";
|
|
|
+ return RecipeFileManager.Instance.GetSequence(ppid, false);
|
|
|
}
|
|
|
|
|
|
public List<string> GetFormatedSequence(string ppid)
|