Exemple #1
0
 public MHEControl_CommPoint(CommPointDatcomInfo info, CommunicationPoint cPoint)
 {
     commPoint           = cPoint;
     commPointDatcomInfo = info;
     Info = info;                           // set this to save properties
     commPoint.commPointArrival = ap_Enter; //CommunicationPoint will use this delegate for ap_enter.
     casePLC = CommPoint.Controller as CasePLC_Datcom;
 }
Exemple #2
0
 private void LocationLeft(CommunicationPoint commPoint, IATCCaseLoadType caseLoad)
 {
     if (AlwaysArrival || caseLoad.Location == caseLoad.Destination)
     {
         caseLoad.Location = commPoint.Name;
         //caseLoad.MTS = commPoint.ControllerName;
         casePLC.SendLocationLeftTelegram(caseLoad as IATCCaseLoadType);
     }
 }
Exemple #3
0
 private void ToteArrived(CommunicationPoint commPoint, Case_Load caseload)
 {
     if (AlwaysArrival) //Always send arrival message
     {
         casePLC.SendDivertConfirmation(location: commPoint.Name, SSCCBarcode: caseload.SSCCBarcode);
     }
     else if (!casePLC.RoutingTable.ContainsKey(caseload.SSCCBarcode.TrimStart('0')))
     {
         //Only send arrival message if ULID not found in routing table
         casePLC.SendDivertConfirmation(location: commPoint.Name, SSCCBarcode: caseload.SSCCBarcode);
         return;
     }
 }
Exemple #4
0
        private void TransportFinished(CommunicationPoint commPoint, IATCCaseLoadType caseLoad)
        {
            if (AlwaysArrival || caseLoad.Location == caseLoad.Destination)
            {
                caseLoad.Location = commPoint.Name;
                casePLC.SendTransportFinishedTelegram(caseLoad);

                if (LoadWait)
                {
                    caseLoad.LoadWaitingForWCS = true;
                    caseLoad.Stop();
                }
            }
        }
Exemple #5
0
        //TODO: For the loads that are stopping on the case conveyor at these communication points it
        //has to be placed in the correct position otherwise its can be an issue (I have found that placing
        //them in exactly the correct place compaired to a accumulation sensor is a good position as all atction point are triggered
        private void TransportRequest(CommunicationPoint commPoint, IATCCaseLoadType caseLoad)
        {
            if (AlwaysArrival || caseLoad.Location == caseLoad.Destination || string.IsNullOrEmpty(caseLoad.Destination))
            {
                caseLoad.Location = commPoint.Name;
                //caseLoad.MTS = commPoint.ControllerName;
                casePLC.SendTransportRequestTelegram(caseLoad);

                if (LoadWait)
                {
                    //[BG] Not happy with this, if this is used then it needs to be understood what the issues are with it
                    //(Like stopping on a belt is bad and you need to put the Comm Point in the right place on accumulation conveyor)
                    caseLoad.LoadWaitingForWCS = true;
                    caseLoad.Stop();
                }
            }
        }
Exemple #6
0
        private void TransportRequestOrFinished(CommunicationPoint commPoint, IATCCaseLoadType caseLoad)
        {
            if (caseLoad.Location == caseLoad.Destination)
            {
                //Send TransportFinishedTelegram
                caseLoad.Location = commPoint.Name;
                casePLC.SendTransportFinishedTelegram(caseLoad);
            }
            else
            {
                //Send TransportRequestTelegram
                caseLoad.Location = commPoint.Name;
                casePLC.SendTransportRequestTelegram(caseLoad);
            }

            if (LoadWait)
            {
                caseLoad.LoadWaitingForWCS = true;
                caseLoad.Stop();
            }
        }
Exemple #7
0
 public MHEControl_CommPoint(MHEControl_CommPointInfo info, CommunicationPoint commPoint)
 {
     Info                       = info;     // set this to save properties
     this.commPoint             = commPoint;
     commPoint.commPointArrival = ap_Enter; //CommunicationPoint will use this delegate for ap_enter.
 }