//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(); } } }
private void SendConfirmationTelegram(Case_Load caseLoad, string Location) { IATCCaseLoadType atcLoad = caseLoad as IATCCaseLoadType; atcLoad.Location = Location; switch (DivertMessageType) { case DivertTelegram.LocationArrived: casePLC.SendLocationArrivedTelegram(caseLoad as IATCCaseLoadType); break; case DivertTelegram.LocationLeft: casePLC.SendLocationLeftTelegram(caseLoad as IATCCaseLoadType); break; case DivertTelegram.TransportFinished: casePLC.SendTransportFinishedTelegram(caseLoad as IATCCaseLoadType); break; case DivertTelegram.TransportRequest: casePLC.SendTransportRequestTelegram(caseLoad as IATCCaseLoadType); break; } }