111
cjs
9 天以前 6fe4792f1f71389400d075b57fb613d7815b6783
ams/Hanhe.iWCS.JingmenGEMTwoProtocol/EnentListen.cs
@@ -272,7 +272,8 @@
            #region   2000-充电任务--无需改动
            if (currActionModel.CN_N_ACTION_CODE == 2000)
            {
                ProcessHelper.AGVBatteryTime();
                //ProcessHelper.AGVBatteryTime();
                ProcessHelper.AGVBatteryTimeTwo();
                //Thread.Sleep(500);
            }
            #endregion
@@ -369,7 +370,14 @@
            }
            #endregion
            #region 四钴
            #region 10021-erp简单生产入库表反馈失败,重新反馈
            if (currActionModel.CN_N_ACTION_CODE == 10021)
            {
                ERPService.SendERPTaskCompleteFuncThree();
            }
            #endregion
            #region 电钴
            #region 10017-A口
            if (currActionModel.CN_N_ACTION_CODE == 10017)
@@ -398,6 +406,47 @@
            }
            #endregion
            #region 10019-D口
            if (currActionModel.CN_N_ACTION_CODE == 10019)
            {
                var list = Settings.GetPlcInfo().Where(a => a.enable == 1 && a.deviceType == "43").ToList();
                if (list.Count > 0)
                {
                    list.ForEach(a =>
                    {
                        PLCControl.DMachine(a);
                    });
                }
                Thread.Sleep(3000);
            }
            #endregion
            #region 10020-电钴接驳位入立库
            if (currActionModel.CN_N_ACTION_CODE == 10020)
            {
                var conInfo = Settings.GetDGConnectingbitsList().Where(a => a.enable == 1).ToList();
                if (conInfo != null)
                {
                    foreach (var a in conInfo)
                    {
                        CMMLog.Info(JsonConvert.SerializeObject(a));
                        PLCControl.DGInWarehouse(a.locCode);
                    }
                }
            }
            #endregion
            #region 10022-反馈erp 插入简单生产入库表
            if (currActionModel.CN_N_ACTION_CODE == 10022)
            {
                ERPService.SendERPTaskCompleteFuncDG();
            }
            #endregion
            #region 生产退库
            #endregion
            #endregion
            return bResult;
        }