Commit ba43dd79 LN

1

1 个父辈 3d8c9bd3
...@@ -777,10 +777,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -777,10 +777,7 @@ namespace OnlineStore.DeviceLibrary
default: break; default: break;
} }
SideWayTimerProcess(); SideWayTimerProcess();
CodeProcess();
} }
} }
catch (Exception ex) catch (Exception ex)
......
...@@ -266,13 +266,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -266,13 +266,7 @@ namespace OnlineStore.DeviceLibrary
} }
#endregion #endregion
#region 扫码处理
private void CodeProcess()
{
}
#endregion
#region 出库 #region 出库
...@@ -407,8 +401,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -407,8 +401,7 @@ namespace OnlineStore.DeviceLibrary
private bool SideWay41IsWait = false; private bool SideWay41IsWait = false;
private DateTime SideWay23Ntime = DateTime.Now; private DateTime SideWay23Ntime = DateTime.Now;
private bool SideWay23IsWait = false; private bool SideWay23IsWait = false;
private bool sdIsInprocess = false; private bool sdIsInprocess = false;
private DateTime sdlastProTime = DateTime.Now; private DateTime sdlastProTime = DateTime.Now;
private void SideWayTimerProcess() private void SideWayTimerProcess()
...@@ -430,9 +423,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -430,9 +423,7 @@ namespace OnlineStore.DeviceLibrary
return; return;
} }
if (SW41_MoveInfo.MoveType.Equals(LineMoveType.None)) if (SW41_MoveInfo.MoveType.Equals(LineMoveType.None))
{ {
if (IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.HIGH) && IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.LOW) && if (IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.HIGH) && IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.LOW) &&
TrayManager.CanMoveSidesWay(4) && TrayManager.CanMoveSidesWay(1)) TrayManager.CanMoveSidesWay(4) && TrayManager.CanMoveSidesWay(1))
{ {
...@@ -448,29 +439,24 @@ namespace OnlineStore.DeviceLibrary ...@@ -448,29 +439,24 @@ namespace OnlineStore.DeviceLibrary
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);
CylinderMove(SW41_MoveInfo, IO_Type.SW1_LocationCylinder_Up, IO_Type.SW1_LocationCylinder_Down); CylinderMove(SW41_MoveInfo, IO_Type.SW1_LocationCylinder_Up, IO_Type.SW1_LocationCylinder_Down);
} }
else if (IOValue(IO_Type.SW4_StopCheck).Equals(IO_VALUE.HIGH) && }
IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.LOW) && else if (IOValue(IO_Type.SW4_StopCheck).Equals(IO_VALUE.HIGH) &&
IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.LOW) && IOValue(IO_Type.SW4_TrayCheck).Equals(IO_VALUE.LOW) &&
TrayManager.CanMoveSidesWay(4) && TrayManager.CanMoveSidesWay(1)) IOValue(IO_Type.SW1_TrayCheck).Equals(IO_VALUE.LOW) &&
TrayManager.CanMoveSidesWay(4) && TrayManager.CanMoveSidesWay(1))
{
TimeSpan span14 = DateTime.Now - SideWay41Ntime;
if (SideWay41IsWait && span14.TotalSeconds > 1)
{ {
TimeSpan span14 = DateTime.Now - SideWay41Ntime; // TrayManager.UpdateSWState(4, 4);
if (SideWay41IsWait && span14.TotalSeconds > 1) //TrayManager.UpdateSWState(1, 4);
{ SW41_MoveInfo.NewMove(LineMoveType.InStore);
// TrayManager.UpdateSWState(4, 4); SW41_MoveInfo.NextMoveStep(LineMoveStep.SW01_StopDown);
//TrayManager.UpdateSWState(1, 4); SWLog("横移轨道41:检测到SW4_StopCheck, 等待1000,定位气缸下降 ");
SW41_MoveInfo.NewMove(LineMoveType.InStore); IOMove(IO_Type.SW4_StopDown, IO_VALUE.HIGH);
SW41_MoveInfo.NextMoveStep(LineMoveStep.SW01_StopDown); // SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
SWLog("横移轨道41:检测到SW4_StopCheck, 等待1000,定位气缸下降 "); CylinderMove(SW41_MoveInfo, IO_Type.SW4_LocationCylinder_Up, IO_Type.SW1_LocationCylinder_Down);
IOMove(IO_Type.SW4_StopDown, IO_VALUE.HIGH); CylinderMove(SW41_MoveInfo, IO_Type.SW4_LocationCylinder_Up, IO_Type.SW1_LocationCylinder_Down);
// SW41_MoveInfo.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.SW4_TrayCheck, IO_VALUE.HIGH));
CylinderMove(SW41_MoveInfo, IO_Type.SW4_LocationCylinder_Up, IO_Type.SW1_LocationCylinder_Down);
CylinderMove(SW41_MoveInfo, IO_Type.SW4_LocationCylinder_Up, IO_Type.SW1_LocationCylinder_Down);
}
else if (!SideWay41IsWait)
{
SideWay41IsWait = true;
SideWay41Ntime = DateTime.Now;
}
} }
else if (!SideWay41IsWait) else if (!SideWay41IsWait)
{ {
...@@ -478,6 +464,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -478,6 +464,11 @@ namespace OnlineStore.DeviceLibrary
SideWay41Ntime = DateTime.Now; SideWay41Ntime = DateTime.Now;
} }
} }
else if (!SideWay41IsWait)
{
SideWay41IsWait = true;
SideWay41Ntime = DateTime.Now;
}
else else
{ {
SideWay41IsWait = false; SideWay41IsWait = false;
...@@ -487,11 +478,9 @@ namespace OnlineStore.DeviceLibrary ...@@ -487,11 +478,9 @@ namespace OnlineStore.DeviceLibrary
{ {
SideWay41IsWait = false; SideWay41IsWait = false;
SideWay41BusyProcess(); SideWay41BusyProcess();
} }
if (SW23_MoveInfo.MoveType.Equals(LineMoveType.None)) if (SW23_MoveInfo.MoveType.Equals(LineMoveType.None))
{ {
//检测到阻挡夹具信号后,阻挡气缸下降,等待有夹具信号,阻挡气缸上升, //检测到阻挡夹具信号后,阻挡气缸下降,等待有夹具信号,阻挡气缸上升,
//顶升气缸上升到位,开始流水线转动,检测到出口信号后,停止转动,顶升气缸下降,阻挡4下降,盘通过 //顶升气缸上升到位,开始流水线转动,检测到出口信号后,停止转动,顶升气缸下降,阻挡4下降,盘通过
if (IOValue(IO_Type.SW2_TrayCheck).Equals(IO_VALUE.HIGH) && IOValue(IO_Type.SW3_TrayCheck).Equals(IO_VALUE.LOW) && if (IOValue(IO_Type.SW2_TrayCheck).Equals(IO_VALUE.HIGH) && IOValue(IO_Type.SW3_TrayCheck).Equals(IO_VALUE.LOW) &&
...@@ -656,8 +645,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -656,8 +645,7 @@ namespace OnlineStore.DeviceLibrary
} }
private bool CheckTrayIsNeed(int deviceId) private bool CheckTrayIsNeed(int deviceId)
{ {
//横移1对应入料1 //横移1对应入料1
if (FeedingEquipMap.ContainsKey(deviceId)) if (FeedingEquipMap.ContainsKey(deviceId))
{ {
FeedingEquip equip = FeedingEquipMap[deviceId]; FeedingEquip equip = FeedingEquipMap[deviceId];
...@@ -696,7 +684,6 @@ namespace OnlineStore.DeviceLibrary ...@@ -696,7 +684,6 @@ namespace OnlineStore.DeviceLibrary
SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000)); SW23_MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
CylinderMove(SW23_MoveInfo, IO_Type.SW2_TopCylinder_Down, IO_Type.SW2_TopCylinder_Up); CylinderMove(SW23_MoveInfo, IO_Type.SW2_TopCylinder_Down, IO_Type.SW2_TopCylinder_Up);
CylinderMove(SW23_MoveInfo, IO_Type.SW3_TopCylinder_Down, IO_Type.SW3_TopCylinder_Up); CylinderMove(SW23_MoveInfo, IO_Type.SW3_TopCylinder_Down, IO_Type.SW3_TopCylinder_Up);
} }
else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW03_TopCylinderUp)) else if (SW23_MoveInfo.MoveStep.Equals(LineMoveStep.SW03_TopCylinderUp))
{ {
...@@ -773,11 +760,9 @@ namespace OnlineStore.DeviceLibrary ...@@ -773,11 +760,9 @@ namespace OnlineStore.DeviceLibrary
LogUtil.debug(Name + msg); LogUtil.debug(Name + msg);
} }
#endregion #endregion
#region 料仓出入库逻辑处理 #region 料仓出入库逻辑处理
/// <summary>-- /// <summary>--
/// BOX出入库完成事件 /// BOX出入库完成事件
/// </summary> /// </summary>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!