Commit afb5dcce LN

2.出料随意放条件修改。

1 个父辈 4a70e617
20200323
。出库料盘在料仓门口,入库又拿了一盘料。
皮带线6有时会转两个盘到接驳台
20200324
1.入库逻辑修改:提升轴先上升后需要下降到料盘不溢出的位置,横移气缸才能动作。
2.出料模块取料条件修改:随意放时需要等皮带线空闲。
20200323
。出库料盘在料仓门口,入库又拿了一盘料。
皮带线6有时会转两个盘到接驳台
20200317
1.托盘检测的还会报警。
2.伺服问题?测高不准确。
3.条码扫一种类型后,判断有有效条码则不再扫码。
20200315:
皮带线报警后不继续转动皮带线。
http发送去掉ping。
20200314:
出料机构:如果是7寸盘,提前放行托盘
皮带线123:增加NG气缸逻辑
......@@ -46,25 +36,6 @@ http发送去掉ping。
在阳光电源流水线的基础上新建佳世达流水线料项目
流水线SubType:1000
移栽出入仓模块:1-18
......
......@@ -422,6 +422,7 @@ namespace OnlineStore.DeviceLibrary
IoCheckTimer.Enabled = false;
mainTimer.Enabled = false;
AgvClient.SetCancelState(true);
RFIDManager.Close();
//停止运行时,把阻挡气缸上升
//StopMove();
foreach (EquipBase equip in this.AllEquipMap.Values)
......@@ -451,7 +452,6 @@ namespace OnlineStore.DeviceLibrary
WriteDrivetMotorRun(IO_VALUE.LOW);
LineServer.StopServer();
RFIDManager.Close();
TimeSpan span = DateTime.Now - StartTime;
LogUtil.info(Name + ",停止运行,总运行时间:" + span.ToString());
}
......
......@@ -132,7 +132,7 @@ namespace OnlineStore.DeviceLibrary
this.TrayPEndEvent?.Invoke(Config.SidesWayNum, currTrayNum);
}
}
private InOutParam CheckIsNeedOutStore(out string outMsg )
private InOutParam CheckIsNeedOutStore(out string outMsg)
{
outMsg = "";
int lineNum = DeviceID % 100;
......@@ -152,8 +152,8 @@ namespace OnlineStore.DeviceLibrary
}
else if (trayInfo.InOrOutStore.Equals(ReelType.OutStore) && inoup.urgentReel.Equals(false) && inoup.cutReel.Equals(false))
{
List<int> mustLine = new List<int> ();
List<int> firstLine = new List<int> ();
List<int> mustLine = new List<int>();
List<int> firstLine = new List<int>();
//urgentReel: true 表示紧急料,需要出到料串上
//cutReel: true 表示分盘料,需要出到料串上
//smallReel: true 小料(7x8),放置到小料架上
......@@ -169,7 +169,7 @@ namespace OnlineStore.DeviceLibrary
if (inoup.rfidLoc >= 70 && inoup.rfidLoc <= 72)
{
// 70,71,72时只能分配到3 / 4号皮带线;
mustLine = new List<int> { 3,4};
mustLine = new List<int> { 3, 4 };
}
else if (inoup.rfidLoc <= 46)
{
......@@ -201,7 +201,7 @@ namespace OnlineStore.DeviceLibrary
firstLine = new List<int> { 3, 4 };
}
}
bool kongxian = MoveInfo.MoveType.Equals(LineMoveType.None)||MoveInfo.MoveStep>=LineMoveStep. PO_08_CylinderRelax;
bool kongxian = MoveInfo.MoveType.Equals(LineMoveType.None) || MoveInfo.MoveStep >= LineMoveStep.PO_08_CylinderRelax;
if (mustLine.Count > 0)
{
if (mustLine.Contains(lineNum))
......@@ -209,27 +209,37 @@ namespace OnlineStore.DeviceLibrary
outMsg = "必须线";
return inoup;
}
}else if (firstLine.Count > 0 )
}
else if (firstLine.Count > 0)
{
if (firstLine.Contains(lineNum)&& kongxian)
if (firstLine.Contains(lineNum) && kongxian)
{
outMsg = "优先线且空闲";
return inoup;
}else if (LineManager.Line.ProvidingCanUse(firstLine).Equals(false)&& kongxian)
}
else if (LineManager.Line.ProvidingCanUse(firstLine).Equals(false) && kongxian && LineNotBusy())
{
outMsg = "优先线不可用";
//优先线不可用
return inoup;
}else if(span.TotalSeconds > youxianS&& kongxian)
}
else if (span.TotalSeconds > youxianS && kongxian && LineNotBusy())
{
outMsg = "超过180秒";
//超过指定的时间
return inoup;
}
else if (span.TotalSeconds > youxianS * 3 && kongxian)
{
outMsg = "超过9分钟";
//超过指定的时间
return inoup;
}
}
else
{
if (kongxian)
//空闲且皮带线出料已结束
if (kongxian && LineNotBusy())
{
outMsg = "随意放";
return inoup;
......@@ -590,7 +600,7 @@ namespace OnlineStore.DeviceLibrary
}
catch (Exception ex)
{
LogUtil.error(Name,ex);
LogUtil.error(Name, ex);
}
return null;
}
......@@ -656,6 +666,23 @@ namespace OnlineStore.DeviceLibrary
LogUtil.error(Name + "StartLineOut未找到对应的皮带线");
}
}
private bool LineNotBusy()
{
OutTrayLineBean outline = GetDisLine();
if (outline != null)
{
if (outline.equipBean.MoveInfo.MoveType.Equals(LineMoveType.None))
{
return true;
}
}
else
{
LogUtil.error(Name + "StartLineOut未找到对应的皮带线");
}
return false;
}
#endregion
}
}
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!