Commit 3be7d8f6 张东亮

入库ng上报

1 个父辈 910c844d
......@@ -137,7 +137,12 @@ namespace OnlineStore.DeviceLibrary
lineOperation.cid = CID;
lineOperation.seq = ConfigAppSettings.nextSeq();
lineOperation.status = 1;
if (WarnMsg != "")
var input = StoreManager.XLRStore?.inputEquip;
if (input != null && !string.IsNullOrEmpty(input.InstoreNgMsg))
{
WarnMsg = input.InstoreNgMsg;
}
else if (WarnMsg != "")
{
lineOperation.status = (int)DeviceStatus.Warning;
lineOperation.msg = $"W={WarnMsg}";
......
......@@ -111,7 +111,7 @@ namespace OnlineStore.DeviceLibrary
}
SetAllTimer(false);
MoveInfo.EndMove();
InstoreNgMsg = "";
LogInfo("StartRun : 开始启动 ");
runStatus = RunStatus.HomeMoving;
MoveInfo.NewMove(MoveType.RHome, new InOutParam());
......
......@@ -18,6 +18,7 @@ namespace OnlineStore.DeviceLibrary
{
public bool ClampEmptyMove = false;
public Dictionary<int, int> reelHeightOffset = new Dictionary<int, int>();
public string InstoreNgMsg = "";
protected override bool CheckWaitResult(DeviceMoveInfo moveInfo, WaitResultInfo wait)
{
TimeSpan span = DateTime.Now - moveInfo.LastSetpTime;
......@@ -490,6 +491,7 @@ namespace OnlineStore.DeviceLibrary
else if (MoveInfo.IsStep(StepEnum.II81_MiddleToNg))
{
MoveInfo.NextMoveStep(StepEnum.II82_InoutToP6);
InstoreNgMsg = $"入库ng :{MoveInfo.MoveParam.PosInfo?.ToStr()}";
MoveLog($" 入料->NG箱 {MoveInfo.SLog}: 进出轴到P6(NG料区放料点){Config.Inout_P6}");
InOutAxis.AbsMove(MoveInfo, Config.Inout_P6, Config.Inout_P6_Speed);
}
......@@ -520,6 +522,7 @@ namespace OnlineStore.DeviceLibrary
}
else if (MoveInfo.IsStep(StepEnum.II86_1_InoutToP1))
{
InstoreNgMsg = "";
if (shelf.Equals(1))
{
MoveLog($" 入料->NG箱放料结束");
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!