| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 | 
							- using System;
 
- using System.Collections.Generic;
 
- using System.Linq;
 
- using System.Text;
 
- using Aitex.Sorter.Common;
 
- using MECF.Framework.Common.Equipment;
 
- namespace MECF.Framework.RT.EquipmentLibrary.HardwareUnits.Robot.MAG7
 
- {
 
-     public class ProtocolTag
 
-     {
 
-         public const string tag_end = "\r";
 
-         public const string cmd_token = " ";
 
-         public const string resp_tag_error = "_ERR";
 
-         public const string resp_tag_excute = "_RDY";
 
-         public const string resp_tag_event = "_EVENT";
 
-         public const string resp_evt_error = "100";
 
-     }
 
-     public class Mag7RobotConvertor
 
-     {
 
-         public static string MapModuleSlot(ModuleName chamber, int slot)
 
-         {
 
-             string st = "";
 
-             switch (chamber)
 
-             {
 
-                 case ModuleName.LL1:
 
-                 case ModuleName.LLA:
 
-                     st = "2 SLOT 1";
 
-                     break;
 
-                 case ModuleName.LL2:
 
-                 case ModuleName.LLB:
 
-                     st = "1 SLOT 1";
 
-                     break;
 
-  
 
-                 case ModuleName.PM1:
 
-                     st = slot==0 ? "3 SLOT 1" : "3 SLOT 2";
 
-                     break;
 
-                 case ModuleName.PM2:
 
-                     st = "4 SLOT 1";
 
-                     break;
 
-                 case ModuleName.PM3:
 
-                     st = "5 SLOT 1";
 
-                     break;
 
-                 case ModuleName.PM4:
 
-                     st = "6 SLOT 1";
 
-                     break;
 
-                 case ModuleName.PM5:
 
-                     st = "7 SLOT 1";
 
-                     break;
 
-                 case ModuleName.PM6:
 
-                     st = "8 SLOT 1";
 
-                     break;
 
-             }
 
-             return st;
 
-         }
 
-         public static string MapModule(ModuleName chamber )
 
-         {
 
-             string st = "";
 
-             switch (chamber)
 
-             {
 
-                 case ModuleName.LL1:
 
-                 case ModuleName.LLA:
 
-                     st = "2";
 
-                     break;
 
-                 case ModuleName.LL2:
 
-                 case ModuleName.LLB:
 
-                     st = "1";
 
-                     break;
 
-  
 
-                 case ModuleName.PM1:
 
-                     st = "3";
 
-                     break;
 
-                 case ModuleName.PM2:
 
-                     st = "4";
 
-                     break;
 
-                 case ModuleName.PM3:
 
-                     st = "5";
 
-                     break;
 
-                 case ModuleName.PM4:
 
-                     st = "6";
 
-                     break;
 
-                 case ModuleName.PM5:
 
-                     st = "7";
 
-                     break;
 
-                 case ModuleName.PM6:
 
-                     st = "8";
 
-                     break;
 
-             }
 
-             return st;
 
-         }
 
-         public static string hand2string(Hand hand)
 
-         {
 
-             string st = "";
 
-             switch (hand)
 
-             {
 
-                 case Hand.Blade1:
 
-                     st = "A";
 
-                     break;
 
-                 case Hand.Blade2:
 
-                     st = "B";
 
-                     break;
 
-                 case Hand.Both:
 
-                     st = "AB";
 
-                     break;
 
-             }
 
-             return st;
 
-         }
 
-     }
 
- }
 
 
  |