Commit f9d3b078 刘韬

1

1 个父辈 85f89f2e
......@@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OnlineStore.Common</RootNamespace>
<AssemblyName>MyCommon</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
......
......@@ -4,7 +4,6 @@ using OnlineStore.LoadCSVLibrary;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DeviceLibrary
......@@ -55,6 +54,7 @@ namespace DeviceLibrary
MoveInfo.NextMoveStep(MoveStep.In03);
MoveInfo.log("扫码失败重新扫码");
}
bool isScanError = false;
void InProcess()
{
if (mainMachine.CheckWait(MoveInfo))
......@@ -103,6 +103,7 @@ namespace DeviceLibrary
Lift.LiftDown(MoveInfo);
FrontStop(MoveInfo, IO_VALUE.HIGH);
ScanCode(100);
isScanError = false;
MoveInfo.log("开始扫码,入口阻挡上升, 线体停止");
}
else if (MoveInfo.IsTimeOut(10))
......@@ -226,7 +227,9 @@ namespace DeviceLibrary
Msg.add("等待服务器返回库位", MsgLevel.info);
else if (MoveInfo.IsTimeOut(15))
{
//MoveInfo.NextMoveStep(MoveStep.Wait);
isScanError = true;
MoveInfo.NextMoveStep(MoveStep.InNG1);
Lift.LiftDown(MoveInfo);
MoveInfo.log($"等待服务器返回库位超时");
}
break;
......@@ -272,7 +275,10 @@ namespace DeviceLibrary
MoveInfo.NextMoveStep(MoveStep.InNG3);
Line.LineStop("work");
MoveInfo.log($"料箱抵达出口");
Msg.add("入库周转箱超重,已退出,请处理", MsgLevel.alarm);
if (isScanError)
Msg.add("入库周转箱扫码失败,请确认料箱方向后重试", MsgLevel.alarm);
else
Msg.add("入库周转箱超重,已退出,请处理", MsgLevel.alarm);
RobotManage.UserPause("入库周转箱超重,退出线体");
break;
case MoveStep.InNG3:
......
......@@ -9,7 +9,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>OnlineStore.LoadCSVLibrary</RootNamespace>
<AssemblyName>LoadCSVLibrary</AssemblyName>
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!