Commit 319c1c92 LN

去掉夹爪信号检测。

1 个父辈 cceb71b9
...@@ -619,13 +619,13 @@ namespace OnlineStore.DeviceLibrary ...@@ -619,13 +619,13 @@ namespace OnlineStore.DeviceLibrary
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_216_CylinderUp)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_216_CylinderUp))
{ {
if (IOValue(IO_Type.SL_MoveCylinder_Tighten).Equals(IO_VALUE.LOW)) //if (IOValue(IO_Type.SL_MoveCylinder_Tighten).Equals(IO_VALUE.LOW))
{ //{
MoveInfo.NextMoveStep(LineMoveStep.FO_217_ClampCheck); // MoveInfo.NextMoveStep(LineMoveStep.FO_217_ClampCheck);
OutLog(outType + MoveInfo.SLog + ":等待夹爪有料"); // OutLog(outType + MoveInfo.SLog + ":等待夹爪有料");
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_MoveCylinder_Tighten,IO_VALUE.HIGH)); // MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_MoveCylinder_Tighten,IO_VALUE.HIGH));
} //}
else //else
{ {
FO_218_UpdownToP1(outType); FO_218_UpdownToP1(outType);
} }
...@@ -685,13 +685,13 @@ namespace OnlineStore.DeviceLibrary ...@@ -685,13 +685,13 @@ namespace OnlineStore.DeviceLibrary
{ {
if (MoveCylineIsUp()) if (MoveCylineIsUp())
{ {
if (IOValue(IO_Type.SL_MoveCylinder_Tighten).Equals(IO_VALUE.HIGH)) //if (IOValue(IO_Type.SL_MoveCylinder_Tighten).Equals(IO_VALUE.HIGH))
{ //{
MoveInfo.NextMoveStep(LineMoveStep.FO_223_ClampCheck); // MoveInfo.NextMoveStep(LineMoveStep.FO_223_ClampCheck);
OutLog(outType + MoveInfo.SLog + ":等待夹爪无料"); // OutLog(outType + MoveInfo.SLog + ":等待夹爪无料");
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_MoveCylinder_Tighten, IO_VALUE.LOW)); // MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SL_MoveCylinder_Tighten, IO_VALUE.LOW));
} //}
else //else
{ {
FO_224_CylinderTake(outType); FO_224_CylinderTake(outType);
} }
......
...@@ -504,7 +504,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -504,7 +504,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.NextMoveStep(LineMoveStep.PO_00_CylinderAfter); MoveInfo.NextMoveStep(LineMoveStep.PO_00_CylinderAfter);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After); CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After);
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Slack, IO_VALUE.LOW)); //MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Slack, IO_VALUE.LOW));
} }
return true; return true;
} }
...@@ -598,37 +598,33 @@ namespace OnlineStore.DeviceLibrary ...@@ -598,37 +598,33 @@ namespace OnlineStore.DeviceLibrary
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_04_CylinderUp)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_04_CylinderUp))
{ {
if (IOValue(IO_Type.ClampCylinder_Slack).Equals(IO_VALUE.HIGH)) //if (IOValue(IO_Type.ClampCylinder_Slack).Equals(IO_VALUE.LOW))
//{
// MoveInfo.NextMoveStep(LineMoveStep.PO_05_ClampCheck);
// OutLog("出料:" + MoveInfo.SLog + " ,等待夹爪有料)");
// MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Slack, IO_VALUE.HIGH));
//}
//else
{ {
PO_06_WaitBox(); PO_07_CylinderBefore();
}
else
{
MoveInfo.NextMoveStep(LineMoveStep.PO_05_ClampCheck);
OutLog("出料:" + MoveInfo.SLog + " ,等待夹爪有料)");
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.ClampCylinder_Slack, IO_VALUE.HIGH));
} }
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_05_ClampCheck)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_05_ClampCheck))
{ {
PO_06_WaitBox(); PO_07_CylinderBefore();
}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_06_WaitBox))
{
MoveInfo.NextMoveStep(LineMoveStep.PO_07_CylinderBefore);
OutLog("出料:" + MoveInfo.SLog + " ,前后气缸前进)");
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before);
} }
//else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_06_WaitBox))
//{
// MoveInfo.NextMoveStep(LineMoveStep.PO_07_CylinderBefore);
// OutLog("出料:" + MoveInfo.SLog + " ,前后气缸前进)");
// CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before);
//}
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_07_CylinderBefore)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_07_CylinderBefore))
{ {
if (CylinderIsOk(IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before)) if (CylinderIsOk(IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before))
{ {
if (LineIsReady()) if (LineIsReady())
{ {
//气缸不下降,直接扔料
//MoveInfo.NextMoveStep(LineMoveStep.PO_07_CylinderDown);
//OutLog("出料:" + MoveInfo.SLog + " ,上下气缸下降)");
//UpdownDownP3Move(MoveInfo.MoveParam.PlateH);
MoveInfo.NextMoveStep(LineMoveStep.PO_09_CylinderRelax); MoveInfo.NextMoveStep(LineMoveStep.PO_09_CylinderRelax);
OutLog("出料:" + MoveInfo.SLog + ",夹料气缸放松)"); OutLog("出料:" + MoveInfo.SLog + ",夹料气缸放松)");
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Slack, IO_Type.ClampCylinder_Tighten); CylinderMove(MoveInfo, IO_Type.ClampCylinder_Slack, IO_Type.ClampCylinder_Tighten);
...@@ -693,12 +689,13 @@ namespace OnlineStore.DeviceLibrary ...@@ -693,12 +689,13 @@ namespace OnlineStore.DeviceLibrary
} }
} }
private void PO_06_WaitBox() private void PO_07_CylinderBefore()
{ {
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : ""; string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : "";
int num = MoveInfo.MoveParam.TrayNumber; int num = MoveInfo.MoveParam.TrayNumber;
MoveInfo.NextMoveStep(LineMoveStep.PO_06_WaitBox); MoveInfo.NextMoveStep(LineMoveStep.PO_07_CylinderBefore);
LogInfo("出料 【" + posId + "】" + MoveInfo.SLog + " 更新托盘【" + num + "】为空"); LogInfo("出料 【" + posId + "】" + MoveInfo.SLog + " 更新托盘【" + num + "】为空,前后气缸前进");
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before);
TrayManager.UpdateTrayInfo(num); TrayManager.UpdateTrayInfo(num);
if (SecondMoveInfo.MoveType.Equals(LineMoveType.None).Equals(false) && SecondMoveInfo.MoveStep < LineMoveStep.MO_14_TopDown) if (SecondMoveInfo.MoveType.Equals(LineMoveType.None).Equals(false) && SecondMoveInfo.MoveStep < LineMoveStep.MO_14_TopDown)
{ {
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!