Ejemplo n.º 1
0
        public TrackCar(MultiShuttleInfo shuttleinfo, int level, MultiShuttle parent) : base(Color.Gray, shuttleinfo.raillength, 0.05f)
        {
            multishuttle         = parent;
            ListSolutionExplorer = true;
            this.level           = level;
            this.shuttleinfo     = shuttleinfo;//TODO shuttleinfo is of type multishuttleinfo -- this is confusing

            LoadInfo shuttlecarinfo = new LoadInfo();

            shuttlecarinfo.length = carlength;
            shuttlecarinfo.height = carheight;
            shuttlecarinfo.width  = carwidth;
            shuttlecarinfo.color  = Color.Yellow;
            shuttlecar            = new ShuttleCar(shuttlecarinfo);

            Load.Items.Add(shuttlecar);
            route.Add(shuttlecar);

            shuttlecar.Deletable     = false;
            shuttlecar.UserDeletable = false;
            shuttlecar.Embedded      = true;
            route.Motor.Speed        = shuttleinfo.shuttlecarSpeed;
            shuttlecar.Stop();
            route.Motor.Stop();

            Destination = route.InsertActionPoint(0);
            // Destination.Visible          = true;
            Destination.OnEnter += destination_Enter;

            shuttlecar.OnPositionChanged += Car_PositionChanged;

            //timer             = new Core.Timer(shuttleinfo.ShuttlePositioningTime);
            //nextJobDelayTimer = new Core.Timer(0.1f);
        }
Ejemplo n.º 2
0
        internal static Assembly CreateDematicMultiShuttle(bool driveThrough, string subtitle)
        {
            if (!driveThrough)
            {
                MultiShuttleInfo info = new MultiShuttleInfo();
                info.name    = Experior.Core.Assemblies.Assembly.GetValidName("Multi-Shuttle ");
                info.AisleNo = Experior.Catalog.Dematic.Storage.MultiShuttle.Assemblies.MultiShuttle.Aisles.Count + 1;

                //if (subtitle == "Mixed")
                //{
                //    info.ElevatorFR = true;
                //    info.ElevatorFL = true;
                //    info.ElevatorFLtype = Experior.Catalog.Dematic.Storage.Assemblies.MultiShuttleDirections.Infeed;
                //    info.ElevatorFRtype = Experior.Catalog.Dematic.Storage.Assemblies.MultiShuttleDirections.Infeed;
                //    info.ElevatorBR = false;
                //    info.ElevatorBL = false;
                //    info.MixedInfeedOutfeed = true;

                //    info.LevelHeightDropstations.Add(new LevelHeight() { Level = "01", Height = 1.0f });
                //    info.LevelHeightPickstations.Add(new LevelHeight() { Level = "01", Height = 0.3f });
                //}
                //else
                {
                    info.dropStationConfig = "1:01;2:02";
                    info.pickStationConfig = "3:01;4:02";
                }

                return(new Experior.Catalog.Dematic.Storage.MultiShuttle.Assemblies.MultiShuttle(info));
            }
            else
            {
                MultiShuttleInfo info = new MultiShuttleInfo();
                info.name         = Experior.Core.Assemblies.Assembly.GetValidName("Multi-Shuttle ");
                info.AisleNo      = Experior.Catalog.Dematic.Storage.MultiShuttle.Assemblies.MultiShuttle.Aisles.Count + 1; //TODO not sure how this works with drive through
                info.DriveThrough = true;
                //MS Drive Through uses the two "Front" elevators. Back elevators are removed.
                info.ElevatorFR = true;
                info.ElevatorFL = true;
                info.ElevatorBR = false;
                info.ElevatorBL = false;

                info.dropStationConfig = "0:01;1:02";
                info.pickStationConfig = "2:01;3:02";
                info.rackHeight        = 4;

                //  info.OutfeedNamingConvention = Experior.Catalog.Dematic.Storage.Assemblies.CreateDematicMultiShuttle.OutFeedNamingConventions.NEW_POS1_POS2_001_002;
                //info.FrontLeftElevatorGroupName = "A";
                //info.FrontRightElevatorGroupName = "A";

                //info.FrontLeftInfeedRackGroupName = "B";
                //info.FrontRightInfeedRackGroupName = "A";

                //info.FrontLeftOutfeedRackGroupName = "A";
                //info.FrontRightOutfeedRackGroupName = "B";


                return(new Experior.Catalog.Dematic.Storage.MultiShuttle.Assemblies.MultiShuttle(info));
            }
        }