|
|
|
|
@ -622,6 +622,13 @@ namespace Khd.Core.Wcs.Wcs
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
BasePlcpoint basePlcpoint1 = StaticData.BasePlcpointList.First(t => t.plcpointNo == "GetTrayOver");
|
|
|
|
|
StaticData.PlcDic[2].WriteToPoint(basePlcpoint1.plcpointAddress, true, basePlcpoint1.plcpointLength.ToString());
|
|
|
|
|
IsTrayGet = true;
|
|
|
|
|
_logger.Info("通知PLC已经取走信号:true");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var agvTask = new RequestAGVTaskDto
|
|
|
|
|
{
|
|
|
|
|
reqCode = StaticData.SnowId.NextId().ToString().ToString(),
|
|
|
|
|
@ -910,10 +917,7 @@ namespace Khd.Core.Wcs.Wcs
|
|
|
|
|
MesBasePalletInfo? mesBasePalletInfo = dbContext.MesBasePalletInfo.FirstOrDefault(t => t.palletInfoCode == item.containerNo);
|
|
|
|
|
if (mesBasePalletInfo != null)
|
|
|
|
|
{
|
|
|
|
|
BasePlcpoint basePlcpoint = StaticData.BasePlcpointList.First(t => t.plcpointNo == "GetTrayOver");
|
|
|
|
|
StaticData.PlcDic[2].WriteToPoint(basePlcpoint.plcpointAddress, true, basePlcpoint.plcpointLength.ToString());
|
|
|
|
|
IsTrayGet = true;
|
|
|
|
|
_logger.Info("通知PLC已经取走信号:true");
|
|
|
|
|
|
|
|
|
|
MesBaseBarcodeInfo? mesBaseBarcodeInfo = dbContext.MesBaseBarcodeInfo.Where(t => t.palletInfoCode == item.containerNo).FirstOrDefault();
|
|
|
|
|
if (mesBaseBarcodeInfo != null)
|
|
|
|
|
{
|
|
|
|
|
|