コード例 #1
0
        public void CallForwardRecieved(string[] telegramFields, ushort number_of_blocks)
        {
            //This message is used by MFH to instruct CCC to release a number of ULs from a location.

            for (ushort block = 0; block < number_of_blocks; block++)
            {
                string location = telegramFields[6 + block * 2];
                ushort quantity = ushort.Parse(telegramFields[7 + block * 2]);

                //Call forward at manual picking points on Accumulation conveyor
                if (Core.Assemblies.Assembly.Items.ContainsKey(location) && Core.Assemblies.Assembly.Items[location] is StraightAccumulationConveyor)
                {
                    StraightAccumulationConveyor conv = Core.Assemblies.Assembly.Items[location] as StraightAccumulationConveyor;
                    if (conv.ControllerProperties != null)
                    {
                        MHEControl_ManualPicking control = conv.ControllerProperties as MHEControl_ManualPicking;
                        control.CallForwardReceived(null);
                    }
                }
            }
        }
コード例 #2
0
        public void CallForwardWithBarcode(string[] telegramFields, ushort number_of_blocks)
        {
            for (ushort block = 0; block < number_of_blocks; block++)
            {
                string location = telegramFields[6 + block * 2];
                ushort quantity = ushort.Parse(telegramFields[7 + block * 2]);
                string barcode  = telegramFields[8 + block * 2];

                //Call forward at manual picking points on Accumulation conveyor
                if (Core.Assemblies.Assembly.Items.ContainsKey(location) && Core.Assemblies.Assembly.Items[location] is StraightAccumulationConveyor)
                {
                    StraightAccumulationConveyor conv = Core.Assemblies.Assembly.Items[location] as StraightAccumulationConveyor;
                    if (conv.ControllerProperties != null)
                    {
                        MHEControl_ManualPicking control = conv.ControllerProperties as MHEControl_ManualPicking;
                        control.CallForwardReceived(barcode);
                    }
                }
                CallForwardTelegramReceived(new CallForwardEventArgs(location, barcode));
            }
        }