Beispiel #1
0
        /// <summary>
        /// A single load has been dropped off by the elevator
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="load"></param>
        public void sensor_OnEnter2(DematicSensor sender, Load load)
        {
            if (TransportSection.Route.Loads.Count == 2)
            {
                string id = TransportSection.Route.Loads.ToList()[0].Identification;
                if (id != load.Identification)
                {
                    ((Case_Load)load).UserData = id + "," + load.Identification;
                }
                else
                {
                    ((Case_Load)load).UserData = load.Identification + "," + id;
                }

                ParentMultishuttle.ArrivedAtDropStationConvPosA(new PickDropStationArrivalEventArgs(Location2.LocName, (Case_Load)load, Elevator, 2));
            }
            else
            {
                ParentMultishuttle.ArrivedAtDropStationConvPosA(new PickDropStationArrivalEventArgs(Location1.LocName, (Case_Load)load, Elevator, 1));
            }


            //ParentMultishuttle.ArrivedAtDropStationConvPosA(new PickDropStationArrivalEventArgs(Location2.LocName, (Case_Load)load, Elevator, 1));

            Case_Load caseLoad = load as Case_Load;

            if (caseLoad != null)
            {
                //caseLoad.Case_Data.CurrentPosition = "D" + ParentMultishuttle.AisleNo + DropPositionGroupSide + ParentMultishuttle.POS2OUTFEED + Level;
                //if (Elevator.CurrentJobData.JobMode == MultishuttleElevatorJobData.JobModes.Unload1)
                //{
                //    ParentMultishuttle.Control.ToteArrivedAtConvDropStation(this, Elevator, caseLoad, ParentMultishuttle);
                //}
                //else if (Elevator.CurrentJobData.JobMode == MultishuttleElevatorJobData.JobModes.Unload2 && Location1.Active)
                //{
                //    ParentMultishuttle.Control.ToteArrivedAtConvDropStation(this, Elevator, caseLoad, ParentMultishuttle);
                //    Location1.Release();
                //}
            }
        }
Beispiel #2
0
        /// <summary>
        /// A single load has been dropped off by the elevator
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="load"></param>
        public void sensor_OnEnter2(DematicSensor sender, Load load)
        {
            SetDropStationOccupiedStatus();

            if (TransportSection.Route.Loads.Count == 2)
            {
                string id = TransportSection.Route.Loads.ToList()[0].Identification;
                if (id != load.Identification)
                {
                    ((Case_Load)load).UserData = id + "," + load.Identification;
                }
                else
                {
                    ((Case_Load)load).UserData = load.Identification + "," + id;
                }

                ParentMultishuttle.ArrivedAtDropStationConvPosA(new PickDropStationArrivalEventArgs(Location2.LocName, (Case_Load)load, Elevator, 2));
            }
            else
            {
                ParentMultishuttle.ArrivedAtDropStationConvPosA(new PickDropStationArrivalEventArgs(Location1.LocName, (Case_Load)load, Elevator, 1));
            }
        }