|
|
|
|
@ -562,7 +562,9 @@ namespace Khd.Core.Wcs.Wcs
|
|
|
|
|
{
|
|
|
|
|
if (item.taskType == StaticTaskType.SecondLineToSmallPackage)
|
|
|
|
|
{
|
|
|
|
|
if (true)
|
|
|
|
|
var agvPutPoint = StaticData.BasePlcpointList.First(t => t.id == 54);
|
|
|
|
|
var agvPutValue = StaticData.PlcDic[2].Read(agvPutPoint.plcpointAddress);//小包入口叫料
|
|
|
|
|
if (agvPutValue !=null && Convert.ToInt32(agvPutValue) == 0)
|
|
|
|
|
{
|
|
|
|
|
var agvTask = new RequestAGVTaskDto
|
|
|
|
|
{
|
|
|
|
|
@ -718,8 +720,10 @@ namespace Khd.Core.Wcs.Wcs
|
|
|
|
|
}
|
|
|
|
|
else if (item.taskType == StaticTaskType.SecondLineToSmallPackage)//输送线到小包入口
|
|
|
|
|
{
|
|
|
|
|
// 小包入口确认信号
|
|
|
|
|
|
|
|
|
|
// 小包入口放料完成确认信号
|
|
|
|
|
//放托盘确认信号DB4.DBX310.0写true
|
|
|
|
|
BasePlcpoint SecondInPutOverPoint = StaticData.BasePlcpointList.First(t => t.id == 72);
|
|
|
|
|
StaticData.PlcDic[2].WriteToPoint(SecondInPutOverPoint.plcpointAddress, true, SecondInPutOverPoint.plcpointLength.ToString());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BaseEquip startEquip = dbContext.BaseEquip.First(t => t.objid == item.currPointId);
|
|
|
|
|
|