Commit b01a6338 几米阳光

料仓状态默认复位中

1 个父辈 b794741c
...@@ -757,6 +757,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -757,6 +757,7 @@ namespace OnlineStore.DeviceLibrary
StopMove(true); StopMove(true);
storeRunStatus = StoreRunStatus.Wait; storeRunStatus = StoreRunStatus.Wait;
storeStatus = StoreStatus.ResetMove;
//mainTimer.Enabled = false; //mainTimer.Enabled = false;
AutomaticBaiting.StopRun(); AutomaticBaiting.StopRun();
KNDManager.CloseAllDO(); KNDManager.CloseAllDO();
......
...@@ -399,9 +399,11 @@ namespace OnlineStore.DeviceLibrary ...@@ -399,9 +399,11 @@ namespace OnlineStore.DeviceLibrary
{ {
if (IsHasCompress_Axis) if (IsHasCompress_Axis)
{ {
InStoreLog("入库:SI_06 压紧轴压紧,压紧轴到P2 "); int targetPosition = moveP.UpDown_P1 - Config.UpDownAxis_DownValue;
InStoreLog("入库:SI_06 压紧轴压紧,压紧轴到P2,升降轴稍微下降【" + Config.UpDownAxis_DownValue + "】,目标位置【" + targetPosition + "】 ");
StoreMove.NextMoveStep(StoreMoveStep.SI_06_CompressWork); StoreMove.NextMoveStep(StoreMoveStep.SI_06_CompressWork);
ComMoveToPosition(moveP.ComPress_P2, true); ComMoveToPosition(moveP.ComPress_P2, true);
ACAxisMove(Config.UpDown_Axis, targetPosition, Config.UpDownAxis_P1_Speed);
} }
else else
{ {
...@@ -412,13 +414,13 @@ namespace OnlineStore.DeviceLibrary ...@@ -412,13 +414,13 @@ namespace OnlineStore.DeviceLibrary
} }
} }
else if (StoreMove.MoveStep == StoreMoveStep.SI_06_CompressWork) else if (StoreMove.MoveStep == StoreMoveStep.SI_06_CompressWork)
{ //{
int targetPosition = moveP.UpDown_P1 - Config.UpDownAxis_DownValue; // int targetPosition = moveP.UpDown_P1 - Config.UpDownAxis_DownValue;
InStoreLog("入库:SI_061 升降轴稍微下降【"+Config.UpDownAxis_DownValue+"】,目标位置【"+targetPosition+"】 "); // InStoreLog("入库:SI_061 升降轴稍微下降【"+Config.UpDownAxis_DownValue+"】,目标位置【"+targetPosition+"】 ");
StoreMove.NextMoveStep(StoreMoveStep.SI_061_UpdownAxisDown); // StoreMove.NextMoveStep(StoreMoveStep.SI_061_UpdownAxisDown);
ACAxisMove(Config.UpDown_Axis, targetPosition, Config.UpDownAxis_P1_Speed); // ACAxisMove(Config.UpDown_Axis, targetPosition, Config.UpDownAxis_P1_Speed);
} //}
else if (StoreMove.MoveStep == StoreMoveStep.SI_061_UpdownAxisDown) //else if (StoreMove.MoveStep == StoreMoveStep.SI_061_UpdownAxisDown)
{ {
InStoreLog("入库:SI_07 叉子返回,进出轴至P1(待机点) "); InStoreLog("入库:SI_07 叉子返回,进出轴至P1(待机点) ");
StoreMove.NextMoveStep(StoreMoveStep.SI_07_DeviceBackFromDoor); StoreMove.NextMoveStep(StoreMoveStep.SI_07_DeviceBackFromDoor);
......
...@@ -52,7 +52,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -52,7 +52,7 @@ namespace OnlineStore.DeviceLibrary
/// 6=入库执行中,7=入仓完成,8=入仓失败 /// 6=入库执行中,7=入仓完成,8=入仓失败
/// 9=出库执行,10=出仓完成,11=出库失败 /// 9=出库执行,10=出仓完成,11=出库失败
/// </summary> /// </summary>
public StoreStatus storeStatus = StoreStatus.StoreOnline; public StoreStatus storeStatus = StoreStatus.ResetMove;
/// <summary> /// <summary>
/// 料仓状态 /// 料仓状态
/// </summary> /// </summary>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!