public MHEControl_ManualPicking(ManualPickingATCInfo info, StraightAccumulationConveyor conveyor) { Info = info; // set this to save properties manualPickDatcomInfo = info; theConveyor = conveyor; casePLC = conveyor.Controller as MHEController_Case; theConveyor.OnArrivedAtPickingPosition += theConveyor_OnArrivedAtPickingPosition; }
public MHEControl_CommPoint(CommPointATCInfo info, CommunicationPoint cPoint) { commPoint = cPoint; commPointATCInfo = info; Info = info; // set this to save properties commPoint.commPointArrival = ap_Enter; //CommunicationPoint will use this delegate for ap_enter. casePLC = CommPoint.Controller as MHEController_Case; }
public MHEControl_MiniloadPickStation(MiniloadPickStationATCInfo info, MiniloadPickStation pickStation) { miniloadPickStation = pickStation; miniloadPickStationInfo = info; Info = info; // set this to save properties casePLC = miniloadPickStation.Controller as MHEController_Case; miniloadPickStation.OnPickStationStatusUpdate += miniloadPickStation_OnPickStationStatusUpdate; }
//private List<string> PriorityRoutes = null; //Timer LeftBlockedTimer = new Timer(1); //Timer RightBlockedTimer = new Timer(1); public MHEControl_Transfer(TransferATCInfo info, Transfer transfer) { Info = info; // set this to save properties transferDatcomInfo = info; theTransfer = transfer; casePLC = transfer.Controller as MHEController_Case; theTransfer.OnDivertCompleteController += transfer_OnDivertCompleteController; theTransfer.OnArrivedAtTransferController += transfer_OnArrivedAtTransferController; theTransfer.OnTransferStatusChangedController += theTransfer_OnTransferStatusChangedController; LHSRoutingCode = info.lhsRoutingCode; RHSRoutingCode = info.rhsRoutingCode; //LeftBlockedTimer.OnElapsed += LeftBlockedTimer_OnElapsed; //RightBlockedTimer.OnElapsed += RightBlockedTimer_OnElapsed; }
public MHEControl_BeltSorterDivert(BeltSorterDivertATCInfo info, BeltSorterDivert sorterDivert) { divertConveyor = sorterDivert; divertDatcomInfo = info; Info = info; // set this to save properties //Subscribe to the diverter events divertConveyor.OnDivertPointArrivedControl += divertConveyor_OnDivertPointArrivedControl; divertConveyor.OnDivertPointDivertedControl += divertConveyor_OnDivertPointDivertedControl; casePLC = divertConveyor.Controller as MHEController_Case; //Anything with setup code in the "set" of a property except setting the value will need to be called //explicitly so that the "set" code will execute when loading from a saved configuration DivertRoutingCode = info.divertRoutingCode; //StraightRoutingCode = info.straightRoutingCode; }
public MHEControl_MergeDivert(MergeDivertATCInfo info, MergeDivertConveyor mergeDivert) { mergeDivertConveyor = mergeDivert; mergeDivertDatcomInfo = info; Info = info; // set this to save properties mergeDivertConveyor.divertArrival = divertArrival; mergeDivertConveyor.loadDeleted = loadDeleted; mergeDivertConveyor.releasedStraight = releasedStraight; mergeDivertConveyor.releasedLeft = releasedLeft; mergeDivertConveyor.releasedRight = releasedRight; casePLC = mergeDivertConveyor.Controller as MHEController_Case; //Anything with setup code in the "set" of a property except setting the value will need to be called //explicitly so that the "set" code will execute when loading from a saved configuration LeftRoutingCode = info.leftRoutingCode; RightRoutingCode = info.rightRoutingCode; StraightRoutingCode = info.straightRoutingCode; }