|
@@ -89,7 +89,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- //LOG.Write(string.Format("Failed SubscribeLocation, module name invalid, {0} ", module));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("Failed SubscribeLocation, module name invalid, {0} ", module));
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -111,13 +111,13 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
{
|
|
|
if (_locationWafers[moduleFrom][slotFrom].IsEmpty)
|
|
|
{
|
|
|
- //LOG.Write(string.Format("Invalid wafer move, no wafer at source, {0}{1}=>{2}{3}", moduleFrom, slotFrom+1, moduleTo, slotTo+1));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("Invalid wafer move, no wafer at source, {0}{1}=>{2}{3}", moduleFrom, slotFrom+1, moduleTo, slotTo+1));
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
if (!_locationWafers[moduleTo][slotTo].IsEmpty)
|
|
|
{
|
|
|
- //LOG.Write(string.Format("Invalid wafer move, destination has wafer, {0}{1}=>{2}{3}", moduleFrom, slotFrom + 1, moduleTo, slotTo + 1));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("Invalid wafer move, destination has wafer, {0}{1}=>{2}{3}", moduleFrom, slotFrom + 1, moduleTo, slotTo + 1));
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -339,7 +339,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
{
|
|
|
if (!IsWaferSlotLocationValid(module, slot))
|
|
|
{
|
|
|
- //LOG.Write(string.Format("Invalid wafer create, invalid parameter, {0},{1}", module, slot+1));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("Invalid wafer create, invalid parameter, {0},{1}", module, slot+1));
|
|
|
return null;
|
|
|
}
|
|
|
|
|
@@ -350,8 +350,8 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
CarrierInfo carrier = CarrierManager.Instance.GetCarrier(module.ToString());
|
|
|
if (carrier == null)
|
|
|
{
|
|
|
- EV.PostMessage(ModuleName.System.ToString(), EventEnum.DefaultWarning,
|
|
|
- string.Format("No carrier at {0}, can not create wafer", module));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System,
|
|
|
+ string.Format("No carrier at {0}, can not create wafer", module));
|
|
|
return null;
|
|
|
}
|
|
|
|
|
@@ -363,6 +363,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
{
|
|
|
_locationWafers[module][slot].Status = state;
|
|
|
_locationWafers[module][slot].ProcessState = EnumWaferProcessStatus.Idle;
|
|
|
+ _locationWafers[module][slot].ChuckState = EnumWaferChuckStatus.Init;
|
|
|
|
|
|
_locationWafers[module][slot].WaferID = GenerateWaferId(module, slot,"");
|
|
|
_locationWafers[module][slot].WaferOrigin = GenerateOrigin(module, slot);
|
|
@@ -390,7 +391,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
{
|
|
|
if (!IsWaferSlotLocationValid(module, slot))
|
|
|
{
|
|
|
- //LOG.Write(string.Format("Invalid wafer create, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("Invalid wafer create, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
return null;
|
|
|
}
|
|
|
|
|
@@ -401,7 +402,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
CarrierInfo carrier = CarrierManager.Instance.GetCarrier(module.ToString());
|
|
|
if (carrier == null)
|
|
|
{
|
|
|
- EV.PostWarningLog(ModuleName.System.ToString(),string.Format("No carrier at {0}, can not create wafer.", module));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("No carrier at {0}, can not create wafer.", module));
|
|
|
return null;
|
|
|
}
|
|
|
|
|
@@ -413,7 +414,8 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
{
|
|
|
_locationWafers[module][slot].Status = state;
|
|
|
_locationWafers[module][slot].ProcessState = EnumWaferProcessStatus.Idle;
|
|
|
-
|
|
|
+ _locationWafers[module][slot].ChuckState = EnumWaferChuckStatus.Init;
|
|
|
+
|
|
|
|
|
|
_locationWafers[module][slot].WaferID = GenerateWaferId(module, slot, carrierID);
|
|
|
_locationWafers[module][slot].WaferOrigin = GenerateOrigin(module, slot);
|
|
@@ -435,10 +437,9 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
|
|
|
_dict[_locationWafers[module][slot].WaferID] = _locationWafers[module][slot];
|
|
|
|
|
|
-
|
|
|
}
|
|
|
|
|
|
- EV.PostInfoLog("System", $"Create wafer successfully on {module} slot:{slot+1} wafersize:{wz}.");
|
|
|
+ LOG.Write(eEvent.EV_WAFER_MANAGER_NOTIFY, ModuleName.System, "System", $"Create wafer successfully on {module} slot:{slot+1} wafersize:{wz}.");
|
|
|
WaferDataRecorder.CreateWafer(_locationWafers[module][slot].InnerId.ToString(), carrierInnerId, module.ToString(), slot, _locationWafers[module][slot].WaferID );
|
|
|
|
|
|
Serialize();
|
|
@@ -455,7 +456,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
int slot = slotFrom+i;
|
|
|
if (!IsWaferSlotLocationValid(module, slot))
|
|
|
{
|
|
|
- //LOG.Write(string.Format("Invalid wafer delete, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("Invalid wafer delete, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
continue;
|
|
|
}
|
|
|
WaferDataRecorder.DeleteWafer(_locationWafers[module][slot].InnerId.ToString());
|
|
@@ -473,7 +474,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
{
|
|
|
if (!IsWaferSlotLocationValid(module, slot))
|
|
|
{
|
|
|
- //LOG.Write(string.Format("Failed UpdateWaferLaser, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("Failed UpdateWaferLaser, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
return;
|
|
|
}
|
|
|
lock (_lockerWaferList)
|
|
@@ -490,7 +491,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
{
|
|
|
if (!IsWaferSlotLocationValid(module, slot))
|
|
|
{
|
|
|
- //LOG.Write(string.Format("Failed UpdateWaferT7Code, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("Failed UpdateWaferT7Code, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
return;
|
|
|
}
|
|
|
lock (_lockerWaferList)
|
|
@@ -506,7 +507,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
{
|
|
|
if (!IsWaferSlotLocationValid(module, slot))
|
|
|
{
|
|
|
- //LOG.Write(string.Format("Failed UpdateWaferTransFlag, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("Failed UpdateWaferTransFlag, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
return;
|
|
|
}
|
|
|
lock (_lockerWaferList)
|
|
@@ -521,7 +522,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
{
|
|
|
if (!IsWaferSlotLocationValid(module, slot))
|
|
|
{
|
|
|
- //LOG.Write(string.Format("Failed UpdateWaferNotch, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("Failed UpdateWaferNotch, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
return;
|
|
|
}
|
|
|
lock (_lockerWaferList)
|
|
@@ -535,7 +536,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
{
|
|
|
if (!IsWaferSlotLocationValid(module, slot))
|
|
|
{
|
|
|
- //LOG.Write(string.Format("Failed UpdateWaferProcessStatus, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("Failed UpdateWaferProcessStatus, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -544,59 +545,28 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
_locationWafers[module][slot].ProcessState = status;
|
|
|
}
|
|
|
Serialize();
|
|
|
- }
|
|
|
-#pragma warning disable CS0618
|
|
|
- public void UpdateWaferProcessStatus(ModuleName module, int slot, ProcessStatus status)
|
|
|
+ }
|
|
|
+
|
|
|
+ public void UpdateWaferChuckStatus(ModuleName module, int slot, EnumWaferChuckStatus status)
|
|
|
{
|
|
|
- switch (status)
|
|
|
+ if (!IsWaferSlotLocationValid(module, slot))
|
|
|
{
|
|
|
- case ProcessStatus.Busy:
|
|
|
- UpdateWaferProcessStatus(module, slot, EnumWaferProcessStatus.InProcess);
|
|
|
- break;
|
|
|
- case ProcessStatus.Completed:
|
|
|
- UpdateWaferProcessStatus(module, slot, EnumWaferProcessStatus.Completed);
|
|
|
- break;
|
|
|
- case ProcessStatus.Failed:
|
|
|
- UpdateWaferProcessStatus(module, slot, EnumWaferProcessStatus.Failed);
|
|
|
- break;
|
|
|
- case ProcessStatus.Idle:
|
|
|
- UpdateWaferProcessStatus(module, slot, EnumWaferProcessStatus.Idle);
|
|
|
- break;
|
|
|
- case ProcessStatus.Wait:
|
|
|
- UpdateWaferProcessStatus(module, slot, EnumWaferProcessStatus.InProcess);
|
|
|
- break;
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("Failed UpdateWaferChuckStatus, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
+ return;
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- public void UpdateWaferProcessStatus(string waferID, ProcessStatus status)
|
|
|
- {
|
|
|
- switch (status)
|
|
|
+ lock (_lockerWaferList)
|
|
|
{
|
|
|
- case ProcessStatus.Busy:
|
|
|
- UpdateWaferProcessStatus(waferID, EnumWaferProcessStatus.InProcess);
|
|
|
- break;
|
|
|
- case ProcessStatus.Completed:
|
|
|
- UpdateWaferProcessStatus(waferID, EnumWaferProcessStatus.Completed);
|
|
|
- break;
|
|
|
- case ProcessStatus.Failed:
|
|
|
- UpdateWaferProcessStatus(waferID, EnumWaferProcessStatus.Failed);
|
|
|
- break;
|
|
|
- case ProcessStatus.Idle:
|
|
|
- UpdateWaferProcessStatus(waferID, EnumWaferProcessStatus.Idle);
|
|
|
- break;
|
|
|
- case ProcessStatus.Wait:
|
|
|
- UpdateWaferProcessStatus(waferID, EnumWaferProcessStatus.InProcess);
|
|
|
- break;
|
|
|
+ _locationWafers[module][slot].ChuckState = status;
|
|
|
}
|
|
|
+ Serialize();
|
|
|
}
|
|
|
|
|
|
-#pragma warning restore CS0618
|
|
|
-
|
|
|
public void UpdateWaferId(ModuleName module, int slot, string waferId)
|
|
|
{
|
|
|
if (!IsWaferSlotLocationValid(module, slot))
|
|
|
{
|
|
|
- //LOG.Write(string.Format("Failed UpdateWaferId, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("Failed UpdateWaferId, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -611,7 +581,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
{
|
|
|
if (!IsWaferSlotLocationValid(module, slot))
|
|
|
{
|
|
|
- //LOG.Write(string.Format("Failed UpdateWaferLotId, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("Failed UpdateWaferLotId, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -655,7 +625,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
{
|
|
|
if (!IsWaferSlotLocationValid(module, slot))
|
|
|
{
|
|
|
- //LOG.Write(string.Format("Failed CopyWaferInfo, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("Failed CopyWaferInfo, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
return null;
|
|
|
}
|
|
|
|
|
@@ -674,7 +644,7 @@ namespace MECF.Framework.Common.SubstrateTrackings
|
|
|
{
|
|
|
if (!IsWaferSlotLocationValid(module, slot))
|
|
|
{
|
|
|
- //LOG.Write(string.Format("Failed UpdateWaferSize, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
+ LOG.Write(eEvent.ERR_WAFER_MANAGER_FAILED, ModuleName.System, string.Format("Failed UpdateWaferSize, invalid parameter, {0},{1}", module, slot + 1));
|
|
|
return false;
|
|
|
}
|
|
|
|