Commit dd3c1ebe LN

出料机构日志修改

1 个父辈 ba709f42
......@@ -55,7 +55,7 @@
<add key ="CodeCount" value ="3"/>
<add key ="DefaultTrayNum" value ="0"/>
<add key ="NeedScanCode" value ="1"/>
<add key ="Agv_Log_Open" value ="1"/>
<add key ="Agv_Log_Open" value ="0"/>
</appSettings>
<!-- <log4net> -->
<!-- <appender name="RollingLogFileAppender" type="log4net.Appender.RollingFileAppender"> -->
......
......@@ -75,8 +75,9 @@ namespace OnlineStore.DeviceLibrary
CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
}
}
private InOutParam CheckIsNeedOutStore( )
{
private InOutParam CheckIsNeedOutStore(out string outMsg )
{
outMsg = "";
int lineNum = DeviceID % 100;
TrayInfo trayInfo = TrayManager.GetTrayInfo(currTrayNum);
if (!trayInfo.IsFull)
......@@ -87,7 +88,8 @@ namespace OnlineStore.DeviceLibrary
int youxianS = 180;
InOutParam inoup = trayInfo.InoutPar;
if (trayInfo.IsFull && trayInfo.InoutPar.InStoreNg && this.Config.SidesWayNum.Equals(4))
{
{
outMsg = "入料NG料";
//入料失败料
return inoup;
}
......@@ -146,20 +148,24 @@ namespace OnlineStore.DeviceLibrary
if (mustLine.Count > 0)
{
if (mustLine.Contains(lineNum))
{
{
outMsg = "必须线";
return inoup;
}
}else if (firstLine.Count > 0 )
{
if (firstLine.Contains(lineNum)&& kongxian)
{
outMsg = "优先线且空闲";
return inoup;
}else if (LineManager.Line.ProvidingCanUse(firstLine).Equals(false)&& kongxian)
{
outMsg = "优先线不可用";
//优先线不可用
return inoup;
}else if(span.TotalSeconds > youxianS&& kongxian)
{
outMsg = "超过180秒";
//超过指定的时间
return inoup;
}
......@@ -168,6 +174,7 @@ namespace OnlineStore.DeviceLibrary
{
if (kongxian)
{
outMsg = "随意放";
return inoup;
}
}
......@@ -238,12 +245,13 @@ namespace OnlineStore.DeviceLibrary
TrayManager.UpdateTrayNumError(-1, "");
}
//出料中,需要拦盘
InOutParam param = CheckIsNeedOutStore( );
string outMsg = "";
InOutParam param = CheckIsNeedOutStore( out outMsg);
if(param != null)
{
SecondMoveInfo.MoveParam = param;
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_05_WaitTime);
CheckLog("托盘 【" + currTrayNum + "】需要出料" + SecondMoveInfo.SLog + ":" + param.ToStr() + " 等待1秒后顶升上升 ");
LogUtil.info(Name+ "托盘 【" + currTrayNum + "】【"+outMsg+"】需要出料" + SecondMoveInfo.SLog + ":" + param.ToStr() + " 等待可以开始移栽 ");
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitProvidingEquipCanOut());//等待
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!