Commit 84590fab LN

ste名称修改

1 个父辈 53c0a7cc
...@@ -25,8 +25,8 @@ namespace OnlineStore.AssemblyLine ...@@ -25,8 +25,8 @@ namespace OnlineStore.AssemblyLine
private System.Timers.Timer startTimer = null; private System.Timers.Timer startTimer = null;
internal FrmLineStore() internal FrmLineStore()
{ {
CheckForIllegalCrossThreadCalls = false;
InitializeComponent(); InitializeComponent();
LogUtil.logBox = this.logBox;
startTimer = new System.Timers.Timer(); startTimer = new System.Timers.Timer();
startTimer.Interval = 1000; startTimer.Interval = 1000;
startTimer.Enabled = false; startTimer.Enabled = false;
...@@ -125,6 +125,7 @@ namespace OnlineStore.AssemblyLine ...@@ -125,6 +125,7 @@ namespace OnlineStore.AssemblyLine
} }
cmbTrayType.SelectedIndex = 0; cmbTrayType.SelectedIndex = 0;
cmbTray.SelectedIndex = 0; cmbTray.SelectedIndex = 0;
LogUtil.logBox = this.logBox;
LoadOk = true; LoadOk = true;
HideForm(); HideForm();
timer1.Start(); timer1.Start();
...@@ -807,6 +808,10 @@ namespace OnlineStore.AssemblyLine ...@@ -807,6 +808,10 @@ namespace OnlineStore.AssemblyLine
private void logBox_VisibleChanged(object sender, EventArgs e) private void logBox_VisibleChanged(object sender, EventArgs e)
{ {
if (!LoadOk)
{
return;
}
if (logBox.Visible) if (logBox.Visible)
{ {
LogUtil.UpdateLogbox(); LogUtil.UpdateLogbox();
......
...@@ -77,7 +77,8 @@ D2(上料模块出口) ...@@ -77,7 +77,8 @@ D2(上料模块出口)
皮带线1相机:GigE:MV-CE200-10GC (00D76546944) 皮带线1相机:GigE:MV-CE200-10GC (00D76546944)
皮带线2相机:GigE:MV-CE200-10GC (00D76546876) 皮带线2相机:GigE:MV-CE200-10GC (00D76546876)
5 出库时根据StatusBean返回data中的参数决定料盘流转到哪里
 5 出库时根据StatusBean返回data中的参数决定料盘流转到哪里
urgentReel: true 表示紧急料,需要出到料串上 urgentReel: true 表示紧急料,需要出到料串上
cutReel: true 表示分盘料,需要出到料串上 cutReel: true 表示分盘料,需要出到料串上
smallReel: true 小料(7x8),放置到小料架上 smallReel: true 小料(7x8),放置到小料架上
...@@ -86,7 +87,14 @@ D2(上料模块出口) ...@@ -86,7 +87,14 @@ D2(上料模块出口)
// 仓位命名: 4D01020304
//第1和第2位表示楼层(4D)
//第3和第4位表示料仓(01) 01 - 18为流水线料仓, 19 - 24为包装料仓
//第5和第6位表示列(02)
//第7和第8位表示行(03)
//第9和第10位表示隔板位置(04)
//例如: 4D12010124 表示4楼12号料仓第1列第1行架子上的第24个隔板位置
//4D19050208 表示4楼19号料仓(包装料仓)第5列第2行架子上的第8个隔板位置
......
...@@ -140,7 +140,7 @@ namespace OnlineStore.Common ...@@ -140,7 +140,7 @@ namespace OnlineStore.Common
logBox.AppendText(now.ToLongTimeString() + " " + msg + Environment.NewLine); //增加文本 logBox.AppendText(now.ToLongTimeString() + " " + msg + Environment.NewLine); //增加文本
TimeSpan span = DateTime.Now - lastTime; TimeSpan span = DateTime.Now - lastTime;
if (span.TotalSeconds > 30000) if (span.TotalSeconds > 3000000)
{ {
lastTime = DateTime.Now; lastTime = DateTime.Now;
logBox.Select(logBox.Text.Length, 0); //设置光标的位置到文本尾 logBox.Select(logBox.Text.Length, 0); //设置光标的位置到文本尾
...@@ -161,7 +161,7 @@ namespace OnlineStore.Common ...@@ -161,7 +161,7 @@ namespace OnlineStore.Common
logBox.Text = LastText; logBox.Text = LastText;
TimeSpan span = DateTime.Now - lastTime; TimeSpan span = DateTime.Now - lastTime;
if (span.TotalSeconds > 30000) if (span.TotalSeconds > 3000000)
{ {
lastTime = DateTime.Now; lastTime = DateTime.Now;
logBox.Select(logBox.Text.Length, 0); //设置光标的位置到文本尾 logBox.Select(logBox.Text.Length, 0); //设置光标的位置到文本尾
......
...@@ -153,7 +153,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -153,7 +153,7 @@ namespace OnlineStore.DeviceLibrary
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.DO_03_GetTraySize)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.DO_03_GetTraySize))
{ {
MoveInfo.NextMoveStep(LineMoveStep.DO_04_SeparateDeviceMove); MoveInfo.NextMoveStep(LineMoveStep.DO_04_SeparateMove);
if (LastWidth.Equals(7)) if (LastWidth.Equals(7))
{ {
LogInfo(hengyiName + "出口有料,料盘尺寸【" + LastWidth + "】上升分盘定位气缸"); LogInfo(hengyiName + "出口有料,料盘尺寸【" + LastWidth + "】上升分盘定位气缸");
...@@ -165,7 +165,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -165,7 +165,7 @@ namespace OnlineStore.DeviceLibrary
CylinderMove(MoveInfo, IO_Type.SeparateDevice_Up, IO_Type.SeparateDevice_Down); CylinderMove(MoveInfo, IO_Type.SeparateDevice_Up, IO_Type.SeparateDevice_Down);
} }
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.DO_04_SeparateDeviceMove)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.DO_04_SeparateMove))
{ {
if (TrayLine2.Line3CanRun && TrayLine1.Line3CanRun) if (TrayLine2.Line3CanRun && TrayLine1.Line3CanRun)
{ {
...@@ -180,13 +180,13 @@ namespace OnlineStore.DeviceLibrary ...@@ -180,13 +180,13 @@ namespace OnlineStore.DeviceLibrary
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.DO_05_LineRun)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.DO_05_LineRun))
{ {
MoveInfo.NextMoveStep(LineMoveStep.DO_06_Wait_SeparateDevice_Check); MoveInfo.NextMoveStep(LineMoveStep.DO_06_SeparateCheck);
Line3LastTrayP++; Line3LastTrayP++;
LogInfo(hengyiName + "出口有料,等待料盘到达分盘装置位置,最多等待5000"); LogInfo(hengyiName + "出口有料,等待料盘到达分盘装置位置,最多等待5000");
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(5000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(5000));
MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SeparateDevice_Check, IO_VALUE.HIGH)); MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SeparateDevice_Check, IO_VALUE.HIGH));
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.DO_06_Wait_SeparateDevice_Check)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.DO_06_SeparateCheck))
{ {
MoveInfo.NextMoveStep(LineMoveStep.DO_07_CRun); MoveInfo.NextMoveStep(LineMoveStep.DO_07_CRun);
LogInfo(hengyiName + "出口有料,最多等待2000"); LogInfo(hengyiName + "出口有料,最多等待2000");
......
...@@ -165,7 +165,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -165,7 +165,7 @@ namespace OnlineStore.DeviceLibrary
} }
break; break;
case LineMoveStep.FR_02_LineRun: case LineMoveStep.FR_02_LineRun:
MoveInfo.NextMoveStep(LineMoveStep.FR_03_MoveCylinder_Up); MoveInfo.NextMoveStep(LineMoveStep.FR_03_CylinderUp);
LogInfo(MoveInfo.MoveType + ":" + MoveInfo.SLog + ":链条停止转动,上料横移机构上升,出口顶升下降,所有阻挡气缸上升"); LogInfo(MoveInfo.MoveType + ":" + MoveInfo.SLog + ":链条停止转动,上料横移机构上升,出口顶升下降,所有阻挡气缸上升");
//线体停止 //线体停止
IOMove(IO_Type.SL_Line_Run, IO_VALUE.LOW); IOMove(IO_Type.SL_Line_Run, IO_VALUE.LOW);
...@@ -187,7 +187,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -187,7 +187,7 @@ namespace OnlineStore.DeviceLibrary
CylinderMove(MoveInfo, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down); CylinderMove(MoveInfo, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down);
} }
break; break;
case LineMoveStep.FR_03_MoveCylinder_Up: case LineMoveStep.FR_03_CylinderUp:
MoveInfo.NextMoveStep(LineMoveStep.FR_04_UpdownAxisHome); MoveInfo.NextMoveStep(LineMoveStep.FR_04_UpdownAxisHome);
LogInfo(MoveInfo.MoveType + ":" + MoveInfo.SLog + ": 升降伺服回原点"); LogInfo(MoveInfo.MoveType + ":" + MoveInfo.SLog + ": 升降伺服回原点");
UpdownAxis.HomeMove(MoveInfo); UpdownAxis.HomeMove(MoveInfo);
...@@ -202,7 +202,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -202,7 +202,7 @@ namespace OnlineStore.DeviceLibrary
if (MoveCylineCanTakeOrGive()) if (MoveCylineCanTakeOrGive())
{ {
MoveInfo.NextMoveStep(LineMoveStep.FR_06_MoveCylinder_Give); MoveInfo.NextMoveStep(LineMoveStep.FR_06_CylinderGive);
if (Config.IsCanOut.Equals(1)) if (Config.IsCanOut.Equals(1))
{ {
LogInfo(MoveInfo.MoveType + ":" + MoveInfo.SLog + ": 上料横移气缸取料端SOL"); LogInfo(MoveInfo.MoveType + ":" + MoveInfo.SLog + ": 上料横移气缸取料端SOL");
...@@ -221,7 +221,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -221,7 +221,7 @@ namespace OnlineStore.DeviceLibrary
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up); CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
} }
break; break;
case LineMoveStep.FR_06_MoveCylinder_Give: case LineMoveStep.FR_06_CylinderGive:
MoveInfo.NextMoveStep(LineMoveStep.FR_11_BatchAxisHome); MoveInfo.NextMoveStep(LineMoveStep.FR_11_BatchAxisHome);
MoveInfo.TimeOutSeconds = 120; MoveInfo.TimeOutSeconds = 120;
LogInfo(MoveInfo.MoveType + ":" + MoveInfo.SLog + ":提升伺服回原点"); LogInfo(MoveInfo.MoveType + ":" + MoveInfo.SLog + ":提升伺服回原点");
...@@ -234,21 +234,21 @@ namespace OnlineStore.DeviceLibrary ...@@ -234,21 +234,21 @@ namespace OnlineStore.DeviceLibrary
BatchAxis.AbsMove(MoveInfo, Config.BatchAxisP2, Config.BatchAxis_P2Speed); BatchAxis.AbsMove(MoveInfo, Config.BatchAxisP2, Config.BatchAxis_P2Speed);
break; break;
case LineMoveStep.FR_12_BatchAxisToP2: case LineMoveStep.FR_12_BatchAxisToP2:
MoveInfo.NextMoveStep(LineMoveStep.FR_13_LocationCylinder_Down); MoveInfo.NextMoveStep(LineMoveStep.FR_13_LocationDown);
LogInfo(MoveInfo.MoveType + ":" + MoveInfo.SLog + ": 放开定位气缸,升降伺服到P1"); LogInfo(MoveInfo.MoveType + ":" + MoveInfo.SLog + ": 放开定位气缸,升降伺服到P1");
TrayLCylinderAfter(MoveInfo); TrayLCylinderAfter(MoveInfo);
Thread.Sleep(50); Thread.Sleep(50);
UpdownAxis.AbsMove(MoveInfo, Config.UpDownAxisP1, Config.UpdownAxis_P1Speed); UpdownAxis.AbsMove(MoveInfo, Config.UpDownAxisP1, Config.UpdownAxis_P1Speed);
break; break;
case LineMoveStep.FR_13_LocationCylinder_Down: case LineMoveStep.FR_13_LocationDown:
MoveInfo.NextMoveStep(LineMoveStep.FR_14_TopCylinderDown); MoveInfo.NextMoveStep(LineMoveStep.FR_14_TopDown);
LogInfo(MoveInfo.MoveType + ":" + MoveInfo.SLog + ":SL1定位气缸下降SOL,出口顶升气缸下降,夹紧气缸放松"); LogInfo(MoveInfo.MoveType + ":" + MoveInfo.SLog + ":SL1定位气缸下降SOL,出口顶升气缸下降,夹紧气缸放松");
CylinderMove(MoveInfo, IO_Type.SL_LocationCylinder_Up, IO_Type.SL_LocationCylinder_Down); CylinderMove(MoveInfo, IO_Type.SL_LocationCylinder_Up, IO_Type.SL_LocationCylinder_Down);
CylinderMove(MoveInfo, IO_Type.SL_OutTopCylinder_Up, IO_Type.SL_OutTopCylinder_Down); CylinderMove(MoveInfo, IO_Type.SL_OutTopCylinder_Up, IO_Type.SL_OutTopCylinder_Down);
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Tighten, IO_Type.SL_MoveCylinder_Slack); CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Tighten, IO_Type.SL_MoveCylinder_Slack);
break; break;
case LineMoveStep.FR_14_TopCylinderDown: case LineMoveStep.FR_14_TopDown:
MoveInfo.NextMoveStep(LineMoveStep.FR_15_BatchAxisToP1); MoveInfo.NextMoveStep(LineMoveStep.FR_15_BatchAxisToP1);
//判断定位工位是否有料架 //判断定位工位是否有料架
......
...@@ -72,7 +72,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -72,7 +72,7 @@ namespace OnlineStore.DeviceLibrary
if (CurrTrayIsNeed(currTrayNum, true)) if (CurrTrayIsNeed(currTrayNum, true))
{ {
SecondMoveInfo.NewMove(LineMoveType.CheckFixture, CheckParam); SecondMoveInfo.NewMove(LineMoveType.CheckFixture, CheckParam);
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopCylinderUp); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopUp);
CheckLog("检测到SW_TrayCheck:" + SecondMoveInfo.SLog + "横移顶升气缸上升 )"); CheckLog("检测到SW_TrayCheck:" + SecondMoveInfo.SLog + "横移顶升气缸上升 )");
CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Down, IO_Type.SW_TopCylinder_Up); CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Down, IO_Type.SW_TopCylinder_Up);
} }
...@@ -88,7 +88,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -88,7 +88,7 @@ namespace OnlineStore.DeviceLibrary
if (TrayManager.checkWatch(swWaitWatch, TrayManager.SwTrayWaitTime, true)) if (TrayManager.checkWatch(swWaitWatch, TrayManager.SwTrayWaitTime, true))
{ {
SecondMoveInfo.NewMove(LineMoveType.CheckFixture, CheckParam); SecondMoveInfo.NewMove(LineMoveType.CheckFixture, CheckParam);
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_00_StopCylinder1Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_00_Stop1Down);
CheckLog("检测到SW_StopCheck:" + SecondMoveInfo.SLog + "阻挡气缸下降 ,等待" + TrayManager.StopDownWaitTime); CheckLog("检测到SW_StopCheck:" + SecondMoveInfo.SLog + "阻挡气缸下降 ,等待" + TrayManager.StopDownWaitTime);
IOMove(IO_Type.SW_StopDown, IO_VALUE.HIGH); IOMove(IO_Type.SW_StopDown, IO_VALUE.HIGH);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.StopDownWaitTime)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.StopDownWaitTime));
...@@ -111,7 +111,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -111,7 +111,7 @@ namespace OnlineStore.DeviceLibrary
{ {
SecondMoveInfo.NewMove(LineMoveType.CheckFixture); SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
CheckLog("检测到FL_TrayCheck:" + SecondMoveInfo.SLog + " FL阻挡1上升)"); CheckLog("检测到FL_TrayCheck:" + SecondMoveInfo.SLog + " FL阻挡1上升)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_StopCylinder2Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
IOMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW); IOMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW));
} }
...@@ -122,7 +122,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -122,7 +122,7 @@ namespace OnlineStore.DeviceLibrary
{ {
//托盘在第一个阻挡处 //托盘在第一个阻挡处
SecondMoveInfo.NewMove(LineMoveType.CheckFixture); SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_00_StopCylinder1Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_00_Stop1Down);
CheckLog(" 检测到FL_StopCheck:" + SecondMoveInfo.SLog + " FL阻挡1下降 ,等待 "+ TrayManager.StopDownWaitTime); CheckLog(" 检测到FL_StopCheck:" + SecondMoveInfo.SLog + " FL阻挡1下降 ,等待 "+ TrayManager.StopDownWaitTime);
IOMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.HIGH); IOMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.HIGH);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down1, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down1, IO_VALUE.HIGH));
...@@ -152,11 +152,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -152,11 +152,11 @@ namespace OnlineStore.DeviceLibrary
} }
#region 托盘检测 #region 托盘检测
if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_00_StopCylinder1Down)) if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_00_Stop1Down))
{ {
if (Config.SidesWayNum <= 0) if (Config.SidesWayNum <= 0)
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_StopCylinder2Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
CheckLog("托盘检测:" + SecondMoveInfo.SLog + "阻挡1上升,等待FL_TrayCheck=1)"); CheckLog("托盘检测:" + SecondMoveInfo.SLog + "阻挡1上升,等待FL_TrayCheck=1)");
IOMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW); IOMove(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down1, IO_VALUE.LOW));
...@@ -183,7 +183,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -183,7 +183,7 @@ namespace OnlineStore.DeviceLibrary
{ {
if (IOValue(IO_Type.SW_TrayCheck).Equals(IO_VALUE.HIGH)) if (IOValue(IO_Type.SW_TrayCheck).Equals(IO_VALUE.HIGH))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_StopCylinder2Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
CheckLog("托盘检测:" + SecondMoveInfo.SLog + "阻挡气缸上升,等待SW_TrayCheck=1)"); CheckLog("托盘检测:" + SecondMoveInfo.SLog + "阻挡气缸上升,等待SW_TrayCheck=1)");
IOMove(IO_Type.SW_StopDown, IO_VALUE.LOW); IOMove(IO_Type.SW_StopDown, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW_TrayCheck, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW_TrayCheck, IO_VALUE.HIGH));
...@@ -197,7 +197,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -197,7 +197,7 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.SwTrayWaitTime)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.SwTrayWaitTime));
} }
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_03_StopCylinder2Down)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_03_Stop2Down))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_04_Wait); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_04_Wait);
CheckLog("托盘检测:" + SecondMoveInfo.SLog + " ,等待编码信号稳定)"); CheckLog("托盘检测:" + SecondMoveInfo.SLog + " ,等待编码信号稳定)");
...@@ -212,7 +212,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -212,7 +212,7 @@ namespace OnlineStore.DeviceLibrary
if (CurrTrayIsNeed(currTrayNum, true)) if (CurrTrayIsNeed(currTrayNum, true))
{ {
SecondMoveInfo.MoveParam = CheckParam; SecondMoveInfo.MoveParam = CheckParam;
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopCylinderUp); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopUp);
if (Config.SidesWayNum <= 0) if (Config.SidesWayNum <= 0)
{ {
CheckLog("托盘检测: " + SecondMoveInfo.SLog + " 顶升气缸上 升 )"); CheckLog("托盘检测: " + SecondMoveInfo.SLog + " 顶升气缸上 升 )");
...@@ -241,16 +241,16 @@ namespace OnlineStore.DeviceLibrary ...@@ -241,16 +241,16 @@ namespace OnlineStore.DeviceLibrary
} }
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_06_TopCylinderUp)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_06_TopUp))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_07_LocationCylinderUp); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_07_LocationUp);
CheckLog("托盘检测: " + SecondMoveInfo.SLog + " , 定位气缸上升 )"); CheckLog("托盘检测: " + SecondMoveInfo.SLog + " , 定位气缸上升 )");
if (Config.SidesWayNum > 0) if (Config.SidesWayNum > 0)
{ {
CylinderMove(SecondMoveInfo, IO_Type.SW_LocationCylinder_Down, IO_Type.SW_LocationCylinder_Up); CylinderMove(SecondMoveInfo, IO_Type.SW_LocationCylinder_Down, IO_Type.SW_LocationCylinder_Up);
} }
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_07_LocationCylinderUp)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_07_LocationUp))
{ {
CheckLog("托盘阻挡*************** 托盘号【" + currTrayNum + "】"); CheckLog("托盘阻挡*************** 托盘号【" + currTrayNum + "】");
...@@ -278,18 +278,18 @@ namespace OnlineStore.DeviceLibrary ...@@ -278,18 +278,18 @@ namespace OnlineStore.DeviceLibrary
{ {
if (Config.SidesWayNum > 0) if (Config.SidesWayNum > 0)
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_13_LoactionCylinder_Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_13_LoactionDown);
SInLog("托盘放行, " + SecondMoveInfo.SLog + " 托盘开始放行,环形线定位气缸下降"); SInLog("托盘放行, " + SecondMoveInfo.SLog + " 托盘开始放行,环形线定位气缸下降");
CylinderMove(SecondMoveInfo, IO_Type.SW_LocationCylinder_Up, IO_Type.SW_LocationCylinder_Down); CylinderMove(SecondMoveInfo, IO_Type.SW_LocationCylinder_Up, IO_Type.SW_LocationCylinder_Down);
} }
else else
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopCylinder_Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
CheckLog("托盘放行, " + SecondMoveInfo.SLog + " , 顶升气缸下降)"); CheckLog("托盘放行, " + SecondMoveInfo.SLog + " , 顶升气缸下降)");
CylinderMove(SecondMoveInfo, IO_Type.FL_TopCylinder_Up, IO_Type.FL_TopCylinder_Down); CylinderMove(SecondMoveInfo, IO_Type.FL_TopCylinder_Up, IO_Type.FL_TopCylinder_Down);
} }
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_13_LoactionCylinder_Down)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_13_LoactionDown))
{ {
if (Config.SidesWayNum.Equals(2)) if (Config.SidesWayNum.Equals(2))
{ {
...@@ -300,12 +300,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -300,12 +300,12 @@ namespace OnlineStore.DeviceLibrary
} }
else else
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopCylinder_Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
CheckLog("托盘放行, " + SecondMoveInfo.SLog + " ,环形线顶升气缸下降)"); CheckLog("托盘放行, " + SecondMoveInfo.SLog + " ,环形线顶升气缸下降)");
CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down); CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Up, IO_Type.SW_TopCylinder_Down);
} }
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_14_TopCylinder_Down)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_14_TopDown))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_15_WaitCanGo); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_15_WaitCanGo);
if (Config.SidesWayNum > 0) if (Config.SidesWayNum > 0)
...@@ -323,7 +323,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -323,7 +323,7 @@ namespace OnlineStore.DeviceLibrary
} }
else else
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_StopCylinder2_Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_Stop2Down);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,阻挡气缸1-2下降,等待"+TrayManager.StopDownWaitTime); CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,阻挡气缸1-2下降,等待"+TrayManager.StopDownWaitTime);
IOMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.HIGH); IOMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.HIGH);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down2, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down2, IO_VALUE.HIGH));
...@@ -331,14 +331,14 @@ namespace OnlineStore.DeviceLibrary ...@@ -331,14 +331,14 @@ namespace OnlineStore.DeviceLibrary
} }
// SecondMoveInfo.EndStepWait(); // SecondMoveInfo.EndStepWait();
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_16_StopCylinder2_Down)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_16_Stop2Down))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_17_Tray_Check); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_17_Stop2Check);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,上升阻挡气缸2, 等待托盘离开"); CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,上升阻挡气缸2, 等待托盘离开");
IOMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.LOW); IOMove(IO_Type.FL_StopCylinder_Down2, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down2, IO_VALUE.LOW)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.FL_StopCylinder_Down2, IO_VALUE.LOW));
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_17_Tray_Check)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_17_Stop2Check))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_18_StopCylinder_Back); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_18_StopCylinder_Back);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,等待托盘离开 )"); CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,等待托盘离开 )");
...@@ -824,12 +824,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -824,12 +824,12 @@ namespace OnlineStore.DeviceLibrary
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FI_38_LineStop)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FI_38_LineStop))
{ {
MoveInfo.NextMoveStep(LineMoveStep.FI_39_TopCylinderDown); MoveInfo.NextMoveStep(LineMoveStep.FI_39_TopDown);
InLog("上料完成" + MoveInfo.SLog + ", 料架到达出口,出口顶升下降 , "); InLog("上料完成" + MoveInfo.SLog + ", 料架到达出口,出口顶升下降 , ");
CylinderMove(MoveInfo, IO_Type.SL_OutTopCylinder_Up, IO_Type.SL_OutTopCylinder_Down); CylinderMove(MoveInfo, IO_Type.SL_OutTopCylinder_Up, IO_Type.SL_OutTopCylinder_Down);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300));
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FI_39_TopCylinderDown)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FI_39_TopDown))
{ {
MoveInfo.EndMove(); MoveInfo.EndMove();
runStatus = LineRunStatus.Runing; runStatus = LineRunStatus.Runing;
......
...@@ -21,7 +21,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -21,7 +21,7 @@ namespace OnlineStore.DeviceLibrary
if (CurrTrayIsNeed(currTrayNum, true)) if (CurrTrayIsNeed(currTrayNum, true))
{ {
SecondMoveInfo.NewMove(LineMoveType.CheckFixture, CheckParam); SecondMoveInfo.NewMove(LineMoveType.CheckFixture, CheckParam);
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopCylinderUp); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopUp);
CheckLog("检测到SW_TrayCheck:" + SecondMoveInfo.SLog + "横移顶升气缸上升 )"); CheckLog("检测到SW_TrayCheck:" + SecondMoveInfo.SLog + "横移顶升气缸上升 )");
CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Down, IO_Type.SW_TopCylinder_Up); CylinderMove(SecondMoveInfo, IO_Type.SW_TopCylinder_Down, IO_Type.SW_TopCylinder_Up);
return true; return true;
...@@ -180,12 +180,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -180,12 +180,12 @@ namespace OnlineStore.DeviceLibrary
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_01_TrayLocation_After)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_01_TrayLocation_After))
{ {
MoveInfo.NextMoveStep(LineMoveStep.FO_02_LocationCylinder_Down); MoveInfo.NextMoveStep(LineMoveStep.FO_02_LocationDown);
OutLog("出库: " + MoveInfo.SLog + " 开始:定位气缸下降,提升轴移动到P1"); OutLog("出库: " + MoveInfo.SLog + " 开始:定位气缸下降,提升轴移动到P1");
CylinderMove(MoveInfo, IO_Type.SL_LocationCylinder_Up, IO_Type.SL_LocationCylinder_Down); CylinderMove(MoveInfo, IO_Type.SL_LocationCylinder_Up, IO_Type.SL_LocationCylinder_Down);
BatchAxis.AbsMove(MoveInfo, Config.BatchAxisP1, Config.BatchAxis_P1Speed); BatchAxis.AbsMove(MoveInfo, Config.BatchAxisP1, Config.BatchAxis_P1Speed);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_02_LocationCylinder_Down)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_02_LocationDown))
{ {
LineOutStoreProcess(); LineOutStoreProcess();
} }
...@@ -198,7 +198,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -198,7 +198,7 @@ namespace OnlineStore.DeviceLibrary
if (IOValue(IO_Type.SL_Location_Check).Equals(IO_VALUE.HIGH)) if (IOValue(IO_Type.SL_Location_Check).Equals(IO_VALUE.HIGH))
{ {
//定位工位有料架,直接开始入料 //定位工位有料架,直接开始入料
MoveInfo.NextMoveStep(LineMoveStep.FO_05_LocationCylinder_Up); MoveInfo.NextMoveStep(LineMoveStep.FO_05_LocationUp);
OutLog("定位工位检测到料架: " + MoveInfo.SLog + " 缓冲阻挡下降, 定位气缸上升,读取料架号"); OutLog("定位工位检测到料架: " + MoveInfo.SLog + " 缓冲阻挡下降, 定位气缸上升,读取料架号");
IOMove(IO_Type.SL_Buffer_StopDown, IO_VALUE.LOW);//缓冲阻挡下降 IOMove(IO_Type.SL_Buffer_StopDown, IO_VALUE.LOW);//缓冲阻挡下降
CylinderMove(MoveInfo, IO_Type.SL_LocationCylinder_Down, IO_Type.SW4_LocationCylinder_Up); CylinderMove(MoveInfo, IO_Type.SL_LocationCylinder_Down, IO_Type.SW4_LocationCylinder_Up);
...@@ -213,7 +213,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -213,7 +213,7 @@ namespace OnlineStore.DeviceLibrary
OutLog(" 未检测到料架,料架处理结束"); OutLog(" 未检测到料架,料架处理结束");
} }
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_05_LocationCylinder_Up)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_05_LocationUp))
{ {
MoveInfo.NextMoveStep(LineMoveStep.FO_06_BatchAxisToP2); MoveInfo.NextMoveStep(LineMoveStep.FO_06_BatchAxisToP2);
OutLog("准备出库料架 " + MoveInfo.SLog + " :提升轴下降到位P2,定位气缸上升"); OutLog("准备出库料架 " + MoveInfo.SLog + " :提升轴下降到位P2,定位气缸上升");
...@@ -276,14 +276,14 @@ namespace OnlineStore.DeviceLibrary ...@@ -276,14 +276,14 @@ namespace OnlineStore.DeviceLibrary
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_31_BatchAxisToP2)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_31_BatchAxisToP2))
{ {
MoveInfo.NextMoveStep(LineMoveStep.FO_32_TrayLocationCylinder_After); MoveInfo.NextMoveStep(LineMoveStep.FO_32_TrayLocation_After);
OutLog("出料完成 " + MoveInfo.SLog + ": 升降盘定位气缸后退,重置OutEndSendShelfOut=fasle,OutStoreHeight = -1"); OutLog("出料完成 " + MoveInfo.SLog + ": 升降盘定位气缸后退,重置OutEndSendShelfOut=fasle,OutStoreHeight = -1");
OutEndSendShelfOut = false; OutEndSendShelfOut = false;
OutStoreHeight = -1; OutStoreHeight = -1;
OutStoreCount = 0; OutStoreCount = 0;
TrayLCylinderAfter(MoveInfo); TrayLCylinderAfter(MoveInfo);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_32_TrayLocationCylinder_After)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_32_TrayLocation_After))
{ {
MoveInfo.NextMoveStep(LineMoveStep.FO_33_BatchAxisToP1); MoveInfo.NextMoveStep(LineMoveStep.FO_33_BatchAxisToP1);
OutLog("出料完成 " + MoveInfo.SLog + ":提升伺服到P1点,定位气缸下降"); OutLog("出料完成 " + MoveInfo.SLog + ":提升伺服到P1点,定位气缸下降");
...@@ -327,12 +327,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -327,12 +327,12 @@ namespace OnlineStore.DeviceLibrary
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_37_LineStop)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_37_LineStop))
{ {
MoveInfo.NextMoveStep(LineMoveStep.FO_38_TopCylinderDown); MoveInfo.NextMoveStep(LineMoveStep.FO_38_TopDown);
OutLog("出料完成 " + MoveInfo.SLog + ", 料架到达出口,出口顶升下降 , "); OutLog("出料完成 " + MoveInfo.SLog + ", 料架到达出口,出口顶升下降 , ");
CylinderMove(MoveInfo, IO_Type.SL_OutTopCylinder_Up, IO_Type.SL_OutTopCylinder_Down); CylinderMove(MoveInfo, IO_Type.SL_OutTopCylinder_Up, IO_Type.SL_OutTopCylinder_Down);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300));
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_38_TopCylinderDown)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_38_TopDown))
{ {
MoveInfo.EndMove(); MoveInfo.EndMove();
runStatus = LineRunStatus.Runing; runStatus = LineRunStatus.Runing;
...@@ -356,7 +356,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -356,7 +356,7 @@ namespace OnlineStore.DeviceLibrary
{ {
if (MoveCylineCanTakeOrGive()) if (MoveCylineCanTakeOrGive())
{ {
MoveInfo.NextMoveStep(LineMoveStep.FO_212_MoveCylinder_Take); MoveInfo.NextMoveStep(LineMoveStep.FO_212_CylinderTake);
OutLog("紧急出料移栽" + MoveInfo.SLog + ":上料横移机构取料端"); OutLog("紧急出料移栽" + MoveInfo.SLog + ":上料横移机构取料端");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Give, IO_Type.SL_MoveCylinder_Take); CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Give, IO_Type.SL_MoveCylinder_Take);
} }
...@@ -367,7 +367,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -367,7 +367,7 @@ namespace OnlineStore.DeviceLibrary
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up); CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
} }
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_212_MoveCylinder_Take)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_212_CylinderTake))
{ {
MoveInfo.NextMoveStep(LineMoveStep.FO_213_UpdownAxisToP2); MoveInfo.NextMoveStep(LineMoveStep.FO_213_UpdownAxisToP2);
int targetP = Config.GetUpdownPositionP2(MoveInfo.MoveParam.PlateH); int targetP = Config.GetUpdownPositionP2(MoveInfo.MoveParam.PlateH);
...@@ -376,23 +376,23 @@ namespace OnlineStore.DeviceLibrary ...@@ -376,23 +376,23 @@ namespace OnlineStore.DeviceLibrary
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_213_UpdownAxisToP2)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_213_UpdownAxisToP2))
{ {
MoveInfo.NextMoveStep(LineMoveStep.FO_214_MoveCylinder_Down); MoveInfo.NextMoveStep(LineMoveStep.FO_214_CylinderDown);
OutLog("紧急出料移栽" + MoveInfo.SLog + ":上料横移机构下降"); OutLog("紧急出料移栽" + MoveInfo.SLog + ":上料横移机构下降");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Up, IO_Type.SL_MoveCylinder_Down); CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Up, IO_Type.SL_MoveCylinder_Down);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_214_MoveCylinder_Down)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_214_CylinderDown))
{ {
MoveInfo.NextMoveStep(LineMoveStep.FO_215_MoveCylinder_Tighten); MoveInfo.NextMoveStep(LineMoveStep.FO_215_CylinderTighten);
OutLog("紧急出料移栽" + MoveInfo.SLog + ":上料气缸夹紧"); OutLog("紧急出料移栽" + MoveInfo.SLog + ":上料气缸夹紧");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Slack, IO_Type.SL_MoveCylinder_Tighten); CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Slack, IO_Type.SL_MoveCylinder_Tighten);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_215_MoveCylinder_Tighten)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_215_CylinderTighten))
{ {
MoveInfo.NextMoveStep(LineMoveStep.FO_216_MoveCylinder_Up); MoveInfo.NextMoveStep(LineMoveStep.FO_216_CylinderUp);
OutLog("紧急出料移栽" + MoveInfo.SLog + ":上料横移机构上升"); OutLog("紧急出料移栽" + MoveInfo.SLog + ":上料横移机构上升");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up); CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_216_MoveCylinder_Up)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_216_CylinderUp))
{ {
MoveInfo.NextMoveStep(LineMoveStep.FO_217_UpdownAxisToP1); MoveInfo.NextMoveStep(LineMoveStep.FO_217_UpdownAxisToP1);
OutLog("紧急出料移栽" + MoveInfo.SLog + ":升降伺服到P1"); OutLog("紧急出料移栽" + MoveInfo.SLog + ":升降伺服到P1");
...@@ -407,7 +407,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -407,7 +407,7 @@ namespace OnlineStore.DeviceLibrary
{ {
if (MoveCylineCanTakeOrGive()) if (MoveCylineCanTakeOrGive())
{ {
MoveInfo.NextMoveStep(LineMoveStep.FO_218_MoveCylinder_Give); MoveInfo.NextMoveStep(LineMoveStep.FO_218_CylinderGive);
OutLog("紧急出料移栽" + MoveInfo.SLog + ":上料横移机构到放料端"); OutLog("紧急出料移栽" + MoveInfo.SLog + ":上料横移机构到放料端");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Take, IO_Type.SL_MoveCylinder_Give); CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Take, IO_Type.SL_MoveCylinder_Give);
} }
...@@ -419,7 +419,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -419,7 +419,7 @@ namespace OnlineStore.DeviceLibrary
} }
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_218_MoveCylinder_Give)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_218_CylinderGive))
{ {
MoveInfo.NextMoveStep(LineMoveStep.FO_219_UpdownAxisToP3); MoveInfo.NextMoveStep(LineMoveStep.FO_219_UpdownAxisToP3);
OutLog("紧急出料移栽 " + MoveInfo.SLog + ":移栽伺服到P3"); OutLog("紧急出料移栽 " + MoveInfo.SLog + ":移栽伺服到P3");
...@@ -429,12 +429,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -429,12 +429,12 @@ namespace OnlineStore.DeviceLibrary
{ {
OutStoreHeight += MoveInfo.MoveParam.PlateH; OutStoreHeight += MoveInfo.MoveParam.PlateH;
OutStoreCount++; OutStoreCount++;
MoveInfo.NextMoveStep(LineMoveStep.FO_220_MoveCylinder_Slack); MoveInfo.NextMoveStep(LineMoveStep.FO_220_CylinderSlack);
OutLog("紧急出料移栽 " + MoveInfo.SLog + ":出料横移机构放松,累积出库【" + OutStoreCount + "】盘【" + OutStoreHeight + "】mm"); OutLog("紧急出料移栽 " + MoveInfo.SLog + ":出料横移机构放松,累积出库【" + OutStoreCount + "】盘【" + OutStoreHeight + "】mm");
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Tighten, IO_Type.SL_MoveCylinder_Slack); CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Tighten, IO_Type.SL_MoveCylinder_Slack);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_220_MoveCylinder_Slack)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FO_220_CylinderSlack))
{ {
MoveInfo.NextMoveStep(LineMoveStep.FO_221_UpdownAxisToP1); MoveInfo.NextMoveStep(LineMoveStep.FO_221_UpdownAxisToP1);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
......
...@@ -355,9 +355,9 @@ namespace OnlineStore.DeviceLibrary ...@@ -355,9 +355,9 @@ namespace OnlineStore.DeviceLibrary
bool isNeedAllReset = false; bool isNeedAllReset = false;
if (isInSuddenDown || isNoAirCheck) if (isInSuddenDown || isNoAirCheck)
{ {
TrayManager.LineNeedEmptyTrayNum = 0; //TrayManager.LineNeedEmptyTrayNum = 0;
isNeedAllReset = true; isNeedAllReset = true;
LogUtil.error( Name + "收到复位信号,在急停中或没有气压中,强制所有设备复位,清理出库需要的托盘数量~"); LogUtil.error( Name + "收到复位信号,急停中或没有气压报警中,强制所有设备复位~");
} }
else if ((runStatus == LineRunStatus.HomeMoving || runStatus == LineRunStatus.Reset) && NoAlarm()) else if ((runStatus == LineRunStatus.HomeMoving || runStatus == LineRunStatus.Reset) && NoAlarm())
{ {
...@@ -926,7 +926,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -926,7 +926,8 @@ namespace OnlineStore.DeviceLibrary
} }
else else
{ {
SetWarnMsg(moveEquip.Name + "在复位过程中报警,需要重新复位"); //SetWarnMsg(moveEquip.Name + "在复位过程中报警,需要重新复位");
LogUtil.error(Name+" "+ moveEquip.Name + "在复位过程中报警,需要重新复位");
} }
} }
} }
......
...@@ -240,7 +240,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -240,7 +240,7 @@ namespace OnlineStore.DeviceLibrary
{ {
Sw23TrayNum = trayNum; Sw23TrayNum = trayNum;
SW23_MoveInfo.NewMove(LineMoveType.InStore); SW23_MoveInfo.NewMove(LineMoveType.InStore);
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW02_WaitFixtureCheck); SW23_MoveInfo.NextMoveStep(LineMoveStep.SW02_WaitCheck);
SWLog("横移轨道23:检测到SW2_TrayCheck,定位气缸下降,等待横移2托盘检测信号,托盘号 [" + Sw23TrayNum + "] "); SWLog("横移轨道23:检测到SW2_TrayCheck,定位气缸下降,等待横移2托盘检测信号,托盘号 [" + Sw23TrayNum + "] ");
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH)); SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH));
CylinderMove(SW23_MoveInfo, IO_Type.SW2_LocationCylinder_Up, IO_Type.SW3_LocationCylinder_Down); CylinderMove(SW23_MoveInfo, IO_Type.SW2_LocationCylinder_Up, IO_Type.SW3_LocationCylinder_Down);
...@@ -258,7 +258,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -258,7 +258,7 @@ namespace OnlineStore.DeviceLibrary
{ {
Sw41TrayNum = trayNum; Sw41TrayNum = trayNum;
SW41_MoveInfo.NewMove(LineMoveType.InStore); SW41_MoveInfo.NewMove(LineMoveType.InStore);
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW02_WaitFixtureCheck); SW41_MoveInfo.NextMoveStep(LineMoveStep.SW02_WaitCheck);
SWLog("横移轨道41:检测到SW4_TrayCheck,定位气缸下降, 等待横移4托盘检测信号,更新托盘号 [" + Sw41TrayNum + "] "); SWLog("横移轨道41:检测到SW4_TrayCheck,定位气缸下降, 等待横移4托盘检测信号,更新托盘号 [" + Sw41TrayNum + "] ");
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH)); SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
CylinderMove(SW41_MoveInfo, IO_Type.SW4_LocationCylinder_Up, IO_Type.SW4_LocationCylinder_Down); CylinderMove(SW41_MoveInfo, IO_Type.SW4_LocationCylinder_Up, IO_Type.SW4_LocationCylinder_Down);
...@@ -361,7 +361,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -361,7 +361,7 @@ namespace OnlineStore.DeviceLibrary
if (TrayManager.checkWatch(sw41WaitWatch, TrayManager.SwTrayWaitTime, true)) if (TrayManager.checkWatch(sw41WaitWatch, TrayManager.SwTrayWaitTime, true))
{ {
SW41_MoveInfo.NewMove(LineMoveType.InStore); SW41_MoveInfo.NewMove(LineMoveType.InStore);
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW02_WaitFixtureCheck); SW41_MoveInfo.NextMoveStep(LineMoveStep.SW02_WaitCheck);
UpateSw41TrayNum(); UpateSw41TrayNum();
SWLog("横移轨道41:检测到SW4_TrayCheck,定位气缸下降, 等待横移4托盘检测信号,更新托盘号 [" + Sw41TrayNum + "] "); SWLog("横移轨道41:检测到SW4_TrayCheck,定位气缸下降, 等待横移4托盘检测信号,更新托盘号 [" + Sw41TrayNum + "] ");
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH)); SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
...@@ -409,7 +409,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -409,7 +409,7 @@ namespace OnlineStore.DeviceLibrary
if (TrayManager.checkWatch(sw23WaitWatch, TrayManager.SwTrayWaitTime, true)) if (TrayManager.checkWatch(sw23WaitWatch, TrayManager.SwTrayWaitTime, true))
{ {
SW23_MoveInfo.NewMove(LineMoveType.InStore); SW23_MoveInfo.NewMove(LineMoveType.InStore);
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW02_WaitFixtureCheck); SW23_MoveInfo.NextMoveStep(LineMoveStep.SW02_WaitCheck);
UpateSw23TrayNum(); UpateSw23TrayNum();
SWLog("横移轨道23:检测到SW2_TrayCheck,定位气缸下降,等待横移2托盘检测信号,更新托盘号 [" + Sw23TrayNum + "] "); SWLog("横移轨道23:检测到SW2_TrayCheck,定位气缸下降,等待横移2托盘检测信号,更新托盘号 [" + Sw23TrayNum + "] ");
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH)); SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH));
...@@ -525,7 +525,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -525,7 +525,7 @@ namespace OnlineStore.DeviceLibrary
{ {
if (IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.HIGH)) if (IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.HIGH))
{ {
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW02_WaitFixtureCheck); SW41_MoveInfo.NextMoveStep(LineMoveStep.SW02_WaitCheck);
SWLog("横移轨道41: 等待横移4托盘检测信号 ,SW4_StopDown上升 "); SWLog("横移轨道41: 等待横移4托盘检测信号 ,SW4_StopDown上升 ");
CheckAndMove(IO_Type.SW4_StopDown, IO_VALUE.LOW); CheckAndMove(IO_Type.SW4_StopDown, IO_VALUE.LOW);
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH)); SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
...@@ -540,7 +540,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -540,7 +540,7 @@ namespace OnlineStore.DeviceLibrary
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH)); SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
} }
} }
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW02_WaitFixtureCheck)) else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW02_WaitCheck))
{ {
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW03_TopCylinderUp); SW41_MoveInfo.NextMoveStep(LineMoveStep.SW03_TopCylinderUp);
SWLog("横移轨道41:顶升气缸上升 ,至少等待1000 "); SWLog("横移轨道41:顶升气缸上升 ,至少等待1000 ");
...@@ -562,12 +562,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -562,12 +562,12 @@ namespace OnlineStore.DeviceLibrary
} }
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW04_DriveMotorMove)) else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW04_DriveMotorMove))
{ {
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW05_WaitOutFixtureCheck); SW41_MoveInfo.NextMoveStep(LineMoveStep.SW05_WaitOutCheck);
SWLog("横移轨道41:等待托盘到达出口 "); SWLog("横移轨道41:等待托盘到达出口 ");
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(800)); SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(800));
SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_TrayCheck, IO_VALUE.HIGH)); SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW1_TrayCheck, IO_VALUE.HIGH));
} }
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW05_WaitOutFixtureCheck)) else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW05_WaitOutCheck))
{ {
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW06_WatOutFixture2); SW41_MoveInfo.NextMoveStep(LineMoveStep.SW06_WatOutFixture2);
SWLog("横移轨道41:再次验证托盘是否在出口处 "); SWLog("横移轨道41:再次验证托盘是否在出口处 ");
...@@ -577,7 +577,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -577,7 +577,7 @@ namespace OnlineStore.DeviceLibrary
} }
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW06_WatOutFixture2)) else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW06_WatOutFixture2))
{ {
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW07_TopCylinderDown); SW41_MoveInfo.NextMoveStep(LineMoveStep.SW07_TopDown);
SWLog("横移轨道41:托盘已到达出口,顶升气缸下降,判断入料1是否需要此托盘 "); SWLog("横移轨道41:托盘已到达出口,顶升气缸下降,判断入料1是否需要此托盘 ");
CylinderMove(SW41_MoveInfo, IO_Type.SW4_TopCylinder_Up, IO_Type.SW4_TopCylinder_Down); CylinderMove(SW41_MoveInfo, IO_Type.SW4_TopCylinder_Up, IO_Type.SW4_TopCylinder_Down);
Thread.Sleep(50); Thread.Sleep(50);
...@@ -586,7 +586,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -586,7 +586,7 @@ namespace OnlineStore.DeviceLibrary
CylinderMove(SW41_MoveInfo, IO_Type.SW1_TopCylinder_Up, IO_Type.SW1_TopCylinder_Down); CylinderMove(SW41_MoveInfo, IO_Type.SW1_TopCylinder_Up, IO_Type.SW1_TopCylinder_Down);
} }
} }
else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW07_TopCylinderDown)) else if (SW41_MoveInfo.MoveStep.Equals(LineMoveStep.SW07_TopDown))
{ {
//开始入库 //开始入库
bool result = FeedingEquipMap[101].CanStartCheckOut(Sw41TrayNum); bool result = FeedingEquipMap[101].CanStartCheckOut(Sw41TrayNum);
...@@ -675,7 +675,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -675,7 +675,7 @@ namespace OnlineStore.DeviceLibrary
{ {
if (IOValue(IO_Type.SW2_TrayCheck).Equals(IO_VALUE.HIGH)) if (IOValue(IO_Type.SW2_TrayCheck).Equals(IO_VALUE.HIGH))
{ {
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW02_WaitFixtureCheck); SW23_MoveInfo.NextMoveStep(LineMoveStep.SW02_WaitCheck);
SWLog("横移轨道23: 等待横移4托盘检测信号 ,SW2_StopDown上升 "); SWLog("横移轨道23: 等待横移4托盘检测信号 ,SW2_StopDown上升 ");
CheckAndMove(IO_Type.SW2_StopDown, IO_VALUE.LOW); CheckAndMove(IO_Type.SW2_StopDown, IO_VALUE.LOW);
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH)); SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH));
...@@ -690,7 +690,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -690,7 +690,7 @@ namespace OnlineStore.DeviceLibrary
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH)); SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW2_TrayCheck, IO_VALUE.HIGH));
} }
} }
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW02_WaitFixtureCheck)) else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW02_WaitCheck))
{ {
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW03_TopCylinderUp); SW23_MoveInfo.NextMoveStep(LineMoveStep.SW03_TopCylinderUp);
SWLog("横移轨道23:顶升气缸上升 ,至少等待1000 "); SWLog("横移轨道23:顶升气缸上升 ,至少等待1000 ");
...@@ -712,12 +712,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -712,12 +712,12 @@ namespace OnlineStore.DeviceLibrary
} }
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW04_DriveMotorMove)) else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW04_DriveMotorMove))
{ {
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW05_WaitOutFixtureCheck); SW23_MoveInfo.NextMoveStep(LineMoveStep.SW05_WaitOutCheck);
SWLog("横移轨道23:等待托盘到达出口 "); SWLog("横移轨道23:等待托盘到达出口 ");
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(800)); SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(800));
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_TrayCheck, IO_VALUE.HIGH)); SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW3_TrayCheck, IO_VALUE.HIGH));
} }
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW05_WaitOutFixtureCheck)) else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW05_WaitOutCheck))
{ {
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW06_WatOutFixture2); SW23_MoveInfo.NextMoveStep(LineMoveStep.SW06_WatOutFixture2);
SWLog("横移轨道23:再次验证托盘是否在出口处 "); SWLog("横移轨道23:再次验证托盘是否在出口处 ");
...@@ -727,7 +727,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -727,7 +727,7 @@ namespace OnlineStore.DeviceLibrary
} }
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW06_WatOutFixture2)) else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW06_WatOutFixture2))
{ {
SW23_MoveInfo.NextMoveStep(LineMoveStep.SW07_TopCylinderDown); SW23_MoveInfo.NextMoveStep(LineMoveStep.SW07_TopDown);
SWLog("横移轨道23:托盘已到达出口,顶升气缸下降 "); SWLog("横移轨道23:托盘已到达出口,顶升气缸下降 ");
CylinderMove(SW23_MoveInfo, IO_Type.SW2_TopCylinder_Up, IO_Type.SW2_TopCylinder_Down); CylinderMove(SW23_MoveInfo, IO_Type.SW2_TopCylinder_Up, IO_Type.SW2_TopCylinder_Down);
Thread.Sleep(50); Thread.Sleep(50);
...@@ -736,7 +736,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -736,7 +736,7 @@ namespace OnlineStore.DeviceLibrary
CylinderMove(SW23_MoveInfo, IO_Type.SW3_TopCylinder_Up, IO_Type.SW3_TopCylinder_Down); CylinderMove(SW23_MoveInfo, IO_Type.SW3_TopCylinder_Up, IO_Type.SW3_TopCylinder_Down);
} }
} }
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW07_TopCylinderDown)) else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW07_TopDown))
{ {
//开始入库 //开始入库
bool result = FeedingEquipMap[104].CanStartCheckOut(Sw23TrayNum); bool result = FeedingEquipMap[104].CanStartCheckOut(Sw23TrayNum);
...@@ -841,7 +841,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -841,7 +841,7 @@ namespace OnlineStore.DeviceLibrary
} }
//前进后退气缸后退以后才可以出库 //前进后退气缸后退以后才可以出库
else if (move.runStatus.Equals(LineRunStatus.Busy) && move.MoveInfo.MoveType.Equals(LineMoveType.OutStore) && else if (move.runStatus.Equals(LineRunStatus.Busy) && move.MoveInfo.MoveType.Equals(LineMoveType.OutStore) &&
move.MoveInfo.MoveStep >= (LineMoveStep.MO_58_UpDownCylinderDown)) move.MoveInfo.MoveStep >= (LineMoveStep.MO_58_CylinderDown))
{ {
return true; return true;
} }
......
...@@ -63,7 +63,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -63,7 +63,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.EndMove(); MoveInfo.EndMove();
SecondMoveInfo.EndMove(); SecondMoveInfo.EndMove();
runStatus = LineRunStatus.HomeMoving; runStatus = LineRunStatus.HomeMoving;
LogInfo("开始原点返回: 上下气缸回原点,阻挡1气缸上升 "); LogInfo("开始 原点返回: 升降轴回原点,阻挡气缸上升 ");
MoveInfo.NewMove(LineMoveType.ReturnHome); MoveInfo.NewMove(LineMoveType.ReturnHome);
StartReset(); StartReset();
if (isDebug) if (isDebug)
...@@ -81,7 +81,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -81,7 +81,7 @@ namespace OnlineStore.DeviceLibrary
{ {
return false; return false;
} }
LogInfo("开始重置: 上下气缸回原点,阻挡1气缸上升 "); LogInfo("开始重置: 升降轴回原点,阻挡气缸上升 ");
runStatus = LineRunStatus.Reset; runStatus = LineRunStatus.Reset;
SecondMoveInfo.EndMove(); SecondMoveInfo.EndMove();
...@@ -129,22 +129,22 @@ namespace OnlineStore.DeviceLibrary ...@@ -129,22 +129,22 @@ namespace OnlineStore.DeviceLibrary
//复位时夹紧气缸需要发送,不然后面出入库会有问题 //复位时夹紧气缸需要发送,不然后面出入库会有问题
switch (MoveInfo.MoveStep) switch (MoveInfo.MoveStep)
{ {
case LineMoveStep.MH_UpDownHomeMove: case LineMoveStep.MH_UpDownHome:
MoveInfo.NextMoveStep(LineMoveStep.MH_UpDownCylinder_Up); MoveInfo.NextMoveStep(LineMoveStep.MH_CylinderUp);
DebugInfo(MoveInfo.MoveType + " : (上下轴原点返回完成,上下轴走到待机点 )开始"); DebugInfo(MoveInfo.MoveType + " : 升降轴走到待机点");
UpdownUpMove(); UpdownUpMove();
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000));
break; break;
case LineMoveStep.MH_UpDownCylinder_Up: case LineMoveStep.MH_CylinderUp:
MoveInfo.NextMoveStep(LineMoveStep.MH_OtherCylinder_Back); MoveInfo.NextMoveStep(LineMoveStep.MH_OtherCylinderBack);
DebugInfo(MoveInfo.MoveType + " : (上升到位,顶升气缸下降,前后气缸回退 )开始"); DebugInfo(MoveInfo.MoveType + " : 上升气缸到位,顶升气缸下降,前后气缸后退,夹紧气缸放松");
CylinderMove(MoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down); CylinderMove(MoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After); CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After);
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Slack, IO_Type.ClampCylinder_Tighten); CylinderMove(MoveInfo, IO_Type.ClampCylinder_Slack, IO_Type.ClampCylinder_Tighten);
break; break;
case LineMoveStep.MH_OtherCylinder_Back: case LineMoveStep.MH_OtherCylinderBack:
LogInfo(MoveInfo.MoveType + " 完成!"); LogInfo(MoveInfo.MoveType + " 完成!");
runStatus = LineRunStatus.Runing; runStatus = LineRunStatus.Runing;
...@@ -174,13 +174,13 @@ namespace OnlineStore.DeviceLibrary ...@@ -174,13 +174,13 @@ namespace OnlineStore.DeviceLibrary
{ {
DebugInfo("停止运动时出库执行中,减去托盘数;"); DebugInfo("停止运动时出库执行中,减去托盘数;");
//减去需要的盘数 //减去需要的盘数
TrayManager.DelNeedEmptyTrayNum(); // TrayManager.DelNeedEmptyTrayNum();
MoveInfo.EndMove(); MoveInfo.EndMove();
} }
runStatus = LineRunStatus.Busy; runStatus = LineRunStatus.Busy;
SecondMoveInfo.EndMove(); SecondMoveInfo.EndMove();
LogInfo("停止运动:上下气缸上升端,阻挡气缸上升 ,开始 "); LogInfo("停止运动:上下气缸上升端,阻挡气缸上升 ");
UpdownUpMove(); UpdownUpMove();
CylinderMove(MoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down); CylinderMove(MoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
...@@ -333,12 +333,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -333,12 +333,12 @@ namespace OnlineStore.DeviceLibrary
{ {
if (UseAxis) if (UseAxis)
{ {
MoveInfo.NextMoveStep(LineMoveStep.MH_UpDownHomeMove); MoveInfo.NextMoveStep(LineMoveStep.MH_UpDownHome);
UpdownAxis.HomeMove(MoveInfo); UpdownAxis.HomeMove(MoveInfo);
} }
else else
{ {
MoveInfo.NextMoveStep(LineMoveStep.MH_UpDownCylinder_Up); MoveInfo.NextMoveStep(LineMoveStep.MH_CylinderUp);
CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up); CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
} }
} }
......
...@@ -16,12 +16,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -16,12 +16,7 @@ namespace OnlineStore.DeviceLibrary
public override bool StartOutStoreMove(InOutParam param) public override bool StartOutStoreMove(InOutParam param)
{ {
string posId = param != null ? param.PosId : ""; string posId = param != null ? param.PosId : "";
////调试模式移栽装置不需要有操作
//if (IsDebug)
//{
// LogInfo("需要出库【" + posId + "】处于调试模式,暂时不再进行出入库操作");
// return false;
//}
if (param.Equals(null)) if (param.Equals(null))
{ {
LogUtil.error(Name + "出库【" + posId + "】失败,param=null"); LogUtil.error(Name + "出库【" + posId + "】失败,param=null");
...@@ -29,18 +24,18 @@ namespace OnlineStore.DeviceLibrary ...@@ -29,18 +24,18 @@ namespace OnlineStore.DeviceLibrary
} }
if (runStatus.Equals(LineRunStatus.Runing)) if (runStatus.Equals(LineRunStatus.Runing))
{ {
LogInfo("启动出库【" + posId + "】:开始叫托盘 "); LogInfo("启动出库【" + posId + "】 ");
runStatus = LineRunStatus.Busy; runStatus = LineRunStatus.Busy;
lineStatus = LineStatus.OutStoreExecute; lineStatus = LineStatus.OutStoreExecute;
MoveInfo.NewMove(LineMoveType.OutStore); MoveInfo.NewMove(LineMoveType.OutStore);
MoveInfo.MoveParam = param; MoveInfo.MoveParam = param;
MoveInfo.NextMoveStep(LineMoveStep.MO_50_StartOutProcess); MoveInfo.NextMoveStep(LineMoveStep.MO_50_StartOutProcess);
TrayManager.AddNeedEmptyTrayNum(); // TrayManager.AddNeedEmptyTrayNum();
return true; return true;
} }
else else
{ {
LogUtil.error(Name + " 启动出库【" + posId + "】失败,当前状态,storeStatus=" + runStatus); LogUtil.error(Name + " 启动出库【" + posId + "】失败,runStatus=" + runStatus);
return false; return false;
} }
} }
...@@ -62,58 +57,58 @@ namespace OnlineStore.DeviceLibrary ...@@ -62,58 +57,58 @@ namespace OnlineStore.DeviceLibrary
#region 移载装置 移栽物品操作 #region 移载装置 移栽物品操作
if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_50_StartOutProcess)) if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_50_StartOutProcess))
{ {
MoveInfo.NextMoveStep(LineMoveStep.MO_51_BeforeAfterCylinderBefore); MoveInfo.NextMoveStep(LineMoveStep.MO_51_CylinderBefore);
OutLog("出库 "+MoveInfo.MoveStep+": 前后气缸前进 )"); OutLog("出库 "+MoveInfo.MoveStep+": 前后气缸前进 )");
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before); CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_51_BeforeAfterCylinderBefore)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_51_CylinderBefore))
{ {
MoveInfo.NextMoveStep(LineMoveStep.MO_52_UpDownCylinderDown); MoveInfo.NextMoveStep(LineMoveStep.MO_52_CylinderDown);
OutLog("出库 " + MoveInfo.SLog + ": 上下气缸1下降 )"); OutLog("出库 " + MoveInfo.SLog + ": 上下气缸下降 )");
UpdownDownP3Move(MoveInfo.MoveParam.PlateH); UpdownDownP3Move(MoveInfo.MoveParam.PlateH);
// CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Up, IO_Type.UpDownCylinder_Down); // CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Up, IO_Type.UpDownCylinder_Down);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_52_UpDownCylinderDown)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_52_CylinderDown))
{ {
MoveInfo.NextMoveStep(LineMoveStep.MO_53_UpDownCylinderDownWait); MoveInfo.NextMoveStep(LineMoveStep.MO_53_DownWait);
OutLog("出库 " + MoveInfo.SLog + ": 等待300ms后夹紧"); OutLog("出库 " + MoveInfo.SLog + ": 等待300ms后夹紧");
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300));
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_53_UpDownCylinderDownWait)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_53_DownWait))
{ {
MoveInfo.NextMoveStep(LineMoveStep.MO_54_ClampCylinderSlack); MoveInfo.NextMoveStep(LineMoveStep.MO_54_CylinderOpen);
OutLog("出库 " + MoveInfo.SLog + ": 夹料气缸1夹紧,更新料盘位置【"+MoveInfo.MoveParam.WareCode+"】【MOVING】【"+DeviceID+"】"); OutLog("出库 " + MoveInfo.SLog + ": 夹料气缸夹紧,更新料盘位置【"+MoveInfo.MoveParam.WareCode+"】【MOVING】【"+DeviceID+"】");
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Tighten, IO_Type.ClampCylinder_Slack); CylinderMove(MoveInfo, IO_Type.ClampCylinder_Tighten, IO_Type.ClampCylinder_Slack);
//更新料盘位置 //更新料盘位置
SServerManager.UpdateTrayLoc(Name, MoveInfo.MoveParam.WareCode, LocStatus.MOVING, DeviceID); SServerManager.UpdateTrayLoc(Name, MoveInfo.MoveParam.WareCode, LocStatus.MOVING, DeviceID);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_54_ClampCylinderSlack)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_54_CylinderOpen))
{ {
MoveInfo.NextMoveStep(LineMoveStep.MO_55_UpDownCylinderUp); MoveInfo.NextMoveStep(LineMoveStep.MO_55_CylinderUp);
OutLog("出库 " + MoveInfo.SLog + ": 上下气缸1上升)"); OutLog("出库 " + MoveInfo.SLog + ": 上下气缸上升)");
UpdownUpMove(); UpdownUpMove();
// CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up); // CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_55_UpDownCylinderUp)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_55_CylinderUp))
{ {
MoveInfo.NextMoveStep(LineMoveStep.MO_56_BeforeAfterCylinderAfter); MoveInfo.NextMoveStep(LineMoveStep.MO_56_CylinderAfter);
OutLog("出库 " + MoveInfo.SLog + ": 前后气缸1后退)"); OutLog("出库 " + MoveInfo.SLog + ": 前后气缸后退)");
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After); CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After);
} }
#endregion #endregion
#region 移载装置,放物品到流水线操作 #region 移载装置,放物品到流水线操作
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_11_CodeRember) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_11_CodeRember)
&& MoveInfo.MoveStep.Equals(LineMoveStep.MO_56_BeforeAfterCylinderAfter) && MoveInfo.MoveStep.Equals(LineMoveStep.MO_56_CylinderAfter)
&& !SecondMoveInfo.IsInWait) && !SecondMoveInfo.IsInWait)
{ {
int trayNum = SecondMoveInfo.MoveParam.TrayNumber; int trayNum = SecondMoveInfo.MoveParam.TrayNumber;
//去掉直接丢盘处理 //去掉直接丢盘处理
MoveInfo.NextMoveStep(LineMoveStep.MO_58_UpDownCylinderDown); MoveInfo.NextMoveStep(LineMoveStep.MO_58_CylinderDown);
OutLog("出库 " + MoveInfo.SLog + ": 夹具检测编码完成, 上下气缸1下降 ,更新料盘位置【" + MoveInfo.MoveParam.WareCode + "】【INLINE】【" + trayNum + "】"); OutLog("出库 " + MoveInfo.SLog + ": 夹具检测编码完成, 上下气缸下降 ,更新料盘位置【" + MoveInfo.MoveParam.WareCode + "】【INLINE】【" + trayNum + "】");
if (MoveInfo.MoveParam != null) if (MoveInfo.MoveParam != null)
{ {
MoveInfo.MoveParam.TrayNumber = trayNum; MoveInfo.MoveParam.TrayNumber = trayNum;
...@@ -127,29 +122,29 @@ namespace OnlineStore.DeviceLibrary ...@@ -127,29 +122,29 @@ namespace OnlineStore.DeviceLibrary
SServerManager.UpdateTrayLoc(Name, MoveInfo.MoveParam.WareCode, LocStatus.INLINE, trayNum); SServerManager.UpdateTrayLoc(Name, MoveInfo.MoveParam.WareCode, LocStatus.INLINE, trayNum);
UpdownDownP2Move(MoveInfo.MoveParam.PlateH); UpdownDownP2Move(MoveInfo.MoveParam.PlateH);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_58_UpDownCylinderDown)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_58_CylinderDown))
{ {
OutLog("出库 " + MoveInfo.SLog + ": 夹料气缸1放松,更新托盘【" + MoveInfo.MoveParam.TrayNumber + "】,有料盘,OutStore,【" +MoveInfo.MoveParam.ToStr() + "】"); OutLog("出库 " + MoveInfo.SLog + ": 夹料气缸放松,更新托盘【" + MoveInfo.MoveParam.TrayNumber + "】,有料盘,OutStore,【" +MoveInfo.MoveParam.ToStr() + "】");
TrayManager.UpdateTrayInfo(MoveInfo.MoveParam.TrayNumber, true, ReelType.OutStore, MoveInfo.MoveParam); TrayManager.UpdateTrayInfo(MoveInfo.MoveParam.TrayNumber, true, ReelType.OutStore, MoveInfo.MoveParam);
//出库全部完成 //出库全部完成
lineStatus = LineStatus.StoreOnline; lineStatus = LineStatus.StoreOnline;
MoveInfo.NextMoveStep(LineMoveStep.MO_59_ClampCylinderTighten); MoveInfo.NextMoveStep(LineMoveStep.MO_59_CylinderRelax);
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Slack, IO_Type.ClampCylinder_Tighten); CylinderMove(MoveInfo, IO_Type.ClampCylinder_Slack, IO_Type.ClampCylinder_Tighten);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_59_ClampCylinderTighten)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_59_CylinderRelax))
{ {
this.MoveInfo.NextMoveStep(LineMoveStep.MO_60_UpDownCylinderUp); this.MoveInfo.NextMoveStep(LineMoveStep.MO_60_CylinderUp);
OutLog("出库 " + MoveInfo.SLog + ": 上下气缸1上升)"); OutLog("出库 " + MoveInfo.SLog + ": 上下气缸上升)");
UpdownUpMove(); UpdownUpMove();
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_60_UpDownCylinderUp)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MO_60_CylinderUp))
{ {
// 减去需要的盘数 // 减去需要的盘数
TrayManager.DelNeedEmptyTrayNum(); // TrayManager.DelNeedEmptyTrayNum();
SOutLog("出库 :移栽完成,放行托盘"); SOutLog("出库 :移栽完成,放行托盘");
SecondMoveInfo.NewMove(LineMoveType.CheckFixture); SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopCylinder_Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down); CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
OutLog("出库处理结束!"); OutLog("出库处理结束!");
...@@ -183,8 +178,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -183,8 +178,8 @@ namespace OnlineStore.DeviceLibrary
lineStatus = LineStatus.InStoreExecute; lineStatus = LineStatus.InStoreExecute;
MoveInfo.MoveParam = param; MoveInfo.MoveParam = param;
MoveInfo.NewMove(LineMoveType.InStore); MoveInfo.NewMove(LineMoveType.InStore);
LogInfo("入库【" + posId + "】处理(移栽):(MI_07_UpDownCylinderDown,上下气缸1下降)"); LogInfo("入库【" + posId + "】处理(移栽):(MI_07_CylinderDown,上下气缸下降)");
MoveInfo.NextMoveStep(LineMoveStep.MI_07_UpDownCylinderDown); MoveInfo.NextMoveStep(LineMoveStep.MI_06_CylinderDown);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
UpdownDownP2Move(MoveInfo.MoveParam.PlateH); UpdownDownP2Move(MoveInfo.MoveParam.PlateH);
return true; return true;
...@@ -211,74 +206,74 @@ namespace OnlineStore.DeviceLibrary ...@@ -211,74 +206,74 @@ namespace OnlineStore.DeviceLibrary
return; return;
} }
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : ""; string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : "";
if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_07_UpDownCylinderDown)) if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_06_CylinderDown))
{ {
MoveInfo.NextMoveStep(LineMoveStep.MI_07_UpDownCylinderDownWait); MoveInfo.NextMoveStep(LineMoveStep.MI_07_DownWait);
InLog("入库 " + MoveInfo.SLog + ": 等待300ms后夹紧"); InLog("入库 " + MoveInfo.SLog + ": 等待300ms后夹紧");
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300));
} }
//只有当BOX可以进行出入库时,移栽物品,防止卡住 //只有当BOX可以进行出入库时,移栽物品,防止卡住
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_07_UpDownCylinderDownWait)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_07_DownWait))
{ {
MoveInfo.NextMoveStep(LineMoveStep.MI_08_ClampCylinderSlack); MoveInfo.NextMoveStep(LineMoveStep.MI_08_CylinderOpen);
InLog("入库 " + MoveInfo.SLog + ": 夹料气缸1夹紧)"); InLog("入库 " + MoveInfo.SLog + ": 夹料气缸夹紧)");
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Tighten, IO_Type.ClampCylinder_Slack); CylinderMove(MoveInfo, IO_Type.ClampCylinder_Tighten, IO_Type.ClampCylinder_Slack);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_08_ClampCylinderSlack)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_08_CylinderOpen))
{ {
MoveInfo.NextMoveStep(LineMoveStep.MI_09_UpDownCylinderUp); MoveInfo.NextMoveStep(LineMoveStep.MI_09_CylinderUp);
InLog("入库 " + MoveInfo.SLog + ": 上下气缸1上升)"); InLog("入库 " + MoveInfo.SLog + ": 上下气缸上升)");
UpdownUpMove(); UpdownUpMove();
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_09_UpDownCylinderUp)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_09_CylinderUp))
{ {
int num = MoveInfo.MoveParam.TrayNumber; int num = MoveInfo.MoveParam.TrayNumber;
MoveInfo.NextMoveStep(LineMoveStep.MI_10_WaitBox); MoveInfo.NextMoveStep(LineMoveStep.MI_10_WaitBox);
LogInfo("入库【" + posId + "】处理(等待移栽):(判断box门口没有盘, 且可以入库),更新盘号【" + num + "】为空盘"); LogInfo("入库【" + posId + "】 " + MoveInfo.SLog + ": (判断box门口没有盘, 且可以入库),更新托盘【" + num + "】为空盘");
MoveInfo.WaitList.Add(WaitResultInfo.WaitBoxCanReviceTray()); MoveInfo.WaitList.Add(WaitResultInfo.WaitBoxCanReviceTray());
TrayManager.UpdateTrayInfo(num ); TrayManager.UpdateTrayInfo(num );
//阻挡气缸移动 //阻挡气缸移动
SecondMoveInfo.NewMove(LineMoveType.CheckFixture); SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
InLog("放托盘(放开阻挡): " + MoveInfo.SLog + " 物品已移走,顶升气缸1下降"); InLog("放托盘(放开阻挡): " + MoveInfo.SLog + " 物品已移走,顶升气缸1下降");
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopCylinder_Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down); CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_10_WaitBox)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_10_WaitBox))
{ {
MoveInfo.NextMoveStep(LineMoveStep.MI_10_BeforeAfterCylinderBefore); MoveInfo.NextMoveStep(LineMoveStep.MI_10_CylinderBefore);
InLog("入库:(MI_10_BeforeAfterCylinderBefore,前后气缸1前进"); InLog("入库: " + MoveInfo.SLog + " 前后气缸1前进");
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before); CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_10_BeforeAfterCylinderBefore)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_10_CylinderBefore))
{ {
MoveInfo.NextMoveStep(LineMoveStep.MI_11_UpDownCylinderDown); MoveInfo.NextMoveStep(LineMoveStep.MI_11_CylinderDown);
InLog("入库 " + MoveInfo.SLog + " ,上下气缸1下降"); InLog("入库 " + MoveInfo.SLog + " ,上下气缸下降");
UpdownDownP3Move(MoveInfo.MoveParam.PlateH); UpdownDownP3Move(MoveInfo.MoveParam.PlateH);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_11_UpDownCylinderDown)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_11_CylinderDown))
{ {
MoveInfo.NextMoveStep(LineMoveStep.MI_12_ClampCylinderTighten); MoveInfo.NextMoveStep(LineMoveStep.MI_12_CylinderRelax);
InLog("入库 " + MoveInfo.SLog + ",夹料气缸1放松"); InLog("入库 " + MoveInfo.SLog + ",夹料气缸放松");
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Slack, IO_Type.ClampCylinder_Tighten); CylinderMove(MoveInfo, IO_Type.ClampCylinder_Slack, IO_Type.ClampCylinder_Tighten);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_12_ClampCylinderTighten)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_12_CylinderRelax))
{ {
MoveInfo.NextMoveStep(LineMoveStep.MI_13_UpdownCylinderUp); MoveInfo.NextMoveStep(LineMoveStep.MI_13_UpdownCylinderUp);
InLog("入库 " + MoveInfo.SLog + ",上下气缸1上升"); InLog("入库 " + MoveInfo.SLog + ",上下气缸上升");
UpdownUpMove(); UpdownUpMove();
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_13_UpdownCylinderUp)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_13_UpdownCylinderUp))
{ {
MoveInfo.NextMoveStep(LineMoveStep.MI_14_BeforeAfterCylinderAfter); MoveInfo.NextMoveStep(LineMoveStep.MI_14_CylinderAfter);
InLog("入库 " + MoveInfo.SLog + ",前后气缸1后退,等待1000 )"); InLog("入库 " + MoveInfo.SLog + ",前后气缸后退,等待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.WaitTime(1000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
//此时box就可以入库操作了 //触发事件,BOX入库 //此时box就可以入库操作了 //触发事件,BOX入库
// LineServer.StartInStore(DeviceID, MoveInfo.MoveParam); // LineServer.StartInStore(DeviceID, MoveInfo.MoveParam);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_14_BeforeAfterCylinderAfter)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.MI_14_CylinderAfter))
{ {
MoveInfo.NextMoveStep(LineMoveStep.MI_15_SendPosToStore); MoveInfo.NextMoveStep(LineMoveStep.MI_15_SendPosToStore);
InLog("入库 " + MoveInfo.SLog + ",通知BOX开始入库,等待3000"); InLog("入库 " + MoveInfo.SLog + ",通知BOX开始入库,等待3000");
...@@ -356,8 +351,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -356,8 +351,8 @@ namespace OnlineStore.DeviceLibrary
private bool CheckIsNeedOutStore() private bool CheckIsNeedOutStore()
{ {
bool isFull = TrayManager.TrayIsFull(currTrayNum); bool isFull = TrayManager.TrayIsFull(currTrayNum);
if (MoveInfo.MoveType.Equals(LineMoveType.OutStore) && (MoveInfo.MoveStep >= LineMoveStep.MO_56_BeforeAfterCylinderAfter) if (MoveInfo.MoveType.Equals(LineMoveType.OutStore) && (MoveInfo.MoveStep >= LineMoveStep.MO_56_CylinderAfter)
&& (!MoveInfo.MoveStep.Equals(LineMoveStep.MO_60_UpDownCylinderUp))) && (!MoveInfo.MoveStep.Equals(LineMoveStep.MO_60_CylinderUp)))
{ {
if (isFull.Equals(false)) if (isFull.Equals(false))
{ {
...@@ -427,7 +422,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -427,7 +422,7 @@ namespace OnlineStore.DeviceLibrary
{ {
SecondMoveInfo.NewMove(LineMoveType.CheckFixture); SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 阻挡气缸1-1上升)"); CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 阻挡气缸1-1上升)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_StopCylinder2Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW); IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down1, IO_VALUE.LOW)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down1, IO_VALUE.LOW));
} }
...@@ -435,7 +430,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -435,7 +430,7 @@ namespace OnlineStore.DeviceLibrary
{ {
//托盘在第一个阻挡处 //托盘在第一个阻挡处
SecondMoveInfo.NewMove(LineMoveType.CheckFixture); SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_00_StopCylinder1Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_00_Stop1Down);
CheckLog(" 托盘检测:料盘检测StopCylinder_Check1 " + SecondMoveInfo.SLog + "阻挡气缸1-1下降 , 等待 "+TrayManager.StopDownWaitTime); CheckLog(" 托盘检测:料盘检测StopCylinder_Check1 " + SecondMoveInfo.SLog + "阻挡气缸1-1下降 , 等待 "+TrayManager.StopDownWaitTime);
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH); IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH));
...@@ -459,7 +454,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -459,7 +454,7 @@ namespace OnlineStore.DeviceLibrary
} }
#region 托盘检测 #region 托盘检测
if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_00_StopCylinder1Down)) if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_00_Stop1Down))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_01_FixtureCheck); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_01_FixtureCheck);
CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 阻挡气缸1-1上升,等待 阻挡2托盘检测=1)"); CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 阻挡气缸1-1上升,等待 阻挡2托盘检测=1)");
...@@ -469,12 +464,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -469,12 +464,12 @@ namespace OnlineStore.DeviceLibrary
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_01_FixtureCheck)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_01_FixtureCheck))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_StopCylinder2Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 再次等待托盘信号"); CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 再次等待托盘信号");
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW); IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.HIGH));
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_03_StopCylinder2Down)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_03_Stop2Down))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_04_Wait); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_04_Wait);
CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " ,等待编码信号稳定)"); CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " ,等待编码信号稳定)");
...@@ -538,11 +533,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -538,11 +533,11 @@ namespace OnlineStore.DeviceLibrary
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_05_WaitTime)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_05_WaitTime))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopCylinderUp); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopUp);
CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 顶升气缸上 升 )"); CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 顶升气缸上 升 )");
CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_Down, IO_Type.TopCylinder_UP); CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_Down, IO_Type.TopCylinder_UP);
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_06_TopCylinderUp)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_06_TopUp))
{ {
CheckLog("托盘阻挡*************** 托盘号【" + currTrayNum + "】"); CheckLog("托盘阻挡*************** 托盘号【" + currTrayNum + "】");
...@@ -576,7 +571,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -576,7 +571,7 @@ namespace OnlineStore.DeviceLibrary
{ {
TrayManager.UpdateTrayNumError(-1, ""); TrayManager.UpdateTrayNumError(-1, "");
} }
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopCylinder_Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
CheckLog("托盘检测" + SecondMoveInfo.SLog + " ,托盘号【" + currTrayNum + "】,直接放盘通过,顶升气缸下降 "); CheckLog("托盘检测" + SecondMoveInfo.SLog + " ,托盘号【" + currTrayNum + "】,直接放盘通过,顶升气缸下降 ");
CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down); CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
} }
...@@ -591,7 +586,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -591,7 +586,7 @@ namespace OnlineStore.DeviceLibrary
#endregion #endregion
#region 不需要出入库,直接放行 #region 不需要出入库,直接放行
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_14_TopCylinder_Down)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_14_TopDown))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_15_WaitCanGo); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_15_WaitCanGo);
CheckLog("托盘放行" + SecondMoveInfo.SLog + " ,移栽2,需要判断是否可以放盘通过,最多等待10000 "); CheckLog("托盘放行" + SecondMoveInfo.SLog + " ,移栽2,需要判断是否可以放盘通过,最多等待10000 ");
...@@ -605,19 +600,19 @@ namespace OnlineStore.DeviceLibrary ...@@ -605,19 +600,19 @@ namespace OnlineStore.DeviceLibrary
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_15_WaitCanGo)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_15_WaitCanGo))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_StopCylinder2_Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_Stop2Down);
CheckLog("托盘放行" + SecondMoveInfo.SLog + " ,阻挡气缸1-2下降)"); CheckLog("托盘放行" + SecondMoveInfo.SLog + " ,阻挡气缸1-2下降)");
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH); IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH));
// SecondMoveInfo.EndStepWait(); // SecondMoveInfo.EndStepWait();
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_16_StopCylinder2_Down)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_16_Stop2Down))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_17_Tray_Check); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_17_Stop2Check);
CheckLog("托盘放行" + SecondMoveInfo.SLog + " , 阻挡2托盘检测=0), 延时2秒)"); CheckLog("托盘放行" + SecondMoveInfo.SLog + " , 阻挡2托盘检测=0), 延时2秒)");
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.LOW)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.LOW));
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_17_Tray_Check)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_17_Stop2Check))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_18_StopCylinder_Back); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_18_StopCylinder_Back);
CheckLog("托盘放行" + SecondMoveInfo.SLog + " , 阻挡气缸1-2上升 )"); CheckLog("托盘放行" + SecondMoveInfo.SLog + " , 阻挡气缸1-2上升 )");
......
...@@ -60,13 +60,13 @@ namespace OnlineStore.DeviceLibrary ...@@ -60,13 +60,13 @@ namespace OnlineStore.DeviceLibrary
private string posId = ""; private string posId = "";
public bool StartOut(InOutParam moveParam) public bool StartOut(InOutParam moveParam)
{ {
if (MoveInfo.MoveType.Equals(LineMoveType.None) && (equipBean.runStatus .Equals(LineRunStatus.Runing)|| equipBean.runStatus.Equals(LineRunStatus.Busy))) if (LineTurnIsStop() && MoveInfo.MoveType.Equals(LineMoveType.None) && (equipBean.runStatus .Equals(LineRunStatus.Runing)|| equipBean.runStatus.Equals(LineRunStatus.Busy)))
{ {
MoveInfo.MoveParam = moveParam; MoveInfo.MoveParam = moveParam;
MoveInfo.NewMove(LineMoveType.OutStore); MoveInfo.NewMove(LineMoveType.OutStore);
posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : ""; posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : "";
MoveInfo.NextMoveStep(LineMoveStep.DLO_01_WaitEntryNoTray); MoveInfo.NextMoveStep(LineMoveStep.DLO_01_WaitEntryNoTray);
LogUtil.info(Name + "开始出料【" + moveParam.PosId + "】处理:" + MoveInfo.SLog + "等待入口无料盘,NG气缸后退"); LogUtil.info(Name + "开始出料【" + moveParam.ToStr() + "】:" + MoveInfo.SLog + "等待出口无料盘,NG气缸后退");
if (equipBeanId.Equals(302) && EntryLocation_Check.Equals(IO_Type.EntryLocation_Check2)) if (equipBeanId.Equals(302) && EntryLocation_Check.Equals(IO_Type.EntryLocation_Check2))
{ {
equipBean.CylinderMove(MoveInfo, IO_Type.NGCylinder_Before, IO_Type.NGCylinder_After); equipBean.CylinderMove(MoveInfo, IO_Type.NGCylinder_Before, IO_Type.NGCylinder_After);
...@@ -107,14 +107,14 @@ namespace OnlineStore.DeviceLibrary ...@@ -107,14 +107,14 @@ namespace OnlineStore.DeviceLibrary
TimeSpan span = DateTime.Now - MoveInfo.LastSetpTime; TimeSpan span = DateTime.Now - MoveInfo.LastSetpTime;
if (span.TotalMinutes > 3) if (span.TotalMinutes > 3)
{ {
LogUtil.error(Name + "等待出库等待出口无料盘超时:" + FormUtil.GetSpanStr(span), 305); LogUtil.error(Name + "等待出口无料盘超时:" + FormUtil.GetSpanStr(span), 305);
} }
} }
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.DLO_02_WaitExitNoTray)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.DLO_02_WaitExitNoTray))
{ {
MoveInfo.NextMoveStep(LineMoveStep.DLO_03_LineRun); MoveInfo.NextMoveStep(LineMoveStep.DLO_03_LineRun);
LogUtil.info(Name + "出料【" + posId + "】:" + MoveInfo.SLog + "入口出口都没有料盘,转动皮带线到入口定位亮"); LogUtil.info(Name + "出料【" + posId + "】:" + MoveInfo.SLog + "出口无料盘,转动到入口定位");
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
lineRun.StartLineRun(LineRun_Do, EntryLocation_Check, null); lineRun.StartLineRun(LineRun_Do, EntryLocation_Check, null);
} }
...@@ -123,7 +123,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -123,7 +123,7 @@ namespace OnlineStore.DeviceLibrary
if (LineTurnIsStop()) if (LineTurnIsStop())
{ {
MoveInfo.NextMoveStep(LineMoveStep.DLO_04_CanReviceTray); MoveInfo.NextMoveStep(LineMoveStep.DLO_04_CanReviceTray);
LogUtil.info(Name + "出料【" + posId + "】:" + MoveInfo.SLog + "------------等待移栽放下料盘--------"); LogUtil.info(Name + "出料【" + posId + "】:" + MoveInfo.SLog + "--- 等待移栽放料盘-- ");
if (equipBean.IsDebug) if (equipBean.IsDebug)
{ MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000)); } { MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000)); }
} }
...@@ -133,19 +133,19 @@ namespace OnlineStore.DeviceLibrary ...@@ -133,19 +133,19 @@ namespace OnlineStore.DeviceLibrary
if (equipBean.IsDebug) if (equipBean.IsDebug)
{ {
MoveInfo.NextMoveStep(LineMoveStep.DLO_05_TrayIsOk); MoveInfo.NextMoveStep(LineMoveStep.DLO_05_TrayIsOk);
LogUtil.info(Name + "出料【" + posId + "】:" + MoveInfo.SLog + "移栽放下料盘后更新为已放料盘"); LogUtil.info(Name + "出料【" + posId + "】:" + MoveInfo.SLog + "调试中更改为已放料盘");
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
} }
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.DLO_05_TrayIsOk)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.DLO_05_TrayIsOk))
{ {
MoveInfo.NextMoveStep(LineMoveStep.DLO_06_LineRun_OutLocation_Check); MoveInfo.NextMoveStep(LineMoveStep.DLO_06_OutCheck);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
LogUtil.info(Name + "出料【" + posId + "】:" + MoveInfo.SLog + "------------料盘已放下--------转动到出口定位"); LogUtil.info(Name + "出料【" + posId + "】:" + MoveInfo.SLog + " --料盘已放----转动到出口定位");
LastTrayPosition = 1; LastTrayPosition = 1;
lineRun.StartLineRun(LineRun_Do, ExitLocation_Check, null); lineRun.StartLineRun(LineRun_Do, ExitLocation_Check, null);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.DLO_06_LineRun_OutLocation_Check)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.DLO_06_OutCheck))
{ {
if (LineTurnIsStop()) if (LineTurnIsStop())
{ {
...@@ -158,8 +158,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -158,8 +158,8 @@ namespace OnlineStore.DeviceLibrary
{ {
if (MoveInfo.MoveParam.InStoreNg) if (MoveInfo.MoveParam.InStoreNg)
{ {
MoveInfo.NextMoveStep(LineMoveStep.DLO_08_NGCylinder_Before); MoveInfo.NextMoveStep(LineMoveStep.DLO_08_NGBefore);
LogUtil.info(Name + "出料【" + posId + "】:" + MoveInfo.SLog + "NG气缸前进,等待2000"); LogUtil.info(Name + "出料【" + posId + "】:" + MoveInfo.SLog + "NG气缸前进");
equipBean.CylinderMove(MoveInfo, IO_Type.NGCylinder_After, IO_Type.NGCylinder_Before); equipBean.CylinderMove(MoveInfo, IO_Type.NGCylinder_After, IO_Type.NGCylinder_Before);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000));
} }
...@@ -169,13 +169,13 @@ namespace OnlineStore.DeviceLibrary ...@@ -169,13 +169,13 @@ namespace OnlineStore.DeviceLibrary
} }
} }
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.DLO_08_NGCylinder_Before)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.DLO_08_NGBefore))
{ {
MoveInfo.NextMoveStep(LineMoveStep.DLO_09_NGCylinder_After); MoveInfo.NextMoveStep(LineMoveStep.DLO_09_NGAfter);
LogUtil.info(Name + "出料【" + posId + "】:" + MoveInfo.SLog + "NG气缸后退"); LogUtil.info(Name + "出料【" + posId + "】:" + MoveInfo.SLog + "NG气缸后退");
equipBean.CylinderMove(MoveInfo, IO_Type.NGCylinder_Before, IO_Type.NGCylinder_After); equipBean.CylinderMove(MoveInfo, IO_Type.NGCylinder_Before, IO_Type.NGCylinder_After);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.DLO_09_NGCylinder_After)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.DLO_09_NGAfter))
{ {
CheckIsNeedRun(); CheckIsNeedRun();
} }
...@@ -246,7 +246,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -246,7 +246,7 @@ namespace OnlineStore.DeviceLibrary
} }
} }
MoveInfo.NextMoveStep(nextStep); MoveInfo.NextMoveStep(nextStep);
LogUtil.info(Name + "出料【" + posId + "】:" + MoveInfo.SLog + "最后一盘料位置【" + LastTrayPosition + "】,继续转动一个工位"); LogUtil.info(Name + "出料【" + posId + "】:" + MoveInfo.SLog + "最后一盘料位置【" + LastTrayPosition + "】,转动到出口定位");
lineRun.StartLineRun(LineRun_Do, ExitLocation_Check, LineEndProcess); lineRun.StartLineRun(LineRun_Do, ExitLocation_Check, LineEndProcess);
} }
...@@ -302,7 +302,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -302,7 +302,7 @@ namespace OnlineStore.DeviceLibrary
lineRun.StartLineRun(LineRun_Do, ExitLocation_Check, LineEndProcess); lineRun.StartLineRun(LineRun_Do, ExitLocation_Check, LineEndProcess);
} }
else if (MoveInfo.MoveStep <= LineMoveStep.DLO_01_WaitEntryNoTray && else if (MoveInfo.MoveStep <= LineMoveStep.DLO_01_WaitEntryNoTray&&MoveInfo.IsInWait.Equals(false) &&
equipBean.IOValue(ExitTray_Check).Equals(IO_VALUE.HIGH)) equipBean.IOValue(ExitTray_Check).Equals(IO_VALUE.HIGH))
{ {
//皮带线1出口有料,皮带3入库无料,且在停止状态 //皮带线1出口有料,皮带3入库无料,且在停止状态
...@@ -372,6 +372,10 @@ namespace OnlineStore.DeviceLibrary ...@@ -372,6 +372,10 @@ namespace OnlineStore.DeviceLibrary
while (true) while (true)
{ {
Thread.Sleep(50); Thread.Sleep(50);
if (IOManager.IOValue(moveDO, subType).Equals(IO_VALUE.LOW))
{
IOManager.IOMove(moveDO, IO_VALUE.HIGH, subType);
}
TimeSpan span = DateTime.Now - startTime; TimeSpan span = DateTime.Now - startTime;
if (!InTurn) if (!InTurn)
{ {
......
...@@ -60,7 +60,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -60,7 +60,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.EndMove(); MoveInfo.EndMove();
SecondMoveInfo.EndMove(); SecondMoveInfo.EndMove();
runStatus = LineRunStatus.HomeMoving; runStatus = LineRunStatus.HomeMoving;
LogInfo("开始原点返回: (上下气上升,阻挡气缸上升 )开始"); LogInfo("开始 原点返回: 升降轴回原点,阻挡气缸上升 ");
MoveInfo.NewMove(LineMoveType.ReturnHome); MoveInfo.NewMove(LineMoveType.ReturnHome);
StartReset(); StartReset();
...@@ -78,7 +78,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -78,7 +78,7 @@ namespace OnlineStore.DeviceLibrary
{ {
return false; return false;
} }
LogInfo("开始重置:清理盘号,(上下气上升,阻挡气缸上升 )开始 "); LogInfo("开始重置:清理盘号,升降轴回原点,阻挡气缸上升 ");
runStatus = LineRunStatus.Reset; runStatus = LineRunStatus.Reset;
MoveInfo.NewMove(LineMoveType.Reset); MoveInfo.NewMove(LineMoveType.Reset);
StartReset(); StartReset();
...@@ -89,7 +89,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -89,7 +89,7 @@ namespace OnlineStore.DeviceLibrary
{ {
ResetClearData(); ResetClearData();
lineStatus = LineStatus.ResetMove; lineStatus = LineStatus.ResetMove;
MoveInfo.NextMoveStep(LineMoveStep.MH_UpDownCylinder_Up); MoveInfo.NextMoveStep(LineMoveStep.MH_CylinderUp);
// CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up); // CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
UpdownHomeMove(); UpdownHomeMove();
if (IsDebug) if (IsDebug)
...@@ -119,20 +119,20 @@ namespace OnlineStore.DeviceLibrary ...@@ -119,20 +119,20 @@ namespace OnlineStore.DeviceLibrary
{ {
switch (MoveInfo.MoveStep) switch (MoveInfo.MoveStep)
{ {
case LineMoveStep.MH_UpDownHomeMove: case LineMoveStep.MH_UpDownHome:
MoveInfo.NextMoveStep(LineMoveStep.MH_UpDownCylinder_Up); MoveInfo.NextMoveStep(LineMoveStep.MH_CylinderUp);
LogInfo(MoveInfo.MoveType + " : (上下轴原点返回完成,上下轴走到待机点 )开始"); LogInfo(MoveInfo.MoveType + " :升降轴走到待机点");
UpdownUpMove(); UpdownUpMove();
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000));
break; break;
case LineMoveStep.MH_UpDownCylinder_Up: case LineMoveStep.MH_CylinderUp:
MoveInfo.NextMoveStep(LineMoveStep.MH_OtherCylinder_Back); MoveInfo.NextMoveStep(LineMoveStep.MH_OtherCylinderBack);
LogInfo(MoveInfo.MoveType + " : (上升到位,顶升气缸下降,前后气缸后退,夹紧气缸放松 )开始"); LogInfo(MoveInfo.MoveType + " :上升气缸到位,顶升气缸下降,前后气缸后退,夹紧气缸放松 ");
CylinderMove(MoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down); CylinderMove(MoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After); CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After);
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Slack, IO_Type.ClampCylinder_Tighten); CylinderMove(MoveInfo, IO_Type.ClampCylinder_Slack, IO_Type.ClampCylinder_Tighten);
break; break;
case LineMoveStep.MH_OtherCylinder_Back: case LineMoveStep.MH_OtherCylinderBack:
MoveInfo.EndMove(); MoveInfo.EndMove();
SecondMoveInfo.EndMove(); SecondMoveInfo.EndMove();
LogInfo(MoveInfo.MoveType + " 完成!"); LogInfo(MoveInfo.MoveType + " 完成!");
...@@ -159,7 +159,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -159,7 +159,7 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo.EndMove(); SecondMoveInfo.EndMove();
runStatus = LineRunStatus.Runing; runStatus = LineRunStatus.Runing;
LogInfo("停止运动:(上下气缸上升 ,阻挡气缸输入=0,顶升气缸下降 ) "); LogInfo("停止运动: 上下气缸上升 ,阻挡气缸上升,顶升气缸下降 ");
if (UseAxis) if (UseAxis)
{ {
...@@ -257,13 +257,13 @@ namespace OnlineStore.DeviceLibrary ...@@ -257,13 +257,13 @@ namespace OnlineStore.DeviceLibrary
{ {
if (UseAxis) if (UseAxis)
{ {
MoveInfo.NextMoveStep(LineMoveStep.MH_UpDownHomeMove); MoveInfo.NextMoveStep(LineMoveStep.MH_UpDownHome);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(2000));
UpdownAxis.HomeMove(MoveInfo); UpdownAxis.HomeMove(MoveInfo);
} }
else else
{ {
MoveInfo.NextMoveStep(LineMoveStep.MH_UpDownCylinder_Up); MoveInfo.NextMoveStep(LineMoveStep.MH_CylinderUp);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up); CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
} }
......
...@@ -46,7 +46,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -46,7 +46,7 @@ namespace OnlineStore.DeviceLibrary
{ {
SecondMoveInfo.NewMove(LineMoveType.CheckFixture); SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
CheckLog("托盘阻挡" + SecondMoveInfo.SLog + "阻挡气缸1-1上升)"); CheckLog("托盘阻挡" + SecondMoveInfo.SLog + "阻挡气缸1-1上升)");
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_StopCylinder2Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW); IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down1, IO_VALUE.LOW)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down1, IO_VALUE.LOW));
} }
...@@ -58,7 +58,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -58,7 +58,7 @@ namespace OnlineStore.DeviceLibrary
{ {
//托盘在第一个阻挡处 //托盘在第一个阻挡处
SecondMoveInfo.NewMove(LineMoveType.CheckFixture); SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_00_StopCylinder1Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_00_Stop1Down);
CheckLog(" 托盘检测:" + SecondMoveInfo.SLog + "阻挡气缸1-1下降 ,最多等待" + TrayManager.StopDownWaitTime); CheckLog(" 托盘检测:" + SecondMoveInfo.SLog + "阻挡气缸1-1下降 ,最多等待" + TrayManager.StopDownWaitTime);
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH); IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down1, IO_VALUE.HIGH));
...@@ -74,7 +74,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -74,7 +74,7 @@ namespace OnlineStore.DeviceLibrary
{ {
SecondMoveInfo.NewMove(LineMoveType.CheckFixture); SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
OutLog("放托盘(放开阻挡)" + MoveInfo.SLog + " 物品已移走,顶升气缸1下降"); OutLog("放托盘(放开阻挡)" + MoveInfo.SLog + " 物品已移走,顶升气缸1下降");
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopCylinder_Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
if (Config.SidesWayNum <= 0) if (Config.SidesWayNum <= 0)
{ {
CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down); CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
...@@ -143,23 +143,23 @@ namespace OnlineStore.DeviceLibrary ...@@ -143,23 +143,23 @@ namespace OnlineStore.DeviceLibrary
firstLine = new List<int> { 3, 4 }; firstLine = new List<int> { 3, 4 };
} }
} }
bool kongxian = MoveInfo.MoveType.Equals(LineMoveType.None)||MoveInfo.MoveStep>=LineMoveStep. PO_08_CylinderRelax;
if (mustLine.Count > 0) if (mustLine.Count > 0)
{ {
if (mustLine.Contains(lineNum)) if (mustLine.Contains(lineNum))
{ {
return inoup; return inoup;
} }
}else if (firstLine.Count > 0) }else if (firstLine.Count > 0 )
{ {
if (firstLine.Contains(lineNum)) if (firstLine.Contains(lineNum)&& kongxian)
{ {
return inoup; return inoup;
}else if (LineManager.Line.ProvidingCanUse(firstLine).Equals(false)) }else if (LineManager.Line.ProvidingCanUse(firstLine).Equals(false)&& kongxian)
{ {
//优先线不可用 //优先线不可用
return inoup; return inoup;
}else if(span.TotalSeconds > youxianS) }else if(span.TotalSeconds > youxianS&& kongxian)
{ {
//超过指定的时间 //超过指定的时间
return inoup; return inoup;
...@@ -167,9 +167,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -167,9 +167,12 @@ namespace OnlineStore.DeviceLibrary
} }
else else
{ {
if (kongxian)
{
return inoup; return inoup;
} }
} }
}
//TODO 判断是否是需要移栽出料的料盘 //TODO 判断是否是需要移栽出料的料盘
return null; return null;
...@@ -190,7 +193,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -190,7 +193,7 @@ namespace OnlineStore.DeviceLibrary
} }
#region 托盘检测 #region 托盘检测
if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_00_StopCylinder1Down)) if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_00_Stop1Down))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_01_FixtureCheck); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_01_FixtureCheck);
CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 阻挡气缸1-1上升,等待 阻挡2托盘检测=1)"); CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 阻挡气缸1-1上升,等待 阻挡2托盘检测=1)");
...@@ -199,7 +202,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -199,7 +202,7 @@ namespace OnlineStore.DeviceLibrary
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_01_FixtureCheck)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_01_FixtureCheck))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_StopCylinder2Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 等待" + TrayManager.SwTrayWaitTime + ",再次检测料盘信号"); CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 等待" + TrayManager.SwTrayWaitTime + ",再次检测料盘信号");
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW); IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
SecondMoveInfo.OneWaitCanEndStep = true; SecondMoveInfo.OneWaitCanEndStep = true;
...@@ -207,7 +210,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -207,7 +210,7 @@ namespace OnlineStore.DeviceLibrary
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.StopDownWaitTime)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(TrayManager.StopDownWaitTime));
// SecondMoveInfo.EndStepWait(); // SecondMoveInfo.EndStepWait();
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_03_StopCylinder2Down)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_03_Stop2Down))
{ {
if (IOValue(IO_Type.StopCylinder_Check2).Equals(IO_VALUE.HIGH)) if (IOValue(IO_Type.StopCylinder_Check2).Equals(IO_VALUE.HIGH))
{ {
...@@ -218,7 +221,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -218,7 +221,7 @@ namespace OnlineStore.DeviceLibrary
} }
else else
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_StopCylinder2Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_03_Stop2Down);
CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 等待" + TrayManager.SwTrayWaitTime + ",再次检测料盘信号"); CheckLog("托盘阻挡" + SecondMoveInfo.SLog + " 等待" + TrayManager.SwTrayWaitTime + ",再次检测料盘信号");
IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW); IOMove(IO_Type.StopCylinder_Down1, IO_VALUE.LOW);
SecondMoveInfo.OneWaitCanEndStep = true; SecondMoveInfo.OneWaitCanEndStep = true;
...@@ -241,7 +244,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -241,7 +244,7 @@ namespace OnlineStore.DeviceLibrary
{ {
SecondMoveInfo.MoveParam = param; SecondMoveInfo.MoveParam = param;
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_05_WaitTime); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_05_WaitTime);
CheckLog("托盘 【" + currTrayNum + "】需要出" + SecondMoveInfo.SLog + ":" + param.ToStr() + " 等待1秒后顶升上升 )"); CheckLog("托盘 【" + currTrayNum + "】需要出" + SecondMoveInfo.SLog + ":" + param.ToStr() + " 等待1秒后顶升上升 )");
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitProvidingEquipCanOut());//等待 SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitProvidingEquipCanOut());//等待
...@@ -251,7 +254,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -251,7 +254,7 @@ namespace OnlineStore.DeviceLibrary
{ {
SecondMoveInfo.NewMove(LineMoveType.CheckFixture); SecondMoveInfo.NewMove(LineMoveType.CheckFixture);
CheckLog("放托盘(放开阻挡)" + MoveInfo.SLog + " 托盘 【" + currTrayNum + "】直接放行"); CheckLog("放托盘(放开阻挡)" + MoveInfo.SLog + " 托盘 【" + currTrayNum + "】直接放行");
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopCylinder_Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_14_TopDown);
if (Config.SidesWayNum <= 0) if (Config.SidesWayNum <= 0)
{ {
CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down); CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_UP, IO_Type.TopCylinder_Down);
...@@ -269,11 +272,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -269,11 +272,11 @@ namespace OnlineStore.DeviceLibrary
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_05_WaitTime)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_05_WaitTime))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopCylinderUp); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_06_TopUp);
CheckLog("托盘阻挡 " + SecondMoveInfo.SLog + " 顶升气缸上升 "); CheckLog("托盘阻挡 " + SecondMoveInfo.SLog + " 顶升气缸上升 ");
CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_Down, IO_Type.TopCylinder_UP); CylinderMove(SecondMoveInfo, IO_Type.TopCylinder_Down, IO_Type.TopCylinder_UP);
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_06_TopCylinderUp)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MIO_06_TopUp))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_11_CodeRember); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_11_CodeRember);
LogInfo(SecondMoveInfo.MoveNum + " 托盘号【" + currTrayNum + "】等待移栽料盘"); LogInfo(SecondMoveInfo.MoveNum + " 托盘号【" + currTrayNum + "】等待移栽料盘");
...@@ -282,13 +285,13 @@ namespace OnlineStore.DeviceLibrary ...@@ -282,13 +285,13 @@ namespace OnlineStore.DeviceLibrary
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_11_CodeRember) && MoveInfo.MoveType.Equals(LineMoveType.None)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_11_CodeRember) && MoveInfo.MoveType.Equals(LineMoveType.None))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_09_WaitLetFixtureGo); SecondMoveInfo.NextMoveStep(LineMoveStep.MIO_09_WaitLetFixtureGo);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + "开始新的出任务~" + SecondMoveInfo.MoveParam.ToStr()+",等待移栽完成后放开阻挡)"); CheckLog("托盘放行 " + SecondMoveInfo.SLog + "开始新的出任务~" + SecondMoveInfo.MoveParam.ToStr()+",等待移栽完成后放开阻挡)");
bool result = StartOutStoreMove(SecondMoveInfo.MoveParam); bool result = StartOutStoreMove(SecondMoveInfo.MoveParam);
} }
#endregion #endregion
#region 不需要出出料,直接放行 #region 不需要出出料,直接放行
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_14_TopCylinder_Down)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_14_TopDown))
{ {
if (Config.SidesWayNum > 0) if (Config.SidesWayNum > 0)
{ {
...@@ -298,7 +301,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -298,7 +301,7 @@ namespace OnlineStore.DeviceLibrary
} }
else else
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_StopCylinder2_Down); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_Stop2Down);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,阻挡气缸1-2下降)"); CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,阻挡气缸1-2下降)");
IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH); IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH);
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH));
...@@ -307,19 +310,19 @@ namespace OnlineStore.DeviceLibrary ...@@ -307,19 +310,19 @@ namespace OnlineStore.DeviceLibrary
} }
//else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_15_WaitCanGo)) //else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_15_WaitCanGo))
//{ //{
// SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_StopCylinder2_Down); // SecondMoveInfo.NextMoveStep(LineMoveStep.MO_16_Stop2Down);
// CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,阻挡气缸1-2下降)"); // CheckLog("托盘放行 " + SecondMoveInfo.SLog + " ,阻挡气缸1-2下降)");
// IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH); // IOMove(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH);
// SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH)); // SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Down2, IO_VALUE.HIGH));
// // SecondMoveInfo.EndStepWait(); // // SecondMoveInfo.EndStepWait();
//} //}
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_16_StopCylinder2_Down)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_16_Stop2Down))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_17_Tray_Check); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_17_Stop2Check);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " , 阻挡2托盘检测=0"); CheckLog("托盘放行 " + SecondMoveInfo.SLog + " , 阻挡2托盘检测=0");
SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.LOW)); SecondMoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.StopCylinder_Check2, IO_VALUE.LOW));
} }
else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_17_Tray_Check)) else if (SecondMoveInfo.MoveStep.Equals(LineMoveStep.MO_17_Stop2Check))
{ {
SecondMoveInfo.NextMoveStep(LineMoveStep.MO_18_StopCylinder_Back); SecondMoveInfo.NextMoveStep(LineMoveStep.MO_18_StopCylinder_Back);
CheckLog("托盘放行 " + SecondMoveInfo.SLog + " , 阻挡气缸1-2上升 )"); CheckLog("托盘放行 " + SecondMoveInfo.SLog + " , 阻挡气缸1-2上升 )");
...@@ -355,7 +358,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -355,7 +358,7 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.MoveParam = param; MoveInfo.MoveParam = param;
MoveInfo.NewMove(LineMoveType.OutStore); MoveInfo.NewMove(LineMoveType.OutStore);
LogInfo("出料【" + posId + "】处理(移栽):(PO_00_BeforeAfterAfter, 前后气缸后退)"); LogInfo("出料【" + posId + "】处理(移栽):(PO_00_BeforeAfterAfter, 前后气缸后退)");
MoveInfo.NextMoveStep(LineMoveStep.PO_00_BeforeAfterAfter); 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);
return true; return true;
...@@ -382,50 +385,49 @@ namespace OnlineStore.DeviceLibrary ...@@ -382,50 +385,49 @@ namespace OnlineStore.DeviceLibrary
return; return;
} }
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : ""; string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosId : "";
if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_00_BeforeAfterAfter)) if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_00_CylinderAfter))
{ {
MoveInfo.NextMoveStep(LineMoveStep.PO_01_UpDownCylinderDown); MoveInfo.NextMoveStep(LineMoveStep.PO_01_CylinderDown);
LogInfo(" " + MoveInfo.SLog + " : 上下气缸1下降)"); LogInfo(" " + MoveInfo.SLog + " : 上下气缸下降)");
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
UpdownDownP2Move(MoveInfo.MoveParam.PlateH); UpdownDownP2Move(MoveInfo.MoveParam.PlateH);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_01_UpDownCylinderDown)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_01_CylinderDown))
{ {
MoveInfo.NextMoveStep(LineMoveStep.PO_02_UpDownCylinderDownWait); MoveInfo.NextMoveStep(LineMoveStep.PO_02_DownWait);
OutLog("出库 " + MoveInfo.SLog + " : 上下气缸1下降后等待0.3秒再夹紧"); OutLog("出料 " + MoveInfo.SLog + " : 等待300后夹紧");
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(300));
} }
//只有当BOX可以进行出出料时,移栽物品,防止卡住 //只有当BOX可以进行出出料时,移栽物品,防止卡住
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_02_UpDownCylinderDownWait)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_02_DownWait))
{ {
int lineId = DeviceID % 100; int lineId = DeviceID % 100;
MoveInfo.NextMoveStep(LineMoveStep.PO_03_ClampCylinderSlack); MoveInfo.NextMoveStep(LineMoveStep.PO_03_CylinderOpen);
CylinderMove(MoveInfo, IO_Type.ClampCylinder_Tighten, IO_Type.ClampCylinder_Slack); CylinderMove(MoveInfo, IO_Type.ClampCylinder_Tighten, IO_Type.ClampCylinder_Slack);
if (MoveInfo.MoveParam.InStoreNg) if (MoveInfo.MoveParam.InStoreNg)
{ {
OutLog("出库 " + MoveInfo.SLog + " : 夹料气缸夹紧,入料NG,不需要更新料盘位置"); OutLog("出料 " + MoveInfo.SLog + " : 夹料气缸夹紧,入料NG料,不更新料盘位置");
} }
else else
{ {
OutLog("出 " + MoveInfo.SLog + " : 夹料气缸夹紧,更新料盘位置【" + MoveInfo.MoveParam.WareCode + "】【INBELT】【" + lineId + "】"); OutLog("出 " + MoveInfo.SLog + " : 夹料气缸夹紧,更新料盘位置【" + MoveInfo.MoveParam.WareCode + "】【INBELT】【" + lineId + "】");
//更新料盘位置 //更新料盘位置
SServerManager.UpdateTrayLoc(Name, MoveInfo.MoveParam.WareCode, LocStatus.INBELT, lineId); SServerManager.UpdateTrayLoc(Name, MoveInfo.MoveParam.WareCode, LocStatus.INBELT, lineId);
} }
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_03_ClampCylinderSlack)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_03_CylinderOpen))
{ {
MoveInfo.NextMoveStep(LineMoveStep.PO_04_UpDownCylinderUp); MoveInfo.NextMoveStep(LineMoveStep.PO_04_CylinderUp);
OutLog("出库 " + MoveInfo.SLog + " : 上下气缸上升,同时出库皮带线开始出库准备"); OutLog("出料 " + MoveInfo.SLog + " : 上下气缸上升,皮带线准备出料");
// CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
UpdownUpMove(); UpdownUpMove();
StartLineOut(MoveInfo.MoveParam); StartLineOut(MoveInfo.MoveParam);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_04_UpDownCylinderUp)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_04_CylinderUp))
{ {
int num = MoveInfo.MoveParam.TrayNumber; int num = MoveInfo.MoveParam.TrayNumber;
MoveInfo.NextMoveStep(LineMoveStep.PO_05_WaitBox); MoveInfo.NextMoveStep(LineMoveStep.PO_05_WaitBox);
LogInfo("出料PO_05_WaitBox【" + posId + "】处理(等待可以移栽) 更新盘号【" + num + "】为空盘"); LogInfo("出料 【" + posId + "】" + MoveInfo.SLog + " 更新托盘【" + num + "】为空");
// MoveInfo.WaitList.Add(WaitResultInfo.WaitProvidingEquipCanOut()); // MoveInfo.WaitList.Add(WaitResultInfo.WaitProvidingEquipCanOut());
TrayManager.UpdateTrayInfo(num); TrayManager.UpdateTrayInfo(num);
...@@ -434,17 +436,17 @@ namespace OnlineStore.DeviceLibrary ...@@ -434,17 +436,17 @@ namespace OnlineStore.DeviceLibrary
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_05_WaitBox)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_05_WaitBox))
{ {
MoveInfo.NextMoveStep(LineMoveStep.PO_06_BeforeAfterCylinderBefore); MoveInfo.NextMoveStep(LineMoveStep.PO_06_CylinderBefore);
OutLog("出:" + MoveInfo.SLog + " ,前后气缸前进)"); OutLog("出:" + MoveInfo.SLog + " ,前后气缸前进)");
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before); CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_After, IO_Type.BeforeAfterCylinder_Before);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_06_BeforeAfterCylinderBefore)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_06_CylinderBefore))
{ {
//判断是否可以下降 //判断是否可以下降
if (LineIsReady()) if (LineIsReady())
{ {
MoveInfo.NextMoveStep(LineMoveStep.PO_07_UpDownCylinderDown); MoveInfo.NextMoveStep(LineMoveStep.PO_07_CylinderDown);
OutLog("出:" + MoveInfo.SLog + " ,上下气缸下降)"); OutLog("出:" + MoveInfo.SLog + " ,上下气缸下降)");
// CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Up, IO_Type.UpDownCylinder_Down); // CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Up, IO_Type.UpDownCylinder_Down);
UpdownDownP3Move(MoveInfo.MoveParam.PlateH); UpdownDownP3Move(MoveInfo.MoveParam.PlateH);
} }
...@@ -459,30 +461,29 @@ namespace OnlineStore.DeviceLibrary ...@@ -459,30 +461,29 @@ namespace OnlineStore.DeviceLibrary
} }
} }
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_07_UpDownCylinderDown)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_07_CylinderDown))
{ {
MoveInfo.NextMoveStep(LineMoveStep.PO_08_ClampCylinderTighten); MoveInfo.NextMoveStep(LineMoveStep.PO_08_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);
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_08_ClampCylinderTighten)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_08_CylinderRelax))
{ {
MoveInfo.NextMoveStep(LineMoveStep.PO_09_UpdownCylinderUp); MoveInfo.NextMoveStep(LineMoveStep.PO_09_CylinderUp);
OutLog("出库:" + MoveInfo.SLog + ",上下气缸上升)"); OutLog("出料:" + MoveInfo.SLog + ",上下气缸上升)");
// CylinderMove(MoveInfo, IO_Type.UpDownCylinder_Down, IO_Type.UpDownCylinder_Up);
UpdownUpMove(); UpdownUpMove();
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_09_UpdownCylinderUp)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_09_CylinderUp))
{ {
MoveInfo.NextMoveStep(LineMoveStep.PO_10_BeforeAfterCylinderAfter); MoveInfo.NextMoveStep(LineMoveStep.PO_10_CylinderAfter);
OutLog("出库:" + MoveInfo.SLog + ",前后气缸后退,等待4000 ,出料皮带线开始继续运动"); OutLog("出料:" + MoveInfo.SLog + ",前后气缸后退,等待4000 ,皮带线继续运动");
CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After); CylinderMove(MoveInfo, IO_Type.BeforeAfterCylinder_Before, IO_Type.BeforeAfterCylinder_After);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(4000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(4000));
//出料皮带线停止出 //出料皮带线停止出
DisLineContiune(); DisLineContiune();
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_10_BeforeAfterCylinderAfter)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.PO_10_CylinderAfter))
{ {
LogInfo("出料【" + posId + "】处理完成!"); LogInfo("出料【" + posId + "】处理完成!");
runStatus = LineRunStatus.Runing; runStatus = LineRunStatus.Runing;
...@@ -529,11 +530,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -529,11 +530,11 @@ namespace OnlineStore.DeviceLibrary
return; return;
} }
outline.MoveInfo.NextMoveStep(LineMoveStep.DLO_05_TrayIsOk); outline.MoveInfo.NextMoveStep(LineMoveStep.DLO_05_TrayIsOk);
LogUtil.info(Name + "放料到皮带线完成,皮带线" + outline.MoveInfo.Name + " " + outline.MoveInfo.SLog); LogUtil.info(Name + "放料到皮带线完成," + outline.MoveInfo.Name + " " + outline.MoveInfo.SLog);
} }
else else
{ {
LogUtil.error(Name + "未找到对应的皮带线"); LogUtil.error(Name + "DisLineContiune()未找到对应的皮带线");
} }
} }
...@@ -558,7 +559,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -558,7 +559,7 @@ namespace OnlineStore.DeviceLibrary
} }
else else
{ {
LogUtil.error(Name + "未找到对应的皮带线"); LogUtil.error(Name + "LineIsReady()未找到对应的皮带线");
} }
return false; return false;
} }
...@@ -577,7 +578,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -577,7 +578,7 @@ namespace OnlineStore.DeviceLibrary
} }
else else
{ {
LogUtil.error(Name + "未找到对应的皮带线"); LogUtil.error(Name + "StartLineOut未找到对应的皮带线");
} }
} }
#endregion #endregion
......
...@@ -95,15 +95,19 @@ namespace OnlineStore.DeviceLibrary ...@@ -95,15 +95,19 @@ namespace OnlineStore.DeviceLibrary
if (!serverResult.pos.Equals("")) if (!serverResult.pos.Equals(""))
{ {
// 仓位命名: 4D01020304
//第1和第2位表示楼层(4D)
//第3和第4位表示料仓(01) 01 - 18为流水线料仓, 19 - 24为包装料仓
//第5和第6位表示列(02)
//第7和第8位表示行(03)
//第9和第10位表示隔板位置(04)
//例如: 4D12010124 表示4楼12号料仓第1列第1行架子上的第24个隔板位置
//4D19050208 表示4楼19号料仓(包装料仓)第5列第2行架子上的第8个隔板位置
string posId = serverResult.pos; string posId = serverResult.pos;
int plateW = width; int plateW = width;
int plateH = height; int plateH = height;
string[] posArray = posId.Split('#');
if (!(posArray.Length == 2)) int storeId = InOutParam.GetPosStoreId(posId);
{
return msg = deviceName + " 入库库位格式错误:条码【" + codeStr + "】库位【" + posId + "】";
}
int storeId = int.Parse(posArray[0]);
string wareNum = serverResult.barcode; string wareNum = serverResult.barcode;
//根据库位号查找移栽 //根据库位号查找移栽
MoveEquip moveEquip = LineManager.Line.MoveEquipMap[storeId]; MoveEquip moveEquip = LineManager.Line.MoveEquipMap[storeId];
......
...@@ -23,7 +23,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -23,7 +23,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 流水线需要的空盘数量 /// 流水线需要的空盘数量
/// </summary> /// </summary>
internal static int LineNeedEmptyTrayNum = 0; // internal static int LineNeedEmptyTrayNum = 0;
/// <summary> /// <summary>
/// 最大托盘号,必须按照顺序从1到6走过 /// 最大托盘号,必须按照顺序从1到6走过
/// </summary> /// </summary>
...@@ -44,15 +44,15 @@ namespace OnlineStore.DeviceLibrary ...@@ -44,15 +44,15 @@ namespace OnlineStore.DeviceLibrary
{ {
return new List<TrayInfo>(TrayInfoMap.Values); return new List<TrayInfo>(TrayInfoMap.Values);
} }
internal static void AddNeedEmptyTrayNum() //internal static void AddNeedEmptyTrayNum()
{ //{
Interlocked.Increment(ref LineNeedEmptyTrayNum); // Interlocked.Increment(ref LineNeedEmptyTrayNum);
} //}
internal static void DelNeedEmptyTrayNum() //internal static void DelNeedEmptyTrayNum()
{ //{
Interlocked.Decrement(ref LineNeedEmptyTrayNum); // Interlocked.Decrement(ref LineNeedEmptyTrayNum);
} //}
/// <summary> /// <summary>
/// 对应的盘号(1-6)是否有料盘 /// 对应的盘号(1-6)是否有料盘
/// </summary> /// </summary>
......
...@@ -74,23 +74,42 @@ namespace OnlineStore.DeviceLibrary ...@@ -74,23 +74,42 @@ namespace OnlineStore.DeviceLibrary
{ {
if (!PosId.Equals("")) if (!PosId.Equals(""))
{ {
string[] arr = PosId.Split('#');
if (arr.Length >= 2)
{
try try
{ {
return int.Parse(arr[0]); return int.Parse(PosId.Substring(2, 2));
} }
catch (Exception ex) catch (Exception ex)
{ {
} }
} }
}
return -1; return -1;
} }
public static int GetPosStoreId(string posId)
{
if (!posId.Equals(""))
{
try
{
int index = posId.IndexOf("#");
if (index > 0)
{
string[] arr = posId.Split('#');
if (arr.Length >= 2)
{
return int.Parse(arr[0]);
}
}
return int.Parse(posId.Substring(2, 2));
}
catch (Exception ex)
{
}
}
return -1;
}
/// <summary> /// <summary>
/// urgentReel: true 表示紧急料,需要出到料串上 /// urgentReel: true 表示紧急料,需要出到料串上
/// </summary> /// </summary>
......
...@@ -134,7 +134,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -134,7 +134,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 阻挡气缸0-2下降 /// 阻挡气缸0-2下降
/// </summary> /// </summary>
LI_01_StopCylinder2Down = 104, LI_01_Stop2Down = 104,
/// <summary> /// <summary>
/// 检测夹具检测1=0 ) 开始 /// 检测夹具检测1=0 ) 开始
/// </summary> /// </summary>
...@@ -142,11 +142,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -142,11 +142,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 阻挡气缸0-2上升 /// 阻挡气缸0-2上升
/// </summary> /// </summary>
LI_03_StopCylinder2Up = 106, LI_03_Stop2Up = 106,
/// <summary> /// <summary>
/// 阻挡气缸0-1下降 /// 阻挡气缸0-1下降
/// </summary> /// </summary>
LI_04_StopCylinder1Down = 107, LI_04_Stop1Down = 107,
#endregion #endregion
#region 流水线出库操作200开始 #region 流水线出库操作200开始
...@@ -157,7 +157,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -157,7 +157,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 流水线出库,阻挡气缸0-2下降 /// 流水线出库,阻挡气缸0-2下降
/// </summary> /// </summary>
LO_01_StopCylinder2Down = 201, LO_01_Stop2Down = 201,
/// <summary> /// <summary>
/// 流水线出库, 检测夹具检测1=0 /// 流水线出库, 检测夹具检测1=0
/// </summary> /// </summary>
...@@ -165,11 +165,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -165,11 +165,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 流水线出库,阻挡气缸0-2上升 /// 流水线出库,阻挡气缸0-2上升
/// </summary> /// </summary>
LO_03_StopCylinder2Up = 203, LO_03_Stop2Up = 203,
/// <summary> /// <summary>
/// 阻挡气缸0-1下降 /// 阻挡气缸0-1下降
/// </summary> /// </summary>
LO_04_StopCylinder1Up = 204, LO_04_Stop1Up = 204,
#endregion #endregion
...@@ -177,15 +177,15 @@ namespace OnlineStore.DeviceLibrary ...@@ -177,15 +177,15 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 上下气缸回原点 /// 上下气缸回原点
/// </summary> /// </summary>
MH_UpDownHomeMove = 2000, MH_UpDownHome = 2000,
/// <summary> /// <summary>
/// 料仓移栽装置,上下气缸上升端 /// 料仓移栽装置,上下气缸上升端
/// </summary> /// </summary>
MH_UpDownCylinder_Up = 2001, MH_CylinderUp = 2001,
/// <summary> /// <summary>
/// 料仓移载装置,其他气缸运行到初始状态( 顶升气缸下降端,前后气缸后退端,夹料气缸放松端,阻挡气缸输入=0 ) /// 料仓移载装置,其他气缸运行到初始状态( 顶升气缸下降端,前后气缸后退端,夹料气缸放松端,阻挡气缸输入=0 )
/// </summary> /// </summary>
MH_OtherCylinder_Back = 2002, MH_OtherCylinderBack = 2002,
#endregion #endregion
...@@ -200,36 +200,36 @@ namespace OnlineStore.DeviceLibrary ...@@ -200,36 +200,36 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
///移载装置入库处理,编码与仓位一致,上下气缸1下降 ///移载装置入库处理,编码与仓位一致,上下气缸1下降
/// </summary> /// </summary>
MI_07_UpDownCylinderDown = 3007, MI_06_CylinderDown = 3006,
/// <summary> /// <summary>
///移载装置入库处理,编码与仓位一致,上下气缸1下降后,等待0.3秒,防止没有 下降到位就夹紧 ///移载装置入库处理,编码与仓位一致,上下气缸1下降后,等待0.3秒,防止没有 下降到位就夹紧
/// </summary> /// </summary>
MI_07_UpDownCylinderDownWait = 3024, MI_07_DownWait = 3007,
/// <summary> /// <summary>
///移载装置入库处理,夹料气缸1夹紧 ///移载装置入库处理,夹料气缸1夹紧
/// </summary> /// </summary>
MI_08_ClampCylinderSlack = 3008, MI_08_CylinderOpen = 3008,
/// <summary> /// <summary>
///移载装置入库处理,上下气缸1上升 ///移载装置入库处理,上下气缸1上升
/// </summary> /// </summary>
MI_09_UpDownCylinderUp = 3009, MI_09_CylinderUp = 3009,
/// <summary> /// <summary>
///移载装置入库处理,,前后气缸1前进 ///移载装置入库处理,,前后气缸1前进
/// </summary> /// </summary>
MI_10_BeforeAfterCylinderBefore = 3010, MI_10_CylinderBefore = 3010,
/// <summary> /// <summary>
/// 移载装置入库处理,等待box等待状态才能继续操作 /// 移载装置入库处理,等待box等待状态才能继续操作
/// </summary> /// </summary>
MI_10_WaitBox = 3006, MI_10_WaitBox = 3030,
/// <summary> /// <summary>
///移载装置入库处理,上下气缸1下降 ///移载装置入库处理,上下气缸1下降
/// </summary> /// </summary>
MI_11_UpDownCylinderDown = 3011, MI_11_CylinderDown = 3011,
/// <summary> /// <summary>
///移载装置入库处理,,夹料气缸1放松 ///移载装置入库处理,,夹料气缸1放松
/// </summary> /// </summary>
MI_12_ClampCylinderTighten = 3012, MI_12_CylinderRelax = 3012,
/// <summary> /// <summary>
///移载装置入库处理,上下气缸1上升 ///移载装置入库处理,上下气缸1上升
/// </summary> /// </summary>
...@@ -237,7 +237,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -237,7 +237,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
///移载装置入库处理,,前后气缸1后退 ///移载装置入库处理,,前后气缸1后退
/// </summary> /// </summary>
MI_14_BeforeAfterCylinderAfter = 3014, MI_14_CylinderAfter = 3014,
/// <summary> /// <summary>
///移载装置入库处理,,前后气缸已后退,通知料仓入库 ///移载装置入库处理,,前后气缸已后退,通知料仓入库
/// </summary> /// </summary>
...@@ -249,11 +249,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -249,11 +249,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
///移载装置入库处理,编码不一致,顶升气缸1下降 ///移载装置入库处理,编码不一致,顶升气缸1下降
/// </summary> /// </summary>
MI_20_TopCylinderDown = 3020, MI_20_TopDown = 3020,
/// <summary> /// <summary>
///移载装置入库处理,阻挡气缸1-2下降 ///移载装置入库处理,阻挡气缸1-2下降
/// </summary> /// </summary>
MI_21_StopCylinderDown = 3021, MI_21_StopDown = 3021,
/// <summary> /// <summary>
///移载装置入库处理,检测Check4=0, ///移载装置入库处理,检测Check4=0,
/// </summary> /// </summary>
...@@ -269,7 +269,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -269,7 +269,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
///移载(流水线)装置出入库处理,阻挡气缸1-1下降 ///移载(流水线)装置出入库处理,阻挡气缸1-1下降
/// </summary> /// </summary>
MIO_00_StopCylinder1Down = 3080, MIO_00_Stop1Down = 3080,
/// <summary> /// <summary>
///移载(流水线)装置出入库处理,夹具检测1-4=1 ///移载(流水线)装置出入库处理,夹具检测1-4=1
/// </summary> /// </summary>
...@@ -281,7 +281,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -281,7 +281,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
///移载(流水线)装置出入库处理,阻挡气缸1-1上升 ///移载(流水线)装置出入库处理,阻挡气缸1-1上升
/// </summary> /// </summary>
MIO_03_StopCylinder2Down = 3083, MIO_03_Stop2Down = 3083,
/// <summary> /// <summary>
/// 检测夹具检测IO1=1 /// 检测夹具检测IO1=1
/// </summary> /// </summary>
...@@ -294,11 +294,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -294,11 +294,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
///移载(流水线)装置出入库处理,顶 升气缸上升 ///移载(流水线)装置出入库处理,顶 升气缸上升
/// </summary> /// </summary>
MIO_06_TopCylinderUp = 3086, MIO_06_TopUp = 3086,
/// <summary> /// <summary>
/// 移载(流水线)装置出入库处理,定位气缸上升 /// 移载(流水线)装置出入库处理,定位气缸上升
/// </summary> /// </summary>
MIO_07_LocationCylinderUp = 3087, MIO_07_LocationUp = 3087,
/// <summary> /// <summary>
/// 等待StoreMove完成当前操作开始入库 /// 等待StoreMove完成当前操作开始入库
/// </summary> /// </summary>
...@@ -321,11 +321,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -321,11 +321,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 移载(流水线)定位气缸下降 /// 移载(流水线)定位气缸下降
/// </summary> /// </summary>
MO_13_LoactionCylinder_Down = 3103, MO_13_LoactionDown = 3103,
/// <summary> /// <summary>
/// 移载(流水线)装置出库处理 ,顶升气缸1下降 /// 移载(流水线)装置出库处理 ,顶升气缸1下降
/// </summary> /// </summary>
MO_14_TopCylinder_Down = 3104, MO_14_TopDown = 3104,
/// <summary> /// <summary>
/// 如果是移栽2需要等待托盘是否可以走 /// 如果是移栽2需要等待托盘是否可以走
/// </summary> /// </summary>
...@@ -333,11 +333,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -333,11 +333,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 移载(流水线)装置出库处理, 阻挡气缸1-2下降 /// 移载(流水线)装置出库处理, 阻挡气缸1-2下降
/// </summary> /// </summary>
MO_16_StopCylinder2_Down = 3106, MO_16_Stop2Down = 3106,
/// <summary> /// <summary>
/// 移载(流水线)装置出库处理, 阻挡2托盘检测=0, /// 移载(流水线)装置出库处理, 阻挡2托盘检测=0,
/// </summary> /// </summary>
MO_17_Tray_Check = 3107, MO_17_Stop2Check = 3107,
/// <summary> /// <summary>
/// 移载(流水线)装置出库处理, 阻挡气缸1-1下降 阻挡气缸1-2上升 /// 移载(流水线)装置出库处理, 阻挡气缸1-1下降 阻挡气缸1-2上升
/// </summary> /// </summary>
...@@ -350,41 +350,41 @@ namespace OnlineStore.DeviceLibrary ...@@ -350,41 +350,41 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 移栽装置出库处理。。前后气缸1前进 /// 移栽装置出库处理。。前后气缸1前进
/// </summary> /// </summary>
MO_51_BeforeAfterCylinderBefore = 3151, MO_51_CylinderBefore = 3151,
/// <summary> /// <summary>
/// 移栽装置出库处理。上下气缸1下降 /// 移栽装置出库处理。上下气缸1下降
/// </summary> /// </summary>
MO_52_UpDownCylinderDown = 3152, MO_52_CylinderDown = 3152,
/// <summary> /// <summary>
/// 移栽装置出库处理。上下气缸1下降后,等待0.3秒再夹紧,防止没有下降到位就夹紧操作 /// 移栽装置出库处理。上下气缸1下降后,等待0.3秒再夹紧,防止没有下降到位就夹紧操作
/// </summary> /// </summary>
MO_53_UpDownCylinderDownWait = 3153, MO_53_DownWait = 3153,
/// <summary> /// <summary>
/// 移栽装置出库处理。 夹料气缸1夹紧 /// 移栽装置出库处理。 夹料气缸1夹紧
/// </summary> /// </summary>
MO_54_ClampCylinderSlack = 3154, MO_54_CylinderOpen = 3154,
/// <summary> /// <summary>
/// 移栽装置出库处理。 上下气缸1上升 /// 移栽装置出库处理。 上下气缸1上升
/// </summary> /// </summary>
MO_55_UpDownCylinderUp = 3155, MO_55_CylinderUp = 3155,
/// <summary> /// <summary>
/// 移栽装置出库处理。 前后气缸1后退 /// 移栽装置出库处理。 前后气缸1后退
/// </summary> /// </summary>
MO_56_BeforeAfterCylinderAfter = 3156, MO_56_CylinderAfter = 3156,
/// <summary> /// <summary>
/// 移载(流水线)装置出库处理,上下气缸1下降 /// 移载(流水线)装置出库处理,上下气缸1下降
/// </summary> /// </summary>
MO_58_UpDownCylinderDown = 3158, MO_58_CylinderDown = 3158,
/// <summary> /// <summary>
/// 移载(流水线)装置出库处理,夹料气缸1放松 /// 移载(流水线)装置出库处理,夹料气缸1放松
/// </summary> /// </summary>
MO_59_ClampCylinderTighten = 3159, MO_59_CylinderRelax = 3159,
/// <summary> /// <summary>
/// 移载(流水线)装置出库处理,上下气缸1上升 /// 移载(流水线)装置出库处理,上下气缸1上升
/// </summary> /// </summary>
MO_60_UpDownCylinderUp = 3160, MO_60_CylinderUp = 3160,
#region 入料模块,紧急出料移栽处理 #region 入料模块,紧急出料移栽处理
...@@ -422,7 +422,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -422,7 +422,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 等待轨道1夹具检测信号 /// 等待轨道1夹具检测信号
/// </summary> /// </summary>
SW02_WaitFixtureCheck =5002, SW02_WaitCheck =5002,
/// <summary> /// <summary>
/// 横移轨道顶升气缸上升 /// 横移轨道顶升气缸上升
...@@ -436,7 +436,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -436,7 +436,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 收到横移轨道2夹具检测信号 /// 收到横移轨道2夹具检测信号
/// </summary> /// </summary>
SW05_WaitOutFixtureCheck=5005, SW05_WaitOutCheck=5005,
/// <summary> /// <summary>
/// 等待出口信号持续一段时间 /// 等待出口信号持续一段时间
/// </summary> /// </summary>
...@@ -444,7 +444,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -444,7 +444,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 停止横移轨道转动,横移轨道顶升气缸下降 /// 停止横移轨道转动,横移轨道顶升气缸下降
/// </summary> /// </summary>
SW07_TopCylinderDown=5007, SW07_TopDown=5007,
/// <summary> /// <summary>
/// 阻挡2下降,等待托盘流出 /// 阻挡2下降,等待托盘流出
...@@ -470,7 +470,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -470,7 +470,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 横移装置上升, /// 横移装置上升,
/// </summary> /// </summary>
FR_03_MoveCylinder_Up = 10003, FR_03_CylinderUp = 10003,
/// <summary> /// <summary>
/// 升降伺服回原点 /// 升降伺服回原点
...@@ -484,7 +484,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -484,7 +484,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
///上料装置:上料横移气缸取料端SOL ///上料装置:上料横移气缸取料端SOL
/// </summary> /// </summary>
FR_06_MoveCylinder_Give = 10006, FR_06_CylinderGive = 10006,
...@@ -500,11 +500,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -500,11 +500,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 放开定位气缸 /// 放开定位气缸
/// </summary> /// </summary>
FR_13_LocationCylinder_Down, FR_13_LocationDown,
/// <summary> /// <summary>
/// 顶升气缸下降 /// 顶升气缸下降
/// </summary> /// </summary>
FR_14_TopCylinderDown, FR_14_TopDown,
/// <summary> /// <summary>
/// 提升伺服在上升到P1点 /// 提升伺服在上升到P1点
/// </summary> /// </summary>
...@@ -730,7 +730,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -730,7 +730,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
///上料完成, 料架到达出口,出口顶升下降,定位气缸下降, ///上料完成, 料架到达出口,出口顶升下降,定位气缸下降,
/// </summary> /// </summary>
FI_39_TopCylinderDown, FI_39_TopDown,
/// <summary> /// <summary>
///上料完成, 出口线体运转,料架到达出口处, 通知AGV取空料架 ///上料完成, 出口线体运转,料架到达出口处, 通知AGV取空料架
...@@ -759,7 +759,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -759,7 +759,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 出料流程:定位气缸下降 /// 出料流程:定位气缸下降
/// </summary> /// </summary>
FO_02_LocationCylinder_Down = 12002, FO_02_LocationDown = 12002,
/// <summary> /// <summary>
/// 入口流水线转动,等待出料检测信号消失 /// 入口流水线转动,等待出料检测信号消失
/// </summary> /// </summary>
...@@ -772,7 +772,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -772,7 +772,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
///出料检测: 工位检测信号,定位气缸上升 ///出料检测: 工位检测信号,定位气缸上升
/// </summary> /// </summary>
FO_05_LocationCylinder_Up= 12005, FO_05_LocationUp= 12005,
/// <summary> /// <summary>
/// 出料检测:提升轴下降到位P2 /// 出料检测:提升轴下降到位P2
...@@ -795,7 +795,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -795,7 +795,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 紧急出料移栽:上料横移机构取料端 /// 紧急出料移栽:上料横移机构取料端
/// /// </summary> /// /// </summary>
FO_212_MoveCylinder_Take = 12212, FO_212_CylinderTake = 12212,
/// <summary> /// <summary>
/// 紧急出料移栽:升降伺服下降到P2 /// 紧急出料移栽:升降伺服下降到P2
/// /// </summary> /// /// </summary>
...@@ -803,15 +803,15 @@ namespace OnlineStore.DeviceLibrary ...@@ -803,15 +803,15 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 紧急出料移栽:上料横移机构下降 /// 紧急出料移栽:上料横移机构下降
/// /// </summary> /// /// </summary>
FO_214_MoveCylinder_Down = 12214, FO_214_CylinderDown = 12214,
/// <summary> /// <summary>
/// 紧急出料移栽:上料气缸夹紧 /// 紧急出料移栽:上料气缸夹紧
/// /// </summary> /// /// </summary>
FO_215_MoveCylinder_Tighten = 12215, FO_215_CylinderTighten = 12215,
/// <summary> /// <summary>
/// 紧急出料移栽:上料横移机构上升 /// 紧急出料移栽:上料横移机构上升
/// /// </summary> /// /// </summary>
FO_216_MoveCylinder_Up = 12216, FO_216_CylinderUp = 12216,
/// <summary> /// <summary>
/// 紧急出料移栽:升降伺服到P1 /// 紧急出料移栽:升降伺服到P1
/// /// </summary> /// /// </summary>
...@@ -819,7 +819,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -819,7 +819,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 紧急出料移栽:上料横移机构到放料端 /// 紧急出料移栽:上料横移机构到放料端
/// /// </summary> /// /// </summary>
FO_218_MoveCylinder_Give = 12218, FO_218_CylinderGive = 12218,
/// <summary> /// <summary>
/// 料盘移栽:升降伺服到P3 /// 料盘移栽:升降伺服到P3
...@@ -829,7 +829,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -829,7 +829,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 料盘移栽:出料横移机构放松 /// 料盘移栽:出料横移机构放松
/// </summary> /// </summary>
FO_220_MoveCylinder_Slack = 12220, FO_220_CylinderSlack = 12220,
/// <summary> /// <summary>
/// 料盘移栽:升降伺服回P1 /// 料盘移栽:升降伺服回P1
/// </summary> /// </summary>
...@@ -846,7 +846,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -846,7 +846,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 出料完成,升降盘定位气缸后退 /// 出料完成,升降盘定位气缸后退
/// </summary> /// </summary>
FO_32_TrayLocationCylinder_After, FO_32_TrayLocation_After,
/// <summary> /// <summary>
/// 出料完成,提升伺服到P1点 /// 出料完成,提升伺服到P1点
...@@ -878,7 +878,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -878,7 +878,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
///出料完成, 料架到达出口,出口顶升下降,定位气缸下降, ///出料完成, 料架到达出口,出口顶升下降,定位气缸下降,
/// </summary> /// </summary>
FO_38_TopCylinderDown , FO_38_TopDown ,
/// <summary> /// <summary>
///出料完成, 出口线体运转,料架到达出口处, 通知AGV取空料架 ///出料完成, 出口线体运转,料架到达出口处, 通知AGV取空料架
...@@ -899,23 +899,23 @@ namespace OnlineStore.DeviceLibrary ...@@ -899,23 +899,23 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 前后气缸后退 /// 前后气缸后退
/// </summary> /// </summary>
PO_00_BeforeAfterAfter = 20000, PO_00_CylinderAfter = 20000,
/// <summary> /// <summary>
/// 上下气缸下降 /// 上下气缸下降
/// </summary> /// </summary>
PO_01_UpDownCylinderDown = 20001, PO_01_CylinderDown = 20001,
/// <summary> /// <summary>
/// 等待0.3秒后再夹紧 /// 等待0.3秒后再夹紧
/// </summary> /// </summary>
PO_02_UpDownCylinderDownWait = 20002, PO_02_DownWait = 20002,
/// <summary> /// <summary>
/// 夹料气缸夹紧 /// 夹料气缸夹紧
/// </summary> /// </summary>
PO_03_ClampCylinderSlack=20003, PO_03_CylinderOpen=20003,
/// <summary> /// <summary>
/// 上下气缸上升 /// 上下气缸上升
/// </summary> /// </summary>
PO_04_UpDownCylinderUp = 20004, PO_04_CylinderUp = 20004,
/// <summary> /// <summary>
/// 等待可以移栽料盘到流水线 /// 等待可以移栽料盘到流水线
...@@ -925,27 +925,27 @@ namespace OnlineStore.DeviceLibrary ...@@ -925,27 +925,27 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 前后气缸前进 /// 前后气缸前进
/// </summary> /// </summary>
PO_06_BeforeAfterCylinderBefore = 20006, PO_06_CylinderBefore = 20006,
/// <summary> /// <summary>
/// 上下气缸下降 /// 上下气缸下降
/// </summary> /// </summary>
PO_07_UpDownCylinderDown = 20007, PO_07_CylinderDown = 20007,
/// <summary> /// <summary>
/// 夹料气缸放松 /// 夹料气缸放松
/// </summary> /// </summary>
PO_08_ClampCylinderTighten = 20008, PO_08_CylinderRelax = 20008,
/// <summary> /// <summary>
/// 上下气缸上升 /// 上下气缸上升
/// </summary> /// </summary>
PO_09_UpdownCylinderUp = 20009, PO_09_CylinderUp = 20009,
/// <summary> /// <summary>
/// 前后气缸后退,等待4000 /// 前后气缸后退,等待4000
/// </summary> /// </summary>
PO_10_BeforeAfterCylinderAfter = 20010, PO_10_CylinderAfter = 20010,
...@@ -982,7 +982,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -982,7 +982,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 出料皮带线开始扫码送出料盘,上升或下降分盘定位气缸 /// 出料皮带线开始扫码送出料盘,上升或下降分盘定位气缸
/// </summary> /// </summary>
DO_04_SeparateDeviceMove = 30204, DO_04_SeparateMove = 30204,
/// <summary> /// <summary>
/// 出料皮带线开始扫码送出料盘,转动皮带线,同时转动分盘装置 /// 出料皮带线开始扫码送出料盘,转动皮带线,同时转动分盘装置
...@@ -991,7 +991,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -991,7 +991,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 出料皮带线开始扫码送出料盘,等待料盘到达分盘装置位置 /// 出料皮带线开始扫码送出料盘,等待料盘到达分盘装置位置
/// </summary> /// </summary>
DO_06_Wait_SeparateDevice_Check = 30206, DO_06_SeparateCheck = 30206,
/// <summary> /// <summary>
/// 出料皮带线开始扫码送出料盘,到达后再转动500 /// 出料皮带线开始扫码送出料盘,到达后再转动500
/// </summary> /// </summary>
...@@ -1023,7 +1023,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -1023,7 +1023,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 皮带线12处理料盘:皮带线转动到出口定位信号亮 /// 皮带线12处理料盘:皮带线转动到出口定位信号亮
/// </summary> /// </summary>
DLO_06_LineRun_OutLocation_Check, DLO_06_OutCheck,
/// <summary> /// <summary>
/// 皮带线12处理料盘:出库有料盘,继续转动一个工位, /// 皮带线12处理料盘:出库有料盘,继续转动一个工位,
/// </summary> /// </summary>
...@@ -1031,11 +1031,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -1031,11 +1031,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary> /// <summary>
/// 皮带线12处理料盘:是NG料盘,NG气缸前进 /// 皮带线12处理料盘:是NG料盘,NG气缸前进
/// </summary> /// </summary>
DLO_08_NGCylinder_Before, DLO_08_NGBefore,
/// <summary> /// <summary>
/// 皮带线12处理料盘:是NG料盘,NG气缸后退 /// 皮带线12处理料盘:是NG料盘,NG气缸后退
/// </summary> /// </summary>
DLO_09_NGCylinder_After, DLO_09_NGAfter,
/// <summary> /// <summary>
/// 皮带线12处理料盘:判断出口是否有料盘,有料盘需要转动,没有料盘结束 /// 皮带线12处理料盘:判断出口是否有料盘,有料盘需要转动,没有料盘结束
/// </summary> /// </summary>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!