Commit 8a84738d LN

日志修改

1 个父辈 f720347f
......@@ -223,7 +223,7 @@ namespace OnlineStore.DeviceLibrary
{
//压紧轴回原点,叉子回到P1,关闭门旋转轴和升降轴回到P1
MoveInfo.NewMove(StoreMoveType.StoreReset);
MoveInfo.NextMoveStep(StoreMoveStep.BOX_H54_TOP1_InOutToP1);
MoveInfo.NextMoveStep(StoreMoveStep.BOX_H54_InOutToP1);
LogInfo("到待机状态,进出轴到P1,判断叉子没有料盘");
ACAxisMove(Config.InOut_Axis, Config.InOutAxis_P1_Position, Config.InOutAxis_P1_Speed);
}
......@@ -283,7 +283,7 @@ namespace OnlineStore.DeviceLibrary
{
case StoreMoveStep.BOX_H01_InOutBack:
Thread.Sleep(200);
MoveInfo.NextMoveStep(StoreMoveStep.BOX_H02_InoutTOP1_TopDown);
MoveInfo.NextMoveStep(StoreMoveStep.BOX_H02_TopDown);
LogInfo(MoveInfo.MoveType + ": 线体停止,进出轴到待机点P1,顶升气缸下降,NG门下降,入料移门关闭");
LineStop();
AxisCountClear(Config.InOut_Axis);
......@@ -292,7 +292,7 @@ namespace OnlineStore.DeviceLibrary
CylinderMove(MoveInfo, IO_Type.TopCylinder_Up, IO_Type.TopCylinder_Down);
DoorBean.StartClose(MoveInfo);
break;
case StoreMoveStep.BOX_H02_InoutTOP1_TopDown:
case StoreMoveStep.BOX_H02_TopDown:
MoveInfo.NextMoveStep(StoreMoveStep.BOX_H03_LineRun);
if (IOValue(IO_Type.LineTake_Check).Equals(IO_VALUE.HIGH))
{
......@@ -338,19 +338,19 @@ namespace OnlineStore.DeviceLibrary
MoveEndToRuningStatus();
break;
case StoreMoveStep.BOX_H54_TOP1_InOutToP1:
MoveInfo.NextMoveStep(StoreMoveStep.BOX_H55_TOP1_CompressHome);
case StoreMoveStep.BOX_H54_InOutToP1:
MoveInfo.NextMoveStep(StoreMoveStep.BOX_H55_CompHome);
LogInfo("到待机状态,压紧轴回原点,关闭舱门");
ACAxisHomeMove(Config.Comp_Axis);
break;
case StoreMoveStep.BOX_H55_TOP1_CompressHome:
MoveInfo.NextMoveStep(StoreMoveStep.BOX_H56_TOP1_OtherAxisToP1);
case StoreMoveStep.BOX_H55_CompHome:
MoveInfo.NextMoveStep(StoreMoveStep.BOX_H56_OtherAxisToP1);
LogInfo(MoveInfo.MoveType + ": 旋转轴运动到P1,上下轴走到P1,压紧轴到P1 ");
ACAxisMove(Config.Middle_Axis, Config.MiddleAxis_P1, Config.MiddleAxis_P1_Speed);
ACAxisMove(Config.UpDown_Axis, Config.UpDownAxis_P1, Config.UpDownAxis_P1_Speed);
ACAxisMove(Config.Comp_Axis, Config.CompAxis_P1_Position, Config.CompAxis_P1_Speed);
break;
case StoreMoveStep.BOX_H56_TOP1_OtherAxisToP1:
case StoreMoveStep.BOX_H56_OtherAxisToP1:
LogInfo("到待机状态完成");
MoveEndToRuningStatus();
break;
......
......@@ -297,7 +297,7 @@ namespace OnlineStore.DeviceLibrary
private void StartMoveToBag()
{
MoveInfo.NextMoveStep(StoreMoveStep.BI_51_MoveToBag);
InOutStoreLog("入库 " + MoveInfo.SLog + ":移动到库位点,轴1( 转盘) 至P2( 库位点)轴2(上下) 至P3(库位入库前点)");
InOutStoreLog("入库 " + MoveInfo.SLog + ":移动到库位点,旋转轴至P2( 库位点)轴2(上下) 至P3(库位入库前点)");
ACAxisMove(Config.Middle_Axis, MoveInfo.MoveParam.MoveP.Middle_P2, Config.MiddleAxis_P2_Speed);
ACAxisMove(Config.UpDown_Axis, MoveInfo.MoveParam.MoveP.UpDown_P3, Config.UpDownAxis_P3_Speed);
}
......@@ -366,7 +366,7 @@ namespace OnlineStore.DeviceLibrary
{
if (MoveInfo.SingleInstore)
{
MoveInfo.NextMoveStep(StoreMoveStep.BI_16_ComAxisDownMove);
MoveInfo.NextMoveStep(StoreMoveStep.BI_16_ComDownMove);
InOutStoreLog("单盘入库,料架取料 " + MoveInfo.SLog + ":压紧轴走到压紧点P2: "+MoveInfo.MoveParam.MoveP.ComPress_P2);
ACAxisMove(Config.Comp_Axis, MoveInfo.MoveParam.MoveP.ComPress_P2, Config.CompAxis_P2_Speed);
}
......@@ -382,7 +382,7 @@ namespace OnlineStore.DeviceLibrary
}
else if (MoveInfo.MoveStep.Equals(StoreMoveStep.BI_15_StartCompress))
{
MoveInfo.NextMoveStep(StoreMoveStep.BI_16_ComAxisDownMove);
MoveInfo.NextMoveStep(StoreMoveStep.BI_16_ComDownMove);
int currPosition = ACServerManager.GetActualtPosition(Config.Comp_Axis);
ComTargetPosition = currPosition;
int targetP = currPosition + Config.CompAxis_Down_Position;
......@@ -395,7 +395,7 @@ namespace OnlineStore.DeviceLibrary
ACAxisMove(Config.Comp_Axis, targetP, Config.CompAxis_P1_Speed);
}
else if (MoveInfo.MoveStep.Equals(StoreMoveStep.BI_16_ComAxisDownMove))
else if (MoveInfo.MoveStep.Equals(StoreMoveStep.BI_16_ComDownMove))
{
MoveInfo.NextMoveStep(StoreMoveStep.BI_17_InoutBack);
InOutStoreLog("料架取料 " + MoveInfo.SLog + ":叉子后退到扫码点");
......@@ -518,13 +518,13 @@ namespace OnlineStore.DeviceLibrary
else if (MoveInfo.MoveStep.Equals(StoreMoveStep.BI_51_MoveToBag))
{
MoveInfo.NextMoveStep(StoreMoveStep.BI_52_DeviceToBag);
InOutStoreLog("入库 " + MoveInfo.SLog + ":叉子进入库位中,轴3( 叉子) 至P3(库位取放料点)");
InOutStoreLog("入库 " + MoveInfo.SLog + ":叉子进入库位中,进出轴到库位P3");
ACAxisMove(Config.InOut_Axis, moveP.InOut_P3, Config.InOutAxis_P3_Speed);
}
else if (MoveInfo.MoveStep.Equals(StoreMoveStep.BI_52_DeviceToBag))
{
MoveInfo.NextMoveStep(StoreMoveStep.BI_53_PutWareToBag);
InOutStoreLog("入库 " + MoveInfo.SLog + ":放下物品,轴2( 上下) 至P4( 库位入料缓冲点)轴4( 压紧) 至P3( 压紧前点)");
InOutStoreLog("入库 " + MoveInfo.SLog + ":放下物品,升降轴到库位缓冲点P4,压紧轴到P3");
// 5= 入仓位完成(料仓Box把料盘放入对应的库位中,装置还未恢复原始状态)
string posId = MoveInfo.MoveParam != null ? MoveInfo.MoveParam.PosID : "";
......@@ -540,7 +540,7 @@ namespace OnlineStore.DeviceLibrary
else if (MoveInfo.MoveStep.Equals(StoreMoveStep.BI_53_PutWareToBag))
{
MoveInfo.NextMoveStep(StoreMoveStep.BI_54_DeviceBackFromBag);
InOutStoreLog("入库 " + MoveInfo.SLog + ":叉子从库位中返回,轴3( 叉子) 动作至P1( 待机点)");
InOutStoreLog("入库 " + MoveInfo.SLog + ":叉子从库位中返回,进出轴到P1");
ACAxisMove(Config.InOut_Axis, moveP.InOut_P1, Config.InOutAxis_P1_Speed);
}
else if (MoveInfo.MoveStep.Equals(StoreMoveStep.BI_54_DeviceBackFromBag))
......@@ -624,7 +624,7 @@ namespace OnlineStore.DeviceLibrary
ShelfEnterProcess();
}
//料架送出逻辑
else if (MoveInfo.MoveStep >= StoreMoveStep.BS_01_TopCylinder_Down)
else if (MoveInfo.MoveStep >= StoreMoveStep.BS_01_TopDown)
{
ShelfOutProcess();
}
......@@ -758,7 +758,7 @@ namespace OnlineStore.DeviceLibrary
}
#region 出入库步骤
if (MoveInfo.MoveStep == StoreMoveStep.SO_01_LocationCylinderDown)
if (MoveInfo.MoveStep == StoreMoveStep.SO_01_LocationDown)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_02_DeviceBack);
InOutStoreLog("出库 " + MoveInfo.SLog + ":进出轴到P1 ");
......@@ -807,7 +807,7 @@ namespace OnlineStore.DeviceLibrary
ACAxisMove(Config.Middle_Axis, moveP.Middle_P101, Config.MiddleAxis_P101_Speed);
}
else if (MoveInfo.MoveStep == StoreMoveStep.SO_07_LocationCylinder_Up)
else if (MoveInfo.MoveStep == StoreMoveStep.SO_07_LocationUp)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_08_ToShelfPosition);
InOutStoreLog("出库 " + MoveInfo.SLog + ":走到料架位置,旋转轴至P101,升降轴至P102, ");
......@@ -821,7 +821,7 @@ namespace OnlineStore.DeviceLibrary
}
//此处需要等待移栽没有工作,才能把盘放入出料口
else if (MoveInfo.MoveStep == StoreMoveStep.SO_09_LocationCylinder_Down)
else if (MoveInfo.MoveStep == StoreMoveStep.SO_09_LocationDown)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_10_WaitNoTray);
}
......@@ -853,13 +853,13 @@ namespace OnlineStore.DeviceLibrary
else if (MoveInfo.MoveStep == StoreMoveStep.SO_12_DevicePutWare)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_13_DeviceOutFromDoor);
InOutStoreLog("出库 " + MoveInfo.SLog + ":叉子从出料口返回,,进出轴动作至P1(待机点) ");
InOutStoreLog("出库 " + MoveInfo.SLog + ":叉子从出料口返回, 进出轴到P1 ");
InOutBackToP1(moveP.InOut_P1);
}
else if (MoveInfo.MoveStep == StoreMoveStep.SO_13_DeviceOutFromDoor)
{
MoveInfo.NextMoveStep(StoreMoveStep.SO_14_GoBack);
InOutStoreLog("出库 " + MoveInfo.SLog + ": 升降轴返回,轴2至P1(待机点) ,");
InOutStoreLog("出库 " + MoveInfo.SLog + ": 升降轴返回,升降轴到P1");
ACAxisMove(Config.UpDown_Axis, moveP.UpDown_P1, Config.UpDownAxis_P1_Speed);
//发送消息给流水线
// SendOutStoreEnd(MoveInfo);
......@@ -909,9 +909,9 @@ namespace OnlineStore.DeviceLibrary
}
#endregion
else if ( MoveInfo.MoveStep <= StoreMoveStep.SO_01_LocationCylinderDown) {
else if ( MoveInfo.MoveStep <= StoreMoveStep.SO_01_LocationDown) {
ShelfEnterProcess();
}else if (MoveInfo.MoveStep >= StoreMoveStep.BS_01_TopCylinder_Down)
}else if (MoveInfo.MoveStep >= StoreMoveStep.BS_01_TopDown)
{
ShelfOutProcess();
}
......
......@@ -161,7 +161,7 @@ namespace OnlineStore.DeviceLibrary
private void StartShelfOut()
{
MoveInfo.NextMoveStep(StoreMoveStep.BS_01_TopCylinder_Down);
MoveInfo.NextMoveStep(StoreMoveStep.BS_01_TopDown);
if (MoveInfo.MoveType.Equals(StoreMoveType.OutStore))
{
InOutStoreLog("送出出库料架:顶升气缸下降");
......@@ -182,13 +182,13 @@ namespace OnlineStore.DeviceLibrary
moveName = "送出出库料架";
}
if (MoveInfo.MoveStep.Equals(StoreMoveStep.BS_01_TopCylinder_Down))
if (MoveInfo.MoveStep.Equals(StoreMoveStep.BS_01_TopDown))
{
MoveInfo.NextMoveStep(StoreMoveStep.BS_02_LocatinCylinder_Down);
MoveInfo.NextMoveStep(StoreMoveStep.BS_02_LocatinDown);
InOutStoreLog(moveName + MoveInfo.SLog + " :定位气缸下降");
// CylinderMove(MoveInfo, IO_Type.LocationCylinder_Up, IO_Type.LocationCylinder_Down);
}
else if (MoveInfo.MoveStep.Equals(StoreMoveStep.BS_02_LocatinCylinder_Down))
else if (MoveInfo.MoveStep.Equals(StoreMoveStep.BS_02_LocatinDown))
{
MoveInfo.NextMoveStep(StoreMoveStep.BS_03_DoorOpen);
InOutStoreLog(moveName + MoveInfo.SLog + ":打开入料口移门");
......
......@@ -125,7 +125,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 顶升下降
/// </summary>
BOX_H02_InoutTOP1_TopDown = 012,
BOX_H02_TopDown = 012,
/// <summary>
/// BOX复位:线体停止, ,流水线先转动3000
/// </summary>
......@@ -148,15 +148,15 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// BOX回待机点:叉子走到P1
/// </summary>
BOX_H54_TOP1_InOutToP1 = 54,
BOX_H54_InOutToP1 = 54,
/// <summary>
/// BOX回待机点:压紧轴回原点
/// </summary>
BOX_H55_TOP1_CompressHome = 55,
BOX_H55_CompHome = 55,
/// <summary>
///BOX回待机点: 关闭门,旋转轴到P1,升降轴到P1
/// </summary>
BOX_H56_TOP1_OtherAxisToP1 = 56,
BOX_H56_OtherAxisToP1 = 56,
#endregion
#region 料架进入料仓步骤 1000开始
......@@ -207,18 +207,18 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
///料仓出库,,定位气缸下降
/// </summary>
SO_01_LocationCylinderDown = 2001,
SO_01_LocationDown = 2001,
/// <summary>
///料仓出库:叉子先运动到P1
/// </summary>
SO_02_DeviceBack = 2002,
/// <summary>
/// 料仓出库,,所有轴运行到库位, 轴4( 压紧) 至P3(压紧前点) ,轴1( 转盘) 至P2( 库位点),轴2(上下) 至P5(库位出库前点)
/// 料仓出库,,所有轴运行到库位,压紧轴到压紧前点P3 ,旋转轴到库位点P2,轴2(上下) 至P5(库位出库前点)
/// </summary>
SO_03_ToBagPosition = 2003,
/// <summary>
/// 料仓出库,,叉子进入库位中, 轴3( 叉子) 至P3(库位取放料点)
/// 料仓出库,,叉子进入库位中, 进出轴到库位P3
/// </summary>
SO_04_DeviceToBag = 2004,
......@@ -235,7 +235,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 料仓出库,定位气缸伸出(有压紧轴的不需要此步骤 )
/// </summary>
SO_07_LocationCylinder_Up = 2007,
SO_07_LocationUp = 2007,
/// <summary>
/// 料仓出库,走到料架位置,旋转轴至P20,升降轴至P102,
......@@ -245,7 +245,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 料仓出库,定位气缸退回(有压紧轴的不需要此步骤),,定位气缸退回(Y104-1/PCI5O1-84) (Y104-2/PCI5O1-91) (Y104-2/PCI5O1-96) 退回到位
/// </summary>
SO_09_LocationCylinder_Down = 2009,
SO_09_LocationDown = 2009,
/// <summary>
/// 等待门口无料盘
/// </summary>
......@@ -260,7 +260,7 @@ namespace OnlineStore.DeviceLibrary
/// </summary>
SO_12_DevicePutWare = 2012,
/// <summary>
/// 料仓出库,,叉子从出料口返回,,轴3( 叉子) 动作至P1( 待机点)
/// 料仓出库,,叉子从出料口返回,,进出轴到P1
/// </summary>
SO_13_DeviceOutFromDoor = 2013,
......@@ -302,7 +302,7 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 料架取料:检测到料叉压紧确认信号,再次向下压紧指定的值
/// </summary>
BI_16_ComAxisDownMove = 3016,
BI_16_ComDownMove = 3016,
/// <summary>
/// 料架取料:记录压紧高度,叉子后退到P1
/// </summary>
......@@ -358,19 +358,19 @@ namespace OnlineStore.DeviceLibrary
BI_30_SetInstoreParam = 3030,
/// <summary>
/// 入库。。移动到库位点,轴1( 转盘) 至P2( 库位点)轴2(上下) 至P3(库位入库前点)
/// 入库。。移动到库位点,旋转轴至P2( 库位点)轴2(上下) 至P3(库位入库前点)
/// </summary>
BI_51_MoveToBag = 3051,
/// <summary>
/// 入库。。叉子进入库位中,轴3( 叉子) 至P3(库位取放料点)
/// 入库。。叉子进入库位中,进出轴到库位P3
/// </summary>
BI_52_DeviceToBag = 3052,
/// <summary>
/// 入库。。放下物品,轴2( 上下) 至P4( 库位入料缓冲点)轴4( 压紧) 至P3( 压紧前点)
/// 入库。。放下物品,升降轴到库位缓冲点P4,压紧轴到P3
/// </summary>
BI_53_PutWareToBag = 3053,
/// <summary>
/// 入库。。叉子从库位中返回,轴3( 叉子) 动作至P1( 待机点)
/// 入库。。叉子从库位中返回,进出轴到P1
/// </summary>
BI_54_DeviceBackFromBag = 3054,
/// <summary>
......@@ -413,11 +413,11 @@ namespace OnlineStore.DeviceLibrary
/// <summary>
/// 送出空料架:顶升气缸下降
/// </summary>
BS_01_TopCylinder_Down=4001,
BS_01_TopDown=4001,
/// <summary>
/// 送出空料架:定位气缸下降
/// </summary>
BS_02_LocatinCylinder_Down = 4002,
BS_02_LocatinDown = 4002,
/// <summary>
/// 送出空料架:打开仓门
/// </summary>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!