From 16253c59af69690c796c171de27ab1eff805fc55 Mon Sep 17 00:00:00 2001 From: lhiven <236881222@qq.com> Date: Tue, 15 Aug 2023 08:19:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=BB=E9=A1=B5=E7=9A=84?= =?UTF-8?q?=E7=B1=BB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.MotionPlat/FormMain.Designer.cs | 989 ++++++++++++------ Rs.MotionPlat/FormMain.cs | 104 +- .../{Home2.Designer.cs => Home.Designer.cs} | 62 +- Rs.MotionPlat/{Home2.cs => Home.cs} | 102 +- Rs.MotionPlat/{Home2.resx => Home.resx} | 3 + Rs.MotionPlat/Program.cs | 2 +- 6 files changed, 771 insertions(+), 491 deletions(-) rename Rs.MotionPlat/{Home2.Designer.cs => Home.Designer.cs} (85%) rename Rs.MotionPlat/{Home2.cs => Home.cs} (63%) rename Rs.MotionPlat/{Home2.resx => Home.resx} (96%) diff --git a/Rs.MotionPlat/FormMain.Designer.cs b/Rs.MotionPlat/FormMain.Designer.cs index d4bce2b..40cb568 100644 --- a/Rs.MotionPlat/FormMain.Designer.cs +++ b/Rs.MotionPlat/FormMain.Designer.cs @@ -61,30 +61,53 @@ this.multiTray = new Rs.Controls.RsTray(); this.inputTray2 = new Rs.Controls.RsTray(); this.inputTray3 = new Rs.Controls.RsTray(); - this.okTray1 = new Rs.Controls.RsTray(); - this.okTray2 = new Rs.Controls.RsTray(); - this.okTray3 = new Rs.Controls.RsTray(); - this.ngTray = new Rs.Controls.RsTray(); + this.rsTray1 = new Rs.Controls.RsTray(); + this.rsTray2 = new Rs.Controls.RsTray(); + this.panelEx5 = new Rs.Controls.PanelEx(); + this.tableLayoutPanel7 = new System.Windows.Forms.TableLayoutPanel(); + this.rsTray3 = new Rs.Controls.RsTray(); + this.groupBox9 = new System.Windows.Forms.GroupBox(); + this.tableLayoutPanel8 = new System.Windows.Forms.TableLayoutPanel(); + this.groupBox14 = new System.Windows.Forms.GroupBox(); + this.hWindow_Final6 = new ChoiceTech.Halcon.Control.HWindow_Final(); + this.hWindow_Final1 = new ChoiceTech.Halcon.Control.HWindow_Final(); + this.groupBox10 = new System.Windows.Forms.GroupBox(); + this.hWindow_Final2 = new ChoiceTech.Halcon.Control.HWindow_Final(); + this.tableLayoutPanel9 = new System.Windows.Forms.TableLayoutPanel(); + this.groupBox15 = new System.Windows.Forms.GroupBox(); + this.hWindow_Final7 = new ChoiceTech.Halcon.Control.HWindow_Final(); + this.groupBox11 = new System.Windows.Forms.GroupBox(); + this.hWindow_Final3 = new ChoiceTech.Halcon.Control.HWindow_Final(); + this.tableLayoutPanel10 = new System.Windows.Forms.TableLayoutPanel(); + this.groupBox16 = new System.Windows.Forms.GroupBox(); + this.hWindow_Final8 = new ChoiceTech.Halcon.Control.HWindow_Final(); + this.groupBox12 = new System.Windows.Forms.GroupBox(); + this.hWindow_Final4 = new ChoiceTech.Halcon.Control.HWindow_Final(); + this.tableLayoutPanel11 = new System.Windows.Forms.TableLayoutPanel(); + this.groupBox17 = new System.Windows.Forms.GroupBox(); + this.hWindow_Final9 = new ChoiceTech.Halcon.Control.HWindow_Final(); + this.groupBox13 = new System.Windows.Forms.GroupBox(); + this.hWindow_Final5 = new ChoiceTech.Halcon.Control.HWindow_Final(); this.tabPage2 = new System.Windows.Forms.TabPage(); this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel(); - this.tableLayoutPanel6 = new System.Windows.Forms.TableLayoutPanel(); this.tableLayoutPanel5 = new System.Windows.Forms.TableLayoutPanel(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.hwin_vac1 = new ChoiceTech.Halcon.Control.HWindow_Final(); - this.groupBox2 = new System.Windows.Forms.GroupBox(); - this.hwin_vac2 = new ChoiceTech.Halcon.Control.HWindow_Final(); - this.groupBox3 = new System.Windows.Forms.GroupBox(); - this.hwin_vac3 = new ChoiceTech.Halcon.Control.HWindow_Final(); this.groupBox4 = new System.Windows.Forms.GroupBox(); this.hwin_vac4 = new ChoiceTech.Halcon.Control.HWindow_Final(); - this.groupBox5 = new System.Windows.Forms.GroupBox(); - this.hwin_vac5 = new ChoiceTech.Halcon.Control.HWindow_Final(); - this.groupBox6 = new System.Windows.Forms.GroupBox(); - this.hwin_vac6 = new ChoiceTech.Halcon.Control.HWindow_Final(); - this.groupBox7 = new System.Windows.Forms.GroupBox(); - this.hwin_vac7 = new ChoiceTech.Halcon.Control.HWindow_Final(); + this.groupBox3 = new System.Windows.Forms.GroupBox(); + this.hwin_vac3 = new ChoiceTech.Halcon.Control.HWindow_Final(); + this.groupBox2 = new System.Windows.Forms.GroupBox(); + this.hwin_vac2 = new ChoiceTech.Halcon.Control.HWindow_Final(); + this.groupBox1 = new System.Windows.Forms.GroupBox(); + this.hwin_vac1 = new ChoiceTech.Halcon.Control.HWindow_Final(); + this.tableLayoutPanel6 = new System.Windows.Forms.TableLayoutPanel(); this.groupBox8 = new System.Windows.Forms.GroupBox(); this.hwin_vac8 = new ChoiceTech.Halcon.Control.HWindow_Final(); + this.groupBox7 = new System.Windows.Forms.GroupBox(); + this.hwin_vac7 = new ChoiceTech.Halcon.Control.HWindow_Final(); + this.groupBox6 = new System.Windows.Forms.GroupBox(); + this.hwin_vac6 = new ChoiceTech.Halcon.Control.HWindow_Final(); + this.groupBox5 = new System.Windows.Forms.GroupBox(); + this.hwin_vac5 = new ChoiceTech.Halcon.Control.HWindow_Final(); this.panel1.SuspendLayout(); this.tableLayoutPanel3.SuspendLayout(); this.panel3.SuspendLayout(); @@ -100,18 +123,32 @@ this.tabControlEx1.SuspendLayout(); this.tabPage1.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); + this.panelEx5.SuspendLayout(); + this.tableLayoutPanel7.SuspendLayout(); + this.tableLayoutPanel8.SuspendLayout(); + this.groupBox14.SuspendLayout(); + this.groupBox10.SuspendLayout(); + this.tableLayoutPanel9.SuspendLayout(); + this.groupBox15.SuspendLayout(); + this.groupBox11.SuspendLayout(); + this.tableLayoutPanel10.SuspendLayout(); + this.groupBox16.SuspendLayout(); + this.groupBox12.SuspendLayout(); + this.tableLayoutPanel11.SuspendLayout(); + this.groupBox17.SuspendLayout(); + this.groupBox13.SuspendLayout(); this.tabPage2.SuspendLayout(); this.tableLayoutPanel4.SuspendLayout(); - this.tableLayoutPanel6.SuspendLayout(); this.tableLayoutPanel5.SuspendLayout(); - this.groupBox1.SuspendLayout(); - this.groupBox2.SuspendLayout(); - this.groupBox3.SuspendLayout(); this.groupBox4.SuspendLayout(); - this.groupBox5.SuspendLayout(); - this.groupBox6.SuspendLayout(); - this.groupBox7.SuspendLayout(); + this.groupBox3.SuspendLayout(); + this.groupBox2.SuspendLayout(); + this.groupBox1.SuspendLayout(); + this.tableLayoutPanel6.SuspendLayout(); this.groupBox8.SuspendLayout(); + this.groupBox7.SuspendLayout(); + this.groupBox6.SuspendLayout(); + this.groupBox5.SuspendLayout(); this.SuspendLayout(); // // timer1 @@ -467,26 +504,30 @@ // // tableLayoutPanel1 // - this.tableLayoutPanel1.ColumnCount = 4; - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.tableLayoutPanel1.Controls.Add(this.inputTray1, 0, 0); - this.tableLayoutPanel1.Controls.Add(this.multiTray, 1, 0); - this.tableLayoutPanel1.Controls.Add(this.inputTray2, 2, 0); - this.tableLayoutPanel1.Controls.Add(this.inputTray3, 3, 0); - this.tableLayoutPanel1.Controls.Add(this.okTray1, 0, 1); - this.tableLayoutPanel1.Controls.Add(this.okTray2, 1, 1); - this.tableLayoutPanel1.Controls.Add(this.okTray3, 2, 1); - this.tableLayoutPanel1.Controls.Add(this.ngTray, 3, 1); + this.tableLayoutPanel1.ColumnCount = 6; + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66667F)); + this.tableLayoutPanel1.Controls.Add(this.inputTray1, 0, 1); + this.tableLayoutPanel1.Controls.Add(this.multiTray, 1, 1); + this.tableLayoutPanel1.Controls.Add(this.inputTray2, 2, 1); + this.tableLayoutPanel1.Controls.Add(this.inputTray3, 3, 1); + this.tableLayoutPanel1.Controls.Add(this.rsTray1, 4, 1); + this.tableLayoutPanel1.Controls.Add(this.rsTray2, 5, 1); + this.tableLayoutPanel1.Controls.Add(this.panelEx5, 0, 0); + this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel8, 2, 0); + this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel9, 3, 0); + this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel10, 4, 0); + this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel11, 5, 0); this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Location = new System.Drawing.Point(3, 3); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.RowCount = 2; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.tableLayoutPanel1.Size = new System.Drawing.Size(777, 814); this.tableLayoutPanel1.TabIndex = 8; // @@ -496,19 +537,21 @@ this.inputTray1.ColSpace = 5; this.inputTray1.ColumnNum = 10; this.inputTray1.Dock = System.Windows.Forms.DockStyle.Fill; - this.inputTray1.HeadText = "Input1"; - this.inputTray1.InitSlotStatus = Rs.Controls.ESlotStatus.Have; + this.inputTray1.HeadText = "Empty"; + this.inputTray1.InitSlotStatus = Rs.Controls.ESlotStatus.NotHave; this.inputTray1.ItemName = null; this.inputTray1.LeftSpaceWidth = 20; - this.inputTray1.Location = new System.Drawing.Point(3, 3); + this.inputTray1.Location = new System.Drawing.Point(3, 410); this.inputTray1.Name = "inputTray1"; this.inputTray1.OffsetX = 0F; this.inputTray1.OffsetY = 0F; + this.inputTray1.OffsetYEven = 0F; this.inputTray1.RowNum = 26; this.inputTray1.RowSpace = 3; this.inputTray1.SelectSlot = null; this.inputTray1.ShowText = false; - this.inputTray1.Size = new System.Drawing.Size(188, 401); + this.inputTray1.SinglePoint = false; + this.inputTray1.Size = new System.Drawing.Size(123, 401); this.inputTray1.SortDir = Rs.Controls.ESortDir.Horizontal; this.inputTray1.TabIndex = 0; this.inputTray1.TopSpaceHeight = 20; @@ -519,19 +562,21 @@ this.multiTray.ColSpace = 5; this.multiTray.ColumnNum = 10; this.multiTray.Dock = System.Windows.Forms.DockStyle.Fill; - this.multiTray.HeadText = "Multi"; - this.multiTray.InitSlotStatus = Rs.Controls.ESlotStatus.NotHave; + this.multiTray.HeadText = "Input"; + this.multiTray.InitSlotStatus = Rs.Controls.ESlotStatus.Have; this.multiTray.ItemName = null; this.multiTray.LeftSpaceWidth = 20; - this.multiTray.Location = new System.Drawing.Point(197, 3); + this.multiTray.Location = new System.Drawing.Point(132, 410); this.multiTray.Name = "multiTray"; this.multiTray.OffsetX = 0F; this.multiTray.OffsetY = 0F; + this.multiTray.OffsetYEven = 0F; this.multiTray.RowNum = 26; this.multiTray.RowSpace = 3; this.multiTray.SelectSlot = null; this.multiTray.ShowText = false; - this.multiTray.Size = new System.Drawing.Size(188, 401); + this.multiTray.SinglePoint = false; + this.multiTray.Size = new System.Drawing.Size(123, 401); this.multiTray.SortDir = Rs.Controls.ESortDir.Horizontal; this.multiTray.TabIndex = 0; this.multiTray.TopSpaceHeight = 20; @@ -542,19 +587,21 @@ this.inputTray2.ColSpace = 5; this.inputTray2.ColumnNum = 10; this.inputTray2.Dock = System.Windows.Forms.DockStyle.Fill; - this.inputTray2.HeadText = "Input2"; - this.inputTray2.InitSlotStatus = Rs.Controls.ESlotStatus.Have; + this.inputTray2.HeadText = "OK"; + this.inputTray2.InitSlotStatus = Rs.Controls.ESlotStatus.NotHave; this.inputTray2.ItemName = null; this.inputTray2.LeftSpaceWidth = 20; - this.inputTray2.Location = new System.Drawing.Point(391, 3); + this.inputTray2.Location = new System.Drawing.Point(261, 410); this.inputTray2.Name = "inputTray2"; this.inputTray2.OffsetX = 0F; this.inputTray2.OffsetY = 0F; + this.inputTray2.OffsetYEven = 0F; this.inputTray2.RowNum = 26; this.inputTray2.RowSpace = 3; this.inputTray2.SelectSlot = null; this.inputTray2.ShowText = false; - this.inputTray2.Size = new System.Drawing.Size(188, 401); + this.inputTray2.SinglePoint = false; + this.inputTray2.Size = new System.Drawing.Size(123, 401); this.inputTray2.SortDir = Rs.Controls.ESortDir.Horizontal; this.inputTray2.TabIndex = 0; this.inputTray2.TopSpaceHeight = 20; @@ -566,114 +613,410 @@ this.inputTray3.ColSpace = 5; this.inputTray3.ColumnNum = 10; this.inputTray3.Dock = System.Windows.Forms.DockStyle.Fill; - this.inputTray3.HeadText = "Input3"; - this.inputTray3.InitSlotStatus = Rs.Controls.ESlotStatus.Have; + this.inputTray3.HeadText = "NG"; + this.inputTray3.InitSlotStatus = Rs.Controls.ESlotStatus.NotHave; this.inputTray3.ItemName = null; this.inputTray3.LeftSpaceWidth = 20; - this.inputTray3.Location = new System.Drawing.Point(585, 3); + this.inputTray3.Location = new System.Drawing.Point(390, 410); this.inputTray3.Name = "inputTray3"; this.inputTray3.OffsetX = 0F; this.inputTray3.OffsetY = 0F; + this.inputTray3.OffsetYEven = 0F; this.inputTray3.RowNum = 26; this.inputTray3.RowSpace = 3; this.inputTray3.SelectSlot = null; this.inputTray3.ShowText = false; - this.inputTray3.Size = new System.Drawing.Size(189, 401); + this.inputTray3.SinglePoint = false; + this.inputTray3.Size = new System.Drawing.Size(123, 401); this.inputTray3.SortDir = Rs.Controls.ESortDir.Horizontal; this.inputTray3.TabIndex = 0; this.inputTray3.TopSpaceHeight = 20; // - // okTray1 - // - this.okTray1.CanDraw = true; - this.okTray1.ColSpace = 5; - this.okTray1.ColumnNum = 10; - this.okTray1.Dock = System.Windows.Forms.DockStyle.Fill; - this.okTray1.HeadText = "OK1"; - this.okTray1.InitSlotStatus = Rs.Controls.ESlotStatus.NotHave; - this.okTray1.ItemName = null; - this.okTray1.LeftSpaceWidth = 20; - this.okTray1.Location = new System.Drawing.Point(3, 410); - this.okTray1.Name = "okTray1"; - this.okTray1.OffsetX = 0F; - this.okTray1.OffsetY = 0F; - this.okTray1.RowNum = 26; - this.okTray1.RowSpace = 3; - this.okTray1.SelectSlot = null; - this.okTray1.ShowText = false; - this.okTray1.Size = new System.Drawing.Size(188, 401); - this.okTray1.SortDir = Rs.Controls.ESortDir.Horizontal; - this.okTray1.TabIndex = 0; - this.okTray1.TopSpaceHeight = 20; - // - // okTray2 - // - this.okTray2.CanDraw = true; - this.okTray2.ColSpace = 5; - this.okTray2.ColumnNum = 10; - this.okTray2.Dock = System.Windows.Forms.DockStyle.Fill; - this.okTray2.HeadText = "OK2"; - this.okTray2.InitSlotStatus = Rs.Controls.ESlotStatus.NotHave; - this.okTray2.ItemName = null; - this.okTray2.LeftSpaceWidth = 20; - this.okTray2.Location = new System.Drawing.Point(197, 410); - this.okTray2.Name = "okTray2"; - this.okTray2.OffsetX = 0F; - this.okTray2.OffsetY = 0F; - this.okTray2.RowNum = 26; - this.okTray2.RowSpace = 3; - this.okTray2.SelectSlot = null; - this.okTray2.ShowText = false; - this.okTray2.Size = new System.Drawing.Size(188, 401); - this.okTray2.SortDir = Rs.Controls.ESortDir.Horizontal; - this.okTray2.TabIndex = 0; - this.okTray2.TopSpaceHeight = 20; - // - // okTray3 - // - this.okTray3.CanDraw = true; - this.okTray3.ColSpace = 5; - this.okTray3.ColumnNum = 10; - this.okTray3.Dock = System.Windows.Forms.DockStyle.Fill; - this.okTray3.HeadText = "OK3"; - this.okTray3.InitSlotStatus = Rs.Controls.ESlotStatus.NotHave; - this.okTray3.ItemName = null; - this.okTray3.LeftSpaceWidth = 20; - this.okTray3.Location = new System.Drawing.Point(391, 410); - this.okTray3.Name = "okTray3"; - this.okTray3.OffsetX = 0F; - this.okTray3.OffsetY = 0F; - this.okTray3.RowNum = 26; - this.okTray3.RowSpace = 3; - this.okTray3.SelectSlot = null; - this.okTray3.ShowText = false; - this.okTray3.Size = new System.Drawing.Size(188, 401); - this.okTray3.SortDir = Rs.Controls.ESortDir.Horizontal; - this.okTray3.TabIndex = 0; - this.okTray3.TopSpaceHeight = 20; - // - // ngTray - // - this.ngTray.CanDraw = true; - this.ngTray.ColSpace = 5; - this.ngTray.ColumnNum = 10; - this.ngTray.Dock = System.Windows.Forms.DockStyle.Fill; - this.ngTray.HeadText = "NG"; - this.ngTray.InitSlotStatus = Rs.Controls.ESlotStatus.NotHave; - this.ngTray.ItemName = null; - this.ngTray.LeftSpaceWidth = 20; - this.ngTray.Location = new System.Drawing.Point(585, 410); - this.ngTray.Name = "ngTray"; - this.ngTray.OffsetX = 0F; - this.ngTray.OffsetY = 0F; - this.ngTray.RowNum = 26; - this.ngTray.RowSpace = 3; - this.ngTray.SelectSlot = null; - this.ngTray.ShowText = false; - this.ngTray.Size = new System.Drawing.Size(189, 401); - this.ngTray.SortDir = Rs.Controls.ESortDir.Horizontal; - this.ngTray.TabIndex = 0; - this.ngTray.TopSpaceHeight = 20; + // rsTray1 + // + this.rsTray1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36))))); + this.rsTray1.CanDraw = true; + this.rsTray1.ColSpace = 5; + this.rsTray1.ColumnNum = 10; + this.rsTray1.Dock = System.Windows.Forms.DockStyle.Fill; + this.rsTray1.HeadText = "Multi"; + this.rsTray1.InitSlotStatus = Rs.Controls.ESlotStatus.NotHave; + this.rsTray1.ItemName = null; + this.rsTray1.LeftSpaceWidth = 20; + this.rsTray1.Location = new System.Drawing.Point(519, 410); + this.rsTray1.Name = "rsTray1"; + this.rsTray1.OffsetX = 0F; + this.rsTray1.OffsetY = 0F; + this.rsTray1.OffsetYEven = 0F; + this.rsTray1.RowNum = 26; + this.rsTray1.RowSpace = 3; + this.rsTray1.SelectSlot = null; + this.rsTray1.ShowText = false; + this.rsTray1.SinglePoint = false; + this.rsTray1.Size = new System.Drawing.Size(123, 401); + this.rsTray1.SortDir = Rs.Controls.ESortDir.Horizontal; + this.rsTray1.TabIndex = 0; + this.rsTray1.TopSpaceHeight = 20; + // + // rsTray2 + // + this.rsTray2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(11)))), ((int)(((byte)(16)))), ((int)(((byte)(36))))); + this.rsTray2.CanDraw = true; + this.rsTray2.ColSpace = 5; + this.rsTray2.ColumnNum = 10; + this.rsTray2.Dock = System.Windows.Forms.DockStyle.Fill; + this.rsTray2.HeadText = "Empty"; + this.rsTray2.InitSlotStatus = Rs.Controls.ESlotStatus.NotHave; + this.rsTray2.ItemName = null; + this.rsTray2.LeftSpaceWidth = 20; + this.rsTray2.Location = new System.Drawing.Point(648, 410); + this.rsTray2.Name = "rsTray2"; + this.rsTray2.OffsetX = 0F; + this.rsTray2.OffsetY = 0F; + this.rsTray2.OffsetYEven = 0F; + this.rsTray2.RowNum = 26; + this.rsTray2.RowSpace = 3; + this.rsTray2.SelectSlot = null; + this.rsTray2.ShowText = false; + this.rsTray2.SinglePoint = false; + this.rsTray2.Size = new System.Drawing.Size(126, 401); + this.rsTray2.SortDir = Rs.Controls.ESortDir.Horizontal; + this.rsTray2.TabIndex = 0; + this.rsTray2.TopSpaceHeight = 20; + // + // panelEx5 + // + this.tableLayoutPanel1.SetColumnSpan(this.panelEx5, 2); + this.panelEx5.Controls.Add(this.tableLayoutPanel7); + this.panelEx5.Dock = System.Windows.Forms.DockStyle.Fill; + this.panelEx5.Location = new System.Drawing.Point(3, 3); + this.panelEx5.Name = "panelEx5"; + this.panelEx5.Size = new System.Drawing.Size(252, 401); + this.panelEx5.TabIndex = 1; + // + // tableLayoutPanel7 + // + this.tableLayoutPanel7.ColumnCount = 1; + this.tableLayoutPanel7.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel7.Controls.Add(this.rsTray3, 0, 1); + this.tableLayoutPanel7.Controls.Add(this.groupBox9, 0, 0); + this.tableLayoutPanel7.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel7.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel7.Name = "tableLayoutPanel7"; + this.tableLayoutPanel7.RowCount = 2; + this.tableLayoutPanel7.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel7.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel7.Size = new System.Drawing.Size(252, 401); + this.tableLayoutPanel7.TabIndex = 0; + // + // rsTray3 + // + this.rsTray3.CanDraw = true; + this.rsTray3.ColSpace = 5; + this.rsTray3.ColumnNum = 8; + this.rsTray3.Dock = System.Windows.Forms.DockStyle.Fill; + this.rsTray3.HeadText = "Turnover"; + this.rsTray3.InitSlotStatus = Rs.Controls.ESlotStatus.NotHave; + this.rsTray3.ItemName = null; + this.rsTray3.LeftSpaceWidth = 20; + this.rsTray3.Location = new System.Drawing.Point(3, 203); + this.rsTray3.Name = "rsTray3"; + this.rsTray3.OffsetX = 0F; + this.rsTray3.OffsetY = 0F; + this.rsTray3.OffsetYEven = 0F; + this.rsTray3.RowNum = 4; + this.rsTray3.RowSpace = 3; + this.rsTray3.SelectSlot = null; + this.rsTray3.ShowText = false; + this.rsTray3.SinglePoint = false; + this.rsTray3.Size = new System.Drawing.Size(246, 195); + this.rsTray3.SortDir = Rs.Controls.ESortDir.Horizontal; + this.rsTray3.TabIndex = 1; + this.rsTray3.TopSpaceHeight = 20; + // + // groupBox9 + // + this.groupBox9.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox9.ForeColor = System.Drawing.Color.White; + this.groupBox9.Location = new System.Drawing.Point(3, 3); + this.groupBox9.Name = "groupBox9"; + this.groupBox9.Size = new System.Drawing.Size(246, 194); + this.groupBox9.TabIndex = 0; + this.groupBox9.TabStop = false; + this.groupBox9.Text = "测试"; + // + // tableLayoutPanel8 + // + this.tableLayoutPanel8.ColumnCount = 1; + this.tableLayoutPanel8.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel8.Controls.Add(this.groupBox14, 0, 1); + this.tableLayoutPanel8.Controls.Add(this.groupBox10, 0, 0); + this.tableLayoutPanel8.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel8.Location = new System.Drawing.Point(261, 3); + this.tableLayoutPanel8.Name = "tableLayoutPanel8"; + this.tableLayoutPanel8.RowCount = 2; + this.tableLayoutPanel8.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel8.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel8.Size = new System.Drawing.Size(123, 401); + this.tableLayoutPanel8.TabIndex = 2; + // + // groupBox14 + // + this.groupBox14.Controls.Add(this.hWindow_Final6); + this.groupBox14.Controls.Add(this.hWindow_Final1); + this.groupBox14.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox14.ForeColor = System.Drawing.Color.White; + this.groupBox14.Location = new System.Drawing.Point(3, 203); + this.groupBox14.Name = "groupBox14"; + this.groupBox14.Size = new System.Drawing.Size(117, 195); + this.groupBox14.TabIndex = 0; + this.groupBox14.TabStop = false; + this.groupBox14.Text = "Nozzle5"; + // + // hWindow_Final6 + // + this.hWindow_Final6.BackColor = System.Drawing.Color.Transparent; + this.hWindow_Final6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.hWindow_Final6.Dock = System.Windows.Forms.DockStyle.Fill; + this.hWindow_Final6.DrawModel = false; + this.hWindow_Final6.ForeColor = System.Drawing.Color.White; + this.hWindow_Final6.Image = null; + this.hWindow_Final6.Location = new System.Drawing.Point(3, 17); + this.hWindow_Final6.Name = "hWindow_Final6"; + this.hWindow_Final6.Size = new System.Drawing.Size(111, 175); + this.hWindow_Final6.TabIndex = 12; + // + // hWindow_Final1 + // + this.hWindow_Final1.BackColor = System.Drawing.Color.Transparent; + this.hWindow_Final1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.hWindow_Final1.DrawModel = false; + this.hWindow_Final1.ForeColor = System.Drawing.Color.White; + this.hWindow_Final1.Image = null; + this.hWindow_Final1.Location = new System.Drawing.Point(11, -180); + this.hWindow_Final1.Name = "hWindow_Final1"; + this.hWindow_Final1.Size = new System.Drawing.Size(84, 125); + this.hWindow_Final1.TabIndex = 12; + // + // groupBox10 + // + this.groupBox10.Controls.Add(this.hWindow_Final2); + this.groupBox10.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox10.ForeColor = System.Drawing.Color.White; + this.groupBox10.Location = new System.Drawing.Point(3, 3); + this.groupBox10.Name = "groupBox10"; + this.groupBox10.Size = new System.Drawing.Size(117, 194); + this.groupBox10.TabIndex = 0; + this.groupBox10.TabStop = false; + this.groupBox10.Text = "Nozzle1"; + // + // hWindow_Final2 + // + this.hWindow_Final2.BackColor = System.Drawing.Color.Transparent; + this.hWindow_Final2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.hWindow_Final2.Dock = System.Windows.Forms.DockStyle.Fill; + this.hWindow_Final2.DrawModel = false; + this.hWindow_Final2.ForeColor = System.Drawing.Color.White; + this.hWindow_Final2.Image = null; + this.hWindow_Final2.Location = new System.Drawing.Point(3, 17); + this.hWindow_Final2.Name = "hWindow_Final2"; + this.hWindow_Final2.Size = new System.Drawing.Size(111, 174); + this.hWindow_Final2.TabIndex = 12; + // + // tableLayoutPanel9 + // + this.tableLayoutPanel9.ColumnCount = 1; + this.tableLayoutPanel9.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel9.Controls.Add(this.groupBox15, 0, 1); + this.tableLayoutPanel9.Controls.Add(this.groupBox11, 0, 0); + this.tableLayoutPanel9.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel9.Location = new System.Drawing.Point(390, 3); + this.tableLayoutPanel9.Name = "tableLayoutPanel9"; + this.tableLayoutPanel9.RowCount = 2; + this.tableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel9.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel9.Size = new System.Drawing.Size(123, 401); + this.tableLayoutPanel9.TabIndex = 2; + // + // groupBox15 + // + this.groupBox15.Controls.Add(this.hWindow_Final7); + this.groupBox15.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox15.ForeColor = System.Drawing.Color.White; + this.groupBox15.Location = new System.Drawing.Point(3, 203); + this.groupBox15.Name = "groupBox15"; + this.groupBox15.Size = new System.Drawing.Size(117, 195); + this.groupBox15.TabIndex = 0; + this.groupBox15.TabStop = false; + this.groupBox15.Text = "Nozzle6"; + // + // hWindow_Final7 + // + this.hWindow_Final7.BackColor = System.Drawing.Color.Transparent; + this.hWindow_Final7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.hWindow_Final7.Dock = System.Windows.Forms.DockStyle.Fill; + this.hWindow_Final7.DrawModel = false; + this.hWindow_Final7.ForeColor = System.Drawing.Color.White; + this.hWindow_Final7.Image = null; + this.hWindow_Final7.Location = new System.Drawing.Point(3, 17); + this.hWindow_Final7.Name = "hWindow_Final7"; + this.hWindow_Final7.Size = new System.Drawing.Size(111, 175); + this.hWindow_Final7.TabIndex = 12; + // + // groupBox11 + // + this.groupBox11.Controls.Add(this.hWindow_Final3); + this.groupBox11.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox11.ForeColor = System.Drawing.Color.White; + this.groupBox11.Location = new System.Drawing.Point(3, 3); + this.groupBox11.Name = "groupBox11"; + this.groupBox11.Size = new System.Drawing.Size(117, 194); + this.groupBox11.TabIndex = 0; + this.groupBox11.TabStop = false; + this.groupBox11.Text = "Nozzle2"; + // + // hWindow_Final3 + // + this.hWindow_Final3.BackColor = System.Drawing.Color.Transparent; + this.hWindow_Final3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.hWindow_Final3.Dock = System.Windows.Forms.DockStyle.Fill; + this.hWindow_Final3.DrawModel = false; + this.hWindow_Final3.ForeColor = System.Drawing.Color.White; + this.hWindow_Final3.Image = null; + this.hWindow_Final3.Location = new System.Drawing.Point(3, 17); + this.hWindow_Final3.Name = "hWindow_Final3"; + this.hWindow_Final3.Size = new System.Drawing.Size(111, 174); + this.hWindow_Final3.TabIndex = 12; + // + // tableLayoutPanel10 + // + this.tableLayoutPanel10.ColumnCount = 1; + this.tableLayoutPanel10.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel10.Controls.Add(this.groupBox16, 0, 1); + this.tableLayoutPanel10.Controls.Add(this.groupBox12, 0, 0); + this.tableLayoutPanel10.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel10.Location = new System.Drawing.Point(519, 3); + this.tableLayoutPanel10.Name = "tableLayoutPanel10"; + this.tableLayoutPanel10.RowCount = 2; + this.tableLayoutPanel10.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel10.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel10.Size = new System.Drawing.Size(123, 401); + this.tableLayoutPanel10.TabIndex = 2; + // + // groupBox16 + // + this.groupBox16.Controls.Add(this.hWindow_Final8); + this.groupBox16.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox16.ForeColor = System.Drawing.Color.White; + this.groupBox16.Location = new System.Drawing.Point(3, 203); + this.groupBox16.Name = "groupBox16"; + this.groupBox16.Size = new System.Drawing.Size(117, 195); + this.groupBox16.TabIndex = 0; + this.groupBox16.TabStop = false; + this.groupBox16.Text = "Nozzle7"; + // + // hWindow_Final8 + // + this.hWindow_Final8.BackColor = System.Drawing.Color.Transparent; + this.hWindow_Final8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.hWindow_Final8.Dock = System.Windows.Forms.DockStyle.Fill; + this.hWindow_Final8.DrawModel = false; + this.hWindow_Final8.ForeColor = System.Drawing.Color.White; + this.hWindow_Final8.Image = null; + this.hWindow_Final8.Location = new System.Drawing.Point(3, 17); + this.hWindow_Final8.Name = "hWindow_Final8"; + this.hWindow_Final8.Size = new System.Drawing.Size(111, 175); + this.hWindow_Final8.TabIndex = 12; + // + // groupBox12 + // + this.groupBox12.Controls.Add(this.hWindow_Final4); + this.groupBox12.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox12.ForeColor = System.Drawing.Color.White; + this.groupBox12.Location = new System.Drawing.Point(3, 3); + this.groupBox12.Name = "groupBox12"; + this.groupBox12.Size = new System.Drawing.Size(117, 194); + this.groupBox12.TabIndex = 0; + this.groupBox12.TabStop = false; + this.groupBox12.Text = "Nozzle3"; + // + // hWindow_Final4 + // + this.hWindow_Final4.BackColor = System.Drawing.Color.Transparent; + this.hWindow_Final4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.hWindow_Final4.Dock = System.Windows.Forms.DockStyle.Fill; + this.hWindow_Final4.DrawModel = false; + this.hWindow_Final4.ForeColor = System.Drawing.Color.White; + this.hWindow_Final4.Image = null; + this.hWindow_Final4.Location = new System.Drawing.Point(3, 17); + this.hWindow_Final4.Name = "hWindow_Final4"; + this.hWindow_Final4.Size = new System.Drawing.Size(111, 174); + this.hWindow_Final4.TabIndex = 12; + // + // tableLayoutPanel11 + // + this.tableLayoutPanel11.ColumnCount = 1; + this.tableLayoutPanel11.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel11.Controls.Add(this.groupBox17, 0, 1); + this.tableLayoutPanel11.Controls.Add(this.groupBox13, 0, 0); + this.tableLayoutPanel11.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel11.Location = new System.Drawing.Point(648, 3); + this.tableLayoutPanel11.Name = "tableLayoutPanel11"; + this.tableLayoutPanel11.RowCount = 2; + this.tableLayoutPanel11.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel11.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.tableLayoutPanel11.Size = new System.Drawing.Size(126, 401); + this.tableLayoutPanel11.TabIndex = 2; + // + // groupBox17 + // + this.groupBox17.Controls.Add(this.hWindow_Final9); + this.groupBox17.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox17.ForeColor = System.Drawing.Color.White; + this.groupBox17.Location = new System.Drawing.Point(3, 203); + this.groupBox17.Name = "groupBox17"; + this.groupBox17.Size = new System.Drawing.Size(120, 195); + this.groupBox17.TabIndex = 0; + this.groupBox17.TabStop = false; + this.groupBox17.Text = "Nozzle8"; + // + // hWindow_Final9 + // + this.hWindow_Final9.BackColor = System.Drawing.Color.Transparent; + this.hWindow_Final9.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.hWindow_Final9.Dock = System.Windows.Forms.DockStyle.Fill; + this.hWindow_Final9.DrawModel = false; + this.hWindow_Final9.ForeColor = System.Drawing.Color.White; + this.hWindow_Final9.Image = null; + this.hWindow_Final9.Location = new System.Drawing.Point(3, 17); + this.hWindow_Final9.Name = "hWindow_Final9"; + this.hWindow_Final9.Size = new System.Drawing.Size(114, 175); + this.hWindow_Final9.TabIndex = 12; + // + // groupBox13 + // + this.groupBox13.Controls.Add(this.hWindow_Final5); + this.groupBox13.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox13.ForeColor = System.Drawing.Color.White; + this.groupBox13.Location = new System.Drawing.Point(3, 3); + this.groupBox13.Name = "groupBox13"; + this.groupBox13.Size = new System.Drawing.Size(120, 194); + this.groupBox13.TabIndex = 0; + this.groupBox13.TabStop = false; + this.groupBox13.Text = "Nozzle4"; + // + // hWindow_Final5 + // + this.hWindow_Final5.BackColor = System.Drawing.Color.Transparent; + this.hWindow_Final5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.hWindow_Final5.Dock = System.Windows.Forms.DockStyle.Fill; + this.hWindow_Final5.DrawModel = false; + this.hWindow_Final5.ForeColor = System.Drawing.Color.White; + this.hWindow_Final5.Image = null; + this.hWindow_Final5.Location = new System.Drawing.Point(3, 17); + this.hWindow_Final5.Name = "hWindow_Final5"; + this.hWindow_Final5.Size = new System.Drawing.Size(114, 174); + this.hWindow_Final5.TabIndex = 12; // // tabPage2 // @@ -701,25 +1044,6 @@ this.tableLayoutPanel4.Size = new System.Drawing.Size(777, 814); this.tableLayoutPanel4.TabIndex = 0; // - // tableLayoutPanel6 - // - this.tableLayoutPanel6.ColumnCount = 4; - this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.tableLayoutPanel6.Controls.Add(this.groupBox8, 3, 0); - this.tableLayoutPanel6.Controls.Add(this.groupBox7, 2, 0); - this.tableLayoutPanel6.Controls.Add(this.groupBox6, 1, 0); - this.tableLayoutPanel6.Controls.Add(this.groupBox5, 0, 0); - this.tableLayoutPanel6.Dock = System.Windows.Forms.DockStyle.Fill; - this.tableLayoutPanel6.Location = new System.Drawing.Point(3, 410); - this.tableLayoutPanel6.Name = "tableLayoutPanel6"; - this.tableLayoutPanel6.RowCount = 1; - this.tableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.tableLayoutPanel6.Size = new System.Drawing.Size(771, 401); - this.tableLayoutPanel6.TabIndex = 1; - // // tableLayoutPanel5 // this.tableLayoutPanel5.ColumnCount = 4; @@ -739,55 +1063,30 @@ this.tableLayoutPanel5.Size = new System.Drawing.Size(771, 401); this.tableLayoutPanel5.TabIndex = 2; // - // groupBox1 - // - this.groupBox1.Controls.Add(this.hwin_vac1); - this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill; - this.groupBox1.ForeColor = System.Drawing.Color.White; - this.groupBox1.Location = new System.Drawing.Point(3, 3); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(186, 395); - this.groupBox1.TabIndex = 11; - this.groupBox1.TabStop = false; - this.groupBox1.Text = "groupBox1"; - // - // hwin_vac1 - // - this.hwin_vac1.BackColor = System.Drawing.Color.Transparent; - this.hwin_vac1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.hwin_vac1.Dock = System.Windows.Forms.DockStyle.Fill; - this.hwin_vac1.DrawModel = false; - this.hwin_vac1.ForeColor = System.Drawing.Color.White; - this.hwin_vac1.Image = null; - this.hwin_vac1.Location = new System.Drawing.Point(3, 17); - this.hwin_vac1.Name = "hwin_vac1"; - this.hwin_vac1.Size = new System.Drawing.Size(180, 375); - this.hwin_vac1.TabIndex = 11; - // - // groupBox2 + // groupBox4 // - this.groupBox2.Controls.Add(this.hwin_vac2); - this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill; - this.groupBox2.ForeColor = System.Drawing.Color.White; - this.groupBox2.Location = new System.Drawing.Point(195, 3); - this.groupBox2.Name = "groupBox2"; - this.groupBox2.Size = new System.Drawing.Size(186, 395); - this.groupBox2.TabIndex = 12; - this.groupBox2.TabStop = false; - this.groupBox2.Text = "groupBox2"; + this.groupBox4.Controls.Add(this.hwin_vac4); + this.groupBox4.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox4.ForeColor = System.Drawing.Color.White; + this.groupBox4.Location = new System.Drawing.Point(579, 3); + this.groupBox4.Name = "groupBox4"; + this.groupBox4.Size = new System.Drawing.Size(189, 395); + this.groupBox4.TabIndex = 14; + this.groupBox4.TabStop = false; + this.groupBox4.Text = "groupBox4"; // - // hwin_vac2 + // hwin_vac4 // - this.hwin_vac2.BackColor = System.Drawing.Color.Transparent; - this.hwin_vac2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.hwin_vac2.Dock = System.Windows.Forms.DockStyle.Fill; - this.hwin_vac2.DrawModel = false; - this.hwin_vac2.ForeColor = System.Drawing.Color.White; - this.hwin_vac2.Image = null; - this.hwin_vac2.Location = new System.Drawing.Point(3, 17); - this.hwin_vac2.Name = "hwin_vac2"; - this.hwin_vac2.Size = new System.Drawing.Size(180, 375); - this.hwin_vac2.TabIndex = 11; + this.hwin_vac4.BackColor = System.Drawing.Color.Transparent; + this.hwin_vac4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.hwin_vac4.Dock = System.Windows.Forms.DockStyle.Fill; + this.hwin_vac4.DrawModel = false; + this.hwin_vac4.ForeColor = System.Drawing.Color.White; + this.hwin_vac4.Image = null; + this.hwin_vac4.Location = new System.Drawing.Point(3, 17); + this.hwin_vac4.Name = "hwin_vac4"; + this.hwin_vac4.Size = new System.Drawing.Size(183, 375); + this.hwin_vac4.TabIndex = 11; // // groupBox3 // @@ -814,80 +1113,98 @@ this.hwin_vac3.Size = new System.Drawing.Size(180, 375); this.hwin_vac3.TabIndex = 11; // - // groupBox4 + // groupBox2 // - this.groupBox4.Controls.Add(this.hwin_vac4); - this.groupBox4.Dock = System.Windows.Forms.DockStyle.Fill; - this.groupBox4.ForeColor = System.Drawing.Color.White; - this.groupBox4.Location = new System.Drawing.Point(579, 3); - this.groupBox4.Name = "groupBox4"; - this.groupBox4.Size = new System.Drawing.Size(189, 395); - this.groupBox4.TabIndex = 14; - this.groupBox4.TabStop = false; - this.groupBox4.Text = "groupBox4"; + this.groupBox2.Controls.Add(this.hwin_vac2); + this.groupBox2.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox2.ForeColor = System.Drawing.Color.White; + this.groupBox2.Location = new System.Drawing.Point(195, 3); + this.groupBox2.Name = "groupBox2"; + this.groupBox2.Size = new System.Drawing.Size(186, 395); + this.groupBox2.TabIndex = 12; + this.groupBox2.TabStop = false; + this.groupBox2.Text = "groupBox2"; // - // hwin_vac4 + // hwin_vac2 // - this.hwin_vac4.BackColor = System.Drawing.Color.Transparent; - this.hwin_vac4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.hwin_vac4.Dock = System.Windows.Forms.DockStyle.Fill; - this.hwin_vac4.DrawModel = false; - this.hwin_vac4.ForeColor = System.Drawing.Color.White; - this.hwin_vac4.Image = null; - this.hwin_vac4.Location = new System.Drawing.Point(3, 17); - this.hwin_vac4.Name = "hwin_vac4"; - this.hwin_vac4.Size = new System.Drawing.Size(183, 375); - this.hwin_vac4.TabIndex = 11; + this.hwin_vac2.BackColor = System.Drawing.Color.Transparent; + this.hwin_vac2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.hwin_vac2.Dock = System.Windows.Forms.DockStyle.Fill; + this.hwin_vac2.DrawModel = false; + this.hwin_vac2.ForeColor = System.Drawing.Color.White; + this.hwin_vac2.Image = null; + this.hwin_vac2.Location = new System.Drawing.Point(3, 17); + this.hwin_vac2.Name = "hwin_vac2"; + this.hwin_vac2.Size = new System.Drawing.Size(180, 375); + this.hwin_vac2.TabIndex = 11; // - // groupBox5 + // groupBox1 // - this.groupBox5.Controls.Add(this.hwin_vac5); - this.groupBox5.Dock = System.Windows.Forms.DockStyle.Fill; - this.groupBox5.ForeColor = System.Drawing.Color.White; - this.groupBox5.Location = new System.Drawing.Point(3, 3); - this.groupBox5.Name = "groupBox5"; - this.groupBox5.Size = new System.Drawing.Size(186, 395); - this.groupBox5.TabIndex = 12; - this.groupBox5.TabStop = false; - this.groupBox5.Text = "Vac5"; + this.groupBox1.Controls.Add(this.hwin_vac1); + this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox1.ForeColor = System.Drawing.Color.White; + this.groupBox1.Location = new System.Drawing.Point(3, 3); + this.groupBox1.Name = "groupBox1"; + this.groupBox1.Size = new System.Drawing.Size(186, 395); + this.groupBox1.TabIndex = 11; + this.groupBox1.TabStop = false; + this.groupBox1.Text = "groupBox1"; // - // hwin_vac5 + // hwin_vac1 // - this.hwin_vac5.BackColor = System.Drawing.Color.Transparent; - this.hwin_vac5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.hwin_vac5.Dock = System.Windows.Forms.DockStyle.Fill; - this.hwin_vac5.DrawModel = false; - this.hwin_vac5.ForeColor = System.Drawing.Color.White; - this.hwin_vac5.Image = null; - this.hwin_vac5.Location = new System.Drawing.Point(3, 17); - this.hwin_vac5.Name = "hwin_vac5"; - this.hwin_vac5.Size = new System.Drawing.Size(180, 375); - this.hwin_vac5.TabIndex = 11; + this.hwin_vac1.BackColor = System.Drawing.Color.Transparent; + this.hwin_vac1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.hwin_vac1.DrawModel = false; + this.hwin_vac1.ForeColor = System.Drawing.Color.White; + this.hwin_vac1.Image = null; + this.hwin_vac1.Location = new System.Drawing.Point(3, 17); + this.hwin_vac1.Name = "hwin_vac1"; + this.hwin_vac1.Size = new System.Drawing.Size(180, 375); + this.hwin_vac1.TabIndex = 11; // - // groupBox6 + // tableLayoutPanel6 // - this.groupBox6.Controls.Add(this.hwin_vac6); - this.groupBox6.Dock = System.Windows.Forms.DockStyle.Fill; - this.groupBox6.ForeColor = System.Drawing.Color.White; - this.groupBox6.Location = new System.Drawing.Point(195, 3); - this.groupBox6.Name = "groupBox6"; - this.groupBox6.Size = new System.Drawing.Size(186, 395); - this.groupBox6.TabIndex = 13; - this.groupBox6.TabStop = false; - this.groupBox6.Text = "groupBox6"; + this.tableLayoutPanel6.ColumnCount = 4; + this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel6.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.tableLayoutPanel6.Controls.Add(this.groupBox8, 3, 0); + this.tableLayoutPanel6.Controls.Add(this.groupBox7, 2, 0); + this.tableLayoutPanel6.Controls.Add(this.groupBox6, 1, 0); + this.tableLayoutPanel6.Controls.Add(this.groupBox5, 0, 0); + this.tableLayoutPanel6.Dock = System.Windows.Forms.DockStyle.Fill; + this.tableLayoutPanel6.Location = new System.Drawing.Point(3, 410); + this.tableLayoutPanel6.Name = "tableLayoutPanel6"; + this.tableLayoutPanel6.RowCount = 1; + this.tableLayoutPanel6.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel6.Size = new System.Drawing.Size(771, 401); + this.tableLayoutPanel6.TabIndex = 1; // - // hwin_vac6 + // groupBox8 // - this.hwin_vac6.BackColor = System.Drawing.Color.Transparent; - this.hwin_vac6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.hwin_vac6.Dock = System.Windows.Forms.DockStyle.Fill; - this.hwin_vac6.DrawModel = false; - this.hwin_vac6.ForeColor = System.Drawing.Color.White; - this.hwin_vac6.Image = null; - this.hwin_vac6.Location = new System.Drawing.Point(3, 17); - this.hwin_vac6.Name = "hwin_vac6"; - this.hwin_vac6.Size = new System.Drawing.Size(180, 375); - this.hwin_vac6.TabIndex = 11; + this.groupBox8.Controls.Add(this.hwin_vac8); + this.groupBox8.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox8.ForeColor = System.Drawing.Color.White; + this.groupBox8.Location = new System.Drawing.Point(579, 3); + this.groupBox8.Name = "groupBox8"; + this.groupBox8.Size = new System.Drawing.Size(189, 395); + this.groupBox8.TabIndex = 15; + this.groupBox8.TabStop = false; + this.groupBox8.Text = "groupBox8"; + // + // hwin_vac8 + // + this.hwin_vac8.BackColor = System.Drawing.Color.Transparent; + this.hwin_vac8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.hwin_vac8.Dock = System.Windows.Forms.DockStyle.Fill; + this.hwin_vac8.DrawModel = false; + this.hwin_vac8.ForeColor = System.Drawing.Color.White; + this.hwin_vac8.Image = null; + this.hwin_vac8.Location = new System.Drawing.Point(3, 17); + this.hwin_vac8.Name = "hwin_vac8"; + this.hwin_vac8.Size = new System.Drawing.Size(183, 375); + this.hwin_vac8.TabIndex = 11; // // groupBox7 // @@ -914,30 +1231,55 @@ this.hwin_vac7.Size = new System.Drawing.Size(180, 375); this.hwin_vac7.TabIndex = 11; // - // groupBox8 + // groupBox6 // - this.groupBox8.Controls.Add(this.hwin_vac8); - this.groupBox8.Dock = System.Windows.Forms.DockStyle.Fill; - this.groupBox8.ForeColor = System.Drawing.Color.White; - this.groupBox8.Location = new System.Drawing.Point(579, 3); - this.groupBox8.Name = "groupBox8"; - this.groupBox8.Size = new System.Drawing.Size(189, 395); - this.groupBox8.TabIndex = 15; - this.groupBox8.TabStop = false; - this.groupBox8.Text = "groupBox8"; + this.groupBox6.Controls.Add(this.hwin_vac6); + this.groupBox6.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox6.ForeColor = System.Drawing.Color.White; + this.groupBox6.Location = new System.Drawing.Point(195, 3); + this.groupBox6.Name = "groupBox6"; + this.groupBox6.Size = new System.Drawing.Size(186, 395); + this.groupBox6.TabIndex = 13; + this.groupBox6.TabStop = false; + this.groupBox6.Text = "groupBox6"; // - // hwin_vac8 + // hwin_vac6 // - this.hwin_vac8.BackColor = System.Drawing.Color.Transparent; - this.hwin_vac8.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.hwin_vac8.Dock = System.Windows.Forms.DockStyle.Fill; - this.hwin_vac8.DrawModel = false; - this.hwin_vac8.ForeColor = System.Drawing.Color.White; - this.hwin_vac8.Image = null; - this.hwin_vac8.Location = new System.Drawing.Point(3, 17); - this.hwin_vac8.Name = "hwin_vac8"; - this.hwin_vac8.Size = new System.Drawing.Size(183, 375); - this.hwin_vac8.TabIndex = 11; + this.hwin_vac6.BackColor = System.Drawing.Color.Transparent; + this.hwin_vac6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.hwin_vac6.Dock = System.Windows.Forms.DockStyle.Fill; + this.hwin_vac6.DrawModel = false; + this.hwin_vac6.ForeColor = System.Drawing.Color.White; + this.hwin_vac6.Image = null; + this.hwin_vac6.Location = new System.Drawing.Point(3, 17); + this.hwin_vac6.Name = "hwin_vac6"; + this.hwin_vac6.Size = new System.Drawing.Size(180, 375); + this.hwin_vac6.TabIndex = 11; + // + // groupBox5 + // + this.groupBox5.Controls.Add(this.hwin_vac5); + this.groupBox5.Dock = System.Windows.Forms.DockStyle.Fill; + this.groupBox5.ForeColor = System.Drawing.Color.White; + this.groupBox5.Location = new System.Drawing.Point(3, 3); + this.groupBox5.Name = "groupBox5"; + this.groupBox5.Size = new System.Drawing.Size(186, 395); + this.groupBox5.TabIndex = 12; + this.groupBox5.TabStop = false; + this.groupBox5.Text = "Vac5"; + // + // hwin_vac5 + // + this.hwin_vac5.BackColor = System.Drawing.Color.Transparent; + this.hwin_vac5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.hwin_vac5.Dock = System.Windows.Forms.DockStyle.Fill; + this.hwin_vac5.DrawModel = false; + this.hwin_vac5.ForeColor = System.Drawing.Color.White; + this.hwin_vac5.Image = null; + this.hwin_vac5.Location = new System.Drawing.Point(3, 17); + this.hwin_vac5.Name = "hwin_vac5"; + this.hwin_vac5.Size = new System.Drawing.Size(180, 375); + this.hwin_vac5.TabIndex = 11; // // FormMain // @@ -965,18 +1307,32 @@ this.tabControlEx1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false); + this.panelEx5.ResumeLayout(false); + this.tableLayoutPanel7.ResumeLayout(false); + this.tableLayoutPanel8.ResumeLayout(false); + this.groupBox14.ResumeLayout(false); + this.groupBox10.ResumeLayout(false); + this.tableLayoutPanel9.ResumeLayout(false); + this.groupBox15.ResumeLayout(false); + this.groupBox11.ResumeLayout(false); + this.tableLayoutPanel10.ResumeLayout(false); + this.groupBox16.ResumeLayout(false); + this.groupBox12.ResumeLayout(false); + this.tableLayoutPanel11.ResumeLayout(false); + this.groupBox17.ResumeLayout(false); + this.groupBox13.ResumeLayout(false); this.tabPage2.ResumeLayout(false); this.tableLayoutPanel4.ResumeLayout(false); - this.tableLayoutPanel6.ResumeLayout(false); this.tableLayoutPanel5.ResumeLayout(false); - this.groupBox1.ResumeLayout(false); - this.groupBox2.ResumeLayout(false); - this.groupBox3.ResumeLayout(false); this.groupBox4.ResumeLayout(false); - this.groupBox5.ResumeLayout(false); - this.groupBox6.ResumeLayout(false); - this.groupBox7.ResumeLayout(false); + this.groupBox3.ResumeLayout(false); + this.groupBox2.ResumeLayout(false); + this.groupBox1.ResumeLayout(false); + this.tableLayoutPanel6.ResumeLayout(false); this.groupBox8.ResumeLayout(false); + this.groupBox7.ResumeLayout(false); + this.groupBox6.ResumeLayout(false); + this.groupBox5.ResumeLayout(false); this.ResumeLayout(false); } @@ -1002,10 +1358,6 @@ private Controls.RsTray multiTray; private Controls.RsTray inputTray2; private Controls.RsTray inputTray3; - private Controls.RsTray okTray1; - private Controls.RsTray okTray2; - private Controls.RsTray okTray3; - private Controls.RsTray ngTray; private System.Windows.Forms.TabPage tabPage2; private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2; private Controls.PanelEx panelEx1; @@ -1036,5 +1388,32 @@ private ChoiceTech.Halcon.Control.HWindow_Final hwin_vac6; private System.Windows.Forms.GroupBox groupBox5; private ChoiceTech.Halcon.Control.HWindow_Final hwin_vac5; + private Controls.RsTray rsTray1; + private Controls.RsTray rsTray2; + private Controls.PanelEx panelEx5; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel7; + private System.Windows.Forms.GroupBox groupBox9; + private Controls.RsTray rsTray3; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel8; + private System.Windows.Forms.GroupBox groupBox14; + private ChoiceTech.Halcon.Control.HWindow_Final hWindow_Final6; + private ChoiceTech.Halcon.Control.HWindow_Final hWindow_Final1; + private System.Windows.Forms.GroupBox groupBox10; + private ChoiceTech.Halcon.Control.HWindow_Final hWindow_Final2; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel9; + private System.Windows.Forms.GroupBox groupBox15; + private ChoiceTech.Halcon.Control.HWindow_Final hWindow_Final7; + private System.Windows.Forms.GroupBox groupBox11; + private ChoiceTech.Halcon.Control.HWindow_Final hWindow_Final3; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel10; + private System.Windows.Forms.GroupBox groupBox16; + private ChoiceTech.Halcon.Control.HWindow_Final hWindow_Final8; + private System.Windows.Forms.GroupBox groupBox12; + private ChoiceTech.Halcon.Control.HWindow_Final hWindow_Final4; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel11; + private System.Windows.Forms.GroupBox groupBox17; + private ChoiceTech.Halcon.Control.HWindow_Final hWindow_Final9; + private System.Windows.Forms.GroupBox groupBox13; + private ChoiceTech.Halcon.Control.HWindow_Final hWindow_Final5; } } \ No newline at end of file diff --git a/Rs.MotionPlat/FormMain.cs b/Rs.MotionPlat/FormMain.cs index 46aae37..6b2b768 100644 --- a/Rs.MotionPlat/FormMain.cs +++ b/Rs.MotionPlat/FormMain.cs @@ -42,7 +42,6 @@ namespace Rs.MotionPlat HOperatorSet.GenEmptyObj(out hmodelImage); modelID = new HTuple(); HOperatorSet.ReadShapeModel("Model/model.shm", out modelID); - inputTray1.Fill(); LoadModel(); WorkFlow.Instance.CameraOkEvent += Instance_CameraOkEvent1; SpaceFlow.Instance.CameraOkEvent += Instance_CameraOkEvent1; @@ -286,103 +285,26 @@ namespace Rs.MotionPlat inputTray2.Init(); inputTray3.ItemName = "料盘4"; inputTray3.Init(); - okTray1.ItemName = "料盘5"; - okTray1.Init(); - okTray2.ItemName = "料盘6"; - okTray2.Init(); - okTray3.ItemName = "料盘7"; - okTray3.Init(); - ngTray.ItemName = "料盘8"; - ngTray.Init(); + //okTray1.ItemName = "料盘5"; + //okTray1.Init(); + //okTray2.ItemName = "料盘6"; + //okTray2.Init(); + //okTray3.ItemName = "料盘7"; + //okTray3.Init(); + //ngTray.ItemName = "料盘8"; + //ngTray.Init(); GlobalTray.InputTray1 = inputTray1; GlobalTray.InputTray2 = inputTray2; GlobalTray.InputTray3 = inputTray3; GlobalTray.MultiTray = multiTray; - GlobalTray.OkTray1 = okTray1; - GlobalTray.OkTray2 = okTray2; - GlobalTray.OkTray3 = okTray3; - GlobalTray.NgTray = ngTray; + //GlobalTray.OkTray1 = okTray1; + //GlobalTray.OkTray2 = okTray2; + //GlobalTray.OkTray3 = okTray3; + //GlobalTray.NgTray = ngTray; + tabControlEx1.TabPages.RemoveAt(1); } - - private void btnStart_Click(object sender, EventArgs e) - { - //axis = AxisControl.VacZ7; - //axis.Enable(); - //AxisControl.VacR7.Enable(); - //int workStep = 0; - //Task.Run(() => { - - // while (true) - // { - // switch (workStep) - // { - // case 0://到起点 - // if(testNum>100) - // { - // testNum = 0; - // speed += 1; - // } - // else - // { - // testNum++; - // } - // axis.MovePos(2, speed); - // workStep++; - // break; - // case 1: - // axis.IsStop(out bool bStop); - // if (bStop) - // { - // workStep++; - // Thread.Sleep(100); - // //设置 - // //double targetPos = -105; - // //targetPos- - // //axis.SetPosCompare(1, new double[] { -20, -80 }); - // } - // break; - // case 2: - // axis.MovePos(15, speed); - // workStep++; - // break; - // case 3: - // axis.IsStop(out bStop); - // if (bStop) - // { - // workStep++; - // Thread.Sleep(100); - // HikCamera.Instance.Grab("MV-CA050-10GM (00C32922251)"); - // } - // break; - // case 4: - // if (cameraFinished) - // { - // cameraFinished = false; - // workStep = 0; - // } - // break; - // default: - // break; - // } - // } - //}); - - } - - - private void button3_Click(object sender, EventArgs e) - { - - } - private void button1_Click(object sender, EventArgs e) - { - - } - - - private void btnWholeHome_Load(object sender, EventArgs e) { HomeFlow.Instance.StartGoHome(); diff --git a/Rs.MotionPlat/Home2.Designer.cs b/Rs.MotionPlat/Home.Designer.cs similarity index 85% rename from Rs.MotionPlat/Home2.Designer.cs rename to Rs.MotionPlat/Home.Designer.cs index b399508..c8edc19 100644 --- a/Rs.MotionPlat/Home2.Designer.cs +++ b/Rs.MotionPlat/Home.Designer.cs @@ -1,6 +1,6 @@ namespace Rs.MotionPlat { - partial class Home2 + partial class Home { /// /// Required designer variable. @@ -28,6 +28,7 @@ /// private void InitializeComponent() { + this.components = new System.ComponentModel.Container(); this.panel_main = new System.Windows.Forms.Panel(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.btnPermission = new Rs.Controls.ButtonEx(); @@ -40,8 +41,13 @@ this.btnRecipe = new Rs.Controls.ButtonEx(); this.panel1 = new System.Windows.Forms.Panel(); this.panelEx1 = new Rs.Controls.PanelEx(); + this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); + this.label1 = new System.Windows.Forms.Label(); + this.lblMachineState = new System.Windows.Forms.Label(); + this.timer1 = new System.Windows.Forms.Timer(this.components); this.tableLayoutPanel2.SuspendLayout(); this.panel1.SuspendLayout(); + this.tableLayoutPanel3.SuspendLayout(); this.SuspendLayout(); // // panel_main @@ -268,6 +274,7 @@ // panel1 // this.panel1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(46)))), ((int)(((byte)(46)))), ((int)(((byte)(46))))); + this.panel1.Controls.Add(this.tableLayoutPanel3); this.panel1.Controls.Add(this.panelEx1); this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom; this.panel1.Location = new System.Drawing.Point(0, 907); @@ -283,7 +290,49 @@ this.panelEx1.Size = new System.Drawing.Size(997, 33); this.panelEx1.TabIndex = 0; // - // Home2 + // tableLayoutPanel3 + // + this.tableLayoutPanel3.ColumnCount = 2; + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 30F)); + this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 70F)); + this.tableLayoutPanel3.Controls.Add(this.label1, 0, 0); + this.tableLayoutPanel3.Controls.Add(this.lblMachineState, 1, 0); + this.tableLayoutPanel3.Dock = System.Windows.Forms.DockStyle.Left; + this.tableLayoutPanel3.Location = new System.Drawing.Point(0, 0); + this.tableLayoutPanel3.Name = "tableLayoutPanel3"; + this.tableLayoutPanel3.RowCount = 1; + this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.tableLayoutPanel3.Size = new System.Drawing.Size(158, 33); + this.tableLayoutPanel3.TabIndex = 1; + // + // label1 + // + this.label1.Dock = System.Windows.Forms.DockStyle.Fill; + this.label1.ForeColor = System.Drawing.Color.White; + this.label1.Location = new System.Drawing.Point(3, 0); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(41, 33); + this.label1.TabIndex = 0; + this.label1.Text = "State:"; + this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // lblMachineState + // + this.lblMachineState.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblMachineState.ForeColor = System.Drawing.Color.White; + this.lblMachineState.Location = new System.Drawing.Point(50, 0); + this.lblMachineState.Name = "lblMachineState"; + this.lblMachineState.Size = new System.Drawing.Size(105, 33); + this.lblMachineState.TabIndex = 1; + this.lblMachineState.Text = "Noinit"; + this.lblMachineState.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // timer1 + // + this.timer1.Interval = 300; + this.timer1.Tick += new System.EventHandler(this.timer1_Tick); + // + // Home // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; @@ -291,8 +340,8 @@ this.Controls.Add(this.panel_main); this.Controls.Add(this.tableLayoutPanel2); this.Controls.Add(this.panel1); - this.HeadText = "三温机"; - this.Name = "Home2"; + this.HeadText = "天线"; + this.Name = "Home"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Home2"; this.Load += new System.EventHandler(this.Home2_Load); @@ -301,6 +350,7 @@ this.Controls.SetChildIndex(this.panel_main, 0); this.tableLayoutPanel2.ResumeLayout(false); this.panel1.ResumeLayout(false); + this.tableLayoutPanel3.ResumeLayout(false); this.ResumeLayout(false); } @@ -319,5 +369,9 @@ private Controls.ButtonEx btnRecipe; private System.Windows.Forms.Panel panel1; private Controls.PanelEx panelEx1; + private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label lblMachineState; + private System.Windows.Forms.Timer timer1; } } \ No newline at end of file diff --git a/Rs.MotionPlat/Home2.cs b/Rs.MotionPlat/Home.cs similarity index 63% rename from Rs.MotionPlat/Home2.cs rename to Rs.MotionPlat/Home.cs index 05eacc9..69938ac 100644 --- a/Rs.MotionPlat/Home2.cs +++ b/Rs.MotionPlat/Home.cs @@ -16,12 +16,13 @@ using Rs.Camera; using System.Threading; using Rs.MotionPlat.Commom; using static System.Runtime.CompilerServices.RuntimeHelpers; +using Rs.Motion.GugaoPulse; namespace Rs.MotionPlat { - public partial class Home2 : BaseFormHeader + public partial class Home : BaseFormHeader { - public Home2() + public Home() { this.StartPosition = FormStartPosition.Manual; InitializeComponent(); @@ -137,8 +138,6 @@ namespace Rs.MotionPlat }); } - // 5 - // .6+7+10=17+5.6=22.6+0.5=23+10=33+1.3=34.3+5=39.3+3.5=42.8+2=44.8 } private void Home2_Load(object sender, EventArgs e) @@ -163,93 +162,10 @@ namespace Rs.MotionPlat panel_main.Controls.Add(form); form.Visible = true; ActiveForms.Add(form); + btnMain.Selected = true; } - #region 初始化固高卡 - ErrorCode errCode = GugaoCardManager.Instance.Init(); - if (errCode > ErrorCode.Ok) - { - MessageQueue.Instance.Warn("Gugao motion card load fail"); - } - else - { - AxisControl.LoadX.Enable(); - AxisControl.LoadY.Enable(); - AxisControl.PressZ.Enable(); - AxisControl.TestZ.Enable(); - AxisControl.TestY.Enable(); - MessageQueue.Instance.Insert("Gugao motion card load ok"); - } - #endregion - - #region 初始化ztm卡 - errCode = ZtmCardManager.Instance.Init(); - if (errCode > ErrorCode.Ok) - { - MessageQueue.Instance.Warn("ZTM motion card load fail"); - } - else - { - AxisControl.VacZ1.Enable(); - AxisControl.VacZ2.Enable(); - AxisControl.VacR1.Enable(); - AxisControl.VacR2.Enable(); - MessageQueue.Instance.Insert("ZTM motion card load ok"); - } - #endregion - #region 初始化IO - IoManager.Instance.Init(); - #endregion - #region 链接相机 - //链接相机 - ECameraErrorCode ceCode = HikCamera.Instance.Init(); - if (ceCode > ECameraErrorCode.Ok) - { - MessageQueue.Instance.Warn(ceCode.ToString()); - } - else - { - MessageQueue.Instance.Insert("Camera load ok!"); - - int ret = HikCamera.Instance.SetReverseX("upCamera", EDir.Y, true); - ret += HikCamera.Instance.SetReverseX("upCamera", EDir.X, true); - if (ret!=0) - { - MessageQueue.Instance.Warn("Camera init error"); - } - ret = 0; - ret = HikCamera.Instance.SetReverseX("downCamera", EDir.X, true); - ret += HikCamera.Instance.SetReverseX("downCamera", EDir.Y, false); - if (ret != 0) - { - MessageQueue.Instance.Warn("Camera init error"); - } - - ret = HikCamera.Instance.StartGrab("upCamera"); - if (ret != 0) - { - MessageQueue.Instance.Warn("Camera init error"); - } - ret = HikCamera.Instance.StartGrab("downCamera"); - if (ret != 0) - { - MessageQueue.Instance.Warn("Camera init error"); - } - } - #endregion - //AxisControl.FX.ClearCompare(1); - for (int i = 1; i <= 16; i++) - { - IoManager.Instance.WriteOut($"吸嘴真空{i}", 1); - } - IoManager.Instance.WriteOut($"吸嘴1真空吸", 0); - IoManager.Instance.WriteOut($"吸嘴2真空吸", 0); - IoManager.Instance.WriteOut($"吸嘴1真空破", 0); - IoManager.Instance.WriteOut($"吸嘴2真空破", 0); - - SafeControl.Instance.Init(); - NozzleManager.Init(); - TestCenter.Instance.Init(); - MachineManage.Instance.InitializeState = EInitializeState.Initialized; + Ops.Init(); + timer1.Enabled = true; } private void SetFormStyle() @@ -259,5 +175,11 @@ namespace Rs.MotionPlat this.WindowState = FormWindowState.Maximized;//设置窗体最大化显示 this.MaximizedBounds = Screen.PrimaryScreen.WorkingArea;//设置窗体在无边框和最大化时不遮挡任务栏 } + + private void timer1_Tick(object sender, EventArgs e) + { + if(MachineManage.Instance.MachineStatus.ToString()!=lblMachineState.Text) + lblMachineState.Text=MachineManage.Instance.MachineStatus.ToString(); + } } } diff --git a/Rs.MotionPlat/Home2.resx b/Rs.MotionPlat/Home.resx similarity index 96% rename from Rs.MotionPlat/Home2.resx rename to Rs.MotionPlat/Home.resx index 1af7de1..1f666f2 100644 --- a/Rs.MotionPlat/Home2.resx +++ b/Rs.MotionPlat/Home.resx @@ -117,4 +117,7 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 17, 17 + \ No newline at end of file diff --git a/Rs.MotionPlat/Program.cs b/Rs.MotionPlat/Program.cs index 6597da7..94a974f 100644 --- a/Rs.MotionPlat/Program.cs +++ b/Rs.MotionPlat/Program.cs @@ -18,7 +18,7 @@ namespace Rs.MotionPlat { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new Home2()); + Application.Run(new Home()); } } }