コード例 #1
0
        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);
        }
コード例 #2
0
 private void PalletStraight_OnLoadLeft(object sender, LoadArrivedEventArgs e)
 {
     if (LeftTelegram)
     {
         //send a left telegram
         palletPLC.SendLocationLeftTelegram((IATCLoadType)e._Load);
     }
 }
コード例 #3
0
        public virtual void LoadLeft(LoadArrivedEventArgs e)
        {
            EventHandler <LoadArrivedEventArgs> handler = OnLoadLeft;

            if (handler != null)
            {
                handler(this, e);
            }
        }
コード例 #4
0
 public virtual void Photocell_OnLoadArrived(object sender, LoadArrivedEventArgs e)
 {
 }
コード例 #5
0
 private void Conveyor_OnLoadArrived(object sender, LoadArrivedEventArgs e)
 {
     PalletArrivedAtPickStation(sender as IPalletRouteStatus, e._Load);
 }