Commit fc530fa1 张东亮

入库期间急停锁定库位,收到料盘尺寸为0时使用库位尺寸

1 个父辈 0d199e3d
......@@ -669,6 +669,12 @@ namespace DeviceLibrary
}
else
{
if(plateH==0 || plateW==0)
{
plateW = position.BagWidth;
plateH = position.BagHigh;
LogUtil.info("收到服务器出库命令:【" + posId + $"】,但无尺寸信息,使用库位尺寸{plateW}*{plateH}");
}
if (isSingleOut)
RobotManage.mainMachine.AddSingleStoreTask(posId, plateW, plateH);
else
......
......@@ -55,6 +55,10 @@ namespace DeviceLibrary
MoveInfo.NewMove(MoveStep.Wait);
MoveInfo.log("执行重置");
}
public bool IsInstore
{
get { return Common.IsInstore(storeMoveType) ; }
}
StoreMoveType storeMoveType = StoreMoveType.None;
string WareCode = "";
int plateH = 0;
......
......@@ -59,6 +59,7 @@ namespace DeviceLibrary
void SuddenStop_BTN()
{
lastSuddenStop = true;
RobotManage.mainMachine.DisableInstorePos();
RobotManage.Stop();
}
}
......
......@@ -34,6 +34,28 @@ namespace DeviceLibrary
if (OutSingleJobList.Enqueue(jobInfo))
LogUtil.info($"单盘出库任务队列任务数量: {OutSingleJobList.Count}");
}
/// <summary>
/// 入库,放料前急停屏蔽库位
/// </summary>
/// <param name="reason"></param>
public void DisableInstorePos(string reason= "入库中,放料前急停屏蔽库位")
{
try
{
if (boxTransport != null)
{
if (boxTransport.IsInstore)//&& !boxTransport.IsPutOnOut
{
ServerCommunication.DisablePos(Name, StoreMoveInfo.MoveParam?.WareCode, StoreMoveInfo.MoveParam?.PosID, reason);
}
}
}
catch (Exception e)
{
LogUtil.error($"DisableInstorePos error", e);
}
}
void StoreProcess()
{
if (CheckWait(StoreMoveInfo))
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!