change-2F小包出入口调试版本

master
liuwf 1 year ago
parent 4ff4d4d25e
commit 9d616def1d

@ -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);

@ -59,8 +59,7 @@ namespace Khd.Core.Wcs.Wcs
var rfidValue = StaticData.PlcDic[2].ReadRFID(rfidPoint.plcpointAddress,15);//小包出口的RFID
if (agvGetValue != null && agvPutValue != null && rfidValue != null)//读Plc
{
//待删除
agvPutValue = 1;
if (Convert.ToInt32(agvPutValue) == 0)//小包入口叫料
{

Loading…
Cancel
Save