From a740f868fff02ca07996f7f6748b0e5e2638162b Mon Sep 17 00:00:00 2001 From: lhiven Date: Sat, 29 Mar 2025 06:30:16 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E4=BC=98=E5=8C=96=E5=BD=93=E5=9C=A8?= =?UTF-8?q?=E6=B2=BB=E5=85=B7=E9=85=8D=E7=BD=AE=E7=95=8C=E9=9D=A2=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=90=B8=E5=98=B4=E7=A7=BB=E5=8A=A8=E5=88=B0=E6=B2=BB?= =?UTF-8?q?=E5=85=B7=E6=97=B6=E7=82=B9=E5=87=BB=E5=8F=96=E6=B6=88=E6=97=B6?= =?UTF-8?q?=E8=BD=B4=E4=B9=9F=E5=90=8C=E6=A0=B7=E7=A7=BB=E5=8A=A8=E5=88=B0?= =?UTF-8?q?=E6=B2=BB=E5=85=B7=E4=B8=8A=E6=96=B9=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82=202=E3=80=81=E6=89=AB=E7=A0=81NG=E4=BA=A7=E5=93=81?= =?UTF-8?q?=E8=B5=8B=E5=80=BC=E7=89=B9=E6=AE=8ASN:SLK11111111PNK60X?= =?UTF-8?q?=E5=90=8E=E6=AD=A3=E5=B8=B8=E4=B8=8A=E6=96=99=EF=BC=8C=E5=BD=93?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=AE=8C=E6=88=90=E5=90=8E=E7=BB=93=E6=9E=9C?= =?UTF-8?q?NG=E4=B9=9F=E5=8F=AA=E4=BC=9A=E6=B5=8B=E8=AF=95=E4=B8=80?= =?UTF-8?q?=E6=AC=A1=E5=90=8E=E6=94=BE=E5=85=A5RETEST=E7=9B=98=E4=B8=AD?= =?UTF-8?q?=E3=80=82=203=E3=80=81=E4=BF=AE=E5=A4=8D=E5=90=AF=E7=94=A8?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E9=97=A8=E5=90=8E=EF=BC=8C=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E9=97=A8=E6=89=93=E5=BC=80=E5=90=8E=E4=BB=8D=E8=83=BD=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82=204=E3=80=81?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=9F=E6=88=90=E8=99=9A=E6=8B=9F=E7=A0=81?= =?UTF-8?q?=EF=BC=8C=E6=A8=A1=E6=8B=9F=E6=AD=A3=E5=BC=8F=E7=9A=84=E4=BA=8C?= =?UTF-8?q?=E7=BB=B4=E7=A0=81=EF=BC=8C=E7=94=9F=E6=88=9022=E4=BD=8D?= =?UTF-8?q?=E4=BA=8C=E7=BB=B4=E7=A0=81=EF=BC=8C=E8=A7=A3=E5=86=B3=E5=AE=A2?= =?UTF-8?q?=E6=88=B7=E4=BA=A7=E5=93=81=E6=B2=A1=E6=9C=89=E4=BA=8C=E7=BB=B4?= =?UTF-8?q?=E7=A0=81=E8=80=8C=E5=8F=88=E6=83=B3=E6=89=93=E5=BC=80MTCP?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.DeweyTester/Commom/SafeDoorCheck.cs | 41 +--- Rs.DeweyTester/Commom/VirtualBarCode.cs | 3 +- .../Flow/NormalFlow/DischargeFlow.cs | 208 +++++++++++------- .../Flow/SubFlow/FixtureTakeFlow.cs | 2 +- Rs.DeweyTester/FormMain.cs | 10 +- Rs.DeweyTester/FormMain.designer.cs | 76 ++++++- Rs.DeweyTester/FormMain.resx | 6 + Rs.DeweyTester/Properties/AssemblyInfo.cs | 2 +- Rs.DeweyTester/SysConfig/FixtureConfig.cs | 5 +- 9 files changed, 232 insertions(+), 121 deletions(-) diff --git a/Rs.DeweyTester/Commom/SafeDoorCheck.cs b/Rs.DeweyTester/Commom/SafeDoorCheck.cs index e9ed755..3fd4b95 100644 --- a/Rs.DeweyTester/Commom/SafeDoorCheck.cs +++ b/Rs.DeweyTester/Commom/SafeDoorCheck.cs @@ -12,39 +12,14 @@ namespace Rs.MotionPlat.Commom { public static bool Check() { - //if(!GlobalVar.DisableDoor) - //{ - // if (IoManager.Instance.ReadIn("前安全门禁") == 0) - // { - // MessageQueue.Instance.Warn("前安全门禁触发"); - // return false; - // } - // if (IoManager.Instance.ReadIn("后安全门禁") == 0) - // { - // MessageQueue.Instance.Warn("后安全门禁触发"); - // return false; - // } - // if (IoManager.Instance.ReadIn("左前安全门禁") == 0) - // { - // MessageQueue.Instance.Warn("左前安全门禁触发"); - // return false; - // } - // if (IoManager.Instance.ReadIn("左后安全门禁") == 0) - // { - // MessageQueue.Instance.Warn("左后安全门禁触发"); - // return false; - // } - // if (IoManager.Instance.ReadIn("右前安全门禁") == 0) - // { - // MessageQueue.Instance.Warn("右前安全门禁触发"); - // return false; - // } - // if (IoManager.Instance.ReadIn("右后安全门禁") == 0) - // { - // MessageQueue.Instance.Warn("右后安全门禁触发"); - // return false; - // } - //} + if (!GlobalVar.DisableDoor) + { + if (IoManager.Instance.ReadIn("门禁") == 0) + { + MessageQueue.Instance.Warn("前安全门禁触发"); + return false; + } + } return true; } } diff --git a/Rs.DeweyTester/Commom/VirtualBarCode.cs b/Rs.DeweyTester/Commom/VirtualBarCode.cs index 2163a62..47e447e 100644 --- a/Rs.DeweyTester/Commom/VirtualBarCode.cs +++ b/Rs.DeweyTester/Commom/VirtualBarCode.cs @@ -12,13 +12,14 @@ namespace Rs.MotionPlat.Commom public static class VirtualBarCode { private static int barCode = 0; + private static string temp = "FGXHE1B{0}RY9+ED0"; public static string Code { get { barCode++; - return barCode.ToString().PadLeft(18,'0'); + return string.Format(temp, barCode.ToString().PadLeft(8, '0')); } } diff --git a/Rs.DeweyTester/Flow/NormalFlow/DischargeFlow.cs b/Rs.DeweyTester/Flow/NormalFlow/DischargeFlow.cs index 4d3351e..cecc470 100644 --- a/Rs.DeweyTester/Flow/NormalFlow/DischargeFlow.cs +++ b/Rs.DeweyTester/Flow/NormalFlow/DischargeFlow.cs @@ -412,25 +412,40 @@ namespace Rs.MotionPlat.Flow else if (fixtureret.Result == EOneGrabSixteenResult.LocationOkScanBarcodeFail) { Nozzle idleNozzle = NozzleManager.GetIdelNozzle(); - StockTakeFlow.Instance.Take( ETrayType.Input, ret.SlotIndex, idleNozzle.NozzleIndex); - //放料 - TraySlot noProductSlot = GlobalTray.RetestTray.GetSlot(ESlotStatus.NotHave); - if (noProductSlot != null) + if(false) { - StockPlaceFlow.Instance.Place(ETrayType.ReTest, noProductSlot.Index, idleNozzle.NozzleIndex); + StockTakeFlow.Instance.Take(ETrayType.Input, ret.SlotIndex, idleNozzle.NozzleIndex); + //放料 + TraySlot noProductSlot = GlobalTray.RetestTray.GetSlot(ESlotStatus.NotHave); + if (noProductSlot != null) + { + StockPlaceFlow.Instance.Place(ETrayType.ReTest, noProductSlot.Index, idleNozzle.NozzleIndex); + } + else + { + Msgbox.ShowTipDialog(EButtonType.Ok, "Retest tray full,please change tray and click ok button", "tip", true); + GlobalTray.RetestTray.ChangeStatus(ESlotStatus.NotHave); + ThreePointLocationFlow.Instance.Location(ETrayType.ReTest); + //放料 + noProductSlot = GlobalTray.RetestTray.GetSlot(ESlotStatus.NotHave); + StockPlaceFlow.Instance.Place(ETrayType.ReTest, noProductSlot.Index, idleNozzle.NozzleIndex); + } + takeSlotIndex++; + flowStep = EDischargeFlowStep.判断是否需要从料仓取料; + exit = true; } else { - Msgbox.ShowTipDialog(EButtonType.Ok, "Retest tray full,please change tray and click ok button","tip",true); - GlobalTray.RetestTray.ChangeStatus(ESlotStatus.NotHave); - ThreePointLocationFlow.Instance.Location(ETrayType.ReTest); - //放料 - noProductSlot = GlobalTray.RetestTray.GetSlot(ESlotStatus.NotHave); - StockPlaceFlow.Instance.Place(ETrayType.ReTest, noProductSlot.Index, idleNozzle.NozzleIndex); + StockTakeFlow.Instance.Take(ETrayType.Input, ret.SlotIndex, idleNozzle.NozzleIndex); + if(NozzleManager.GetNozzle(idleNozzle.NozzleIndex).Product!=null) + { + NozzleManager.GetNozzle(idleNozzle.NozzleIndex).Product.SN = "SLK11111111PNK60X"; + } + takeSlotIndex++; + exit = true; + flowStep = EDischargeFlowStep.判断是否需要从料仓取料; } - takeSlotIndex++; - flowStep = EDischargeFlowStep.判断是否需要从料仓取料; - exit = true; + } else if (fixtureret.Result == EOneGrabSixteenResult.Slant) { @@ -776,56 +791,82 @@ namespace Rs.MotionPlat.Flow } else { - if(GlobalVar.EnableBin) + if(placeNozzle.Product!=null && placeNozzle.Product.SN== "SLK11111111PNK60X") { - #region NG产品,分BIN存放 - int placeSlotIndex = BinManager.GetPlaceSlot(GlobalVar.CurrentUsedBin, ETrayType.Ng, placeNozzle.Product.Bin); - if (placeSlotIndex > 0) + TraySlot waitPlaceSlot = GlobalTray.RetestTray.GetSlot(ESlotStatus.NotHave); + if (waitPlaceSlot != null) { - StockPlaceFlow.Instance.Place(ETrayType.Ng, placeSlotIndex, placeNozzleIndex); + StockPlaceFlow.Instance.Place(ETrayType.ReTest, waitPlaceSlot.Index, placeNozzleIndex); } - else if (placeSlotIndex == 0)//此区域已经无穴位放产品 + else { - //料盘放满了,更换料盘 - DischargeModuleGoSafePosFlow.Instance.GoSafePostion(); - if (GlobalVar.EnableFullAlarm) + if (GlobalVar.RunSpace && !GlobalVar.EnableStock) { - Msgbox.ShowTipDialog(EButtonType.Ok, $"{placeNozzle.Product.Bin} area hasn't slot to place product,you can redraw ok tray bin area after click ok button,", "tip", true); + GlobalTray.NgTray.ChangeStatus(ESlotStatus.NotHave); } - //提示更换料盘 - Msgbox.ShowTipDialog(EButtonType.Ok, "NG tray full,please change tray and click ok button", "tip", true); - ThreePointLocationFlow.Instance.Location(ETrayType.Ng); - GlobalTray.NgTray.ChangeStatus(ESlotStatus.NotHave); - } - else - { - Msgbox.ShowTipDialog(EButtonType.Ok, $"cann't find {placeNozzle.Product.Bin} area,you can redraw ok tray area after click ok button", "tip", true); + else + { + //提示更换料盘 + Msgbox.ShowTipDialog(EButtonType.Ok, "RetestTray full,please change tray and click ok button", "tip", true); + ThreePointLocationFlow.Instance.Location(ETrayType.ReTest); + GlobalTray.NgTray.ChangeStatus(ESlotStatus.NotHave); + } + } - #endregion } else { - //logInfo = GetClassName() + $"检查到吸嘴{placeNozzle.NozzleIndex}号吸嘴产品检测结果{placeNozzle.Product.Result}"; - //MessageQueue.Instance.Insert(logInfo); - TraySlot waitPlaceSlot = GlobalTray.NgTray.GetSlot(ESlotStatus.NotHave); - if (waitPlaceSlot != null) - { - StockPlaceFlow.Instance.Place(ETrayType.Ng, waitPlaceSlot.Index, placeNozzleIndex); - } - else + if (GlobalVar.EnableBin) { - if (GlobalVar.RunSpace && !GlobalVar.EnableStock) + #region NG产品,分BIN存放 + int placeSlotIndex = BinManager.GetPlaceSlot(GlobalVar.CurrentUsedBin, ETrayType.Ng, placeNozzle.Product.Bin); + if (placeSlotIndex > 0) { - GlobalTray.NgTray.ChangeStatus(ESlotStatus.NotHave); + StockPlaceFlow.Instance.Place(ETrayType.Ng, placeSlotIndex, placeNozzleIndex); } - else + else if (placeSlotIndex == 0)//此区域已经无穴位放产品 { + //料盘放满了,更换料盘 + DischargeModuleGoSafePosFlow.Instance.GoSafePostion(); + if (GlobalVar.EnableFullAlarm) + { + Msgbox.ShowTipDialog(EButtonType.Ok, $"{placeNozzle.Product.Bin} area hasn't slot to place product,you can redraw ok tray bin area after click ok button,", "tip", true); + } //提示更换料盘 Msgbox.ShowTipDialog(EButtonType.Ok, "NG tray full,please change tray and click ok button", "tip", true); ThreePointLocationFlow.Instance.Location(ETrayType.Ng); GlobalTray.NgTray.ChangeStatus(ESlotStatus.NotHave); } - + else + { + Msgbox.ShowTipDialog(EButtonType.Ok, $"cann't find {placeNozzle.Product.Bin} area,you can redraw ok tray area after click ok button", "tip", true); + } + #endregion + } + else + { + //logInfo = GetClassName() + $"检查到吸嘴{placeNozzle.NozzleIndex}号吸嘴产品检测结果{placeNozzle.Product.Result}"; + //MessageQueue.Instance.Insert(logInfo); + TraySlot waitPlaceSlot = GlobalTray.NgTray.GetSlot(ESlotStatus.NotHave); + if (waitPlaceSlot != null) + { + StockPlaceFlow.Instance.Place(ETrayType.Ng, waitPlaceSlot.Index, placeNozzleIndex); + } + else + { + if (GlobalVar.RunSpace && !GlobalVar.EnableStock) + { + GlobalTray.NgTray.ChangeStatus(ESlotStatus.NotHave); + } + else + { + //提示更换料盘 + Msgbox.ShowTipDialog(EButtonType.Ok, "NG tray full,please change tray and click ok button", "tip", true); + ThreePointLocationFlow.Instance.Location(ETrayType.Ng); + GlobalTray.NgTray.ChangeStatus(ESlotStatus.NotHave); + } + + } } } } @@ -997,49 +1038,62 @@ namespace Rs.MotionPlat.Flow /// Nozzle GetPlaceNozzle(TestFixture fixture) { - //ABC模式 - switch (GlobalVar.TestMethod) + if(fixture!=null && fixture.Product!= null && fixture.Product.SN == "SLK11111111PNK60X") { - - case "A": - foreach (Nozzle item in NozzleManager.GetNozzlesByStatus(ENozzleStatus.ToTest)) - { - if (item.Product != null) - { - return item; - } - } - break; - case "AAB": - if(fixture.Product!=null && fixture.Product.TestNum==1 && fixture.Product.Result=="NG") + foreach (Nozzle item in NozzleManager.GetNozzlesByStatus(ENozzleStatus.ToTest)) + { + if (item.Product != null) { - return NozzleManager.GetIdelNozzle(); + return item; } - else - { + } + } + else + { + //ABC模式 + switch (GlobalVar.TestMethod) + { + + case "A": foreach (Nozzle item in NozzleManager.GetNozzlesByStatus(ENozzleStatus.ToTest)) { - if (item.Product != null && (item.Product.TestedFixtures == null || !item.Product.TestedFixtures.Contains(curFixture.Index))) + if (item.Product != null) { return item; } } - } - break; - case "ABC"://必须更换治具 - foreach (Nozzle item in NozzleManager.GetNozzlesByStatus(ENozzleStatus.ToTest)) - { - if (item.Product != null) + break; + case "AAB": + if (fixture.Product != null && fixture.Product.TestNum == 1 && fixture.Product.Result == "NG") { - if (item.Product.TestNum == 0) - return item; - if (!item.Product.TestedFixtures.Contains(fixture.Index)) - return item; + return NozzleManager.GetIdelNozzle(); } - } - break; - default: - break; + else + { + foreach (Nozzle item in NozzleManager.GetNozzlesByStatus(ENozzleStatus.ToTest)) + { + if (item.Product != null && (item.Product.TestedFixtures == null || !item.Product.TestedFixtures.Contains(curFixture.Index))) + { + return item; + } + } + } + break; + case "ABC"://必须更换治具 + foreach (Nozzle item in NozzleManager.GetNozzlesByStatus(ENozzleStatus.ToTest)) + { + if (item.Product != null) + { + if (item.Product.TestNum == 0) + return item; + if (!item.Product.TestedFixtures.Contains(fixture.Index)) + return item; + } + } + break; + default: + break; + } } return null; } diff --git a/Rs.DeweyTester/Flow/SubFlow/FixtureTakeFlow.cs b/Rs.DeweyTester/Flow/SubFlow/FixtureTakeFlow.cs index d7283a4..c064276 100644 --- a/Rs.DeweyTester/Flow/SubFlow/FixtureTakeFlow.cs +++ b/Rs.DeweyTester/Flow/SubFlow/FixtureTakeFlow.cs @@ -225,7 +225,7 @@ namespace Rs.MotionPlat.Flow.SubFlow curNozzle.Product = curFixture.Product; if(GlobalVar.TestMode!="GRR" && GlobalVar.TestMode!="AUDIT") { - if (curFixture.Product.Result == "PASS" || curFixture.Product.TestNum >= 3) + if (curFixture.Product.Result == "PASS" || curFixture.Product.TestNum >= 3 || curFixture.Product.SN == "SLK11111111PNK60X") { curNozzle.Status = ENozzleStatus.ToUnload; } diff --git a/Rs.DeweyTester/FormMain.cs b/Rs.DeweyTester/FormMain.cs index 097655d..6c0d305 100644 --- a/Rs.DeweyTester/FormMain.cs +++ b/Rs.DeweyTester/FormMain.cs @@ -160,11 +160,11 @@ namespace Rs.MotionPlat MessageItem errorInfo = MessageQueue.Instance.GetWarn(); if (errorInfo != null) { - //while (dgv_errinfo.Rows.Count > 500) - //{ - // dgv_errinfo.Rows.RemoveAt(dgv_errinfo.Rows.Count - 1); - //} - //dgv_errinfo.Rows.Insert(0, errorInfo.Time, errorInfo.Content); + while (dgv_errinfo.Rows.Count > 500) + { + dgv_errinfo.Rows.RemoveAt(dgv_errinfo.Rows.Count - 1); + } + dgv_errinfo.Rows.Insert(0, errorInfo.Time, errorInfo.Content); } } if(MachineManage.Instance.MachineStatus== EMachineStatus.Working) diff --git a/Rs.DeweyTester/FormMain.designer.cs b/Rs.DeweyTester/FormMain.designer.cs index 4e6aebb..abe6e53 100644 --- a/Rs.DeweyTester/FormMain.designer.cs +++ b/Rs.DeweyTester/FormMain.designer.cs @@ -32,6 +32,7 @@ namespace Rs.MotionPlat private void InitializeComponent() { this.components = new System.ComponentModel.Container(); + System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.panel1 = new System.Windows.Forms.Panel(); this.groupBox36 = new System.Windows.Forms.GroupBox(); @@ -150,6 +151,10 @@ namespace Rs.MotionPlat this.timertc5 = new System.Windows.Forms.Timer(this.components); this.timertc6 = new System.Windows.Forms.Timer(this.components); this.timeruph = new System.Windows.Forms.Timer(this.components); + this.groupBox37 = new System.Windows.Forms.GroupBox(); + this.dgv_errinfo = new System.Windows.Forms.DataGridView(); + this.dataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn(); + this.dataGridViewTextBoxColumn2 = new System.Windows.Forms.DataGridViewTextBoxColumn(); this.panel1.SuspendLayout(); this.groupBox36.SuspendLayout(); this.panel4.SuspendLayout(); @@ -178,6 +183,8 @@ namespace Rs.MotionPlat this.tabPage2.SuspendLayout(); this.tableLayoutPanel5.SuspendLayout(); this.tableLayoutPanel4.SuspendLayout(); + this.groupBox37.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dgv_errinfo)).BeginInit(); this.SuspendLayout(); // // timer1 @@ -188,6 +195,7 @@ namespace Rs.MotionPlat // panel1 // this.panel1.BackColor = System.Drawing.Color.Transparent; + this.panel1.Controls.Add(this.groupBox37); this.panel1.Controls.Add(this.groupBox36); this.panel1.Controls.Add(this.panel4); this.panel1.Dock = System.Windows.Forms.DockStyle.Right; @@ -204,11 +212,11 @@ namespace Rs.MotionPlat this.groupBox36.Controls.Add(this.btnNozzleStatus); this.groupBox36.Controls.Add(this.btnLight); this.groupBox36.Controls.Add(this.btnBuzzer); - this.groupBox36.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox36.Dock = System.Windows.Forms.DockStyle.Top; this.groupBox36.ForeColor = System.Drawing.Color.White; this.groupBox36.Location = new System.Drawing.Point(0, 0); this.groupBox36.Name = "groupBox36"; - this.groupBox36.Size = new System.Drawing.Size(320, 520); + this.groupBox36.Size = new System.Drawing.Size(320, 259); this.groupBox36.TabIndex = 7; this.groupBox36.TabStop = false; this.groupBox36.Text = "Quick functions"; @@ -1721,6 +1729,64 @@ namespace Rs.MotionPlat this.timeruph.Interval = 3000; this.timeruph.Tick += new System.EventHandler(this.timer3_Tick_1); // + // groupBox37 + // + this.groupBox37.Controls.Add(this.dgv_errinfo); + this.groupBox37.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox37.ForeColor = System.Drawing.Color.White; + this.groupBox37.Location = new System.Drawing.Point(0, 259); + this.groupBox37.Name = "groupBox37"; + this.groupBox37.Size = new System.Drawing.Size(320, 261); + this.groupBox37.TabIndex = 8; + this.groupBox37.TabStop = false; + this.groupBox37.Tag = ""; + this.groupBox37.Text = "Warn list"; + // + // dgv_errinfo + // + this.dgv_errinfo.AllowUserToAddRows = false; + this.dgv_errinfo.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill; + this.dgv_errinfo.BackgroundColor = System.Drawing.SystemColors.ActiveCaptionText; + this.dgv_errinfo.ColumnHeadersBorderStyle = System.Windows.Forms.DataGridViewHeaderBorderStyle.Single; + dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.Red; + dataGridViewCellStyle1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); + dataGridViewCellStyle1.ForeColor = System.Drawing.Color.White; + dataGridViewCellStyle1.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle1.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.dgv_errinfo.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle1; + this.dgv_errinfo.ColumnHeadersHeight = 30; + this.dgv_errinfo.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] { + this.dataGridViewTextBoxColumn1, + this.dataGridViewTextBoxColumn2}); + this.dgv_errinfo.Dock = System.Windows.Forms.DockStyle.Fill; + this.dgv_errinfo.Location = new System.Drawing.Point(3, 17); + this.dgv_errinfo.Name = "dgv_errinfo"; + this.dgv_errinfo.RowHeadersVisible = false; + this.dgv_errinfo.RowHeadersWidth = 51; + this.dgv_errinfo.RowTemplate.DefaultCellStyle.BackColor = System.Drawing.Color.Black; + this.dgv_errinfo.RowTemplate.DefaultCellStyle.ForeColor = System.Drawing.Color.Red; + this.dgv_errinfo.RowTemplate.Height = 23; + this.dgv_errinfo.Size = new System.Drawing.Size(314, 241); + this.dgv_errinfo.TabIndex = 4; + // + // dataGridViewTextBoxColumn1 + // + this.dataGridViewTextBoxColumn1.DataPropertyName = "Time"; + this.dataGridViewTextBoxColumn1.FillWeight = 25F; + this.dataGridViewTextBoxColumn1.HeaderText = "Time"; + this.dataGridViewTextBoxColumn1.MinimumWidth = 6; + this.dataGridViewTextBoxColumn1.Name = "dataGridViewTextBoxColumn1"; + // + // dataGridViewTextBoxColumn2 + // + this.dataGridViewTextBoxColumn2.DataPropertyName = "Content"; + this.dataGridViewTextBoxColumn2.FillWeight = 75F; + this.dataGridViewTextBoxColumn2.HeaderText = "Content"; + this.dataGridViewTextBoxColumn2.MinimumWidth = 6; + this.dataGridViewTextBoxColumn2.Name = "dataGridViewTextBoxColumn2"; + // // FormMain // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -1762,6 +1828,8 @@ namespace Rs.MotionPlat this.tabPage2.ResumeLayout(false); this.tableLayoutPanel5.ResumeLayout(false); this.tableLayoutPanel4.ResumeLayout(false); + this.groupBox37.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.dgv_errinfo)).EndInit(); this.ResumeLayout(false); } @@ -1886,5 +1954,9 @@ namespace Rs.MotionPlat private System.Windows.Forms.Button btnNozzleStatus; private System.Windows.Forms.Button btnLight; private System.Windows.Forms.Button btnBuzzer; + private System.Windows.Forms.GroupBox groupBox37; + private System.Windows.Forms.DataGridView dgv_errinfo; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn1; + private System.Windows.Forms.DataGridViewTextBoxColumn dataGridViewTextBoxColumn2; } } \ No newline at end of file diff --git a/Rs.DeweyTester/FormMain.resx b/Rs.DeweyTester/FormMain.resx index 4f6611c..f253b2a 100644 --- a/Rs.DeweyTester/FormMain.resx +++ b/Rs.DeweyTester/FormMain.resx @@ -120,6 +120,12 @@ 17, 17 + + True + + + True + 107, 17 diff --git a/Rs.DeweyTester/Properties/AssemblyInfo.cs b/Rs.DeweyTester/Properties/AssemblyInfo.cs index 9782030..dc8e17a 100644 --- a/Rs.DeweyTester/Properties/AssemblyInfo.cs +++ b/Rs.DeweyTester/Properties/AssemblyInfo.cs @@ -31,6 +31,6 @@ using System.Runtime.InteropServices; // //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //通过使用 "*",如下所示: - [assembly: AssemblyVersion("20.25.16.1")] + [assembly: AssemblyVersion("20.25.19.1")] //[assembly: AssemblyVersion("1.0.0.0")] //[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Rs.DeweyTester/SysConfig/FixtureConfig.cs b/Rs.DeweyTester/SysConfig/FixtureConfig.cs index b1bc33a..408db83 100644 --- a/Rs.DeweyTester/SysConfig/FixtureConfig.cs +++ b/Rs.DeweyTester/SysConfig/FixtureConfig.cs @@ -38,7 +38,10 @@ namespace Rs.MotionPlat.SysConfig //{ // DischargeModuleGoSafePosFlow.Instance.GoSafePostion(ESafePosSide.PlaceToFixture); //} - GroupAxisMove.XY1Y2MovePos(targetPosition, GlobalVar.WholeSpeed, EGoWhichSide.FixtureSide); + if(btnType== EButtonType.Ok) + { + GroupAxisMove.XY1Y2MovePos(targetPosition, GlobalVar.WholeSpeed, EGoWhichSide.FixtureSide); + } } }