|
|
@ -29,10 +29,11 @@ namespace ModbusSlave |
|
|
|
/// </summary> |
|
|
|
/// </summary> |
|
|
|
private void InitializeComponent() |
|
|
|
private void InitializeComponent() |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MainForm)); |
|
|
|
this.groupBox1 = new System.Windows.Forms.GroupBox(); |
|
|
|
this.groupBox1 = new System.Windows.Forms.GroupBox(); |
|
|
|
this.btnStop = new System.Windows.Forms.Button(); |
|
|
|
this.btnStop = new System.Windows.Forms.Button(); |
|
|
|
this.btnRun = new System.Windows.Forms.Button(); |
|
|
|
this.btnRun = new System.Windows.Forms.Button(); |
|
|
|
this.nudAddress = new System.Windows.Forms.NumericUpDown(); |
|
|
|
this.nudIdentifier = new System.Windows.Forms.NumericUpDown(); |
|
|
|
this.label3 = new System.Windows.Forms.Label(); |
|
|
|
this.label3 = new System.Windows.Forms.Label(); |
|
|
|
this.nudPort = new System.Windows.Forms.NumericUpDown(); |
|
|
|
this.nudPort = new System.Windows.Forms.NumericUpDown(); |
|
|
|
this.label2 = new System.Windows.Forms.Label(); |
|
|
|
this.label2 = new System.Windows.Forms.Label(); |
|
|
@ -60,7 +61,7 @@ namespace ModbusSlave |
|
|
|
this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); |
|
|
|
this.columnHeader7 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); |
|
|
|
this.columnHeader8 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); |
|
|
|
this.columnHeader8 = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader())); |
|
|
|
this.groupBox1.SuspendLayout(); |
|
|
|
this.groupBox1.SuspendLayout(); |
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudAddress)).BeginInit(); |
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudIdentifier)).BeginInit(); |
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudPort)).BeginInit(); |
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudPort)).BeginInit(); |
|
|
|
this.groupBox2.SuspendLayout(); |
|
|
|
this.groupBox2.SuspendLayout(); |
|
|
|
this.tabLv.SuspendLayout(); |
|
|
|
this.tabLv.SuspendLayout(); |
|
|
@ -74,7 +75,7 @@ namespace ModbusSlave |
|
|
|
// |
|
|
|
// |
|
|
|
this.groupBox1.Controls.Add(this.btnStop); |
|
|
|
this.groupBox1.Controls.Add(this.btnStop); |
|
|
|
this.groupBox1.Controls.Add(this.btnRun); |
|
|
|
this.groupBox1.Controls.Add(this.btnRun); |
|
|
|
this.groupBox1.Controls.Add(this.nudAddress); |
|
|
|
this.groupBox1.Controls.Add(this.nudIdentifier); |
|
|
|
this.groupBox1.Controls.Add(this.label3); |
|
|
|
this.groupBox1.Controls.Add(this.label3); |
|
|
|
this.groupBox1.Controls.Add(this.nudPort); |
|
|
|
this.groupBox1.Controls.Add(this.nudPort); |
|
|
|
this.groupBox1.Controls.Add(this.label2); |
|
|
|
this.groupBox1.Controls.Add(this.label2); |
|
|
@ -113,15 +114,15 @@ namespace ModbusSlave |
|
|
|
this.btnRun.UseVisualStyleBackColor = true; |
|
|
|
this.btnRun.UseVisualStyleBackColor = true; |
|
|
|
this.btnRun.Click += new System.EventHandler(this.btnRun_Click); |
|
|
|
this.btnRun.Click += new System.EventHandler(this.btnRun_Click); |
|
|
|
// |
|
|
|
// |
|
|
|
// nudAddress |
|
|
|
// nudIdentifier |
|
|
|
// |
|
|
|
// |
|
|
|
this.nudAddress.Location = new System.Drawing.Point(81, 90); |
|
|
|
this.nudIdentifier.Location = new System.Drawing.Point(81, 90); |
|
|
|
this.nudAddress.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.nudIdentifier.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.nudAddress.Name = "nudAddress"; |
|
|
|
this.nudIdentifier.Name = "nudIdentifier"; |
|
|
|
this.nudAddress.Size = new System.Drawing.Size(156, 23); |
|
|
|
this.nudIdentifier.Size = new System.Drawing.Size(156, 23); |
|
|
|
this.nudAddress.TabIndex = 2; |
|
|
|
this.nudIdentifier.TabIndex = 2; |
|
|
|
this.nudAddress.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; |
|
|
|
this.nudIdentifier.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; |
|
|
|
this.nudAddress.Value = new decimal(new int[] { |
|
|
|
this.nudIdentifier.Value = new decimal(new int[] { |
|
|
|
1, |
|
|
|
1, |
|
|
|
0, |
|
|
|
0, |
|
|
|
0, |
|
|
|
0, |
|
|
@ -132,9 +133,9 @@ namespace ModbusSlave |
|
|
|
this.label3.AutoSize = true; |
|
|
|
this.label3.AutoSize = true; |
|
|
|
this.label3.Location = new System.Drawing.Point(7, 95); |
|
|
|
this.label3.Location = new System.Drawing.Point(7, 95); |
|
|
|
this.label3.Name = "label3"; |
|
|
|
this.label3.Name = "label3"; |
|
|
|
this.label3.Size = new System.Drawing.Size(49, 15); |
|
|
|
this.label3.Size = new System.Drawing.Size(54, 15); |
|
|
|
this.label3.TabIndex = 0; |
|
|
|
this.label3.TabIndex = 0; |
|
|
|
this.label3.Text = "Address"; |
|
|
|
this.label3.Text = "Identifier"; |
|
|
|
// |
|
|
|
// |
|
|
|
// nudPort |
|
|
|
// nudPort |
|
|
|
// |
|
|
|
// |
|
|
@ -255,11 +256,11 @@ namespace ModbusSlave |
|
|
|
// tabPage1 |
|
|
|
// tabPage1 |
|
|
|
// |
|
|
|
// |
|
|
|
this.tabPage1.Controls.Add(this.lv0x); |
|
|
|
this.tabPage1.Controls.Add(this.lv0x); |
|
|
|
this.tabPage1.Location = new System.Drawing.Point(4, 22); |
|
|
|
this.tabPage1.Location = new System.Drawing.Point(4, 24); |
|
|
|
this.tabPage1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.tabPage1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.tabPage1.Name = "tabPage1"; |
|
|
|
this.tabPage1.Name = "tabPage1"; |
|
|
|
this.tabPage1.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.tabPage1.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.tabPage1.Size = new System.Drawing.Size(255, 426); |
|
|
|
this.tabPage1.Size = new System.Drawing.Size(255, 424); |
|
|
|
this.tabPage1.TabIndex = 0; |
|
|
|
this.tabPage1.TabIndex = 0; |
|
|
|
this.tabPage1.Text = "0x"; |
|
|
|
this.tabPage1.Text = "0x"; |
|
|
|
this.tabPage1.UseVisualStyleBackColor = true; |
|
|
|
this.tabPage1.UseVisualStyleBackColor = true; |
|
|
@ -276,7 +277,7 @@ namespace ModbusSlave |
|
|
|
this.lv0x.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.lv0x.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.lv0x.MultiSelect = false; |
|
|
|
this.lv0x.MultiSelect = false; |
|
|
|
this.lv0x.Name = "lv0x"; |
|
|
|
this.lv0x.Name = "lv0x"; |
|
|
|
this.lv0x.Size = new System.Drawing.Size(249, 418); |
|
|
|
this.lv0x.Size = new System.Drawing.Size(249, 416); |
|
|
|
this.lv0x.TabIndex = 0; |
|
|
|
this.lv0x.TabIndex = 0; |
|
|
|
this.lv0x.UseCompatibleStateImageBehavior = false; |
|
|
|
this.lv0x.UseCompatibleStateImageBehavior = false; |
|
|
|
this.lv0x.View = System.Windows.Forms.View.Details; |
|
|
|
this.lv0x.View = System.Windows.Forms.View.Details; |
|
|
@ -294,11 +295,11 @@ namespace ModbusSlave |
|
|
|
// tabPage2 |
|
|
|
// tabPage2 |
|
|
|
// |
|
|
|
// |
|
|
|
this.tabPage2.Controls.Add(this.lv1x); |
|
|
|
this.tabPage2.Controls.Add(this.lv1x); |
|
|
|
this.tabPage2.Location = new System.Drawing.Point(4, 22); |
|
|
|
this.tabPage2.Location = new System.Drawing.Point(4, 24); |
|
|
|
this.tabPage2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.tabPage2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.tabPage2.Name = "tabPage2"; |
|
|
|
this.tabPage2.Name = "tabPage2"; |
|
|
|
this.tabPage2.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.tabPage2.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.tabPage2.Size = new System.Drawing.Size(255, 426); |
|
|
|
this.tabPage2.Size = new System.Drawing.Size(255, 424); |
|
|
|
this.tabPage2.TabIndex = 1; |
|
|
|
this.tabPage2.TabIndex = 1; |
|
|
|
this.tabPage2.Text = "1x"; |
|
|
|
this.tabPage2.Text = "1x"; |
|
|
|
this.tabPage2.UseVisualStyleBackColor = true; |
|
|
|
this.tabPage2.UseVisualStyleBackColor = true; |
|
|
@ -315,7 +316,7 @@ namespace ModbusSlave |
|
|
|
this.lv1x.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.lv1x.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.lv1x.MultiSelect = false; |
|
|
|
this.lv1x.MultiSelect = false; |
|
|
|
this.lv1x.Name = "lv1x"; |
|
|
|
this.lv1x.Name = "lv1x"; |
|
|
|
this.lv1x.Size = new System.Drawing.Size(249, 418); |
|
|
|
this.lv1x.Size = new System.Drawing.Size(249, 416); |
|
|
|
this.lv1x.TabIndex = 1; |
|
|
|
this.lv1x.TabIndex = 1; |
|
|
|
this.lv1x.UseCompatibleStateImageBehavior = false; |
|
|
|
this.lv1x.UseCompatibleStateImageBehavior = false; |
|
|
|
this.lv1x.View = System.Windows.Forms.View.Details; |
|
|
|
this.lv1x.View = System.Windows.Forms.View.Details; |
|
|
@ -333,11 +334,11 @@ namespace ModbusSlave |
|
|
|
// tabPage3 |
|
|
|
// tabPage3 |
|
|
|
// |
|
|
|
// |
|
|
|
this.tabPage3.Controls.Add(this.lv3x); |
|
|
|
this.tabPage3.Controls.Add(this.lv3x); |
|
|
|
this.tabPage3.Location = new System.Drawing.Point(4, 22); |
|
|
|
this.tabPage3.Location = new System.Drawing.Point(4, 24); |
|
|
|
this.tabPage3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.tabPage3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.tabPage3.Name = "tabPage3"; |
|
|
|
this.tabPage3.Name = "tabPage3"; |
|
|
|
this.tabPage3.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.tabPage3.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.tabPage3.Size = new System.Drawing.Size(255, 426); |
|
|
|
this.tabPage3.Size = new System.Drawing.Size(255, 424); |
|
|
|
this.tabPage3.TabIndex = 2; |
|
|
|
this.tabPage3.TabIndex = 2; |
|
|
|
this.tabPage3.Text = "3x"; |
|
|
|
this.tabPage3.Text = "3x"; |
|
|
|
this.tabPage3.UseVisualStyleBackColor = true; |
|
|
|
this.tabPage3.UseVisualStyleBackColor = true; |
|
|
@ -354,7 +355,7 @@ namespace ModbusSlave |
|
|
|
this.lv3x.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.lv3x.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.lv3x.MultiSelect = false; |
|
|
|
this.lv3x.MultiSelect = false; |
|
|
|
this.lv3x.Name = "lv3x"; |
|
|
|
this.lv3x.Name = "lv3x"; |
|
|
|
this.lv3x.Size = new System.Drawing.Size(249, 418); |
|
|
|
this.lv3x.Size = new System.Drawing.Size(249, 416); |
|
|
|
this.lv3x.TabIndex = 1; |
|
|
|
this.lv3x.TabIndex = 1; |
|
|
|
this.lv3x.UseCompatibleStateImageBehavior = false; |
|
|
|
this.lv3x.UseCompatibleStateImageBehavior = false; |
|
|
|
this.lv3x.View = System.Windows.Forms.View.Details; |
|
|
|
this.lv3x.View = System.Windows.Forms.View.Details; |
|
|
@ -419,12 +420,13 @@ namespace ModbusSlave |
|
|
|
this.Controls.Add(this.groupBox1); |
|
|
|
this.Controls.Add(this.groupBox1); |
|
|
|
this.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); |
|
|
|
this.Font = new System.Drawing.Font("맑은 고딕", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129))); |
|
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; |
|
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedToolWindow; |
|
|
|
|
|
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); |
|
|
|
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); |
|
|
|
this.Name = "MainForm"; |
|
|
|
this.Name = "MainForm"; |
|
|
|
this.Text = "Modbus Slave"; |
|
|
|
this.Text = "Modbus Slave"; |
|
|
|
this.groupBox1.ResumeLayout(false); |
|
|
|
this.groupBox1.ResumeLayout(false); |
|
|
|
this.groupBox1.PerformLayout(); |
|
|
|
this.groupBox1.PerformLayout(); |
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudAddress)).EndInit(); |
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudIdentifier)).EndInit(); |
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudPort)).EndInit(); |
|
|
|
((System.ComponentModel.ISupportInitialize)(this.nudPort)).EndInit(); |
|
|
|
this.groupBox2.ResumeLayout(false); |
|
|
|
this.groupBox2.ResumeLayout(false); |
|
|
|
this.groupBox2.PerformLayout(); |
|
|
|
this.groupBox2.PerformLayout(); |
|
|
@ -442,7 +444,7 @@ namespace ModbusSlave |
|
|
|
private System.Windows.Forms.GroupBox groupBox1; |
|
|
|
private System.Windows.Forms.GroupBox groupBox1; |
|
|
|
private System.Windows.Forms.Button btnStop; |
|
|
|
private System.Windows.Forms.Button btnStop; |
|
|
|
private System.Windows.Forms.Button btnRun; |
|
|
|
private System.Windows.Forms.Button btnRun; |
|
|
|
private System.Windows.Forms.NumericUpDown nudAddress; |
|
|
|
private System.Windows.Forms.NumericUpDown nudIdentifier; |
|
|
|
private System.Windows.Forms.Label label3; |
|
|
|
private System.Windows.Forms.Label label3; |
|
|
|
private System.Windows.Forms.NumericUpDown nudPort; |
|
|
|
private System.Windows.Forms.NumericUpDown nudPort; |
|
|
|
private System.Windows.Forms.Label label2; |
|
|
|
private System.Windows.Forms.Label label2; |
|
|
|