增加主界面快速定位,运动界面,增加单轴JOG

This commit is contained in:
zhengxuan.zhang
2024-03-13 10:47:20 +08:00
parent 92705068f7
commit a43ebd53fe
13 changed files with 1273 additions and 717 deletions
+100 -93
View File
@@ -184,7 +184,6 @@
this.label47 = new System.Windows.Forms.Label();
this.groupBox8 = new System.Windows.Forms.GroupBox();
this.btn_movepose = new System.Windows.Forms.Button();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.textBox_y = new System.Windows.Forms.TextBox();
this.textBox_z = new System.Windows.Forms.TextBox();
this.textBox_x = new System.Windows.Forms.TextBox();
@@ -192,22 +191,23 @@
this.label45 = new System.Windows.Forms.Label();
this.label44 = new System.Windows.Forms.Label();
this.groupBox7 = new System.Windows.Forms.GroupBox();
this.btn_Z_Down = new System.Windows.Forms.Button();
this.btn_Z_Up = new System.Windows.Forms.Button();
this.btn_Y_Back = new System.Windows.Forms.Button();
this.btn_X_right = new System.Windows.Forms.Button();
this.btn_X_left = new System.Windows.Forms.Button();
this.btn_Y_Forward = new System.Windows.Forms.Button();
this.groupBox6 = new System.Windows.Forms.GroupBox();
this.btn_home = new System.Windows.Forms.Button();
this.btn_stop = new System.Windows.Forms.Button();
this.btn_start = new System.Windows.Forms.Button();
this.groupBox10 = new System.Windows.Forms.GroupBox();
this.label48 = new System.Windows.Forms.Label();
this.textBox4 = new System.Windows.Forms.TextBox();
this.textBox_cycleTimes = new System.Windows.Forms.TextBox();
this.btn_halt = new System.Windows.Forms.Button();
this.btn_run = new System.Windows.Forms.Button();
this.checkBox4 = new System.Windows.Forms.CheckBox();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.checkBox_Z = new System.Windows.Forms.CheckBox();
this.checkBox_y = new System.Windows.Forms.CheckBox();
this.checkBox_X = new System.Windows.Forms.CheckBox();
this.button1 = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.grpMotionTest.SuspendLayout();
this.grpMst.SuspendLayout();
@@ -1791,7 +1791,6 @@
// groupBox8
//
this.groupBox8.Controls.Add(this.btn_movepose);
this.groupBox8.Controls.Add(this.checkBox1);
this.groupBox8.Controls.Add(this.textBox_y);
this.groupBox8.Controls.Add(this.textBox_z);
this.groupBox8.Controls.Add(this.textBox_x);
@@ -1807,7 +1806,7 @@
//
// btn_movepose
//
this.btn_movepose.Location = new System.Drawing.Point(129, 122);
this.btn_movepose.Location = new System.Drawing.Point(157, 120);
this.btn_movepose.Name = "btn_movepose";
this.btn_movepose.Size = new System.Drawing.Size(120, 37);
this.btn_movepose.TabIndex = 7;
@@ -1815,16 +1814,6 @@
this.btn_movepose.UseVisualStyleBackColor = true;
this.btn_movepose.Click += new System.EventHandler(this.btn_movepose_Click);
//
// checkBox1
//
this.checkBox1.AutoSize = true;
this.checkBox1.Location = new System.Drawing.Point(39, 133);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(48, 16);
this.checkBox1.TabIndex = 6;
this.checkBox1.Text = "等待";
this.checkBox1.UseVisualStyleBackColor = true;
//
// textBox_y
//
this.textBox_y.Location = new System.Drawing.Point(149, 54);
@@ -1875,6 +1864,8 @@
//
// groupBox7
//
this.groupBox7.Controls.Add(this.btn_Z_Down);
this.groupBox7.Controls.Add(this.btn_Z_Up);
this.groupBox7.Controls.Add(this.btn_Y_Back);
this.groupBox7.Controls.Add(this.btn_X_right);
this.groupBox7.Controls.Add(this.btn_X_left);
@@ -1886,6 +1877,28 @@
this.groupBox7.TabStop = false;
this.groupBox7.Text = "Jog";
//
// btn_Z_Down
//
this.btn_Z_Down.Location = new System.Drawing.Point(198, 107);
this.btn_Z_Down.Name = "btn_Z_Down";
this.btn_Z_Down.Size = new System.Drawing.Size(75, 35);
this.btn_Z_Down.TabIndex = 5;
this.btn_Z_Down.Text = "Z下移";
this.btn_Z_Down.UseVisualStyleBackColor = true;
this.btn_Z_Down.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btn_Z_Down_MouseDown);
this.btn_Z_Down.MouseUp += new System.Windows.Forms.MouseEventHandler(this.BtnJog_MouseUp);
//
// btn_Z_Up
//
this.btn_Z_Up.Location = new System.Drawing.Point(198, 13);
this.btn_Z_Up.Name = "btn_Z_Up";
this.btn_Z_Up.Size = new System.Drawing.Size(75, 35);
this.btn_Z_Up.TabIndex = 4;
this.btn_Z_Up.Text = "Z上移";
this.btn_Z_Up.UseVisualStyleBackColor = true;
this.btn_Z_Up.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btn_Z_Up_MouseDown);
this.btn_Z_Up.MouseUp += new System.Windows.Forms.MouseEventHandler(this.BtnJog_MouseUp);
//
// btn_Y_Back
//
this.btn_Y_Back.Location = new System.Drawing.Point(104, 107);
@@ -1894,7 +1907,8 @@
this.btn_Y_Back.TabIndex = 3;
this.btn_Y_Back.Text = "Y后退";
this.btn_Y_Back.UseVisualStyleBackColor = true;
this.btn_Y_Back.Click += new System.EventHandler(this.btn_Y_Back_Click);
this.btn_Y_Back.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btn_Y_Back_MouseDown);
this.btn_Y_Back.MouseUp += new System.Windows.Forms.MouseEventHandler(this.BtnJog_MouseUp);
//
// btn_X_right
//
@@ -1904,7 +1918,8 @@
this.btn_X_right.TabIndex = 2;
this.btn_X_right.Text = "X右移";
this.btn_X_right.UseVisualStyleBackColor = true;
this.btn_X_right.Click += new System.EventHandler(this.btn_X_right_Click);
this.btn_X_right.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btn_X_right_MouseDown);
this.btn_X_right.MouseUp += new System.Windows.Forms.MouseEventHandler(this.BtnJog_MouseUp);
//
// btn_X_left
//
@@ -1914,7 +1929,8 @@
this.btn_X_left.TabIndex = 1;
this.btn_X_left.Text = "X左移";
this.btn_X_left.UseVisualStyleBackColor = true;
this.btn_X_left.Click += new System.EventHandler(this.btn_X_left_Click);
this.btn_X_left.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btn_X_left_MouseDown);
this.btn_X_left.MouseUp += new System.Windows.Forms.MouseEventHandler(this.BtnJog_MouseUp);
//
// btn_Y_Forward
//
@@ -1924,13 +1940,13 @@
this.btn_Y_Forward.TabIndex = 0;
this.btn_Y_Forward.Text = "Y前进";
this.btn_Y_Forward.UseVisualStyleBackColor = true;
this.btn_Y_Forward.Click += new System.EventHandler(this.btn_Y_Forward_Click);
this.btn_Y_Forward.MouseDown += new System.Windows.Forms.MouseEventHandler(this.btn_Y_Forward_MouseDown);
this.btn_Y_Forward.MouseUp += new System.Windows.Forms.MouseEventHandler(this.BtnJog_MouseUp);
//
// groupBox6
//
this.groupBox6.Controls.Add(this.button1);
this.groupBox6.Controls.Add(this.btn_home);
this.groupBox6.Controls.Add(this.btn_stop);
this.groupBox6.Controls.Add(this.btn_start);
this.groupBox6.Location = new System.Drawing.Point(6, 24);
this.groupBox6.Name = "groupBox6";
this.groupBox6.Size = new System.Drawing.Size(283, 70);
@@ -1940,7 +1956,7 @@
//
// btn_home
//
this.btn_home.Location = new System.Drawing.Point(198, 24);
this.btn_home.Location = new System.Drawing.Point(7, 24);
this.btn_home.Name = "btn_home";
this.btn_home.Size = new System.Drawing.Size(75, 30);
this.btn_home.TabIndex = 2;
@@ -1948,35 +1964,15 @@
this.btn_home.UseVisualStyleBackColor = true;
this.btn_home.Click += new System.EventHandler(this.btn_home_Click);
//
// btn_stop
//
this.btn_stop.Location = new System.Drawing.Point(104, 24);
this.btn_stop.Name = "btn_stop";
this.btn_stop.Size = new System.Drawing.Size(75, 30);
this.btn_stop.TabIndex = 1;
this.btn_stop.Text = "停止";
this.btn_stop.UseVisualStyleBackColor = true;
this.btn_stop.Click += new System.EventHandler(this.btn_stop_Click);
//
// btn_start
//
this.btn_start.Location = new System.Drawing.Point(10, 24);
this.btn_start.Name = "btn_start";
this.btn_start.Size = new System.Drawing.Size(75, 30);
this.btn_start.TabIndex = 0;
this.btn_start.Text = "开始";
this.btn_start.UseVisualStyleBackColor = true;
this.btn_start.Click += new System.EventHandler(this.btn_start_Click);
//
// groupBox10
//
this.groupBox10.Controls.Add(this.label48);
this.groupBox10.Controls.Add(this.textBox4);
this.groupBox10.Controls.Add(this.textBox_cycleTimes);
this.groupBox10.Controls.Add(this.btn_halt);
this.groupBox10.Controls.Add(this.btn_run);
this.groupBox10.Controls.Add(this.checkBox4);
this.groupBox10.Controls.Add(this.checkBox3);
this.groupBox10.Controls.Add(this.checkBox2);
this.groupBox10.Controls.Add(this.checkBox_Z);
this.groupBox10.Controls.Add(this.checkBox_y);
this.groupBox10.Controls.Add(this.checkBox_X);
this.groupBox10.Location = new System.Drawing.Point(919, 610);
this.groupBox10.Name = "groupBox10";
this.groupBox10.Size = new System.Drawing.Size(295, 103);
@@ -1987,68 +1983,78 @@
// label48
//
this.label48.AutoSize = true;
this.label48.Location = new System.Drawing.Point(220, 65);
this.label48.Location = new System.Drawing.Point(244, 67);
this.label48.Name = "label48";
this.label48.Size = new System.Drawing.Size(17, 12);
this.label48.TabIndex = 7;
this.label48.Text = "次";
//
// textBox4
// textBox_cycleTimes
//
this.textBox4.Location = new System.Drawing.Point(179, 61);
this.textBox4.Name = "textBox4";
this.textBox4.Size = new System.Drawing.Size(35, 21);
this.textBox4.TabIndex = 5;
this.textBox_cycleTimes.Location = new System.Drawing.Point(203, 63);
this.textBox_cycleTimes.Name = "textBox_cycleTimes";
this.textBox_cycleTimes.Size = new System.Drawing.Size(35, 21);
this.textBox_cycleTimes.TabIndex = 5;
//
// btn_halt
//
this.btn_halt.Location = new System.Drawing.Point(94, 60);
this.btn_halt.Location = new System.Drawing.Point(99, 60);
this.btn_halt.Name = "btn_halt";
this.btn_halt.Size = new System.Drawing.Size(60, 23);
this.btn_halt.Size = new System.Drawing.Size(80, 30);
this.btn_halt.TabIndex = 4;
this.btn_halt.Text = "停止";
this.btn_halt.Text = "停止循环";
this.btn_halt.UseVisualStyleBackColor = true;
this.btn_halt.Click += new System.EventHandler(this.btn_halt_Click);
this.btn_halt.Click += new System.EventHandler(this.BtnHallAll_Click);
//
// btn_run
//
this.btn_run.Location = new System.Drawing.Point(13, 60);
this.btn_run.Name = "btn_run";
this.btn_run.Size = new System.Drawing.Size(60, 23);
this.btn_run.Size = new System.Drawing.Size(80, 30);
this.btn_run.TabIndex = 3;
this.btn_run.Text = "运行";
this.btn_run.Text = "开始循环";
this.btn_run.UseVisualStyleBackColor = true;
this.btn_run.Click += new System.EventHandler(this.btn_run_Click);
//
// checkBox4
// checkBox_Z
//
this.checkBox4.AutoSize = true;
this.checkBox4.Location = new System.Drawing.Point(184, 21);
this.checkBox4.Name = "checkBox4";
this.checkBox4.Size = new System.Drawing.Size(30, 16);
this.checkBox4.TabIndex = 2;
this.checkBox4.Text = "Z";
this.checkBox4.UseVisualStyleBackColor = true;
this.checkBox_Z.AutoSize = true;
this.checkBox_Z.Location = new System.Drawing.Point(184, 21);
this.checkBox_Z.Name = "checkBox_Z";
this.checkBox_Z.Size = new System.Drawing.Size(30, 16);
this.checkBox_Z.TabIndex = 2;
this.checkBox_Z.Text = "Z";
this.checkBox_Z.UseVisualStyleBackColor = true;
//
// checkBox3
// checkBox_y
//
this.checkBox3.AutoSize = true;
this.checkBox3.Location = new System.Drawing.Point(100, 21);
this.checkBox3.Name = "checkBox3";
this.checkBox3.Size = new System.Drawing.Size(30, 16);
this.checkBox3.TabIndex = 1;
this.checkBox3.Text = "Y";
this.checkBox3.UseVisualStyleBackColor = true;
this.checkBox_y.AutoSize = true;
this.checkBox_y.Location = new System.Drawing.Point(100, 21);
this.checkBox_y.Name = "checkBox_y";
this.checkBox_y.Size = new System.Drawing.Size(30, 16);
this.checkBox_y.TabIndex = 1;
this.checkBox_y.Text = "Y";
this.checkBox_y.UseVisualStyleBackColor = true;
//
// checkBox2
// checkBox_X
//
this.checkBox2.AutoSize = true;
this.checkBox2.Location = new System.Drawing.Point(16, 21);
this.checkBox2.Name = "checkBox2";
this.checkBox2.Size = new System.Drawing.Size(30, 16);
this.checkBox2.TabIndex = 0;
this.checkBox2.Text = "X";
this.checkBox2.UseVisualStyleBackColor = true;
this.checkBox_X.AutoSize = true;
this.checkBox_X.Location = new System.Drawing.Point(16, 21);
this.checkBox_X.Name = "checkBox_X";
this.checkBox_X.Size = new System.Drawing.Size(30, 16);
this.checkBox_X.TabIndex = 0;
this.checkBox_X.Text = "X";
this.checkBox_X.UseVisualStyleBackColor = true;
//
// button1
//
this.button1.Location = new System.Drawing.Point(94, 24);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 30);
this.button1.TabIndex = 3;
this.button1.Text = "立即停止";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.BtnHallAll_Click);
//
// Motion
//
@@ -2067,6 +2073,7 @@
this.Name = "Motion";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "平台运动";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.Motion_FormClosed);
this.Load += new System.EventHandler(this.Form1_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
@@ -2251,7 +2258,6 @@
private System.Windows.Forms.GroupBox groupBox9;
private System.Windows.Forms.GroupBox groupBox8;
private System.Windows.Forms.Button btn_movepose;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.TextBox textBox_y;
private System.Windows.Forms.TextBox textBox_z;
private System.Windows.Forms.TextBox textBox_x;
@@ -2265,16 +2271,14 @@
private System.Windows.Forms.Button btn_Y_Forward;
private System.Windows.Forms.GroupBox groupBox6;
private System.Windows.Forms.Button btn_home;
private System.Windows.Forms.Button btn_stop;
private System.Windows.Forms.Button btn_start;
private System.Windows.Forms.GroupBox groupBox10;
private System.Windows.Forms.Label label48;
private System.Windows.Forms.TextBox textBox4;
private System.Windows.Forms.TextBox textBox_cycleTimes;
private System.Windows.Forms.Button btn_halt;
private System.Windows.Forms.Button btn_run;
private System.Windows.Forms.CheckBox checkBox4;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.CheckBox checkBox_Z;
private System.Windows.Forms.CheckBox checkBox_y;
private System.Windows.Forms.CheckBox checkBox_X;
private System.Windows.Forms.Label label56;
private System.Windows.Forms.Label label55;
private System.Windows.Forms.Label label54;
@@ -2284,6 +2288,9 @@
private System.Windows.Forms.Label label50;
private System.Windows.Forms.Label label49;
private System.Windows.Forms.Label label47;
private System.Windows.Forms.Button btn_Z_Down;
private System.Windows.Forms.Button btn_Z_Up;
private System.Windows.Forms.Button button1;
}
}