public void AcceptMagazine(MagazineSelection selection) { WriteMemory<MagazineSelectionToStreamConverter, MagazineSelection>(haMagazineSelection, selection); }
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); }
public static string GetAcceptMagazineCommand(MagazineSelection selection) { return (new PlcMemoryWriteCommand(PlcHelper.GetAddressSpace(), 0x134, new MagazineSelectionToStreamConverter().TryConvert(selection))).CommandToString(); }