|
@@ -114,7 +114,7 @@ namespace WCS.Service.Works.Stations
|
|
|
{
|
|
|
var rgv = Device.Find("RGV5").Device<IRGV521, IRGV520>();
|
|
|
if (rgv.Data2.Trigger == 1)
|
|
|
- throw new Exception("等待WCS与RGV5交互完成");
|
|
|
+ throw new Exception("[2325]等待WCS与RGV5交互完成");
|
|
|
var outqty = (rgv.Data.DestPosition == 2081 && rgv.Data.SystemStatus != RGVRunStatus.空闲) ? 1 : 0;
|
|
|
|
|
|
outqty += Device.Where(v => "2325,2081,2083,2084,2086".Split(',').Contains(v.CODE)).Select(v => v.Device<IStation521, IStation520>())
|
|
@@ -122,7 +122,7 @@ namespace WCS.Service.Works.Stations
|
|
|
.Count();
|
|
|
if (outqty >= 2)
|
|
|
{
|
|
|
- throw new Exception($"流量控制,放行任务数已达{outqty}");
|
|
|
+ throw new Exception($"[2325]流量控制,放行任务数已达{outqty}");
|
|
|
}
|
|
|
|
|
|
var inqty = Device.Where(v => "2081,2083,2088".Split(',').Contains(v.CODE)).Select(v => v.Device<IStation521,IStation520>())
|
|
@@ -130,7 +130,7 @@ namespace WCS.Service.Works.Stations
|
|
|
.Count();
|
|
|
if (inqty > 0)
|
|
|
{
|
|
|
- throw new Exception($"交通管制,正在入库的任务数{inqty}");
|
|
|
+ throw new Exception($"[2325]交通管制,正在入库的任务数{inqty}");
|
|
|
}
|
|
|
|
|
|
//var outPath = obj.Entity.GetPath(task.ADDRTO);
|