|
|
namespace Gugao.FunTest
|
|
|
{
|
|
|
partial class Form1
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 必需的设计器变量。
|
|
|
/// </summary>
|
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
|
|
/// <summary>
|
|
|
/// 清理所有正在使用的资源。
|
|
|
/// </summary>
|
|
|
/// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
|
|
|
protected override void Dispose(bool disposing)
|
|
|
{
|
|
|
if (disposing && (components != null))
|
|
|
{
|
|
|
components.Dispose();
|
|
|
}
|
|
|
base.Dispose(disposing);
|
|
|
}
|
|
|
|
|
|
#region Windows 窗体设计器生成的代码
|
|
|
|
|
|
/// <summary>
|
|
|
/// 设计器支持所需的方法 - 不要修改
|
|
|
/// 使用代码编辑器修改此方法的内容。
|
|
|
/// </summary>
|
|
|
private void InitializeComponent()
|
|
|
{
|
|
|
this.components = new System.ComponentModel.Container();
|
|
|
this.btnOpen = new System.Windows.Forms.Button();
|
|
|
this.btnDisablePlimit = new System.Windows.Forms.Button();
|
|
|
this.cboxAxis = new System.Windows.Forms.ComboBox();
|
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
|
this.txtLog = new System.Windows.Forms.RichTextBox();
|
|
|
this.button1 = new System.Windows.Forms.Button();
|
|
|
this.button2 = new System.Windows.Forms.Button();
|
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
|
this.textBox1 = new System.Windows.Forms.TextBox();
|
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
|
this.btnAlarm = new System.Windows.Forms.Button();
|
|
|
this.btnPlimitTrigger = new System.Windows.Forms.Button();
|
|
|
this.btnNlimitTrigger = new System.Windows.Forms.Button();
|
|
|
this.btnServo = new System.Windows.Forms.Button();
|
|
|
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
|
|
this.btnClear = new System.Windows.Forms.Button();
|
|
|
this.btnEnablePlimit = new System.Windows.Forms.Button();
|
|
|
this.btnPlimit = new System.Windows.Forms.Button();
|
|
|
this.btnNlimit = new System.Windows.Forms.Button();
|
|
|
this.button3 = new System.Windows.Forms.Button();
|
|
|
this.button4 = new System.Windows.Forms.Button();
|
|
|
this.button5 = new System.Windows.Forms.Button();
|
|
|
this.SuspendLayout();
|
|
|
//
|
|
|
// btnOpen
|
|
|
//
|
|
|
this.btnOpen.Location = new System.Drawing.Point(21, 21);
|
|
|
this.btnOpen.Name = "btnOpen";
|
|
|
this.btnOpen.Size = new System.Drawing.Size(96, 34);
|
|
|
this.btnOpen.TabIndex = 0;
|
|
|
this.btnOpen.Text = "Open";
|
|
|
this.btnOpen.UseVisualStyleBackColor = true;
|
|
|
this.btnOpen.Click += new System.EventHandler(this.btnOpen_Click);
|
|
|
//
|
|
|
// btnDisablePlimit
|
|
|
//
|
|
|
this.btnDisablePlimit.Location = new System.Drawing.Point(21, 83);
|
|
|
this.btnDisablePlimit.Name = "btnDisablePlimit";
|
|
|
this.btnDisablePlimit.Size = new System.Drawing.Size(96, 34);
|
|
|
this.btnDisablePlimit.TabIndex = 0;
|
|
|
this.btnDisablePlimit.Text = "禁用正限位";
|
|
|
this.btnDisablePlimit.UseVisualStyleBackColor = true;
|
|
|
this.btnDisablePlimit.Click += new System.EventHandler(this.btnDisablePlimit_Click);
|
|
|
//
|
|
|
// cboxAxis
|
|
|
//
|
|
|
this.cboxAxis.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
this.cboxAxis.FormattingEnabled = true;
|
|
|
this.cboxAxis.Items.AddRange(new object[] {
|
|
|
"1",
|
|
|
"2",
|
|
|
"3",
|
|
|
"4",
|
|
|
"5",
|
|
|
"6",
|
|
|
"7",
|
|
|
"8"});
|
|
|
this.cboxAxis.Location = new System.Drawing.Point(209, 26);
|
|
|
this.cboxAxis.Name = "cboxAxis";
|
|
|
this.cboxAxis.Size = new System.Drawing.Size(73, 20);
|
|
|
this.cboxAxis.TabIndex = 1;
|
|
|
//
|
|
|
// label1
|
|
|
//
|
|
|
this.label1.AutoSize = true;
|
|
|
this.label1.Location = new System.Drawing.Point(180, 29);
|
|
|
this.label1.Name = "label1";
|
|
|
this.label1.Size = new System.Drawing.Size(23, 12);
|
|
|
this.label1.TabIndex = 2;
|
|
|
this.label1.Text = "轴:";
|
|
|
//
|
|
|
// txtLog
|
|
|
//
|
|
|
this.txtLog.Dock = System.Windows.Forms.DockStyle.Bottom;
|
|
|
this.txtLog.Location = new System.Drawing.Point(0, 363);
|
|
|
this.txtLog.Name = "txtLog";
|
|
|
this.txtLog.Size = new System.Drawing.Size(1106, 343);
|
|
|
this.txtLog.TabIndex = 3;
|
|
|
this.txtLog.Text = "";
|
|
|
//
|
|
|
// button1
|
|
|
//
|
|
|
this.button1.Font = new System.Drawing.Font("宋体", 20F);
|
|
|
this.button1.Location = new System.Drawing.Point(30, 211);
|
|
|
this.button1.Name = "button1";
|
|
|
this.button1.Size = new System.Drawing.Size(70, 47);
|
|
|
this.button1.TabIndex = 4;
|
|
|
this.button1.Text = "+";
|
|
|
this.button1.UseVisualStyleBackColor = true;
|
|
|
//
|
|
|
// button2
|
|
|
//
|
|
|
this.button2.Font = new System.Drawing.Font("宋体", 20F);
|
|
|
this.button2.Location = new System.Drawing.Point(160, 211);
|
|
|
this.button2.Name = "button2";
|
|
|
this.button2.Size = new System.Drawing.Size(70, 47);
|
|
|
this.button2.TabIndex = 4;
|
|
|
this.button2.Text = "-";
|
|
|
this.button2.UseVisualStyleBackColor = true;
|
|
|
//
|
|
|
// label2
|
|
|
//
|
|
|
this.label2.AutoSize = true;
|
|
|
this.label2.Location = new System.Drawing.Point(28, 160);
|
|
|
this.label2.Name = "label2";
|
|
|
this.label2.Size = new System.Drawing.Size(35, 12);
|
|
|
this.label2.TabIndex = 2;
|
|
|
this.label2.Text = "速度:";
|
|
|
//
|
|
|
// textBox1
|
|
|
//
|
|
|
this.textBox1.Location = new System.Drawing.Point(69, 157);
|
|
|
this.textBox1.Name = "textBox1";
|
|
|
this.textBox1.Size = new System.Drawing.Size(100, 21);
|
|
|
this.textBox1.TabIndex = 5;
|
|
|
//
|
|
|
// label3
|
|
|
//
|
|
|
this.label3.AutoSize = true;
|
|
|
this.label3.Location = new System.Drawing.Point(178, 160);
|
|
|
this.label3.Name = "label3";
|
|
|
this.label3.Size = new System.Drawing.Size(53, 12);
|
|
|
this.label3.TabIndex = 2;
|
|
|
this.label3.Text = "pulse/s:";
|
|
|
//
|
|
|
// btnAlarm
|
|
|
//
|
|
|
this.btnAlarm.Location = new System.Drawing.Point(21, 301);
|
|
|
this.btnAlarm.Name = "btnAlarm";
|
|
|
this.btnAlarm.Size = new System.Drawing.Size(58, 56);
|
|
|
this.btnAlarm.TabIndex = 6;
|
|
|
this.btnAlarm.Text = "报警";
|
|
|
this.btnAlarm.UseVisualStyleBackColor = true;
|
|
|
//
|
|
|
// btnPlimitTrigger
|
|
|
//
|
|
|
this.btnPlimitTrigger.Location = new System.Drawing.Point(111, 301);
|
|
|
this.btnPlimitTrigger.Name = "btnPlimitTrigger";
|
|
|
this.btnPlimitTrigger.Size = new System.Drawing.Size(58, 56);
|
|
|
this.btnPlimitTrigger.TabIndex = 6;
|
|
|
this.btnPlimitTrigger.Text = "正限位";
|
|
|
this.btnPlimitTrigger.UseVisualStyleBackColor = true;
|
|
|
//
|
|
|
// btnNlimitTrigger
|
|
|
//
|
|
|
this.btnNlimitTrigger.Location = new System.Drawing.Point(209, 301);
|
|
|
this.btnNlimitTrigger.Name = "btnNlimitTrigger";
|
|
|
this.btnNlimitTrigger.Size = new System.Drawing.Size(58, 56);
|
|
|
this.btnNlimitTrigger.TabIndex = 6;
|
|
|
this.btnNlimitTrigger.Text = "负限位";
|
|
|
this.btnNlimitTrigger.UseVisualStyleBackColor = true;
|
|
|
//
|
|
|
// btnServo
|
|
|
//
|
|
|
this.btnServo.Location = new System.Drawing.Point(299, 301);
|
|
|
this.btnServo.Name = "btnServo";
|
|
|
this.btnServo.Size = new System.Drawing.Size(58, 56);
|
|
|
this.btnServo.TabIndex = 6;
|
|
|
this.btnServo.Text = "使能";
|
|
|
this.btnServo.UseVisualStyleBackColor = true;
|
|
|
//
|
|
|
// timer1
|
|
|
//
|
|
|
this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
|
|
|
//
|
|
|
// btnClear
|
|
|
//
|
|
|
this.btnClear.Location = new System.Drawing.Point(338, 21);
|
|
|
this.btnClear.Name = "btnClear";
|
|
|
this.btnClear.Size = new System.Drawing.Size(102, 34);
|
|
|
this.btnClear.TabIndex = 7;
|
|
|
this.btnClear.Text = "清楚报警";
|
|
|
this.btnClear.UseVisualStyleBackColor = true;
|
|
|
this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
|
|
|
//
|
|
|
// btnEnablePlimit
|
|
|
//
|
|
|
this.btnEnablePlimit.Location = new System.Drawing.Point(171, 83);
|
|
|
this.btnEnablePlimit.Name = "btnEnablePlimit";
|
|
|
this.btnEnablePlimit.Size = new System.Drawing.Size(96, 34);
|
|
|
this.btnEnablePlimit.TabIndex = 0;
|
|
|
this.btnEnablePlimit.Text = "启用正限位";
|
|
|
this.btnEnablePlimit.UseVisualStyleBackColor = true;
|
|
|
this.btnEnablePlimit.Click += new System.EventHandler(this.btnEnablePlimit_Click);
|
|
|
//
|
|
|
// btnPlimit
|
|
|
//
|
|
|
this.btnPlimit.Location = new System.Drawing.Point(382, 301);
|
|
|
this.btnPlimit.Name = "btnPlimit";
|
|
|
this.btnPlimit.Size = new System.Drawing.Size(58, 56);
|
|
|
this.btnPlimit.TabIndex = 6;
|
|
|
this.btnPlimit.Text = "正限位";
|
|
|
this.btnPlimit.UseVisualStyleBackColor = true;
|
|
|
//
|
|
|
// btnNlimit
|
|
|
//
|
|
|
this.btnNlimit.Location = new System.Drawing.Point(456, 301);
|
|
|
this.btnNlimit.Name = "btnNlimit";
|
|
|
this.btnNlimit.Size = new System.Drawing.Size(58, 56);
|
|
|
this.btnNlimit.TabIndex = 6;
|
|
|
this.btnNlimit.Text = "负限位";
|
|
|
this.btnNlimit.UseVisualStyleBackColor = true;
|
|
|
//
|
|
|
// button3
|
|
|
//
|
|
|
this.button3.Location = new System.Drawing.Point(513, 211);
|
|
|
this.button3.Name = "button3";
|
|
|
this.button3.Size = new System.Drawing.Size(72, 53);
|
|
|
this.button3.TabIndex = 8;
|
|
|
this.button3.Text = "Home";
|
|
|
this.button3.UseVisualStyleBackColor = true;
|
|
|
this.button3.Click += new System.EventHandler(this.button3_Click);
|
|
|
//
|
|
|
// button4
|
|
|
//
|
|
|
this.button4.Location = new System.Drawing.Point(265, 205);
|
|
|
this.button4.Name = "button4";
|
|
|
this.button4.Size = new System.Drawing.Size(76, 53);
|
|
|
this.button4.TabIndex = 9;
|
|
|
this.button4.Text = "使能";
|
|
|
this.button4.UseVisualStyleBackColor = true;
|
|
|
this.button4.Click += new System.EventHandler(this.button4_Click);
|
|
|
//
|
|
|
// button5
|
|
|
//
|
|
|
this.button5.Location = new System.Drawing.Point(382, 220);
|
|
|
this.button5.Name = "button5";
|
|
|
this.button5.Size = new System.Drawing.Size(75, 23);
|
|
|
this.button5.TabIndex = 10;
|
|
|
this.button5.Text = "button5";
|
|
|
this.button5.UseVisualStyleBackColor = true;
|
|
|
this.button5.Click += new System.EventHandler(this.button5_Click);
|
|
|
//
|
|
|
// Form1
|
|
|
//
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
this.ClientSize = new System.Drawing.Size(1106, 706);
|
|
|
this.Controls.Add(this.button5);
|
|
|
this.Controls.Add(this.button4);
|
|
|
this.Controls.Add(this.button3);
|
|
|
this.Controls.Add(this.btnClear);
|
|
|
this.Controls.Add(this.btnNlimit);
|
|
|
this.Controls.Add(this.btnPlimit);
|
|
|
this.Controls.Add(this.btnServo);
|
|
|
this.Controls.Add(this.btnNlimitTrigger);
|
|
|
this.Controls.Add(this.btnPlimitTrigger);
|
|
|
this.Controls.Add(this.btnAlarm);
|
|
|
this.Controls.Add(this.textBox1);
|
|
|
this.Controls.Add(this.button2);
|
|
|
this.Controls.Add(this.button1);
|
|
|
this.Controls.Add(this.txtLog);
|
|
|
this.Controls.Add(this.label3);
|
|
|
this.Controls.Add(this.label2);
|
|
|
this.Controls.Add(this.label1);
|
|
|
this.Controls.Add(this.cboxAxis);
|
|
|
this.Controls.Add(this.btnEnablePlimit);
|
|
|
this.Controls.Add(this.btnDisablePlimit);
|
|
|
this.Controls.Add(this.btnOpen);
|
|
|
this.Name = "Form1";
|
|
|
this.Text = "Form1";
|
|
|
this.Load += new System.EventHandler(this.Form1_Load);
|
|
|
this.ResumeLayout(false);
|
|
|
this.PerformLayout();
|
|
|
|
|
|
}
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
private System.Windows.Forms.Button btnOpen;
|
|
|
private System.Windows.Forms.Button btnDisablePlimit;
|
|
|
private System.Windows.Forms.ComboBox cboxAxis;
|
|
|
private System.Windows.Forms.Label label1;
|
|
|
private System.Windows.Forms.RichTextBox txtLog;
|
|
|
private System.Windows.Forms.Button button1;
|
|
|
private System.Windows.Forms.Button button2;
|
|
|
private System.Windows.Forms.Label label2;
|
|
|
private System.Windows.Forms.TextBox textBox1;
|
|
|
private System.Windows.Forms.Label label3;
|
|
|
private System.Windows.Forms.Button btnAlarm;
|
|
|
private System.Windows.Forms.Button btnPlimitTrigger;
|
|
|
private System.Windows.Forms.Button btnNlimitTrigger;
|
|
|
private System.Windows.Forms.Button btnServo;
|
|
|
private System.Windows.Forms.Timer timer1;
|
|
|
private System.Windows.Forms.Button btnClear;
|
|
|
private System.Windows.Forms.Button btnEnablePlimit;
|
|
|
private System.Windows.Forms.Button btnPlimit;
|
|
|
private System.Windows.Forms.Button btnNlimit;
|
|
|
private System.Windows.Forms.Button button3;
|
|
|
private System.Windows.Forms.Button button4;
|
|
|
private System.Windows.Forms.Button button5;
|
|
|
}
|
|
|
}
|
|
|
|