Exemplo n.º 1
0
        public MHEControl_BeltSorterDivert(BeltSorterDivertATCInfo info, BeltSorterDivert sorterDivert)
        {
            divertConveyor   = sorterDivert;
            divertDatcomInfo = info;
            Info             = info; // set this to save properties

            //Subscribe to the diverter events
            divertConveyor.OnDivertPointArrivedControl  += divertConveyor_OnDivertPointArrivedControl;
            divertConveyor.OnDivertPointDivertedControl += divertConveyor_OnDivertPointDivertedControl;

            casePLC = divertConveyor.Controller as MHEController_Case;

            //Anything with setup code in the "set" of a property except setting the value will need to be called
            //explicitly so that the "set" code will execute when loading from a saved configuration
            DivertRoutingCode = info.divertRoutingCode;
            //StraightRoutingCode = info.straightRoutingCode;
        }