更新库文件558af89d,优化三色灯控制逻辑;修正加载Interlock配置文件时引发集合改变异常的的问题。

优化修正JobDone信息输出的逻辑。
This commit is contained in:
SL 2023-12-27 16:25:59 +08:00
parent 4989867bff
commit b064e627a8
13 changed files with 27 additions and 7 deletions

View File

@ -6,6 +6,7 @@ using Aitex.Core.RT.Device;
using Aitex.Core.RT.Device.Devices;
using Aitex.Core.RT.Device.Unit;
using Aitex.Core.RT.Event;
using Aitex.Core.RT.OperationCenter;
using Aitex.Core.RT.SCCore;
using Aitex.Core.Util;
using MECF.Framework.Common.Equipment;
@ -254,7 +255,8 @@ namespace SicModules.LLs
public void SetJobDoneStatus()
{
EV.PostInfoLog(Module, "Set LoadLock Job Done!");
//EV.PostInfoLog(Module, "Set LoadLock Job Done!");
OP.DoOperation("System.AlertJobDone", ModuleName.LoadLock.ToString(), 0);
JobDone = true;
_timerJobDone.Start(3 * 1000);
}

View File

@ -1570,7 +1570,7 @@ namespace SicRT.Modules
/// <summary>
/// 检测到LL中的Wafer已完成Job。
/// </summary>
private readonly R_TRIG _trigLLPjDone = new();
//private readonly R_TRIG _trigLLPjDone = new();
private void MonitorLoadTask()
{
@ -1582,7 +1582,7 @@ namespace SicRT.Modules
if (_load.FirstDetectWaferArrive(0) || _load.FirstDetectWaferLeave(0))
{
_load.ResetPurged();
_trigLLPjDone.RST = true;
//_trigLLPjDone.RST = true;
}
var canExcute = _load.HasWafer(0);
@ -1687,13 +1687,15 @@ namespace SicRT.Modules
return;
}
}
else
/*else
{
// Job Done, 响蜂鸣器
_trigLLPjDone.CLK = true;
if(_trigLLPjDone.Q)
EV.PostMessage(_load.Module.ToString(), EventEnum.PJ_DONE, "LoadLock", "0");
}
if (_trigLLPjDone.Q)
{
OP.DoOperation("System.AlertJobDone", ModuleName.LoadLock.ToString(), 0);
}
}*/
}
else
{

View File

@ -33,6 +33,7 @@ using SicModules.PMs;
using SicModules.TMs;
using SicModules.UnLoads;
using System.Diagnostics;
using MECF.Framework.RT.EquipmentLibrary.HardwareUnits.UnLoad;
namespace SicRT.Equipments.Systems
{
@ -615,6 +616,21 @@ namespace SicRT.Equipments.Systems
return CheckToPostMessage((int)MSG.ShutDown, null);
});
OP.Subscribe("System.AlertJobDone", (s, args) =>
{
var module = ModuleName.System.ToString();
var slot = 0;
if (args is { Length: 2 })
{
module = args[0].ToString();
int.TryParse(args[1].ToString(), out slot);
}
EV.PostMessage(module, EventEnum.PJ_DONE, module, slot);
_mainSignalTower.AlertJobDone();
return true;
});
#region Recipe Editor Lock Password Management
const string SC_PATH_REQ_RESET_PASS = "System.Recipe.ResetEditorPassword";

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.