mirror of
https://github.com/zhaopeiym/IoTClient
synced 2025-10-26 22:15:44 +08:00
添加三菱PLC客户端和服务端、支持其他协议直接报文发送
This commit is contained in:
179
IoTClient.Tool/Controls/ModBusTcpControl.Designer.cs
generated
179
IoTClient.Tool/Controls/ModBusTcpControl.Designer.cs
generated
@@ -29,9 +29,9 @@
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.components = new System.ComponentModel.Container();
|
||||
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.chb_show_package = new System.Windows.Forms.CheckBox();
|
||||
this.groupBox2 = new System.Windows.Forms.GroupBox();
|
||||
this.button5 = new System.Windows.Forms.Button();
|
||||
this.but_close = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.but_open = new System.Windows.Forms.Button();
|
||||
@@ -42,6 +42,7 @@
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.txt_port = new System.Windows.Forms.TextBox();
|
||||
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
||||
this.rd_discrete = new System.Windows.Forms.RadioButton();
|
||||
this.button6 = new System.Windows.Forms.Button();
|
||||
this.rd_float = new System.Windows.Forms.RadioButton();
|
||||
this.rd_double = new System.Windows.Forms.RadioButton();
|
||||
@@ -53,33 +54,34 @@
|
||||
this.rd_int = new System.Windows.Forms.RadioButton();
|
||||
this.rd_uint = new System.Windows.Forms.RadioButton();
|
||||
this.groupBox3 = new System.Windows.Forms.GroupBox();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.but_sendData = new System.Windows.Forms.Button();
|
||||
this.txt_dataPackage = new System.Windows.Forms.TextBox();
|
||||
this.but_read = new System.Windows.Forms.Button();
|
||||
this.lab_address = new System.Windows.Forms.Label();
|
||||
this.txt_address = new System.Windows.Forms.TextBox();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.but_write = new System.Windows.Forms.Button();
|
||||
this.txt_value = new System.Windows.Forms.TextBox();
|
||||
this.label4 = new System.Windows.Forms.Label();
|
||||
this.lab_value = new System.Windows.Forms.Label();
|
||||
this.txt_content = new System.Windows.Forms.TextBox();
|
||||
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
|
||||
this.rd_discrete = new System.Windows.Forms.RadioButton();
|
||||
this.groupBox2.SuspendLayout();
|
||||
this.groupBox1.SuspendLayout();
|
||||
this.groupBox3.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// checkBox1
|
||||
// chb_show_package
|
||||
//
|
||||
this.checkBox1.AutoSize = true;
|
||||
this.checkBox1.Location = new System.Drawing.Point(771, 19);
|
||||
this.checkBox1.Name = "checkBox1";
|
||||
this.checkBox1.Size = new System.Drawing.Size(72, 16);
|
||||
this.checkBox1.TabIndex = 13;
|
||||
this.checkBox1.Text = "显示报文";
|
||||
this.checkBox1.UseVisualStyleBackColor = true;
|
||||
this.chb_show_package.AutoSize = true;
|
||||
this.chb_show_package.Location = new System.Drawing.Point(776, 19);
|
||||
this.chb_show_package.Name = "chb_show_package";
|
||||
this.chb_show_package.Size = new System.Drawing.Size(72, 16);
|
||||
this.chb_show_package.TabIndex = 13;
|
||||
this.chb_show_package.Text = "显示报文";
|
||||
this.chb_show_package.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// groupBox2
|
||||
//
|
||||
this.groupBox2.Controls.Add(this.button5);
|
||||
this.groupBox2.Controls.Add(this.but_close);
|
||||
this.groupBox2.Controls.Add(this.button2);
|
||||
this.groupBox2.Controls.Add(this.button1);
|
||||
this.groupBox2.Controls.Add(this.but_open);
|
||||
@@ -97,13 +99,13 @@
|
||||
//
|
||||
// button5
|
||||
//
|
||||
this.button5.Location = new System.Drawing.Point(318, 19);
|
||||
this.button5.Name = "button5";
|
||||
this.button5.Size = new System.Drawing.Size(75, 23);
|
||||
this.button5.TabIndex = 17;
|
||||
this.button5.Text = "断开";
|
||||
this.button5.UseVisualStyleBackColor = true;
|
||||
this.button5.Click += new System.EventHandler(this.button5_Click);
|
||||
this.but_close.Location = new System.Drawing.Point(318, 19);
|
||||
this.but_close.Name = "button5";
|
||||
this.but_close.Size = new System.Drawing.Size(75, 23);
|
||||
this.but_close.TabIndex = 17;
|
||||
this.but_close.Text = "断开";
|
||||
this.but_close.UseVisualStyleBackColor = true;
|
||||
this.but_close.Click += new System.EventHandler(this.but_close_Click);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
@@ -205,6 +207,16 @@
|
||||
this.groupBox1.TabIndex = 28;
|
||||
this.groupBox1.TabStop = false;
|
||||
//
|
||||
// rd_discrete
|
||||
//
|
||||
this.rd_discrete.AutoSize = true;
|
||||
this.rd_discrete.Location = new System.Drawing.Point(64, 23);
|
||||
this.rd_discrete.Name = "rd_discrete";
|
||||
this.rd_discrete.Size = new System.Drawing.Size(47, 16);
|
||||
this.rd_discrete.TabIndex = 24;
|
||||
this.rd_discrete.Text = "离散";
|
||||
this.rd_discrete.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button6
|
||||
//
|
||||
this.button6.Location = new System.Drawing.Point(768, 16);
|
||||
@@ -309,70 +321,89 @@
|
||||
//
|
||||
// groupBox3
|
||||
//
|
||||
this.groupBox3.Controls.Add(this.checkBox1);
|
||||
this.groupBox3.Controls.Add(this.button3);
|
||||
this.groupBox3.Controls.Add(this.label3);
|
||||
this.groupBox3.Controls.Add(this.but_sendData);
|
||||
this.groupBox3.Controls.Add(this.txt_dataPackage);
|
||||
this.groupBox3.Controls.Add(this.chb_show_package);
|
||||
this.groupBox3.Controls.Add(this.but_read);
|
||||
this.groupBox3.Controls.Add(this.lab_address);
|
||||
this.groupBox3.Controls.Add(this.txt_address);
|
||||
this.groupBox3.Controls.Add(this.button4);
|
||||
this.groupBox3.Controls.Add(this.but_write);
|
||||
this.groupBox3.Controls.Add(this.txt_value);
|
||||
this.groupBox3.Controls.Add(this.label4);
|
||||
this.groupBox3.Controls.Add(this.lab_value);
|
||||
this.groupBox3.Location = new System.Drawing.Point(13, 111);
|
||||
this.groupBox3.Name = "groupBox3";
|
||||
this.groupBox3.Size = new System.Drawing.Size(855, 47);
|
||||
this.groupBox3.TabIndex = 30;
|
||||
this.groupBox3.TabStop = false;
|
||||
//
|
||||
// button3
|
||||
// but_sendData
|
||||
//
|
||||
this.button3.Location = new System.Drawing.Point(183, 14);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(75, 23);
|
||||
this.button3.TabIndex = 7;
|
||||
this.button3.Text = "读取";
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
this.button3.Click += new System.EventHandler(this.button3_Click);
|
||||
this.but_sendData.Location = new System.Drawing.Point(622, 15);
|
||||
this.but_sendData.Name = "but_sendData";
|
||||
this.but_sendData.Size = new System.Drawing.Size(75, 23);
|
||||
this.but_sendData.TabIndex = 14;
|
||||
this.but_sendData.Text = "发送报文";
|
||||
this.but_sendData.UseVisualStyleBackColor = true;
|
||||
this.but_sendData.Click += new System.EventHandler(this.but_sendData_Click);
|
||||
//
|
||||
// label3
|
||||
// txt_dataPackage
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(9, 22);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(29, 12);
|
||||
this.label3.TabIndex = 8;
|
||||
this.label3.Text = "地址";
|
||||
this.txt_dataPackage.Location = new System.Drawing.Point(430, 16);
|
||||
this.txt_dataPackage.Name = "txt_dataPackage";
|
||||
this.txt_dataPackage.Size = new System.Drawing.Size(186, 21);
|
||||
this.txt_dataPackage.TabIndex = 15;
|
||||
//
|
||||
// but_read
|
||||
//
|
||||
this.but_read.Location = new System.Drawing.Point(132, 16);
|
||||
this.but_read.Name = "but_read";
|
||||
this.but_read.Size = new System.Drawing.Size(75, 23);
|
||||
this.but_read.TabIndex = 7;
|
||||
this.but_read.Text = "读取";
|
||||
this.but_read.UseVisualStyleBackColor = true;
|
||||
this.but_read.Click += new System.EventHandler(this.button3_Click);
|
||||
//
|
||||
// lab_address
|
||||
//
|
||||
this.lab_address.AutoSize = true;
|
||||
this.lab_address.Location = new System.Drawing.Point(9, 22);
|
||||
this.lab_address.Name = "lab_address";
|
||||
this.lab_address.Size = new System.Drawing.Size(29, 12);
|
||||
this.lab_address.TabIndex = 8;
|
||||
this.lab_address.Text = "地址";
|
||||
//
|
||||
// txt_address
|
||||
//
|
||||
this.txt_address.Location = new System.Drawing.Point(43, 16);
|
||||
this.txt_address.Location = new System.Drawing.Point(38, 18);
|
||||
this.txt_address.Name = "txt_address";
|
||||
this.txt_address.Size = new System.Drawing.Size(121, 21);
|
||||
this.txt_address.Size = new System.Drawing.Size(88, 21);
|
||||
this.txt_address.TabIndex = 9;
|
||||
//
|
||||
// button4
|
||||
// but_write
|
||||
//
|
||||
this.button4.Location = new System.Drawing.Point(479, 14);
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Size = new System.Drawing.Size(75, 23);
|
||||
this.button4.TabIndex = 10;
|
||||
this.button4.Text = "写入";
|
||||
this.button4.UseVisualStyleBackColor = true;
|
||||
this.button4.Click += new System.EventHandler(this.button4_Click);
|
||||
this.but_write.Location = new System.Drawing.Point(328, 14);
|
||||
this.but_write.Name = "but_write";
|
||||
this.but_write.Size = new System.Drawing.Size(75, 23);
|
||||
this.but_write.TabIndex = 10;
|
||||
this.but_write.Text = "写入";
|
||||
this.but_write.UseVisualStyleBackColor = true;
|
||||
this.but_write.Click += new System.EventHandler(this.button4_Click);
|
||||
//
|
||||
// txt_value
|
||||
//
|
||||
this.txt_value.Location = new System.Drawing.Point(359, 15);
|
||||
this.txt_value.Location = new System.Drawing.Point(249, 15);
|
||||
this.txt_value.Name = "txt_value";
|
||||
this.txt_value.Size = new System.Drawing.Size(100, 21);
|
||||
this.txt_value.Size = new System.Drawing.Size(74, 21);
|
||||
this.txt_value.TabIndex = 12;
|
||||
//
|
||||
// label4
|
||||
// lab_value
|
||||
//
|
||||
this.label4.AutoSize = true;
|
||||
this.label4.Location = new System.Drawing.Point(331, 19);
|
||||
this.label4.Name = "label4";
|
||||
this.label4.Size = new System.Drawing.Size(17, 12);
|
||||
this.label4.TabIndex = 11;
|
||||
this.label4.Text = "值";
|
||||
this.lab_value.AutoSize = true;
|
||||
this.lab_value.Location = new System.Drawing.Point(227, 19);
|
||||
this.lab_value.Name = "lab_value";
|
||||
this.lab_value.Size = new System.Drawing.Size(17, 12);
|
||||
this.lab_value.TabIndex = 11;
|
||||
this.lab_value.Text = "值";
|
||||
//
|
||||
// txt_content
|
||||
//
|
||||
@@ -384,16 +415,6 @@
|
||||
this.txt_content.Size = new System.Drawing.Size(855, 272);
|
||||
this.txt_content.TabIndex = 27;
|
||||
//
|
||||
// radioButton1
|
||||
//
|
||||
this.rd_discrete.AutoSize = true;
|
||||
this.rd_discrete.Location = new System.Drawing.Point(64, 23);
|
||||
this.rd_discrete.Name = "radioButton1";
|
||||
this.rd_discrete.Size = new System.Drawing.Size(47, 16);
|
||||
this.rd_discrete.TabIndex = 24;
|
||||
this.rd_discrete.Text = "离散";
|
||||
this.rd_discrete.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// ModBusTcpControl
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
||||
@@ -417,7 +438,7 @@
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.CheckBox checkBox1;
|
||||
private System.Windows.Forms.CheckBox chb_show_package;
|
||||
private System.Windows.Forms.GroupBox groupBox2;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button but_open;
|
||||
@@ -438,17 +459,19 @@
|
||||
private System.Windows.Forms.RadioButton rd_int;
|
||||
private System.Windows.Forms.RadioButton rd_uint;
|
||||
private System.Windows.Forms.GroupBox groupBox3;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.Button but_read;
|
||||
private System.Windows.Forms.Label lab_address;
|
||||
private System.Windows.Forms.TextBox txt_address;
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.Button but_write;
|
||||
private System.Windows.Forms.TextBox txt_value;
|
||||
private System.Windows.Forms.Label label4;
|
||||
private System.Windows.Forms.Label lab_value;
|
||||
private System.Windows.Forms.TextBox txt_content;
|
||||
private System.Windows.Forms.ToolTip toolTip1;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button button5;
|
||||
private System.Windows.Forms.Button but_close;
|
||||
private System.Windows.Forms.Button button6;
|
||||
private System.Windows.Forms.RadioButton rd_discrete;
|
||||
private System.Windows.Forms.Button but_sendData;
|
||||
private System.Windows.Forms.TextBox txt_dataPackage;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user