分支自 SuZhouGuanHong/TaiYuanTaiZhong

dengjunjie
2024-05-07 18cae30dba11fe5bbfe3709d7104f197df77892e
´úÂë¹ÜÀí/PCS/WCS_Server/WIDESEA_WCS/Jobs/equipment/PipelineJob.cs
@@ -417,8 +417,11 @@
                        var station = stationinfoRepository.Find(x => x.stationCode == stationCode && x.enable).FirstOrDefault();
                        if (station == null) continue;
                        remark = "查询起点是否存在任务";
                        if (agvtaskService.Find(x => x.agv_fromaddress == stationCode /*|| x.agv_toaddress == stationCode*/).Any())
                            continue;
                        if (stationCode.Contains("W") && agvtaskService.Find(x => x.agv_fromaddress == stationCode || x.agv_toaddress == stationCode).Any()) continue;
                        else
                        {
                            if (agvtaskService.Find(x => x.agv_fromaddress == stationCode).Any()) continue;
                        }
                        remark = "读取光电信号";
                        var details = plcRepository.Find(x => x.plcdetail_iotype == plc.plcinfo_iotyep && x.plcdetail_number == stationCode).ToList();
                        var PalletSignal = (Int16)DBExtension.Read(details.Where(x => x.plcdetail_name == "R_PalletSignal").First(), client);//读取托盘信号:1:有,2æ—