From 1e38f44af86775a341e4d0e4411d24ad35e417d3 Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期五, 28 六月 2024 07:49:36 +0800 Subject: [PATCH] 调整平面图调用接口时间 --- 代码管理/PCS/WCS_Server/WIDESEA_WCS/Jobs/equipment/One_two_unitJob.cs | 138 +++++++++++++++++++++++++++++++++++----------- 1 files changed, 105 insertions(+), 33 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/Jobs/equipment/One_two_unitJob.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/Jobs/equipment/One_two_unitJob.cs" index 3e7898c..dbafe1e 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/Jobs/equipment/One_two_unitJob.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/Jobs/equipment/One_two_unitJob.cs" @@ -105,61 +105,133 @@ VOLContext context = new VOLContext(); Idt_plcinfodetailRepository repository = new dt_plcinfodetailRepository(context); List<dt_plcinfodetail> plcinfodetail = new List<dt_plcinfodetail>(); - for (int i = 1; i <= 1; i++) + string name = "VK5"; + for (int i = 1; i <= 2; i++) { dt_plcinfodetail dt_Plcinfodetail1 = new dt_plcinfodetail() { plcdetail_id = Guid.NewGuid(), - plcdetail_iotype = "VK5", - plcdetail_db = "DB630", - plcdetail_value = ((i - 1 + 28 + 10 + 10) * 24).ToString(), - plcdetail_valtype = "string", - plcdetail_len = 20, - plcdetail_name = "R_wheel_SN", - plcdetail_opratortype = "wheel", - plcdetail_remark = "璇诲彇杞﹁疆SN鍙�", - plcdetail_number = "鏈烘鎵�3", + plcdetail_iotype = name, + plcdetail_db = "DB603", + plcdetail_value = (0 + (i - 1) * 144).ToString(), + plcdetail_valtype = "byte", + plcdetail_name = "oi_on", + plcdetail_opratortype = "labeller", + plcdetail_remark = "鐢宠", + plcdetail_number = i + "鍗曞厓", }; plcinfodetail.Add(dt_Plcinfodetail1); dt_plcinfodetail dt_Plcinfodetail2 = new dt_plcinfodetail() { plcdetail_id = Guid.NewGuid(), - plcdetail_iotype = "VK5", - plcdetail_db = "DB630", - plcdetail_value = (20 + (i - 1 + 28 + 10 + 10) * 24).ToString(), - plcdetail_valtype = "int16", - plcdetail_name = "R_wheel_type", - plcdetail_opratortype = "wheel", - plcdetail_remark = "璇诲彇杞﹁疆绫诲瀷", - plcdetail_number = "鏈烘鎵�3", + plcdetail_iotype = name, + plcdetail_db = "DB603", + plcdetail_value = (2 + (i - 1) * 144).ToString(), + plcdetail_len = 20, + plcdetail_valtype = "string", + plcdetail_name = "o_wp_id", + plcdetail_opratortype = "labeller", + plcdetail_remark = "杞﹁疆SN鍙�", + plcdetail_number = i + "鍗曞厓", }; plcinfodetail.Add(dt_Plcinfodetail2); dt_plcinfodetail dt_Plcinfodetail3 = new dt_plcinfodetail() { plcdetail_id = Guid.NewGuid(), - plcdetail_iotype = "VK5", - plcdetail_db = "DB630", - plcdetail_value = (22 + (i - 1 + 28 + 10 + 10) * 24).ToString(), - plcdetail_valtype = "byte", - plcdetail_name = "R_part_status", - plcdetail_opratortype = "wheel", - plcdetail_remark = "璇诲彇杞﹁疆鐘舵��", - plcdetail_number = "鏈烘鎵�3", + plcdetail_iotype = name, + plcdetail_db = "DB603", + plcdetail_value = (24 + (i - 1) * 144).ToString(), + plcdetail_len = 20, + plcdetail_valtype = "string", + plcdetail_name = "i_job_id", + plcdetail_opratortype = "labeller", + plcdetail_remark = "宸ュ崟缂栧彿", + plcdetail_number = i + "鍗曞厓", }; plcinfodetail.Add(dt_Plcinfodetail3); dt_plcinfodetail dt_Plcinfodetail4 = new dt_plcinfodetail() { plcdetail_id = Guid.NewGuid(), - plcdetail_iotype = "VK5", - plcdetail_db = "DB630", - plcdetail_value = (23 + (i - 1 + 28 + 10 + 10) * 24).ToString(), + plcdetail_iotype = name, + plcdetail_db = "DB603", + plcdetail_value = (22 + (i - 1) * 144).ToString(), plcdetail_valtype = "byte", - plcdetail_name = "R_part_process", - plcdetail_opratortype = "wheel", - plcdetail_remark = "璇诲彇杞﹁疆宸ヨ壓", - plcdetail_number = "鏈烘鎵�3", + plcdetail_name = "i_status", + plcdetail_opratortype = "labeller", + plcdetail_remark = "鐘舵��", + plcdetail_number = i + "鍗曞厓", }; plcinfodetail.Add(dt_Plcinfodetail4); + dt_plcinfodetail dt_Plcinfodetail5 = new dt_plcinfodetail() + { + plcdetail_id = Guid.NewGuid(), + plcdetail_iotype = name, + plcdetail_db = "DB603", + plcdetail_value = (44 + (i - 1) * 144).ToString(), + plcdetail_len = 20, + plcdetail_valtype = "string", + plcdetail_name = "i_heat_id", + plcdetail_opratortype = "labeller", + plcdetail_remark = "鐐変唬鍙�", + plcdetail_number = i + "鍗曞厓", + }; + plcinfodetail.Add(dt_Plcinfodetail5); + dt_plcinfodetail dt_Plcinfodetail6 = new dt_plcinfodetail() + { + plcdetail_id = Guid.NewGuid(), + plcdetail_iotype = name, + plcdetail_db = "DB603", + plcdetail_value = (64 + (i - 1) * 144).ToString(), + plcdetail_len = 20, + plcdetail_valtype = "string", + plcdetail_name = "i_billet_id", + plcdetail_opratortype = "labeller", + plcdetail_remark = "閽㈠澂鍙�", + plcdetail_number = i + "鍗曞厓", + }; + plcinfodetail.Add(dt_Plcinfodetail6); + dt_plcinfodetail dt_Plcinfodetail7 = new dt_plcinfodetail() + { + plcdetail_id = Guid.NewGuid(), + plcdetail_iotype = name, + plcdetail_db = "DB603", + plcdetail_value = (84 + (i - 1) * 144).ToString(), + plcdetail_len = 20, + plcdetail_valtype = "string", + plcdetail_name = "i_batch_id", + plcdetail_opratortype = "labeller", + plcdetail_remark = "鐑鐞嗘壒娆�", + plcdetail_number = i + "鍗曞厓", + }; + plcinfodetail.Add(dt_Plcinfodetail7); + dt_plcinfodetail dt_Plcinfodetail8 = new dt_plcinfodetail() + { + plcdetail_id = Guid.NewGuid(), + plcdetail_iotype = name, + plcdetail_db = "DB603", + plcdetail_value = (104 + (i - 1) * 144).ToString(), + plcdetail_len = 20, + plcdetail_valtype = "string", + plcdetail_name = "i_drawing_id", + plcdetail_opratortype = "labeller", + plcdetail_remark = "鍥惧彿", + plcdetail_number = i + "鍗曞厓", + }; + plcinfodetail.Add(dt_Plcinfodetail8); + dt_plcinfodetail dt_Plcinfodetail9 = new dt_plcinfodetail() + { + plcdetail_id = Guid.NewGuid(), + plcdetail_iotype = name, + plcdetail_db = "DB603", + plcdetail_value = (124 + (i - 1) * 144).ToString(), + plcdetail_len = 20, + plcdetail_valtype = "string", + plcdetail_name = "i_wheel_type", + plcdetail_opratortype = "labeller", + plcdetail_remark = "i_wheel_type", + plcdetail_number = i + "鍗曞厓", + }; + plcinfodetail.Add(dt_Plcinfodetail9); } repository.AddRange(plcinfodetail, true); } -- Gitblit v1.9.3