|
@@ -98,7 +98,7 @@ namespace Venus_RT.Modules.Schedulers
|
|
|
|
|
|
for (int i = 0; i < swapIndex; i++)
|
|
for (int i = 0; i < swapIndex; i++)
|
|
{
|
|
{
|
|
- if(!ModuleHelper.IsTM(swapItems[i].SourceModule))
|
|
|
|
|
|
+ if(!ModuleHelper.IsTMRobot(swapItems[i].SourceModule))
|
|
{
|
|
{
|
|
SchedulerItem item = new SchedulerItem();
|
|
SchedulerItem item = new SchedulerItem();
|
|
item.MoveType = ModuleHelper.IsLoadLock(swapItems[i].SourceModule) ? TMEntity.MSG.Pick : TMEntity.MSG.PMPick;
|
|
item.MoveType = ModuleHelper.IsLoadLock(swapItems[i].SourceModule) ? TMEntity.MSG.Pick : TMEntity.MSG.PMPick;
|
|
@@ -119,19 +119,19 @@ namespace Venus_RT.Modules.Schedulers
|
|
|
|
|
|
for (int j = swapIndex; j < swapItems.Length; j++)
|
|
for (int j = swapIndex; j < swapItems.Length; j++)
|
|
{
|
|
{
|
|
- if (!ModuleHelper.IsTM(swapItems[j].DestinationModule))
|
|
|
|
|
|
+ if (!ModuleHelper.IsTMRobot(swapItems[j].DestinationModule))
|
|
{
|
|
{
|
|
SchedulerItem item = new SchedulerItem();
|
|
SchedulerItem item = new SchedulerItem();
|
|
item.MoveType = ModuleHelper.IsLoadLock(swapItems[j].DestinationModule) ? TMEntity.MSG.Place : TMEntity.MSG.PMPlace;
|
|
item.MoveType = ModuleHelper.IsLoadLock(swapItems[j].DestinationModule) ? TMEntity.MSG.Place : TMEntity.MSG.PMPlace;
|
|
item.target = swapItems[j].DestinationModule;
|
|
item.target = swapItems[j].DestinationModule;
|
|
item.moveList = new Queue<MoveItem>();
|
|
item.moveList = new Queue<MoveItem>();
|
|
- item.moveList.Enqueue(new MoveItem(ModuleName.TM, j - swapIndex, swapItems[j].DestinationModule, swapItems[j].DestinationSlot, (Hand)(j - swapIndex)));
|
|
|
|
|
|
+ item.moveList.Enqueue(new MoveItem(ModuleName.TMRobot, j - swapIndex, swapItems[j].DestinationModule, swapItems[j].DestinationSlot, (Hand)(j - swapIndex)));
|
|
_schedulerList.Enqueue(item);
|
|
_schedulerList.Enqueue(item);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if(WaferManager.Instance.CheckNoWafer(ModuleName.TM, 0) && WaferManager.Instance.CheckNoWafer(ModuleName.TM, 1))
|
|
|
|
|
|
+ if(WaferManager.Instance.CheckNoWafer(ModuleName.TMRobot, 0) && WaferManager.Instance.CheckNoWafer(ModuleName.TMRobot, 1))
|
|
{
|
|
{
|
|
if (items.Length == 4)
|
|
if (items.Length == 4)
|
|
{
|
|
{
|
|
@@ -189,23 +189,23 @@ namespace Venus_RT.Modules.Schedulers
|
|
{
|
|
{
|
|
foreach(var moveItem in items)
|
|
foreach(var moveItem in items)
|
|
{
|
|
{
|
|
- if(!ModuleHelper.IsTM(moveItem.SourceModule))
|
|
|
|
|
|
+ if(!ModuleHelper.IsTMRobot(moveItem.SourceModule))
|
|
{
|
|
{
|
|
SchedulerItem item = new SchedulerItem();
|
|
SchedulerItem item = new SchedulerItem();
|
|
item.MoveType = ModuleHelper.IsLoadLock(moveItem.SourceModule) ? TMEntity.MSG.Pick : TMEntity.MSG.PMPick;
|
|
item.MoveType = ModuleHelper.IsLoadLock(moveItem.SourceModule) ? TMEntity.MSG.Pick : TMEntity.MSG.PMPick;
|
|
item.target = moveItem.SourceModule;
|
|
item.target = moveItem.SourceModule;
|
|
item.moveList = new Queue<MoveItem>();
|
|
item.moveList = new Queue<MoveItem>();
|
|
- item.moveList.Enqueue(new MoveItem(moveItem.SourceModule, moveItem.SourceSlot, ModuleName.TM, (int)freeHand, freeHand));
|
|
|
|
|
|
+ item.moveList.Enqueue(new MoveItem(moveItem.SourceModule, moveItem.SourceSlot, ModuleName.TMRobot, (int)freeHand, freeHand));
|
|
_schedulerList.Enqueue(item);
|
|
_schedulerList.Enqueue(item);
|
|
}
|
|
}
|
|
|
|
|
|
- if (!ModuleHelper.IsTM(moveItem.DestinationModule))
|
|
|
|
|
|
+ if (!ModuleHelper.IsTMRobot(moveItem.DestinationModule))
|
|
{
|
|
{
|
|
SchedulerItem item = new SchedulerItem();
|
|
SchedulerItem item = new SchedulerItem();
|
|
item.MoveType = ModuleHelper.IsLoadLock(moveItem.DestinationModule) ? TMEntity.MSG.Place : TMEntity.MSG.PMPlace;
|
|
item.MoveType = ModuleHelper.IsLoadLock(moveItem.DestinationModule) ? TMEntity.MSG.Place : TMEntity.MSG.PMPlace;
|
|
item.target = moveItem.DestinationModule;
|
|
item.target = moveItem.DestinationModule;
|
|
item.moveList = new Queue<MoveItem>();
|
|
item.moveList = new Queue<MoveItem>();
|
|
- item.moveList.Enqueue(new MoveItem(ModuleName.TM, (int)freeHand, moveItem.DestinationModule, moveItem.DestinationSlot, freeHand));
|
|
|
|
|
|
+ item.moveList.Enqueue(new MoveItem(ModuleName.TMRobot, (int)freeHand, moveItem.DestinationModule, moveItem.DestinationSlot, freeHand));
|
|
_schedulerList.Enqueue(item);
|
|
_schedulerList.Enqueue(item);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -216,10 +216,10 @@ namespace Venus_RT.Modules.Schedulers
|
|
|
|
|
|
Hand SelectFreeHand()
|
|
Hand SelectFreeHand()
|
|
{
|
|
{
|
|
- if (WaferManager.Instance.CheckNoWafer(ModuleName.TM, 0))
|
|
|
|
|
|
+ if (WaferManager.Instance.CheckNoWafer(ModuleName.TMRobot, 0))
|
|
return Hand.Blade1;
|
|
return Hand.Blade1;
|
|
|
|
|
|
- if (WaferManager.Instance.CheckNoWafer(ModuleName.TM, 1))
|
|
|
|
|
|
+ if (WaferManager.Instance.CheckNoWafer(ModuleName.TMRobot, 1))
|
|
return Hand.Blade2;
|
|
return Hand.Blade2;
|
|
|
|
|
|
return Hand.None;
|
|
return Hand.None;
|
|
@@ -237,7 +237,7 @@ namespace Venus_RT.Modules.Schedulers
|
|
foreach(var item in _currentScheduler.moveList)
|
|
foreach(var item in _currentScheduler.moveList)
|
|
{
|
|
{
|
|
moveItems.Enqueue(item);
|
|
moveItems.Enqueue(item);
|
|
- LOG.Write(eEvent.INFO_TM, ModuleName.TM, $"TM Moving Items: {item.SourceModule} Slot {item.SourceSlot + 1} => {item.DestinationModule} Slot {item.DestinationSlot + 1}");
|
|
|
|
|
|
+ LOG.Write(eEvent.INFO_TM, ModuleName.TMRobot, $"TM Moving Items: {item.SourceModule} Slot {item.SourceSlot + 1} => {item.DestinationModule} Slot {item.DestinationSlot + 1}");
|
|
}
|
|
}
|
|
|
|
|
|
if(_entity.CheckToPostMessage((int)_currentScheduler.MoveType, moveItems))
|
|
if(_entity.CheckToPostMessage((int)_currentScheduler.MoveType, moveItems))
|