Пример #1
0
 public void AcceptMagazine(MagazineSelection selection)
 {
     WriteMemory<MagazineSelectionToStreamConverter, MagazineSelection>(haMagazineSelection, selection);
 }
Пример #2
0
 public new void AcceptMagazine(MagazineSelection selection)
 {
     _logger.Debug(_moduleName, string.Format("{0}.AcceptMagazine({1})", typeof(StockerPlc).Name, selection));
     base.AcceptMagazine(selection);
 }
 private void CompareObjects(StockerSimulatorPlcCommunication simulator, bool barcodeError, CarrierPlateRouting routing, 
     bool isMagazineChanged, bool isMagazineBarcodeReadedOk, StockerInventory inventory, MagazineSelection selection)
 {
     Assert.AreEqual<bool>(barcodeError, simulator.BarcodeError);
     Assert.AreEqual<CarrierPlateRouting>(routing, simulator.CarrierPlateRouting);
     Assert.AreEqual<bool>(isMagazineChanged, simulator.IsMagazineChange);
     Assert.AreEqual<bool>(isMagazineBarcodeReadedOk, simulator.IsInputMagazineBarcodeOK);
     Assert.AreEqual<StockerInventory>(inventory, simulator.StockerInventory);
     Assert.AreEqual<MagazineSelection>(selection, simulator.Selection);
 }
Пример #4
0
 public static string GetAcceptMagazineCommand(MagazineSelection selection)
 {
     return (new PlcMemoryWriteCommand(PlcHelper.GetAddressSpace(), 0x134, new MagazineSelectionToStreamConverter().TryConvert(selection))).CommandToString();
 }