Commit e54748c8 LN

-NG口夹爪上升感应到料以后再放行托盘

1 个父辈 b5e600ac
......@@ -632,7 +632,7 @@ namespace OnlineStore.DeviceLibrary
}
if (MoveInfo.IsStep(LineMoveStep.JM_01_UpdownToP1))
{
JM_02_CylinderTake();
JM_02_CylinderTake();
}
else if (MoveInfo.IsStep(LineMoveStep.JM_02_CylinderTake))
{
......@@ -643,12 +643,12 @@ namespace OnlineStore.DeviceLibrary
}
else if (MoveInfo.IsStep(LineMoveStep.JM_03_UpdownToP2))
{
// MoveInfo.NextMoveStep(LineMoveStep.JM_04_DownWait);
// OutLog(logName + MoveInfo.SLog + ":等待0.3秒后再夹紧 ");
// MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300));
//}
//else if (MoveInfo.IsStep(LineMoveStep.JM_04_DownWait))
//{
// MoveInfo.NextMoveStep(LineMoveStep.JM_04_DownWait);
// OutLog(logName + MoveInfo.SLog + ":等待0.3秒后再夹紧 ");
// MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300));
//}
//else if (MoveInfo.IsStep(LineMoveStep.JM_04_DownWait))
//{
MoveInfo.NextMoveStep(LineMoveStep.JM_05_ClampWork);
OutLog(logName + MoveInfo.SLog + ":夹料气缸夹紧 ");
CylinderMove(MoveInfo, IO_Type.HY_ClampCylinder_Relax, IO_Type.HY_ClampCylinder_Work);
......@@ -660,7 +660,11 @@ namespace OnlineStore.DeviceLibrary
OutLog(logName + MoveInfo.SLog + ":升降轴到P1 [" + Config.UpDownAxisP1 + "],更新 getTrayReelOk=true,更新当前出库托盘号="+ OutTrayNum);
UpdownAxis.AbsMove(MoveInfo, Config.UpDownAxisP1, Config.UpdownAxis_P1Speed);
getTrayReelOk = true;
TrayCanGo();
//如果不是NG口,提前放托盘离开
if (!IsNgPro())
{
TrayCanGo();
}
}
else if (MoveInfo.IsStep(LineMoveStep.JM_06_UpdownToP1))
{
......@@ -689,8 +693,9 @@ namespace OnlineStore.DeviceLibrary
//TrayCanGo();
if (IsNgPro())
{
TrayCanGo();
MoveInfo.NextMoveStep(LineMoveStep.JM_11_CylinderGive);
OutLog(logName + MoveInfo.SLog + ": 托盘离开,接驳台气缸放料 ");
OutLog(logName + MoveInfo.SLog + ": 托盘离开,接驳台气缸放料 ");
CylinderMove(MoveInfo, IO_Type.HY_MoveCylinder_Take, IO_Type.HY_MoveCylinder_Give);
}
else
......@@ -700,7 +705,7 @@ namespace OnlineStore.DeviceLibrary
JM_11_CylinderGive();
}
else
{
{
JM_10_WaitJNoReel();
}
}
......@@ -736,7 +741,7 @@ namespace OnlineStore.DeviceLibrary
{
MoveInfo.NextMoveStep(LineMoveStep.JM_15_ClampCheck);
OutLog(logName + MoveInfo.SLog + ":夹爪料盘检测无料,接驳台有料 ");
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.HY_ClampCylinder_Check, IO_VALUE.LOW));
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.HY_ClampCylinder_Check, IO_VALUE.LOW));
}
else
{
......@@ -772,7 +777,7 @@ namespace OnlineStore.DeviceLibrary
}
MoveInfo.NextMoveStep(LineMoveStep.JM_15_ClampCheck);
OutLog(logName + MoveInfo.SLog + ":夹爪料盘检测无料 ",1);
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.HY_ClampCylinder_Check, IO_VALUE.LOW));
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.HY_ClampCylinder_Check, IO_VALUE.LOW));
}
//MoveInfo.NextMoveStep(LineMoveStep.JM_15_ClampCheck);
......@@ -793,8 +798,8 @@ namespace OnlineStore.DeviceLibrary
if (MoveInfo.MoveParam.urgentReel)
{
OutLog(logName + MoveInfo.SLog + ",紧急料已放入NG箱,发送 afterPutCut ");
TaskData taskData;
string msg = SServerManager.afterPutCut(Name, "BN", code, "", 1, out taskData);
TaskData taskData;
string msg = SServerManager.afterPutCut(Name, "BN", code, "", 1, out taskData);
afterPutCutOK = true;
}
//else if (!MoveInfo.MoveParam.IsNG)
......@@ -867,8 +872,9 @@ namespace OnlineStore.DeviceLibrary
{
if (IsNgPro())
{
TrayCanGo();
MoveInfo.NextMoveStep(LineMoveStep.JM_11_CylinderGive);
OutLog(logName + MoveInfo.SLog + ": 托盘离开,接驳台气缸放料 ");
OutLog(logName + MoveInfo.SLog + ": 托盘离开,接驳台气缸放料 ");
CylinderMove(MoveInfo, IO_Type.HY_MoveCylinder_Take, IO_Type.HY_MoveCylinder_Give);
}
else
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!