Commit bd54bfe6 LN

运动结束更新状态。出料loc-1时不分皮带线

1 个父辈 c3c5f862
......@@ -138,9 +138,7 @@ namespace OnlineStore.DeviceLibrary
{
case LineMoveStep.DL_R_CylinderDown:
LogInfo(MoveInfo.MoveType + "完成!");
runStatus = LineRunStatus.Runing;
lineStatus = LineStatus.StoreOnline;
MoveInfo.EndMove();
MoveEndS();
SecondMoveInfo.EndMove();
break;
......@@ -424,6 +422,7 @@ namespace OnlineStore.DeviceLibrary
msg += "LastTP:"+ TrayLine1.LastTrayPosition+" " + TrayLine2.LastTrayPosition + " " + Line3LastTrayP + " " + "\n";
msg += "LIsRun:"+ TrayLine1.IsInTurn() + " " + TrayLine2.IsInTurn() + " " +Line3Turn.InTurn + " " +"\n";
msg += "L3CanRun:"+ TrayLine1.Line3CanRun + " " + TrayLine2.Line3CanRun + " " + "\n";
msg += "LastWidth:" + LastWidth;
return msg;
}
public override bool StartInStoreMove(InOutParam param)
......
......@@ -196,8 +196,7 @@ namespace OnlineStore.DeviceLibrary
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.DO_07_CRun))
{
runStatus = LineRunStatus.Runing;
MoveInfo.EndMove();
MoveEndS();
IOMove(IO_Type.SeparateDevice_Run, IO_VALUE.LOW);
LogInfo(hengyiName + "出口有料,送料结束,停止皮带线");
}
......
......@@ -583,5 +583,11 @@ namespace OnlineStore.DeviceLibrary
msg += "SMoveS:" + SecondMoveInfo.MoveStep + "";
return msg;
}
internal void MoveEndS()
{
lineStatus = LineStatus.StoreOnline;
runStatus = LineRunStatus.Runing;
MoveInfo.EndMove();
}
}
}
......@@ -268,10 +268,8 @@ namespace OnlineStore.DeviceLibrary
{
LogInfo("重置完成,出口检测到有料架,调用 AgvClient.NeedLeave");
AgvClient.NeedLeave(Config.AgvOutName);
}
runStatus = LineRunStatus.Runing;
lineStatus = LineStatus.StoreOnline;
MoveInfo.EndMove();
}
MoveEndS();
break;
default: break;
}
......
......@@ -471,8 +471,7 @@ namespace OnlineStore.DeviceLibrary
}
else
{
MoveInfo.EndMove();
runStatus = LineRunStatus.Runing;
MoveEndS();
LogUtil.info(" 未检测到料架,入料结束");
}
}
......@@ -524,8 +523,7 @@ namespace OnlineStore.DeviceLibrary
}
else
{
MoveInfo.EndMove();
runStatus = LineRunStatus.Runing;
MoveEndS();
InLog(" 未检测到料架,入料结束");
}
}
......@@ -823,8 +821,7 @@ namespace OnlineStore.DeviceLibrary
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FI_39_TopDown))
{
MoveInfo.EndMove();
runStatus = LineRunStatus.Runing;
MoveEndS();
// MoveInfo.NextMoveStep(LineMoveStep.FI_39_OutLineRun);
InLog("上料完成,料架到达出口处, 通知AGV取空料架, 入料流程结束");
AgvClient.NeedLeave(Config.AgvOutName);
......
......@@ -155,8 +155,7 @@ namespace OnlineStore.DeviceLibrary
}
else
{
MoveInfo.EndMove();
runStatus = LineRunStatus.Runing;
MoveEndS();
OutLog(" 未检测到料架, 准备出库料架结束");
}
}
......@@ -205,9 +204,7 @@ namespace OnlineStore.DeviceLibrary
}
else
{
MoveInfo.EndMove();
runStatus = LineRunStatus.Runing;
lineStatus = LineStatus.StoreOnline;
MoveEndS();
OutLog(" 未检测到料架,料架处理结束");
}
}
......@@ -338,8 +335,7 @@ namespace OnlineStore.DeviceLibrary
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_38_TopDown))
{
MoveInfo.EndMove();
runStatus = LineRunStatus.Runing;
MoveEndS();
// MoveInfo.NextMoveStep(LineMoveStep.FO_39_OutLineRun);
OutLog("送出料串: " + MoveInfo.SLog + ", 出口线体运转,料架到达出口处, 通知AGV取空料架, 出料结束");
AgvClient.NeedLeave(Config.AgvOutName);
......@@ -510,8 +506,7 @@ namespace OnlineStore.DeviceLibrary
else
{
OutLog("紧急出料完成,出料结束");
MoveInfo.EndMove();
runStatus = LineRunStatus.Runing;
MoveEndS();
}
}
}
......
......@@ -156,9 +156,7 @@ namespace OnlineStore.DeviceLibrary
CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
OutLog("出库处理结束!");
lineStatus = LineStatus.StoreOnline;
runStatus = LineRunStatus.Runing;
MoveInfo.EndMove();
MoveEndS();
}
#endregion
......@@ -306,9 +304,7 @@ namespace OnlineStore.DeviceLibrary
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_16_SendEnd))
{
LogInfo("入库【" + posId + "】处理(移栽)全部完成!");
runStatus = LineRunStatus.Runing;
lineStatus = LineStatus.StoreOnline;
MoveInfo.EndMove();
MoveEndS();
}
}
......
......@@ -106,7 +106,11 @@ namespace OnlineStore.DeviceLibrary
//rfid: 分配的料架RFID
//rfidLoc:
//是否是小盘
if (inoup.smallReel)
if (inoup.rfidLoc <= 0)
{
//-1时随意放
}
else if (inoup.smallReel)
{
if (inoup.rfidLoc >= 70 && inoup.rfidLoc <= 72)
{
......@@ -133,7 +137,7 @@ namespace OnlineStore.DeviceLibrary
{
// 大料12号只能走1号2后皮带线
mustLine = new List<int> { 1, 2 };
}
}
else if (inoup.rfidLoc <= 6)
{
firstLine = new List<int> { 1, 2 };
......@@ -484,9 +488,7 @@ namespace OnlineStore.DeviceLibrary
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_10_CylinderAfter))
{
LogInfo("出料【" + posId + "】处理完成!");
runStatus = LineRunStatus.Runing;
lineStatus = LineStatus.StoreOnline;
MoveInfo.EndMove();
MoveEndS();
}
}
private OutTrayLineBean GetDisLine()
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!