217 lines
		
	
	
		
			9.9 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			217 lines
		
	
	
		
			9.9 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| namespace DigitalIndicator
 | |
| {
 | |
|     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 Form 디자이너에서 생성한 코드
 | |
| 
 | |
|         /// <summary>
 | |
|         /// 디자이너 지원에 필요한 메서드입니다. 
 | |
|         /// 이 메서드의 내용을 코드 편집기로 수정하지 마세요.
 | |
|         /// </summary>
 | |
|         private void InitializeComponent()
 | |
|         {
 | |
|             this.components = new System.ComponentModel.Container();
 | |
|             this.tbbaud = new System.Windows.Forms.TextBox();
 | |
|             this.label1 = new System.Windows.Forms.Label();
 | |
|             this.label2 = new System.Windows.Forms.Label();
 | |
|             this.button1 = new System.Windows.Forms.Button();
 | |
|             this.timer1 = new System.Windows.Forms.Timer(this.components);
 | |
|             this.textBox1 = new System.Windows.Forms.TextBox();
 | |
|             this.button2 = new System.Windows.Forms.Button();
 | |
|             this.label3 = new System.Windows.Forms.Label();
 | |
|             this.label4 = new System.Windows.Forms.Label();
 | |
|             this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
 | |
|             this.button3 = new System.Windows.Forms.Button();
 | |
|             this.cmbIndiport = new System.Windows.Forms.ComboBox();
 | |
|             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
 | |
|             this.SuspendLayout();
 | |
|             // 
 | |
|             // tbbaud
 | |
|             // 
 | |
|             this.tbbaud.Font = new System.Drawing.Font("맑은 고딕", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
 | |
|             this.tbbaud.Location = new System.Drawing.Point(471, 17);
 | |
|             this.tbbaud.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5);
 | |
|             this.tbbaud.Name = "tbbaud";
 | |
|             this.tbbaud.Size = new System.Drawing.Size(215, 42);
 | |
|             this.tbbaud.TabIndex = 0;
 | |
|             this.tbbaud.Text = "9600";
 | |
|             this.tbbaud.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
 | |
|             // 
 | |
|             // label1
 | |
|             // 
 | |
|             this.label1.AutoSize = true;
 | |
|             this.label1.Font = new System.Drawing.Font("맑은 고딕", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
 | |
|             this.label1.Location = new System.Drawing.Point(24, 22);
 | |
|             this.label1.Name = "label1";
 | |
|             this.label1.Size = new System.Drawing.Size(68, 37);
 | |
|             this.label1.TabIndex = 1;
 | |
|             this.label1.Text = "port";
 | |
|             // 
 | |
|             // label2
 | |
|             // 
 | |
|             this.label2.AutoSize = true;
 | |
|             this.label2.Font = new System.Drawing.Font("맑은 고딕", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
 | |
|             this.label2.Location = new System.Drawing.Point(348, 22);
 | |
|             this.label2.Name = "label2";
 | |
|             this.label2.Size = new System.Drawing.Size(79, 37);
 | |
|             this.label2.TabIndex = 1;
 | |
|             this.label2.Text = "baud";
 | |
|             // 
 | |
|             // button1
 | |
|             // 
 | |
|             this.button1.Location = new System.Drawing.Point(712, 17);
 | |
|             this.button1.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
 | |
|             this.button1.Name = "button1";
 | |
|             this.button1.Size = new System.Drawing.Size(250, 35);
 | |
|             this.button1.TabIndex = 2;
 | |
|             this.button1.Text = "연결/끊기";
 | |
|             this.button1.UseVisualStyleBackColor = true;
 | |
|             this.button1.Click += new System.EventHandler(this.button1_Click);
 | |
|             // 
 | |
|             // timer1
 | |
|             // 
 | |
|             this.timer1.Interval = 1000;
 | |
|             this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
 | |
|             // 
 | |
|             // textBox1
 | |
|             // 
 | |
|             this.textBox1.Font = new System.Drawing.Font("맑은 고딕", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
 | |
|             this.textBox1.Location = new System.Drawing.Point(120, 142);
 | |
|             this.textBox1.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5);
 | |
|             this.textBox1.Name = "textBox1";
 | |
|             this.textBox1.Size = new System.Drawing.Size(215, 42);
 | |
|             this.textBox1.TabIndex = 3;
 | |
|             this.textBox1.Text = "65636";
 | |
|             this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
 | |
|             // 
 | |
|             // button2
 | |
|             // 
 | |
|             this.button2.Location = new System.Drawing.Point(353, 87);
 | |
|             this.button2.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
 | |
|             this.button2.Name = "button2";
 | |
|             this.button2.Size = new System.Drawing.Size(257, 90);
 | |
|             this.button2.TabIndex = 4;
 | |
|             this.button2.Text = "쓰기";
 | |
|             this.button2.UseVisualStyleBackColor = true;
 | |
|             this.button2.Click += new System.EventHandler(this.button2_Click);
 | |
|             // 
 | |
|             // label3
 | |
|             // 
 | |
|             this.label3.AutoSize = true;
 | |
|             this.label3.Font = new System.Drawing.Font("맑은 고딕", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
 | |
|             this.label3.Location = new System.Drawing.Point(12, 102);
 | |
|             this.label3.Name = "label3";
 | |
|             this.label3.Size = new System.Drawing.Size(118, 37);
 | |
|             this.label3.TabIndex = 6;
 | |
|             this.label3.Text = "slave no";
 | |
|             // 
 | |
|             // label4
 | |
|             // 
 | |
|             this.label4.AutoSize = true;
 | |
|             this.label4.Font = new System.Drawing.Font("맑은 고딕", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
 | |
|             this.label4.Location = new System.Drawing.Point(12, 147);
 | |
|             this.label4.Name = "label4";
 | |
|             this.label4.Size = new System.Drawing.Size(81, 37);
 | |
|             this.label4.TabIndex = 7;
 | |
|             this.label4.Text = "value";
 | |
|             // 
 | |
|             // numericUpDown1
 | |
|             // 
 | |
|             this.numericUpDown1.Location = new System.Drawing.Point(120, 99);
 | |
|             this.numericUpDown1.Maximum = new decimal(new int[] {
 | |
|             255,
 | |
|             0,
 | |
|             0,
 | |
|             0});
 | |
|             this.numericUpDown1.Name = "numericUpDown1";
 | |
|             this.numericUpDown1.Size = new System.Drawing.Size(215, 42);
 | |
|             this.numericUpDown1.TabIndex = 8;
 | |
|             this.numericUpDown1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
 | |
|             this.numericUpDown1.Value = new decimal(new int[] {
 | |
|             1,
 | |
|             0,
 | |
|             0,
 | |
|             0});
 | |
|             // 
 | |
|             // button3
 | |
|             // 
 | |
|             this.button3.Location = new System.Drawing.Point(17, 199);
 | |
|             this.button3.Margin = new System.Windows.Forms.Padding(5, 8, 5, 8);
 | |
|             this.button3.Name = "button3";
 | |
|             this.button3.Size = new System.Drawing.Size(693, 84);
 | |
|             this.button3.TabIndex = 9;
 | |
|             this.button3.Text = "샘플데이터쓰기(40001=100 ~ 40020=0)";
 | |
|             this.button3.UseVisualStyleBackColor = true;
 | |
|             this.button3.Click += new System.EventHandler(this.button3_Click);
 | |
|             // 
 | |
|             // cmbIndiport
 | |
|             // 
 | |
|             this.cmbIndiport.FormattingEnabled = true;
 | |
|             this.cmbIndiport.Location = new System.Drawing.Point(120, 19);
 | |
|             this.cmbIndiport.Name = "cmbIndiport";
 | |
|             this.cmbIndiport.Size = new System.Drawing.Size(147, 44);
 | |
|             this.cmbIndiport.TabIndex = 46;
 | |
|             // 
 | |
|             // Form1
 | |
|             // 
 | |
|             this.AutoScaleDimensions = new System.Drawing.SizeF(15F, 36F);
 | |
|             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
 | |
|             this.ClientSize = new System.Drawing.Size(1100, 558);
 | |
|             this.Controls.Add(this.cmbIndiport);
 | |
|             this.Controls.Add(this.button3);
 | |
|             this.Controls.Add(this.numericUpDown1);
 | |
|             this.Controls.Add(this.label4);
 | |
|             this.Controls.Add(this.label3);
 | |
|             this.Controls.Add(this.button2);
 | |
|             this.Controls.Add(this.textBox1);
 | |
|             this.Controls.Add(this.button1);
 | |
|             this.Controls.Add(this.label2);
 | |
|             this.Controls.Add(this.label1);
 | |
|             this.Controls.Add(this.tbbaud);
 | |
|             this.Font = new System.Drawing.Font("맑은 고딕", 15.75F);
 | |
|             this.Margin = new System.Windows.Forms.Padding(3, 5, 3, 5);
 | |
|             this.Name = "Form1";
 | |
|             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
 | |
|             this.Text = "Digital Indicator Test";
 | |
|             this.Load += new System.EventHandler(this.Form1_Load);
 | |
|             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
 | |
|             this.ResumeLayout(false);
 | |
|             this.PerformLayout();
 | |
| 
 | |
|         }
 | |
| 
 | |
|         #endregion
 | |
|         private System.Windows.Forms.TextBox tbbaud;
 | |
|         private System.Windows.Forms.Label label1;
 | |
|         private System.Windows.Forms.Label label2;
 | |
|         private System.Windows.Forms.Button button1;
 | |
|         private System.Windows.Forms.Timer timer1;
 | |
|         private System.Windows.Forms.TextBox textBox1;
 | |
|         private System.Windows.Forms.Button button2;
 | |
|         private System.Windows.Forms.Label label3;
 | |
|         private System.Windows.Forms.Label label4;
 | |
|         private System.Windows.Forms.NumericUpDown numericUpDown1;
 | |
|         private System.Windows.Forms.Button button3;
 | |
|         private System.Windows.Forms.ComboBox cmbIndiport;
 | |
|     }
 | |
| }
 | |
| 
 | 
