Commit f57a2ed3 LN

上料模块优化。io使用最新dll

1 个父辈 d28de3cb
...@@ -125,6 +125,7 @@ namespace OnlineStore.AssemblyLine ...@@ -125,6 +125,7 @@ namespace OnlineStore.AssemblyLine
{ {
if (equipBase.runStatus >= (LineRunStatus.HomeMoving)) if (equipBase.runStatus >= (LineRunStatus.HomeMoving))
{ {
LogUtil.info(equipBase.Name + "点击 :复位");
equipBase.Reset(); equipBase.Reset();
} }
else else
......
...@@ -901,7 +901,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -901,7 +901,7 @@ namespace OnlineStore.DeviceLibrary
LastPosParam.TrayNumber = currTrayNum; LastPosParam.TrayNumber = currTrayNum;
InLog("料盘移栽" + MoveInfo.SLog + ":上料机构下降, 托盘号【" + currTrayNum + "】,更新托盘信息 :" + LastPosParam.ToShortStr()); InLog("料盘移栽" + MoveInfo.SLog + ":上料机构下降, 托盘号【" + currTrayNum + "】,更新托盘信息 :" + LastPosParam.ToShortStr());
TrayManager.UpdateTrayInfo(currTrayNum, true, ReelType.InStore, LastPosParam, LastPosParam.NgMsg); TrayManager.UpdateTrayInfo(currTrayNum, true, ReelType.InStore, LastPosParam, LastPosParam.NgMsg);
SServerManager.SendPosToStoreCheck(Name, LastPosParam); SServerManager.SendPosToStoreCheck(Name, LastPosParam);
} }
else if (MoveInfo.IsTimeOut(180)) else if (MoveInfo.IsTimeOut(180))
{ {
...@@ -939,9 +939,17 @@ namespace OnlineStore.DeviceLibrary ...@@ -939,9 +939,17 @@ namespace OnlineStore.DeviceLibrary
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FI_28_CylinderUp)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FI_28_CylinderUp))
{ {
MoveInfo.NextMoveStep(LineMoveStep.FI_29_UpDownAxisToP1); MoveInfo.NextMoveStep(LineMoveStep.FI_29_UpDownAxisToP1);
InLog("料盘移栽" + MoveInfo.SLog + ":升降伺服到P1点"); // InLog("料盘移栽" + MoveInfo.SLog + ":升降伺服到P1点");
TrayMoveOk(true); TrayMoveOk(true);
UpdownAxis.AbsMove(MoveInfo, Config.UpDownAxisP1, Config.UpdownAxis_P1Speed); if (!UpdownAxis.IsInPosition(Config.UpDownAxisP1))
{
InLog("料盘移栽" + MoveInfo.SLog + ":升降轴到P1点,托盘放行");
UpdownAxis.AbsMove(MoveInfo, Config.UpDownAxisP1, Config.UpdownAxis_P1Speed);
}
else
{
InLog("料盘移栽" + MoveInfo.SLog + ":升降轴已在P1点,托盘放行");
}
} }
else if (MoveInfo.MoveStep.Equals(LineMoveStep.FI_29_UpDownAxisToP1)) else if (MoveInfo.MoveStep.Equals(LineMoveStep.FI_29_UpDownAxisToP1))
{ {
...@@ -1064,8 +1072,8 @@ namespace OnlineStore.DeviceLibrary ...@@ -1064,8 +1072,8 @@ namespace OnlineStore.DeviceLibrary
} }
else if (result.Result.Equals(99) || result.Result.Equals(100)) else if (result.Result.Equals(99) || result.Result.Equals(100))
{ {
LogUtil.error(Name + "【" + code + "】第[" + count + "]次 FI_23_GetPosID 结果【" + result.Result + "】,等待1s后重新获取"); LogUtil.error(Name + "【" + code + "】第[" + count + "]次 FI_23_GetPosID 结果【" + result.Result + "】,等待3s后重新获取");
Thread.Sleep(1000); Thread.Sleep(3000);
} }
else if (!result.Msg.Equals("") ) else if (!result.Msg.Equals("") )
{ {
...@@ -1094,15 +1102,22 @@ namespace OnlineStore.DeviceLibrary ...@@ -1094,15 +1102,22 @@ namespace OnlineStore.DeviceLibrary
MoveInfo.NextMoveStep(LineMoveStep.FI_28_CylinderUp); MoveInfo.NextMoveStep(LineMoveStep.FI_28_CylinderUp);
MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000)); MoveInfo.WaitList.Add(WaitResultInfo.WaitTime(1000));
CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up); CylinderMove(MoveInfo, IO_Type.SL_MoveCylinder_Down, IO_Type.SL_MoveCylinder_Up);
//如果是小料盘,且升降轴需要上升,
string upLog = "";
if (LastWidth.Equals(7) && LastHeight.Equals(8))
{
upLog = " ,7X8盘,升降轴到待机位P1 ";
UpdownAxis.AbsMove(MoveInfo, Config.UpDownAxisP1, Config.UpdownAxis_P1Speed);
}
if (IOValue(IO_Type.SL_AxisLocationCheck).Equals(IO_VALUE.LOW) && MoveInfo.ShelfNoTray.Equals(false)) if (IOValue(IO_Type.SL_AxisLocationCheck).Equals(IO_VALUE.LOW) && MoveInfo.ShelfNoTray.Equals(false))
{ {
InLog("料盘移栽" + MoveInfo.SLog + ":上料横移机构上升,上料轴开始慢速上升到P3点,等待检测到料盘"); InLog("料盘移栽" + MoveInfo.SLog + ":上料横移机构上升,上料轴开始慢速上升到P3点" + upLog);
BatchAxisToP3(false); BatchAxisToP3(false);
} }
else else
{ {
InLog("料盘移栽" + MoveInfo.SLog + ":上料横移机构上升 "); InLog("料盘移栽" + MoveInfo.SLog + ":上料横移机构上升 " + upLog);
} }
} }
private void TrayPreMove() private void TrayPreMove()
{ {
......
...@@ -103,7 +103,7 @@ namespace OnlineStore.DeviceLibrary ...@@ -103,7 +103,7 @@ namespace OnlineStore.DeviceLibrary
aioBox.DI_Changed_Event += AioBox_DI_Changed_Event; ; aioBox.DI_Changed_Event += AioBox_DI_Changed_Event; ;
aioBox.DO_Changed_Event += AioBox_DO_Changed_Event; aioBox.DO_Changed_Event += AioBox_DO_Changed_Event;
LogUtil.info("开始连接:" + logName + ":" ); LogUtil.info("开始连接:" + logName + ":");
aioBox.Connect(); aioBox.Connect();
AIOMap.Add(ioIp, aioBox); AIOMap.Add(ioIp, aioBox);
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!