Esempio n. 1
0
        //void leaving_OnEnter(ActionPoint sender, Load load)
        //{
        //    OnConveyorExitLoad(new ConveyorExitLoadEventArgs(load));
        //}

        #region Doubleclick feeding

        public override void DoubleClick()
        {
            if (InvokeRequired)
            {
                Core.Environment.Invoke(() => DoubleClick());
                return;
            }

            switch (LoadType)
            {
            case CaseLoadType.Tray:
                OnConveyorEnterLoad(new ConveyorEnterLoadEventArgs(FeedLoad.FeedTrayLoad(TransportSection, 0, Case_Load.GetCaseControllerCaseData(), TrayStatus.Empty)));
                break;

            case CaseLoadType.TrayLoaded:
                OnConveyorEnterLoad(new ConveyorEnterLoadEventArgs(FeedLoad.FeedTrayLoad(TransportSection, 0, Case_Load.GetCaseControllerCaseData(), TrayStatus.Loaded)));
                break;

            case CaseLoadType.TrayStack:
                OnConveyorEnterLoad(new ConveyorEnterLoadEventArgs(FeedLoad.FeedTrayLoad(TransportSection, 0, Case_Load.GetCaseControllerCaseData(), TrayStatus.Stacked)));
                break;

            case CaseLoadType.Auto:
                // TODO : CN Not sure what expected behaviour should be in this instance (create case for now)
                OnConveyorEnterLoad(new ConveyorEnterLoadEventArgs(FeedLoad.FeedCaseLoad(TransportSection, 0, Case_Load.GetCaseControllerCaseData())));
                break;

            case CaseLoadType.Case:
            default:
                OnConveyorEnterLoad(new ConveyorEnterLoadEventArgs(FeedLoad.FeedCaseLoad(TransportSection, 0, Case_Load.GetCaseControllerCaseData())));
                break;
            }
        }
Esempio n. 2
0
 public override void DoubleClick()
 {
     if (InvokeRequired)
     {
         Core.Environment.Invoke(() => DoubleClick());
         return;
     }
     OnConveyorEnterLoad(new ConveyorEnterLoadEventArgs(FeedLoad.FeedEuroPallet(TransportSection, 0, Experior.Dematic.Base.EuroPallet.GetPalletControllerPalletData(), StraightInfo.PalletStatus)));
 }
Esempio n. 3
0
 void feedTimer_OnElapsed(Timer sender)
 {
     if (lastLoad == null || lastLoad.Distance != DeviceDistance)
     {
         //lastLoad = FeedCase.FeedCaseLoad((ITransportSection)conveyor.TransportSection, DeviceDistance);
         lastLoad         = FeedLoad.FeedCaseLoad((ITransportSection)conveyor.TransportSection, DeviceDistance, LoadLength, LoadWidth, LoadHeight, LoadWeight, LoadColour, LoadBarcodeLength, Case_Load.GetCaseControllerCaseData());
         StartArrow.Color = Color.Green;
     }
     else
     {
         StartArrow.Color = Color.Red;
     }
 }
Esempio n. 4
0
        public override void DoubleClick()
        {
            //This doesn't seem to work! I would like to double click to start the timer and release a load in
            // but the double click does not seem to do anything, even though it works on the other assemblies
            //Also cannot add a double click to the cube or anything else
            if (feedTimer.Running)
            {
                feedTimer.Stop();
            }
            else
            {
                feedTimer.Start();

                FeedLoad.FeedCaseLoad((ITransportSection)conveyor.TransportSection, DeviceDistance, Case_Load.GetCaseControllerCaseData());
            }

            base.DoubleClick();
        }
Esempio n. 5
0
 protected ATCEuroPallet CreateEuroPallet(float height, float width, float length, float weight, string color, PalletStatus status)
 {
     return(CreateEuroPallet("", FeedLoad.GetSSCCBarcode(), "", "", "", "OK", height, width, length, weight, LoadColor(color), status));
 }
Esempio n. 6
0
 protected ATCTray CreateTray(float height, float width, float length, float weight, string color, TrayStatus status, uint trayStacks)
 {
     return(CreateTray("", FeedLoad.GetSSCCBarcode(), "", "", "", "", height, width, length, weight, color, status, trayStacks));
 }
Esempio n. 7
0
 protected ATCCaseLoad CreateCaseLoad(string height, string width, string length, string weight, string color)
 {
     return(CreateCaseLoad("", FeedLoad.GetSSCCBarcode(), "", "", "", "", height, width, length, weight, color));
 }