示例#1
0
 public void SetTrgInfo(WaferSize wafersize)
 {
     if (wafersize == WaferSize.Size2)
     {
         PsYStart  = size2.PsYStart;
         BuffH     = size2.BuffH;
         LineNum   = size2.LineNum;
         ScanSpeed = size2.ScanSpeed;
     }
     else if (wafersize == WaferSize.Size4)
     {
         PsYStart  = size4.PsYStart;
         BuffH     = size4.BuffH;
         LineNum   = size4.LineNum;
         ScanSpeed = size4.ScanSpeed;
     }
 }
示例#2
0
 private string GetWriteCommandChangeCassette(DemountCassetteStation from, WaferSize waferSize, DemountCassetteHopper destination)
 {
     return (new PlcMemoryWriteCommand(PlcHelper.GetAddressSpace(), 0x130, new ChangeCassetteToStreamConverter().TryConvert(new ChangeCassette { Source = from, WaferSize = waferSize, Destination = destination }))).CommandToString();
 }
示例#3
0
 private string GetWriteCommandStartDemountingString(WaferSize waferSize, int waferCount, DemountCassetteStation station)
 {
     return (new PlcMemoryWriteCommand(PlcHelper.GetAddressSpace(), 0x124, new StartDemountingToStreamConverter().TryConvert(new StartDemounting { Size = waferSize, Count = waferCount, Station = station }))).CommandToString();
 }
示例#4
0
 public void LoadCassette(WaferSize waferSize, DemountCassetteHopper destination)
 {
     WriteMemory<LoadCassetteToStreamConverter, LoadCassette>(haLoadCassette, new LoadCassette { WaferSize = waferSize, Destination = destination });
 }
示例#5
0
 public void StartDemounting(WaferSize waferSize, int waferCount, DemountCassetteStation station)
 {
     WriteMemory<StartDemountingToStreamConverter, StartDemounting>(haStartDemounting, new StartDemounting { Size = waferSize, Count = waferCount, Station = station });
 }
示例#6
0
 public new void StartDemounting(WaferSize waferSize, int waferCount, DemountCassetteStation station)
 {
     _logger.Debug(_moduleName, string.Format("{0}.StartDemounting({1}, {2}, {3})", typeof(DemountPlc).Name, waferSize, waferCount, station));
     base.StartDemounting(waferSize, waferCount, station);
 }
示例#7
0
 public void ChangeCassette(DemountCassetteStation from, WaferSize waferSize, DemountCassetteHopper destination)
 {
     WriteMemory<ChangeCassetteToStreamConverter, ChangeCassette>(haRemoveCassette, new ChangeCassette { Source = from, WaferSize = waferSize, Destination = destination });
 }
示例#8
0
 public new void LoadCassette(WaferSize waferSize, DemountCassetteHopper destination)
 {
     _logger.Debug(_moduleName, string.Format("{0}.LoadCassette({1}, {2})", typeof(DemountPlc).Name, waferSize, destination));
     base.LoadCassette(waferSize, destination);
 }
示例#9
0
 public new void ChangeCassette(DemountCassetteStation from, WaferSize waferSize, DemountCassetteHopper destination)
 {
     _logger.Debug(_moduleName, string.Format("{0}.ChangeCassette({1}, {2}, {3})", typeof(DemountPlc).Name, from, waferSize, destination));
     base.ChangeCassette(from, waferSize, destination);
 }
示例#10
0
        public static ILotData GetLotData(string lotId, IList<ICassette> cassettes, int nGWaferCount, WaferSize wafesize,
                                          OfType ofType, PolishDivision isRepolishing, int assembly1CarrierPlateCount, int assembly1WaferCount,
                                          int assembly2CarrierPlateCount, int assembly2WaferCount, IList<IWafer> wafers)
        {
            var lotData = new Mock<ILotData>();

            lotData.Setup(x => x.LotId).Returns(lotId);
            lotData.Setup(x => x.Cassettes).Returns(cassettes);
            lotData.Setup(x => x.NGWaferCount).Returns(nGWaferCount);
            lotData.Setup(x => x.WaferSize).Returns(wafesize);
            lotData.Setup(x => x.OfType).Returns(ofType);
            lotData.Setup(x => x.PolishDivision).Returns(isRepolishing);
            lotData.Setup(x => x.Assembly1.CarrierPlateCount).Returns(assembly1CarrierPlateCount);
            lotData.Setup(x => x.Assembly1.WaferCount).Returns(assembly1WaferCount);
            lotData.Setup(x => x.Assembly2.CarrierPlateCount).Returns(assembly2CarrierPlateCount);
            lotData.Setup(x => x.Assembly2.WaferCount).Returns(assembly2WaferCount);
            lotData.Setup(x => x.Wafers).Returns(wafers);

            return lotData.Object;
        }
 protected override void InitializeMemory()
 {
     CarrierPlateRouting = CarrierPlateRouting.Cleared;
     WaferSize = WaferSize.AnySize;
     StockerInventory = StockerInventory.Cleared;
     Selection = MagazineSelection.Cleared;
 }
 private void CompareObjects(DemountSimulatorPlcCommunication simulator, bool barcodeError, bool isCarrierPlateBarcodeReadedOk,
     WaferSize carrierPlateWaferSize, int waferCount, DemountCassetteStation station, CarrierPlateRoutingType routingType, DemountCassetteStation from,
     WaferSize cassetteWaferSize, DemountCassetteHopper destination, bool isCassetteBarcodeReadedOk, bool spatulaInspectionRequired)
 {
     Assert.AreEqual<bool>(barcodeError, simulator.IsInformationSystemError);
     Assert.AreEqual<bool>(isCarrierPlateBarcodeReadedOk, simulator.IsCarrierPlateBarcodeReadedOk);
     Assert.AreEqual<WaferSize>(carrierPlateWaferSize, simulator.CarrierPlateWaferSize);
     Assert.AreEqual<int>(waferCount, simulator.CarrierPlateWaferCount);
     Assert.AreEqual<DemountCassetteStation>(station, simulator.DemountCassetteStation);
     Assert.AreEqual<CarrierPlateRoutingType>(routingType, simulator.CarrierPlateRoutingType);
     Assert.AreEqual<DemountCassetteStation>(from, simulator.RemoveCassetteFromDemountStation);
     Assert.AreEqual<WaferSize>(cassetteWaferSize, simulator.CassetteWaferSize);
     Assert.AreEqual<DemountCassetteHopper>(destination, simulator.DestinationStation);
     Assert.AreEqual<bool>(isCassetteBarcodeReadedOk, simulator.IsCassetteBarcodeReadedOk);
     Assert.AreEqual<bool>(spatulaInspectionRequired, simulator.ShouldInspectSpatula);
 }