| | |
| | | Idt_plcinfoheadRepository repository = new dt_plcinfoheadRepository(Context); |
| | | Idt_plcinfodetailRepository plcRepository = new dt_plcinfodetailRepository(Context); |
| | | Idt_geometry_dataRepository dataRepository = new dt_geometry_dataRepository(Context); |
| | | Idt_geometry_data_detectionlineRepository detectionlineRepository = new dt_geometry_data_detectionlineRepository(Context); |
| | | Idt_stationinfoRepository stationinfoRepository = new dt_stationinfoRepository(Context); |
| | | |
| | | Idt_mes_detailRepository mes_DetailRepository = new dt_mes_detailRepository(Context); |
| | | Idt_mes_headRepository mes_HeadRepository = new dt_mes_headRepository(Context); |
| | | Idt_patternRepository patternRepository = new dt_patternRepository(Context); |
| | | #region æ¥è¯¢è½¦è½®æ°æ® |
| | | public void QueryWheeldata(PLCClient client) |
| | | { |
| | |
| | | if ((byte)on == 1) |
| | | { |
| | | var wp_type = DBExtension.Read(details.Where(x => x.plcdetail_name == "R_o_wp_type").First(), client); |
| | | if (name != "è¾é䏿æ¥è¯¢è½¦è½®") |
| | | { |
| | | var geometry = dataRepository.FindFirst(x => x.TypeId == (Int32)wp_type); |
| | | if (geometry == null) |
| | | { |
| | | //DBExtension.Write(details.Where(x => x.plcdetail_name == "W_i_status").First(), client, (Int16)2); |
| | | //1-æ¾å°æ°æ®ï¼2-æªæ¾å°å·¥ä»¶ç±»åæ°æ® |
| | | client.WriteByOrder("W_i_status", (byte)2, name); |
| | | //å±è½å·¥èº(å±è½è§è§æ£æµ/å±è½æ¶æ²¹); |
| | | //client.WriteByOrder("W_i_skip_op", "1", name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | } |
| | | else |
| | |
| | | client.WriteByOrder("W_i_parameter_f", (float)geometry.f, name); |
| | | client.WriteByOrder("W_i_parameter_g", (float)geometry.g, name); |
| | | client.WriteByOrder("W_i_parameter_h", (float)geometry.h, name); |
| | | //å±è½å·¥èº(å±è½è§è§æ£æµ/å±è½æ¶æ²¹) |
| | | if (name != "è¾é䏿æ¥è¯¢è½¦è½®") |
| | | { |
| | | client.WriteByOrder("W_i_skip_op_SJ1", (byte)1, name);//å±è½è§è§æ£æµè®¾å¤1 |
| | | client.WriteByOrder("W_i_skip_op_SJ2", (byte)1, name);//å±è½è§è§æ£æµè®¾å¤2 |
| | | client.WriteByOrder("W_i_skip_op_LT", (byte)1, name);//å±è½é¾æ¡æº |
| | | } |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | } |
| | | } |
| | | else |
| | | { |
| | | var geometry = detectionlineRepository.FindFirst(x => x.TypeId == (Int32)wp_type); |
| | | if (geometry == null) |
| | | { |
| | | client.WriteByOrder("W_i_status", (byte)2, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | } |
| | | else |
| | | { |
| | | client.WriteByOrder("W_i_status", (byte)1, name); |
| | | client.WriteByOrder("W_i_parameter_a", (float)geometry.a, name); |
| | | client.WriteByOrder("W_i_parameter_b", (float)geometry.b, name); |
| | | client.WriteByOrder("W_i_parameter_c", (float)geometry.c, name); |
| | | client.WriteByOrder("W_i_parameter_d", (float)geometry.d, name); |
| | | client.WriteByOrder("W_i_parameter_e", (float)geometry.e, name); |
| | | client.WriteByOrder("W_i_parameter_f", (float)geometry.f, name); |
| | | client.WriteByOrder("W_i_parameter_g", (float)geometry.g, name); |
| | | client.WriteByOrder("W_i_parameter_h", (float)geometry.h, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | var on = DBExtension.Read(details.Where(x => x.plcdetail_name == "R_oi_on").First(), client); |
| | | if ((byte)on == 1) |
| | | { |
| | | var wp_id = DBExtension.Read(details.Where(x => x.plcdetail_name == "R_o_wp_id").First(), client); |
| | | //var wp_id = DBExtension.Read(details.Where(x => x.plcdetail_name == "R_o_wp_id").First(), client).ToString(); |
| | | var wp_id = client.ReadByOrder<string>("R_o_wp_id", name); |
| | | var mes_Detail = mes_DetailRepository.FindFirst(x => x.SN == wp_id); |
| | | if (mes_Detail == null) |
| | | { |
| | | client.WriteByOrder("W_i_status", (byte)2, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | continue; |
| | | } |
| | | var mes_Head = mes_HeadRepository.FindFirst(x => x.jobID == mes_Detail.jobID); |
| | | if (mes_Head == null) |
| | | { |
| | | client.WriteByOrder("W_i_status", (byte)2, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | continue; |
| | | } |
| | | |
| | | if (name != "è¾é䏿æ¥è¯¢è®¢å") |
| | | { |
| | | //éæ·»å æ¥è¯¢è½¦è½®SNå·è®¢åé»è¾ éæ·»å å
¥åºæ¨¡å¼å¤æï¼æå¨å
¥åºæ¨¡å¼é人工添å å
¥åºåºåºï¼å¦åæ¥è¦ |
| | | |
| | | |
| | | var pattern = patternRepository.FindFirst(x => x.pattern_name == "å
¥åºæ¨¡å¼").pattern_state; |
| | | if (pattern != 1 && string.IsNullOrEmpty(mes_Head.area)) |
| | | { |
| | | client.WriteByOrder("W_i_status", (byte)4, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | continue; |
| | | } |
| | | var wp_type = DBExtension.Read(details.Where(x => x.plcdetail_name == "R_o_wp_type").First(), client); |
| | | var geometry = dataRepository.FindFirst(x => x.TypeId == (Int32)wp_type); |
| | | //var geometry = dataRepository.FindFirst(x => x.TypeId == (Int32)wp_type); |
| | | var geometry = dataRepository.FindFirst(x => x.Description == mes_Head.drawingNo); |
| | | if (geometry == null) |
| | | { |
| | | //1-好,å
许å å·¥ï¼2-ä¸å¨å表ä¸ï¼3-ä¸å 工车轮类åï¼4-æå¨å
¥åºæ¨¡å¼äººå·¥æªéæ©åºåº |
| | | client.WriteByOrder("W_i_status", (Int16)2, name); |
| | | client.WriteByOrder("R_oi_on", (Int16)0, name); |
| | | client.WriteByOrder("W_i_status", (byte)2, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | continue; |
| | | } |
| | | else |
| | | { |
| | | //1-好,å
许å å·¥ï¼2-ä¸å¨å表ä¸ï¼3-ä¸å 工车轮类åï¼4-æå¨å
¥åºæ¨¡å¼äººå·¥æªéæ©åºåº |
| | | client.WriteByOrder("W_i_status", (Int16)1, name); |
| | | //client.WriteByOrder("W_i_job_id", "", name); |
| | | //client.WriteByOrder("W_i_drawing_id", "", name); |
| | | //client.WriteByOrder("W_i_heat_id", "", name); |
| | | client.WriteByOrder("W_i_status", (byte)1, name); |
| | | client.WriteByOrder("W_i_job_id", mes_Detail.jobID, name); |
| | | client.WriteByOrder("W_i_drawing_id", mes_Head.drawingNo, name); |
| | | client.WriteByOrder("W_i_heat_id", mes_Detail.heatID, name); |
| | | //client.WriteByOrder("W_i_sourceheat", "", name); |
| | | //client.WriteByOrder("W_i_batch_id", "", name); |
| | | client.WriteByOrder("R_oi_on", (Int16)0, name); |
| | | client.WriteByOrder("W_i_batch_id", mes_Detail.heatBatchID, name); |
| | | |
| | | //å±è½å·¥èº(å±è½è§è§æ£æµ/å±è½æ¶æ²¹) |
| | | //if (name != "è¾é䏿æ¥è¯¢è½¦è½®") |
| | | //{ |
| | | client.WriteByOrder("W_i_skip_op_SJ1", mes_Head.skip_op_1, name);//å±è½è§è§æ£æµè®¾å¤1 |
| | | client.WriteByOrder("W_i_skip_op_SJ2", mes_Head.skip_op_2, name);//å±è½è§è§æ£æµè®¾å¤2 |
| | | client.WriteByOrder("W_i_skip_op_LT", mes_Head.skip_op_3, name);//å±è½é¾æ¡æº |
| | | //} |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | |
| | | } |
| | | } |
| | | else |
| | | { |
| | | var geometry = dataRepository.FindFirst(x => x.Description == mes_Head.drawingNo); |
| | | if (geometry == null) |
| | | { |
| | | //1-好,å
许å å·¥ï¼2-ä¸å¨å表ä¸ï¼3-ä¸å 工车轮类åï¼4-æå¨å
¥åºæ¨¡å¼äººå·¥æªéæ©åºåº |
| | | client.WriteByOrder("W_i_status", (byte)2, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | continue; |
| | | } |
| | | else |
| | | { |
| | | //1-好,å
许å å·¥ï¼2-ä¸å¨å表ä¸ï¼3-ä¸å 工车轮类åï¼4-æå¨å
¥åºæ¨¡å¼äººå·¥æªéæ©åºåº |
| | | client.WriteByOrder("W_i_status", (byte)1, name); |
| | | client.WriteByOrder("W_i_job_id", mes_Detail.jobID, name); |
| | | client.WriteByOrder("W_i_drawing_id", mes_Head.drawingNo, name); |
| | | client.WriteByOrder("W_i_heat_id", mes_Detail.heatID, name); |
| | | //client.WriteByOrder("W_i_sourceheat", "", name); |
| | | client.WriteByOrder("W_i_batch_id", mes_Detail.heatBatchID, name); |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | } |
| | | } |
| | | } |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region 䏿ä½äº¤äº |
| | | #region 䏿ä½äº¤äº ï¼ï¼ï¼ä¸æé»è¾éä¿®æ¹ |
| | | public void Layofflevel(PLCClient client) |
| | | { |
| | | try |
| | |
| | | var Request = (bool)DBExtension.Read(details.Where(x => x.plcdetail_name == "R_Request_Load").First(), client); |
| | | if (!Request) continue; |
| | | |
| | | List<string> StationCodes = new List<string>() { "X01001001", "X01001002", "X01001003" }; |
| | | if (name == "2åå
䏿åº") |
| | | StationCodes = new List<string>() { "X02001001", "X02001002", "X02001003" }; |
| | | if (name == "3åå
䏿åº") |
| | | StationCodes = new List<string>() { "X03001001", "X03001002" }; |
| | | var Stations = stationinfoRepository.Find(x => x.area == PipelineJob.area_code(name)); |
| | | foreach (var station in Stations) |
| | | { |
| | | if (!station.enable) |
| | | client.WriteByOrder("W_Enabl_Load", false, name);//ä¿¡å·ä¸ºfalseæ¡æ¶åæ¢è¿å
¥ |
| | | } |
| | | var NGStation = "X01001003"; |
| | | if (name == "2åå
䏿åº") NGStation = "X02001003"; |
| | | if (name == "3åå
䏿åº") NGStation = "X03001002"; |
| | | var Wheel_Type = (Int32)DBExtension.Read(details.Where(x => x.plcdetail_name == "R_Wheel_Type").First(), client);//车轮类å |
| | | var Wheel_id = DBExtension.Read(details.Where(x => x.plcdetail_name == "R_Wheel_id").First(), client).ToString();//车轮SNå· |
| | | for (int i = 0; i < StationCodes.Count - 1; i++) |
| | | { |
| | | |
| | | var mes_Detail = mes_DetailRepository.FindFirst(x => x.SN == Wheel_id); |
| | | var mes_Head = mes_HeadRepository.FindFirst(x => x.jobID == mes_Detail.jobID); |
| | | |
| | | var PartStatus = (Int32)DBExtension.Read(details.Where(x => x.plcdetail_name == "R_PartStatus").First(), client);//1:ok;2:nok |
| | | string NG = StationCodes[StationCodes.Count - 1];//NGè´§ä½ |
| | | var station = stationinfoRepository.FindFirst(x => x.stationCode == StationCodes[i] && x.enable && x.location_state == LocationStateEnum.Stroge.ToString() && x.quantity < 5); |
| | | if (station == null) continue; |
| | | var Pipelinedetails = plcRepository.Find(x => x.plcdetail_iotype == Pipelineplc.plcinfo_iotyep && x.plcdetail_number == StationCodes[i]).ToList(); |
| | | if (PartStatus == 1) |
| | | { |
| | | var Stationinfo = Stations |
| | | .Where(x => x.enable |
| | | && x.stationCode != NGStation |
| | | && x.location_state == LocationStateEnum.Stroge.ToString() |
| | | && x.quantity < 5 |
| | | && x.stationType == PipelineJob.QueryMateriel(Wheel_Type) |
| | | && x.Number == mes_Detail.jobID |
| | | && x.heatNumber == mes_Detail.heatID).FirstOrDefault(); |
| | | if (Stationinfo == null) |
| | | Stationinfo = Stations.Where(x => x.enable && x.stationCode != NGStation && x.location_state == LocationStateEnum.Stroge.ToString() && x.quantity == 0).FirstOrDefault(); |
| | | if (Stationinfo != null) |
| | | { |
| | | var Pipelinedetails = plcRepository.Find(x => x.plcdetail_iotype == Pipelineplc.plcinfo_iotyep && x.plcdetail_number == Stationinfo.stationCode).ToList(); |
| | | var PalletSignal = (Int16)DBExtension.Read(Pipelinedetails.Where(x => x.plcdetail_name == "R_PalletSignal").First(), client);//读åæçä¿¡å·:1:æ,2æ |
| | | if (PalletSignal == 1) |
| | | { |
| | | if (PartStatus == 1 && NG != station.stationCode) |
| | | var SNS = Stationinfo.bindSN.Split(","); |
| | | List<string> list = new List<string>(); |
| | | foreach (var SN in SNS) |
| | | { |
| | | client.WriteByOrder("W_AreaNr", (Int16)i + 1, name);//åºåè´§ä½å· |
| | | client.WriteByOrder("W_IndexNr", (Int16)station.quantity + 1, name);//æçä¸ç第å 个车轮 |
| | | if (!string.IsNullOrEmpty(SN)) |
| | | list.Add(SN); |
| | | } |
| | | else if (PartStatus == 2 && NG == station.stationCode) |
| | | //ç¼åæ¶ä¸è½¦è½®æ°éä¸SNå·æ°éä¸ä¸è´ |
| | | if (list.Count != Stationinfo.quantity) |
| | | { |
| | | client.WriteByOrder("W_AreaNr", (Int16)i + 1, name);//åºåè´§ä½å· |
| | | client.WriteByOrder("W_IndexNr", (Int16)station.quantity + 1, name);//æçä¸ç第å 个车轮 |
| | | Stationinfo.location_state = LocationStateEnum.Abnormal.ToString(); |
| | | stationinfoRepository.Update(Stationinfo, true); |
| | | //åå
¥æ¡æ¶æ¥è¦ä¿¡å· |
| | | throw new Exception("䏿ä½è½¦è½®æ°éä¸SNå·æ°éä¸ä¸è´ï¼ä¸æä½ç¼å·ï¼" + Stationinfo.stationCode); |
| | | } |
| | | var area = Convert.ToInt16(Stationinfo.stationCode.Substring(Stationinfo.stationCode.Length - 1, 1)); |
| | | client.WriteByOrder("W_AreaNr", (Int16)area, name);//åºåè´§ä½å· |
| | | client.WriteByOrder("W_IndexNr", (Int16)Stationinfo.quantity + 1, name);//æçä¸ç第å 个车轮 |
| | | client.WriteByOrder("W_Storage_Type", (Int16)1, name);//æçç±»å1-横æ¾;2-ç«æ¾(ææ¶åªææ¨ªæ¾æç) |
| | | client.WriteByOrder("W_Enabl_Load", true, name);//æ¯å¦å
许 |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | else if (PartStatus == 2) |
| | | { |
| | | var Stationinfo = Stations |
| | | .Where(x => x.enable |
| | | && x.stationCode == NGStation |
| | | && x.location_state == LocationStateEnum.Stroge.ToString() |
| | | && x.quantity < 5 |
| | | && x.stationType == PipelineJob.QueryMateriel(Wheel_Type) |
| | | && x.Number == mes_Detail.jobID |
| | | && x.heatNumber == mes_Detail.heatID).FirstOrDefault(); |
| | | if (Stationinfo != null) |
| | | { |
| | | var Pipelinedetails = plcRepository.Find(x => x.plcdetail_iotype == Pipelineplc.plcinfo_iotyep && x.plcdetail_number == Stationinfo.stationCode).ToList(); |
| | | var PalletSignal = (Int16)DBExtension.Read(Pipelinedetails.Where(x => x.plcdetail_name == "R_PalletSignal").First(), client);//读åæçä¿¡å·:1:æ,2æ |
| | | if (PalletSignal == 1) |
| | | { |
| | | var SNS = Stationinfo.bindSN.Split(","); |
| | | List<string> list = new List<string>(); |
| | | foreach (var SN in SNS) |
| | | { |
| | | if (!string.IsNullOrEmpty(SN)) |
| | | list.Add(SN); |
| | | } |
| | | //ç¼åæ¶ä¸è½¦è½®æ°éä¸SNå·æ°éä¸ä¸è´ |
| | | if (list.Count != Stationinfo.quantity) |
| | | { |
| | | Stationinfo.location_state = LocationStateEnum.Abnormal.ToString(); |
| | | stationinfoRepository.Update(Stationinfo, true); |
| | | //åå
¥æ¡æ¶æ¥è¦ä¿¡å· |
| | | throw new Exception("䏿ä½è½¦è½®æ°éä¸SNå·æ°éä¸ä¸è´ï¼ä¸æä½ç¼å·ï¼" + Stationinfo.stationCode); |
| | | } |
| | | var area = Convert.ToInt16(Stationinfo.stationCode.Substring(Stationinfo.stationCode.Length - 1, 1)); |
| | | client.WriteByOrder("W_AreaNr", (Int16)area, name);//åºåè´§ä½å· |
| | | client.WriteByOrder("W_IndexNr", (Int16)Stationinfo.quantity + 1, name);//æçä¸ç第å 个车轮 |
| | | client.WriteByOrder("W_Storage_Type", (Int16)1, name);//æçç±»å1-横æ¾;2-ç«æ¾(ææ¶åªææ¨ªæ¾æç) |
| | | client.WriteByOrder("W_Enabl_Load", true, name);//æ¯å¦å
许 |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | #region |
| | | //var Stationinfo = Stations |
| | | // .Where(x => x.enable |
| | | // && x.location_state == LocationStateEnum.Stroge.ToString() |
| | | // && x.quantity < 5 |
| | | // && x.stationType == PipelineJob.QueryMateriel(Wheel_Type) |
| | | // && x.Number == mes_Detail.jobID |
| | | // && x.heatNumber == mes_Detail.heatID).FirstOrDefault(); |
| | | //if (Stationinfo == null) |
| | | // Stationinfo = Stations.Where(x => x.enable && x.location_state == LocationStateEnum.Stroge.ToString() && x.quantity == 0).FirstOrDefault(); |
| | | //if (Stationinfo != null) |
| | | //{ |
| | | |
| | | //} |
| | | |
| | | //List<string> StationCodes = new List<string>() { "X01001001", "X01001002", "X01001003" }; |
| | | //if (name == "2åå
䏿åº") |
| | | // StationCodes = new List<string>() { "X02001001", "X02001002", "X02001003" }; |
| | | //if (name == "3åå
䏿åº") |
| | | // StationCodes = new List<string>() { "X03001001", "X03001002" }; |
| | | |
| | | #endregion |
| | | var finished = (bool)DBExtension.Read(details.Where(x => x.plcdetail_name == "R_load_finished").First(), client);//æ¾æå®æ |
| | | if (finished) |
| | | var updatefinished = (bool)DBExtension.Read(details.Where(x => x.plcdetail_name == "W_Storage_update").First(), client);//è´§ä½ç¶ææ´æ° |
| | | if (!finished && updatefinished) |
| | | client.WriteByOrder("W_Storage_update", false, name);//è´§ä½ç¶ææ´æ° |
| | | if (finished && !updatefinished) |
| | | { |
| | | var AreaNr = (Int16)DBExtension.Read(details.Where(x => x.plcdetail_name == "W_AreaNr").First(), client); |
| | | var station = stationinfoRepository.FindFirst(x => x.stationCode == StationCodes[AreaNr - 1]); |
| | | var station = stationinfoRepository.FindFirst(x => x.stationCode.Substring(x.stationCode.Length - 1, 1) == AreaNr.ToString()); |
| | | station.quantity = station.quantity++; |
| | | stationinfoRepository.Update(station); |
| | | client.WriteByOrder("W_Storage_update", true, name);//è´§ä½ç¶ææ´æ° |
| | | station.bindSN = station.bindSN == string.Empty ? Wheel_id : station.bindSN + "," + Wheel_id; |
| | | if (station.quantity == 0) |
| | | { |
| | | station.stationType = Wheel_id; |
| | | station.Number = Wheel_id; |
| | | station.heatNumber = Wheel_id; |
| | | } |
| | | var count = stationinfoRepository.Update(station); |
| | | if (count < 1) |
| | | throw new Exception($"䏿ä½ä¿¡æ¯æ´æ°å¤±è´¥ï¼ä¸æä½ç¼å·ï¼{station.stationCode}"); |
| | | client.WriteByOrder("W_Storage_update", true, name);//è´§ä½ç¶ææ´æ° |
| | | client.WriteByOrder("W_Enabl_Load", false, name);//æ¯å¦å
许 |
| | | } |
| | | #region |
| | | //for (int i = 0; i < StationCodes.Count - 1; i++) |
| | | //{ |
| | | // var PartStatus = (Int32)DBExtension.Read(details.Where(x => x.plcdetail_name == "R_PartStatus").First(), client);//1:ok;2:nok |
| | | // string NG = StationCodes[StationCodes.Count - 1];//NGè´§ä½ |
| | | // var station = stationinfoRepository.FindFirst(x => x.stationCode == StationCodes[i] && x.enable && x.location_state == LocationStateEnum.Stroge.ToString() && x.quantity < 5); |
| | | // if (station == null) continue; |
| | | // var Pipelinedetails = plcRepository.Find(x => x.plcdetail_iotype == Pipelineplc.plcinfo_iotyep && x.plcdetail_number == StationCodes[i]).ToList(); |
| | | // var PalletSignal = (Int16)DBExtension.Read(Pipelinedetails.Where(x => x.plcdetail_name == "R_PalletSignal").First(), client);//读åæçä¿¡å·:1:æ,2æ |
| | | // if (PalletSignal == 1) |
| | | // { |
| | | // if (PartStatus == 1 && NG != station.stationCode) |
| | | // { |
| | | // client.WriteByOrder("W_AreaNr", (Int16)i + 1, name);//åºåè´§ä½å· |
| | | // client.WriteByOrder("W_IndexNr", (Int16)station.quantity + 1, name);//æçä¸ç第å 个车轮 |
| | | // client.WriteByOrder("W_Storage_Type", (Int16)1, name);//æçç±»å1-横æ¾;2-ç«æ¾(ææ¶åªææ¨ªæ¾æç) |
| | | // client.WriteByOrder("W_Enabl_Load", true, name);//æ¯å¦å
许 |
| | | // return; |
| | | // } |
| | | // else if (PartStatus == 2 && NG == station.stationCode) |
| | | // { |
| | | // client.WriteByOrder("W_AreaNr", (Int16)i + 1, name);//åºåè´§ä½å· |
| | | // client.WriteByOrder("W_IndexNr", (Int16)station.quantity + 1, name);//æçä¸ç第å 个车轮 |
| | | // client.WriteByOrder("W_Storage_Type", (Int16)1, name);//æçç±»å1-横æ¾;2-ç«æ¾(ææ¶åªææ¨ªæ¾æç) |
| | | // client.WriteByOrder("W_Enabl_Load", true, name);//æ¯å¦å
许 |
| | | // return; |
| | | // } |
| | | // } |
| | | //} |
| | | #endregion |
| | | } |
| | | } |
| | | catch (Exception ex) |