void divertConveyor_OnDivertPointDivertedControl(object sender, AngleDivertArgs e) { Case_Load caseLoad = e._load as Case_Load; if (e._direction != selectedRoute && !string.IsNullOrEmpty(FailedToDivertLocation)) { //Send failed to divert message casePLC.SendDivertConfirmation(FailedToDivertLocation, caseLoad.SSCCBarcode); } else if (e._direction == DivertRoute.Divert && !string.IsNullOrEmpty(DivertRoutingLocation)) { //Send Diverted message casePLC.SendDivertConfirmation(DivertRoutingLocation, caseLoad.SSCCBarcode); } else if (e._direction == DivertRoute.Straight && !string.IsNullOrEmpty(StraightRoutingLocation)) { //Send Diverted straight message casePLC.SendDivertConfirmation(StraightRoutingLocation, caseLoad.SSCCBarcode); } }
void theConveyor_OnArrivedAtPickingPosition(object sender, ManualPickArrivalArgs e) { //Send Arrival message at the conveyor location caseLoad = e._load as Case_Load; casePLC.SendDivertConfirmation(theConveyor.Name, caseLoad.SSCCBarcode); }