Commit c279c907 by jiawei.su

someupdate

parent aab5f316
...@@ -543,6 +543,14 @@ namespace Siger.ApiACC.Controllers ...@@ -543,6 +543,14 @@ namespace Siger.ApiACC.Controllers
{ {
Logger.WriteLineError($"AutoProcess 清洗机空闲,TaskResult触发 "); Logger.WriteLineError($"AutoProcess 清洗机空闲,TaskResult触发 ");
Logger.WriteLineInfo($"自动化业务流转--AutoProcess section{fullMachine.section} task:{TaskAction.Step_JGZX_QXJ.ToStr()} sn {tasklist.sn}"); Logger.WriteLineInfo($"自动化业务流转--AutoProcess section{fullMachine.section} task:{TaskAction.Step_JGZX_QXJ.ToStr()} sn {tasklist.sn}");
//如果上一个任务也是清洗机上料 (清洗机未下料) 退出
var lastTask = _automationTaskList.GetList(f => f.projectId == PID, "id", true).FirstOrDefault();
if (lastTask.action== TaskAction.Step_JGZX_QXJ)
{
Logger.WriteLineError($"AutoProcess 清洗机空闲,上一个任务与本次任务指令重复");
return;
}
//创建CNC 下料到清洗机 //创建CNC 下料到清洗机
CreateTask(fullMachine.section, TaskActionType.Unload, TaskAction.Step_JGZX_QXJ, tasklist.fixtureguid, tasklist.ordercode, tasklist.sn, tasklist.programnumber, tasklist.productid, tasklist.productcode, tasklist.locationid, tasklist.route); CreateTask(fullMachine.section, TaskActionType.Unload, TaskAction.Step_JGZX_QXJ, tasklist.fixtureguid, tasklist.ordercode, tasklist.sn, tasklist.programnumber, tasklist.productid, tasklist.productcode, tasklist.locationid, tasklist.route);
return; //完成当前任务 退出 return; //完成当前任务 退出
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment