代码管理/PCS/WCS_Server/WIDESEA_WCS/Common/Gantry.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
代码管理/PCS/WCS_Server/WIDESEA_WCS/JobsPart/Common/StationTask.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
代码管理/PCS/WCS_Server/WIDESEA_WCS/JobsPart/Common/新文件夹/GetLocation.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
代码管理/PCS/WCS_Server/WIDESEA_WebApi/appsettings.json | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
´úÂë¹ÜÀí/PCS/WCS_Server/WIDESEA_WCS/Common/Gantry.cs
@@ -444,14 +444,6 @@ } #endregion var Stations = stationinfoRepository.Find(x => x.area == Pipeline.area_code(name)).OrderBy(x => x.lastUpdateTime).ToList(); #region 䏿使¯å¦ä¸ºç©ºç¶æåæ¥ç»æ¡æ¶ foreach (var station in Stations) { client.WriteByOrder(station.stationCode, station.location_state != LocationStateEnum.Stroge.ToString(), name); } #endregion if (finished && !updatefinished) { @@ -481,11 +473,11 @@ #endregion var AreaNr = (Int16)DBExtension.Read(details.Where(x => x.plcdetail_name == "W_AreaNr").First(), client); if (AreaNr == 0) { client.WriteByOrder("W_Storage_update", true, name);//è´§ä½ç¶ææ´æ° continue; } //if (AreaNr == 0) //{ // client.WriteByOrder("W_Storage_update", true, name);//è´§ä½ç¶ææ´æ° // continue; //} #region 夿åºåå·æ¯å¦ä¸è´ var area = client.ReadByOrder<Int16>("place_prog", name);//æ¾æå®æçåºåå· @@ -526,21 +518,6 @@ throw new Exception($"{station.stationCode}å·²åå¨è½¦è½®SNå·ï¼{Wheel_SN}"); } station.bindSN = string.IsNullOrEmpty(station.bindSN) ? Wheel_SN : station.bindSN + "," + Wheel_SN; station.billetID = string.IsNullOrEmpty(station.billetID) ? Mes_Work.billetID.ToString() : station.billetID + "," + Mes_Work.billetID; station.quantity++; if (station.quantity == 1) { station.stationType = Mes_Work.drawingNo; station.Number = Mes_Work.workOrder; station.heatNumber = Mes_Work.heatID; station.tray_status = "StrogeTray"; } var count = stationinfoRepository.Update(station, true); if (count < 1) throw new Exception($"䏿ä½ä¿¡æ¯æ´æ°å¤±è´¥ï¼ä¸æä½ç¼å·ï¼{station.stationCode}"); #region æ¸ ç©ºç»æ¡æ¶çä¸æä¿¡æ¯ client.WriteByOrder("W_IndexNr", (Int16)0, name);//æçä¸ç第å 个车轮 client.WriteByOrder("W_Storage_Type", (Int16)0, name);//æçç±»å1-横æ¾;2-ç«æ¾(ææ¶åªææ¨ªæ¾æç) @@ -555,6 +532,24 @@ // $"å¤çåå ¥æ¡æ¶ä¿¡æ¯ï¼\nW_AreaNrï¼{0}\nW_IndexNrï¼{0}\nW_Storage_Typeï¼{0}\n\n" + // $"åå ¥æ¡æ¶ä¿¡æ¯ï¼\nW_Storage_updateï¼{true}\nW_Enabl_Loadï¼{false}", "PCS"); #endregion #region è´§ä½ç¶ææ´æ° station.bindSN = string.IsNullOrEmpty(station.bindSN) ? Wheel_SN : station.bindSN + "," + Wheel_SN; station.billetID = string.IsNullOrEmpty(station.billetID) ? Mes_Work.billetID.ToString() : station.billetID + "," + Mes_Work.billetID; station.quantity++; if (station.quantity == 1) { station.stationType = Mes_Work.drawingNo; station.Number = Mes_Work.workOrder; station.heatNumber = Mes_Work.heatID; station.tray_status = "StrogeTray"; } var count = stationinfoRepository.Update(station, true); if (count < 1) throw new Exception($"䏿ä½ä¿¡æ¯æ´æ°å¤±è´¥ï¼ä¸æä½ç¼å·ï¼{station.stationCode}"); #endregion #region ä¿®æ¹å·¥åç¶æ var Detail = mes_DetailRepository.FindFirst(x => x.jobID == Mes_Work.jobID && x.SN == Mes_Work.SN); @@ -572,6 +567,15 @@ } } var Stations = stationinfoRepository.Find(x => x.area == Pipeline.area_code(name)).OrderBy(x => x.lastUpdateTime).ToList(); #region 䏿使¯å¦ä¸ºç©ºç¶æåæ¥ç»æ¡æ¶ foreach (var station in Stations) { client.WriteByOrder(station.stationCode, station.location_state != LocationStateEnum.Stroge.ToString(), name); } #endregion var Request = (bool)DBExtension.Read(details.Where(x => x.plcdetail_name == "R_Request_Load").First(), client); if (!Request) continue; ´úÂë¹ÜÀí/PCS/WCS_Server/WIDESEA_WCS/JobsPart/Common/StationTask.cs
@@ -408,7 +408,7 @@ if (!Pipeline_client.IsConnected) throw new Exception("ä¸é¾æ¡æºè¿æ¥è¶ æ¶ï¼"); foreach (var item in target) { TargetLocation = stationinfoRepository.Find(x => x.stationCode == item && x.location_state == "Empty" /*LocationStateEnum.Empty.ToString()*/ && x.enable).FirstOrDefault(); TargetLocation = stationinfoRepository.Find(x => x.stationCode == item && x.location_state == LocationStateEnum.Empty.ToString() && x.enable).FirstOrDefault(); var PalletSignal = Pipeline_client.ReadByOrder<Int16>("R_PalletSignal", item);//读åæçä¿¡å·:1:æ,2æ var MaterialSignal = Pipeline_client.ReadByOrder<Int16>("R_MaterialSignal", item);//读åè´§ç©ä¿¡å·:1:æ,2æ ´úÂë¹ÜÀí/PCS/WCS_Server/WIDESEA_WCS/JobsPart/Common/ÐÂÎļþ¼Ð/GetLocation.cs
@@ -47,7 +47,10 @@ if (inventory != null) { var station = stationinfoRepository.FindFirst(x => x.stationCode == inventory.stationCode); if (!string.IsNullOrEmpty(area1) && station.area != area1)//å ¥å¤§æçåºåº #region å ¥å¤§æçåºåº //if (!string.IsNullOrEmpty(area1) && station.area != area1) if (area1 == "4") { #region 寻æ¾å·²åé åå¾å·å ¥åºä»»å¡åºä½ TargetLocation = stationinfoRepository.Find(x => x.stationType == agvtask.agv_materielid && x.location_state == LocationStateEnum.InBusy.ToString() && x.area == area1).FirstOrDefault(); @@ -69,9 +72,9 @@ if (!stationinfoRepository.Find(x => x.line == Location.line && x.area == Location.area && x.stationType == agvtask.agv_materielid && x.location_state == LocationStateEnum.OutBusy.ToString()).Any()) return Location; } #endregion } #endregion if (station.area == "1") { TargetLocation = stationinfoRepository.Find(x => x.line == station.line && x.location_state == LocationStateEnum.Empty.ToString() && x.enable && x.area == station.area).OrderBy(x => x.column).FirstOrDefault();//æè¡åæ¾ ´úÂë¹ÜÀí/PCS/WCS_Server/WIDESEA_WebApi/appsettings.json
@@ -16,8 +16,8 @@ "Connection": { "DBType": "MsSql", //MySql/MsSql/PgSql //æ°æ®åºç±»åï¼å¦æä½¿ç¨çæ¯sqlserveræ¤å¤åºè®¾ç½®ä¸ºMsSql //sqlserverè¿æ¥å符串P@ssw0rd //"DbConnectionString": "Data Source=192.168.12.101;Initial Catalog=WIDESEA_DB;Persist Security Info=True;User ID=sa;Password=123456;Connect Timeout=500;", "DbConnectionString": "Data Source=.;Initial Catalog=WIDESEA_DB;Persist Security Info=True;User ID=sa;Password=P@ssw0rd;Connect Timeout=500;", "DbConnectionString": "Data Source=192.168.12.101;Initial Catalog=WIDESEA_DB;Persist Security Info=True;User ID=sa;Password=123456;Connect Timeout=500;", //"DbConnectionString": "Data Source=.;Initial Catalog=WIDESEA_DB;Persist Security Info=True;User ID=sa;Password=P@ssw0rd;Connect Timeout=500;", //mysqlè¿æ¥å符串(å级EFCore3.1å°æ¶å·²å°mysqlè¿æ¥å符串修æ¹,2019-12-20) // "DbConnectionString": " Data Source=127.0.0.1;Database=netcoredev;AllowLoadLocalInfile=true;User ID=root;Password=123456;allowPublicKeyRetrieval=true;pooling=true;CharSet=utf8;port=3306;sslmode=none;",