Commit d998b76f 几米阳光

出入库取料后,需要检测叉子料盘有料信号,否则报信号超时

1 个父辈 13676e4d
...@@ -40,6 +40,9 @@ ...@@ -40,6 +40,9 @@
20190114 20190114
改为伺服串联兼容模式 改为伺服串联兼容模式
20190227
出入库取料后,需要检测叉子料盘有料信号,否则报信号超时
......
...@@ -388,7 +388,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -388,7 +388,7 @@ namespace OnlineStore.DeviceLibrary
NeedCheckSafetyLight = 0; NeedCheckSafetyLight = 0;
InStoreLog("入库:SI_06 拿物品,压紧轴至P2(压紧点)) 升降轴至P7(进料口取料缓冲点) "); InStoreLog("入库:SI_06 拿物品,压紧轴至P2(压紧点)) 升降轴至P7(进料口取料缓冲点) ");
StoreMove.NextMoveStep(StoreMoveStep.SI_06_DoorWarToDevice); StoreMove.NextMoveStep(StoreMoveStep.SI_06_DoorWarToDevice);
ComMoveToPosition(moveP.ComPress_P2,true); ComMoveToPosition(moveP.ComPress_P2, true);
//if (IsHasCompress_Axis) //if (IsHasCompress_Axis)
//{ //{
// ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P2); // ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P2);
...@@ -407,6 +407,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -407,6 +407,12 @@ namespace OnlineStore.DeviceLibrary
} }
else if (StoreMove.MoveStep == StoreMoveStep.SI_07_DeviceBackFromDoor) else if (StoreMove.MoveStep == StoreMoveStep.SI_07_DeviceBackFromDoor)
{ {
InStoreLog("入库:SI_071_CheckTraySignal 等待叉子料盘有料信号");
StoreMove.NextMoveStep(StoreMoveStep.SI_071_CheckTraySignal);
StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Fixture, IO_VALUE.HIGH));
}
else if (StoreMove.MoveStep == StoreMoveStep.SI_071_CheckTraySignal)
{
if (IsHasCompress_Axis || Config.IsHasLocationCylinder.Equals(0)) if (IsHasCompress_Axis || Config.IsHasLocationCylinder.Equals(0))
{ {
InStoreLog("入库:SI_09 移动到库位点,旋转轴至P2(库位点),升降轴至P3(库位入库前点) "); InStoreLog("入库:SI_09 移动到库位点,旋转轴至P2(库位点),升降轴至P3(库位入库前点) ");
...@@ -469,7 +475,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -469,7 +475,7 @@ namespace OnlineStore.DeviceLibrary
//SendLineStatus(StoreID, posId, StoreStatus.InStoreEnd); //SendLineStatus(StoreID, posId, StoreStatus.InStoreEnd);
StoreMove.NextMoveStep(StoreMoveStep.SI_12_PutWareToBag); StoreMove.NextMoveStep(StoreMoveStep.SI_12_PutWareToBag);
ComMoveToPosition(moveP.ComPress_P3,true); ComMoveToPosition(moveP.ComPress_P3, true);
ACAxisMove(Config.UpDown_Axis, moveP.UpDown_P4, Config.UpDownAxis_P4_Speed); ACAxisMove(Config.UpDown_Axis, moveP.UpDown_P4, Config.UpDownAxis_P4_Speed);
} }
...@@ -608,7 +614,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -608,7 +614,7 @@ namespace OnlineStore.DeviceLibrary
// ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P2); // ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P2);
// StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, moveP.ComPress_P2, false)); // StoreMove.WaitList.Add(WaitResultInfo.WaitShuoKe(Config.CompressAxis_Slv, moveP.ComPress_P2, false));
//} //}
ComMoveToPosition(moveP.ComPress_P2,true); ComMoveToPosition(moveP.ComPress_P2, true);
ACAxisMove(Config.UpDown_Axis, moveP.UpDown_P6, Config.UpDownAxis_P6_Speed); ACAxisMove(Config.UpDown_Axis, moveP.UpDown_P6, Config.UpDownAxis_P6_Speed);
} }
else if (StoreMove.MoveStep == StoreMoveStep.SO_05_BagWareToDevice) else if (StoreMove.MoveStep == StoreMoveStep.SO_05_BagWareToDevice)
...@@ -626,6 +632,12 @@ namespace OnlineStore.DeviceLibrary ...@@ -626,6 +632,12 @@ namespace OnlineStore.DeviceLibrary
} }
else if (StoreMove.MoveStep == StoreMoveStep.SO_06_BagDeviceBack) else if (StoreMove.MoveStep == StoreMoveStep.SO_06_BagDeviceBack)
{ {
StoreMove.NextMoveStep(StoreMoveStep.SO_061_WaitTraySignal);
OutStoreLog("出库:SO_061_WaitTraySignal 等待叉子的料盘有料信号");
StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Fixture, IO_VALUE.HIGH));
}
else if (StoreMove.MoveStep == StoreMoveStep.SO_061_WaitTraySignal)
{
if (KNDIOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.LOW)) if (KNDIOValue(IO_Type.TrayCheck_Fixture).Equals(IO_VALUE.LOW))
{ {
string posId = StoreMove.MoveParam != null ? StoreMove.MoveParam.PositionNum : ""; string posId = StoreMove.MoveParam != null ? StoreMove.MoveParam.PositionNum : "";
...@@ -664,7 +676,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -664,7 +676,7 @@ namespace OnlineStore.DeviceLibrary
} }
else if (StoreMove.MoveStep == StoreMoveStep.SO_08_ToDoorPosition) else if (StoreMove.MoveStep == StoreMoveStep.SO_08_ToDoorPosition)
{ {
if (IsHasCompress_Axis|| Config.IsHasLocationCylinder.Equals(0)) if (IsHasCompress_Axis || Config.IsHasLocationCylinder.Equals(0))
{ {
//SO_10_DeviceToDoorPro(); //SO_10_DeviceToDoorPro();
StoreMove.NextMoveStep(StoreMoveStep.SO_091_WaitNoTray); StoreMove.NextMoveStep(StoreMoveStep.SO_091_WaitNoTray);
...@@ -699,7 +711,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -699,7 +711,7 @@ namespace OnlineStore.DeviceLibrary
OutStoreLog("出库:SO_11 放下物品,升降轴至P8(进料口出料缓冲点) "); OutStoreLog("出库:SO_11 放下物品,升降轴至P8(进料口出料缓冲点) ");
StoreMove.NextMoveStep(StoreMoveStep.SO_11_DevicePutWare); StoreMove.NextMoveStep(StoreMoveStep.SO_11_DevicePutWare);
NeedCheckSafetyLight = 0; NeedCheckSafetyLight = 0;
ComMoveToPosition(moveP.ComPress_P1,true); ComMoveToPosition(moveP.ComPress_P1, true);
//if (IsHasCompress_Axis) //if (IsHasCompress_Axis)
//{ //{
// ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P1); // ShuoKeControls.AbsMove(Config.CompressAxis_Slv, moveP.ComPress_P1);
...@@ -729,7 +741,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -729,7 +741,7 @@ namespace OnlineStore.DeviceLibrary
} }
int ms = OutStoreWaitSeconds * 1000; int ms = OutStoreWaitSeconds * 1000;
StoreMove.NextMoveStep(StoreMoveStep.SO_14_WaitTake); StoreMove.NextMoveStep(StoreMoveStep.SO_14_WaitTake);
OutStoreLog("出库:SO_14_WaitTake 等待拿走物品,最多等待"+OutStoreWaitSeconds+"秒"); OutStoreLog("出库:SO_14_WaitTake 等待拿走物品,最多等待" + OutStoreWaitSeconds + "秒");
StoreMove.WaitList.Add(WaitResultInfo.WaitTime(ms)); StoreMove.WaitList.Add(WaitResultInfo.WaitTime(ms));
//StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Door, IO_VALUE.LOW)); //StoreMove.WaitList.Add(WaitResultInfo.WaitIO(IO_Type.TrayCheck_Door, IO_VALUE.LOW));
StoreMove.WaitList.Add(WaitResultInfo.WaitHeight(0)); StoreMove.WaitList.Add(WaitResultInfo.WaitHeight(0));
......
...@@ -203,7 +203,10 @@ namespace OnlineStore.DeviceLibrary ...@@ -203,7 +203,10 @@ namespace OnlineStore.DeviceLibrary
///料仓出库,,叉子从 库位返回,轴3( 叉子) 至P1( 待机点) ///料仓出库,,叉子从 库位返回,轴3( 叉子) 至P1( 待机点)
/// </summary> /// </summary>
SO_06_BagDeviceBack = 106, SO_06_BagDeviceBack = 106,
/// <summary>
/// 料仓出库:等待料仓有料盘检测信号
/// </summary>
SO_061_WaitTraySignal=116,
/// <summary> /// <summary>
/// 料仓出库,定位气缸伸出(有压紧轴的不需要此步骤),,定位气缸伸出 Y103-1/PCI5O1-83) Y103-2/PCI5O1-90) Y103-3/PCI5O1-95) 伸出到位 /// 料仓出库,定位气缸伸出(有压紧轴的不需要此步骤),,定位气缸伸出 Y103-1/PCI5O1-83) Y103-2/PCI5O1-90) Y103-3/PCI5O1-95) 伸出到位
/// </summary> /// </summary>
...@@ -282,6 +285,10 @@ namespace OnlineStore.DeviceLibrary ...@@ -282,6 +285,10 @@ namespace OnlineStore.DeviceLibrary
/// </summary> /// </summary>
SI_07_DeviceBackFromDoor = 207, SI_07_DeviceBackFromDoor = 207,
/// <summary> /// <summary>
/// 入库。。检测叉子是否有料
/// </summary>
SI_071_CheckTraySignal = 217,
/// <summary>
/// 入库。。,定位气缸伸出 (有压紧轴的不需要此步骤) /// 入库。。,定位气缸伸出 (有压紧轴的不需要此步骤)
/// </summary> /// </summary>
SI_08_LocationCylinder_Up = 208, SI_08_LocationCylinder_Up = 208,
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!