Commit 3590c838 LN

NG口转到皮带线内侧。

1 个父辈 bdc854e7
...@@ -10,10 +10,11 @@ using System.Threading.Tasks; ...@@ -10,10 +10,11 @@ using System.Threading.Tasks;
namespace OnlineStore.DeviceLibrary namespace OnlineStore.DeviceLibrary
{ {
/// <summary> /// <summary>
/// 出料皮带线 /// 出料皮带线,皮带线5=NG线,NG料在内侧,紧急出料在外侧
/// </summary> /// </summary>
public class OutTrayLineBean public class OutTrayLineBean
{ {
private bool NgInReverseSide = false ;
public int MaxPosition = 5; public int MaxPosition = 5;
private int equipBeanId = 301; private int equipBeanId = 301;
private string Line3_TrayCheck = ""; private string Line3_TrayCheck = "";
...@@ -165,8 +166,18 @@ namespace OnlineStore.DeviceLibrary ...@@ -165,8 +166,18 @@ namespace OnlineStore.DeviceLibrary
else if (MoveInfo.MoveStep.Equals(LineMoveStep.DLO_05_TrayIsOk)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.DLO_05_TrayIsOk))
{ {
MoveInfo.NextMoveStep(LineMoveStep.DLO_06_WaitTime); MoveInfo.NextMoveStep(LineMoveStep.DLO_06_WaitTime);
LogUtil.info(Name + "送料【" + posId + "】:" + MoveInfo.SLog + "盘已放,等待2000");
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000));
//判断ng气缸是否需要前进
if (MoveInfo.MoveParam.InStoreNg && NgInReverseSide)
{
LogUtil.info(Name + "送料【" + posId + "】:" + MoveInfo.SLog + "盘已放,等待2000,NG气缸前进");
equipBean.CylinderMove(MoveInfo, IO_Type.NGCylinder_After, IO_Type.NGCylinder_Before);
}
else
{
LogUtil.info(Name + "送料【" + posId + "】:" + MoveInfo.SLog + "盘已放,等待2000");
}
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.DLO_06_WaitTime)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.DLO_06_WaitTime))
{ {
...@@ -197,7 +208,16 @@ namespace OnlineStore.DeviceLibrary ...@@ -197,7 +208,16 @@ namespace OnlineStore.DeviceLibrary
{ {
if (LineTurnIsStop()) if (LineTurnIsStop())
{ {
if (MoveInfo.MoveParam.InStoreNg || MoveInfo.MoveParam.urgentReel) if (MoveInfo.MoveParam.InStoreNg && NgInReverseSide)
{
MoveInfo.NextMoveStep(LineMoveStep.DLO_09_NGAfter);
LastTrayPosition++;
LogUtil.info(Name + "送料【" + posId + "】:" + MoveInfo.SLog + " [" + LastTrayPosition + "],NG气缸后退");
equipBean.CylinderMove(MoveInfo, IO_Type.NGCylinder_Before, IO_Type.NGCylinder_After);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000));
}
else if (MoveInfo.MoveParam.urgentReel|| MoveInfo.MoveParam.InStoreNg)
{ {
MoveInfo.NextMoveStep(LineMoveStep.DLO_08_NGBefore); MoveInfo.NextMoveStep(LineMoveStep.DLO_08_NGBefore);
LogUtil.info(Name + "送料【" + posId + "】:" + MoveInfo.SLog + "NG气缸前进"); LogUtil.info(Name + "送料【" + posId + "】:" + MoveInfo.SLog + "NG气缸前进");
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!