This commit is contained in:
Administrator
2026-07-07 10:32:25 +08:00
parent 773aea0c5d
commit 991893c2d0
2 changed files with 101 additions and 89 deletions

View File

@@ -41,17 +41,21 @@ namespace WPFWCSDemo.Schedules.CircleRGV
if (!isNotException) return false; if (!isNotException) return false;
//校验---同输送口相邻任务生成时间间隔过短 //校验---同输送口相邻任务生成时间间隔过短
if (!CheckSendTaskTimeInterval(targetLocation, 999)) return false; if (!CheckSendTaskTimeInterval(targetLocation, 120))
return false;
//校验---如果已经存在处于【取货阶段】的某个【空托】任务 //校验---如果已经存在处于【取货阶段】的某个【空托】任务
//由于【空托任务】输送线的源站点唯一,因此必须等待该任务取货完成才能生成新的【空托】任务 //由于【空托任务】输送线的源站点唯一,因此必须等待该任务取货完成才能生成新的【空托】任务
if (!IsPalletLineHasTask()) return false; if (!IsPalletLineHasTask())
return false;
//校验---当前输送线存在【空托】任务 //校验---当前输送线存在【空托】任务
if (!GetRGVTaskForPalletsIsExist(targetLocation)) return false; if (!GetRGVTaskForPalletsIsExist(targetLocation))
return false;
//校验5.当前同一【目标站点】是否已经生成任务 //校验5.当前同一【目标站点】是否已经生成任务
if (!CheckSendTaskIsRepeat(sourceLocation, TaskType.Pallet)) return false; if (!CheckSendTaskIsRepeat(sourceLocation, TaskType.Pallet))
return false;
//校验---上位是否手动禁止生成 //校验---上位是否手动禁止生成
if (LineTaskForPermission(targetLocation) == 0) return false; if (LineTaskForPermission(targetLocation) == 0) return false;

View File

@@ -74,6 +74,8 @@ namespace WPFWCSDemo.Schedules.CircleRGV
if (taskRT is null) continue; if (taskRT is null) continue;
try
{
//有【允许下发】 //有【允许下发】
//if (circleRGVState.Read_Permission) continue; //if (circleRGVState.Read_Permission) continue;
@@ -177,6 +179,12 @@ namespace WPFWCSDemo.Schedules.CircleRGV
} }
continue; continue;
} }
}
catch (Exception ex)
{
Log.Error("【更新任务阶段】执行异常," + ex.Message);
}