lss
2025-05-19 27aa7a13c64b829eef39fbd67255f1be9155cc12
HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/process/DeviceProcess.cs
@@ -47,12 +47,12 @@
        /// <summary>
        /// 叠盘机空托返回
        /// </summary>    
        internal static void Traystacker(string loc, int qty)
        internal static void Traystacker(string loc, int qty, int type )
        {
            try
            {
                //上传数据
                Traystacker result1 = new Traystacker(){ station = loc, taskSource = 1, Qty = qty };
                Traystacker result1 = new Traystacker() { station = loc, taskSource = 1, Qty = qty, dpType = type };
              
                HttpHelper httpHelper = new HttpHelper();
                Result result = new Result();
@@ -81,7 +81,7 @@
            }
            catch (Exception ex)
            {
                LogHelper.Info($"叠盘机空托返回  Error=>{ex.ToString()}");
                LogHelper.Error($"叠盘机空托返回  Error=>{ex.ToString()}",ex);
            }
        }
@@ -148,7 +148,7 @@
                        var mst = WCSHelper.GetTaskByStartloc(item.S_CODE);
                        if (mst == null)
                        {
                            Traystacker(item.S_CODE, item.N_CURRENT_NUM);
                            Traystacker(item.S_CODE, item.N_CURRENT_NUM, 1);
                        }
                    }
                }
@@ -161,7 +161,8 @@
        internal static void DpjTraffic()
        {
            string startBti = "CMB17-DP-001";
            try
            {
            var value = S7Helper.ReadDpj(2014, S7.Net.VarType.Int);
            if (value >= 7)
@@ -177,10 +178,17 @@
                var mst = WCSHelper.GetTaskByStartloc(startBti);
                if (mst == null)
                {
                    Traystacker(startBti, value);
                        Traystacker(startBti, value, 2);
                }
            }
        }
            catch (Exception ex)
            {
                LogHelper.Error($"ReadDpj DpjTraffic:{ex}",ex);
            }
        }
        /// <summary>
        /// 原材料库接口访问
        /// </summary>