private void PalletStraight_OnLoadArrived(object sender, LoadArrivedEventArgs e) { IATCLoadType palletLoad = e._Load as IATCLoadType; if (palletLoad == null) { return; } palletLoad.Location = palletStraight.Name; //Update the palletLoad location switch (PalletStraightType) { case PalletStraightATCInfo.PalletStraightATCTypes.None: break; case PalletStraightATCInfo.PalletStraightATCTypes.LocationArrived: LocationArrived(palletStraight, palletLoad); break; case PalletStraightATCInfo.PalletStraightATCTypes.LocationLeft: LocationLeft(palletStraight, palletLoad); break; case PalletStraightATCInfo.PalletStraightATCTypes.TransportRequest: TransportRequest(palletStraight, palletLoad); break; case PalletStraightATCInfo.PalletStraightATCTypes.TransportFinished: TransportFinished(palletStraight, palletLoad); break; case PalletStraightATCInfo.PalletStraightATCTypes.TransportRequestOrFinished: TransportRequestOrFinished(palletStraight, palletLoad); break; default: break; } palletStraight.ReleaseLoad(e._Load); }
private void PalletStraight_OnLoadLeft(object sender, LoadArrivedEventArgs e) { if (LeftTelegram) { //send a left telegram palletPLC.SendLocationLeftTelegram((IATCLoadType)e._Load); } }
public virtual void LoadLeft(LoadArrivedEventArgs e) { EventHandler <LoadArrivedEventArgs> handler = OnLoadLeft; if (handler != null) { handler(this, e); } }
public virtual void Photocell_OnLoadArrived(object sender, LoadArrivedEventArgs e) { }
private void Conveyor_OnLoadArrived(object sender, LoadArrivedEventArgs e) { PalletArrivedAtPickStation(sender as IPalletRouteStatus, e._Load); }