298 lines
13 KiB
C#
298 lines
13 KiB
C#
|
|
using System.Windows.Forms;
|
|
|
|
namespace PLCCommunication
|
|
{
|
|
partial class TriggerUI
|
|
{
|
|
/// <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 组件设计器生成的代码
|
|
|
|
/// <summary>
|
|
/// 设计器支持所需的方法 - 不要修改
|
|
/// 使用代码编辑器修改此方法的内容。
|
|
/// </summary>
|
|
private void InitializeComponent()
|
|
{
|
|
this.label8 = new System.Windows.Forms.Label();
|
|
this.cbo_WriteType = new System.Windows.Forms.ComboBox();
|
|
this.label11 = new System.Windows.Forms.Label();
|
|
this.label10 = new System.Windows.Forms.Label();
|
|
this.label5 = new System.Windows.Forms.Label();
|
|
this.txtResultAddr = new System.Windows.Forms.TextBox();
|
|
this.label4 = new System.Windows.Forms.Label();
|
|
this.txtReadLength = new System.Windows.Forms.TextBox();
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
this.txtReadAddr = new System.Windows.Forms.TextBox();
|
|
this.label3 = new System.Windows.Forms.Label();
|
|
this.label2 = new System.Windows.Forms.Label();
|
|
this.cbIsRead = new System.Windows.Forms.CheckBox();
|
|
this.cboReadType = new System.Windows.Forms.ComboBox();
|
|
this.groupBox1 = new System.Windows.Forms.GroupBox();
|
|
this.cboTriggerType = new System.Windows.Forms.ComboBox();
|
|
this.txtTriggerAddr = new System.Windows.Forms.TextBox();
|
|
this.txtTrrigerCommand = new System.Windows.Forms.TextBox();
|
|
this.groupBox1.SuspendLayout();
|
|
this.SuspendLayout();
|
|
//
|
|
// label8
|
|
//
|
|
this.label8.AutoSize = true;
|
|
this.label8.Font = new System.Drawing.Font("黑体", 12.75F);
|
|
this.label8.Location = new System.Drawing.Point(6, 53);
|
|
this.label8.Name = "label8";
|
|
this.label8.Size = new System.Drawing.Size(98, 17);
|
|
this.label8.TabIndex = 50;
|
|
this.label8.Text = "触发指令:";
|
|
//
|
|
// cbo_WriteType
|
|
//
|
|
this.cbo_WriteType.Font = new System.Drawing.Font("黑体", 12.75F);
|
|
this.cbo_WriteType.FormattingEnabled = true;
|
|
this.cbo_WriteType.Location = new System.Drawing.Point(373, 81);
|
|
this.cbo_WriteType.Name = "cbo_WriteType";
|
|
this.cbo_WriteType.Size = new System.Drawing.Size(101, 25);
|
|
this.cbo_WriteType.TabIndex = 49;
|
|
this.cbo_WriteType.SelectedIndexChanged += new System.EventHandler(this.cbo_WriteType_SelectedIndexChanged);
|
|
//
|
|
// label11
|
|
//
|
|
this.label11.AutoSize = true;
|
|
this.label11.Font = new System.Drawing.Font("黑体", 12.75F);
|
|
this.label11.Location = new System.Drawing.Point(276, 84);
|
|
this.label11.Name = "label11";
|
|
this.label11.Size = new System.Drawing.Size(98, 17);
|
|
this.label11.TabIndex = 48;
|
|
this.label11.Text = "写入类型:";
|
|
//
|
|
// label10
|
|
//
|
|
this.label10.AutoSize = true;
|
|
this.label10.Font = new System.Drawing.Font("黑体", 12.75F);
|
|
this.label10.Location = new System.Drawing.Point(277, 22);
|
|
this.label10.Name = "label10";
|
|
this.label10.Size = new System.Drawing.Size(98, 17);
|
|
this.label10.TabIndex = 47;
|
|
this.label10.Text = "接收类型:";
|
|
//
|
|
// label5
|
|
//
|
|
this.label5.AutoSize = true;
|
|
this.label5.Font = new System.Drawing.Font("黑体", 12.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
|
|
this.label5.Location = new System.Drawing.Point(6, 23);
|
|
this.label5.Name = "label5";
|
|
this.label5.Size = new System.Drawing.Size(134, 17);
|
|
this.label5.TabIndex = 44;
|
|
this.label5.Text = "接收触发地址:";
|
|
//
|
|
// txtResultAddr
|
|
//
|
|
this.txtResultAddr.Font = new System.Drawing.Font("黑体", 12.75F);
|
|
this.txtResultAddr.Location = new System.Drawing.Point(170, 81);
|
|
this.txtResultAddr.Name = "txtResultAddr";
|
|
this.txtResultAddr.Size = new System.Drawing.Size(97, 27);
|
|
this.txtResultAddr.TabIndex = 43;
|
|
this.txtResultAddr.Text = "D4960";
|
|
this.txtResultAddr.TextChanged += new System.EventHandler(this.txtResultAddr_TextChanged);
|
|
//
|
|
// label4
|
|
//
|
|
this.label4.AutoSize = true;
|
|
this.label4.Font = new System.Drawing.Font("黑体", 12.75F);
|
|
this.label4.Location = new System.Drawing.Point(6, 85);
|
|
this.label4.Name = "label4";
|
|
this.label4.Size = new System.Drawing.Size(170, 17);
|
|
this.label4.TabIndex = 42;
|
|
this.label4.Text = "结果写入起始地址:";
|
|
//
|
|
// txtReadLength
|
|
//
|
|
this.txtReadLength.Font = new System.Drawing.Font("黑体", 12.75F);
|
|
this.txtReadLength.Location = new System.Drawing.Point(177, 49);
|
|
this.txtReadLength.Name = "txtReadLength";
|
|
this.txtReadLength.Size = new System.Drawing.Size(45, 27);
|
|
this.txtReadLength.TabIndex = 56;
|
|
this.txtReadLength.Text = "1";
|
|
this.txtReadLength.TextChanged += new System.EventHandler(this.txtReadLength_TextChanged);
|
|
//
|
|
// label1
|
|
//
|
|
this.label1.AutoSize = true;
|
|
this.label1.Font = new System.Drawing.Font("黑体", 10F);
|
|
this.label1.Location = new System.Drawing.Point(162, 29);
|
|
this.label1.Name = "label1";
|
|
this.label1.Size = new System.Drawing.Size(63, 14);
|
|
this.label1.TabIndex = 55;
|
|
this.label1.Text = "接收长度";
|
|
//
|
|
// txtReadAddr
|
|
//
|
|
this.txtReadAddr.Font = new System.Drawing.Font("黑体", 12.75F);
|
|
this.txtReadAddr.Location = new System.Drawing.Point(36, 49);
|
|
this.txtReadAddr.Name = "txtReadAddr";
|
|
this.txtReadAddr.Size = new System.Drawing.Size(97, 27);
|
|
this.txtReadAddr.TabIndex = 53;
|
|
this.txtReadAddr.Text = "D4610";
|
|
this.txtReadAddr.TextChanged += new System.EventHandler(this.txtReadAddr_TextChanged);
|
|
//
|
|
// label3
|
|
//
|
|
this.label3.AutoSize = true;
|
|
this.label3.Font = new System.Drawing.Font("黑体", 10F);
|
|
this.label3.Location = new System.Drawing.Point(293, 29);
|
|
this.label3.Name = "label3";
|
|
this.label3.Size = new System.Drawing.Size(63, 14);
|
|
this.label3.TabIndex = 58;
|
|
this.label3.Text = "接收类型";
|
|
//
|
|
// label2
|
|
//
|
|
this.label2.AutoSize = true;
|
|
this.label2.Font = new System.Drawing.Font("黑体", 10F);
|
|
this.label2.Location = new System.Drawing.Point(11, 29);
|
|
this.label2.Name = "label2";
|
|
this.label2.Size = new System.Drawing.Size(119, 14);
|
|
this.label2.TabIndex = 52;
|
|
this.label2.Text = "批量读取起始地址";
|
|
//
|
|
// cbIsRead
|
|
//
|
|
this.cbIsRead.AutoSize = true;
|
|
this.cbIsRead.Font = new System.Drawing.Font("黑体", 10F);
|
|
this.cbIsRead.Location = new System.Drawing.Point(406, 49);
|
|
this.cbIsRead.Name = "cbIsRead";
|
|
this.cbIsRead.Size = new System.Drawing.Size(54, 18);
|
|
this.cbIsRead.TabIndex = 59;
|
|
this.cbIsRead.Text = "启用";
|
|
this.cbIsRead.UseVisualStyleBackColor = true;
|
|
this.cbIsRead.CheckedChanged += new System.EventHandler(this.cbIsRead_CheckedChanged);
|
|
//
|
|
// cboReadType
|
|
//
|
|
this.cboReadType.Font = new System.Drawing.Font("黑体", 12.75F);
|
|
this.cboReadType.FormattingEnabled = true;
|
|
this.cboReadType.Location = new System.Drawing.Point(283, 51);
|
|
this.cboReadType.Name = "cboReadType";
|
|
this.cboReadType.Size = new System.Drawing.Size(94, 25);
|
|
this.cboReadType.TabIndex = 57;
|
|
this.cboReadType.SelectedIndexChanged += new System.EventHandler(this.cboReadType_SelectedIndexChanged);
|
|
//
|
|
// groupBox1
|
|
//
|
|
this.groupBox1.Controls.Add(this.cboReadType);
|
|
this.groupBox1.Controls.Add(this.cbIsRead);
|
|
this.groupBox1.Controls.Add(this.label2);
|
|
this.groupBox1.Controls.Add(this.label3);
|
|
this.groupBox1.Controls.Add(this.txtReadAddr);
|
|
this.groupBox1.Controls.Add(this.label1);
|
|
this.groupBox1.Controls.Add(this.txtReadLength);
|
|
this.groupBox1.Font = new System.Drawing.Font("黑体", 12.75F);
|
|
this.groupBox1.Location = new System.Drawing.Point(14, 148);
|
|
this.groupBox1.Name = "groupBox1";
|
|
this.groupBox1.Size = new System.Drawing.Size(477, 86);
|
|
this.groupBox1.TabIndex = 60;
|
|
this.groupBox1.TabStop = false;
|
|
this.groupBox1.Text = "批量读取PLC数据";
|
|
//
|
|
// cboTriggerType
|
|
//
|
|
this.cboTriggerType.Font = new System.Drawing.Font("黑体", 12.75F);
|
|
this.cboTriggerType.FormattingEnabled = true;
|
|
this.cboTriggerType.Location = new System.Drawing.Point(373, 19);
|
|
this.cboTriggerType.Name = "cboTriggerType";
|
|
this.cboTriggerType.Size = new System.Drawing.Size(101, 25);
|
|
this.cboTriggerType.TabIndex = 46;
|
|
this.cboTriggerType.SelectedIndexChanged += new System.EventHandler(this.cboTriggerType_SelectedIndexChanged);
|
|
//
|
|
// txtTriggerAddr
|
|
//
|
|
this.txtTriggerAddr.Font = new System.Drawing.Font("黑体", 12.75F);
|
|
this.txtTriggerAddr.Location = new System.Drawing.Point(170, 19);
|
|
this.txtTriggerAddr.Name = "txtTriggerAddr";
|
|
this.txtTriggerAddr.Size = new System.Drawing.Size(97, 27);
|
|
this.txtTriggerAddr.TabIndex = 45;
|
|
this.txtTriggerAddr.Text = "D4610";
|
|
this.txtTriggerAddr.TextChanged += new System.EventHandler(this.txtTriggerAddr_TextChanged);
|
|
//
|
|
// txtTrrigerCommand
|
|
//
|
|
this.txtTrrigerCommand.Font = new System.Drawing.Font("黑体", 12.75F);
|
|
this.txtTrrigerCommand.Location = new System.Drawing.Point(170, 50);
|
|
this.txtTrrigerCommand.Name = "txtTrrigerCommand";
|
|
this.txtTrrigerCommand.Size = new System.Drawing.Size(97, 27);
|
|
this.txtTrrigerCommand.TabIndex = 51;
|
|
this.txtTrrigerCommand.Text = "1";
|
|
this.txtTrrigerCommand.TextChanged += new System.EventHandler(this.txtTrrigerCommand_TextChanged);
|
|
//
|
|
// TriggerUI
|
|
//
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
this.BackColor = System.Drawing.Color.White;
|
|
this.Controls.Add(this.cboTriggerType);
|
|
this.Controls.Add(this.txtTrrigerCommand);
|
|
this.Controls.Add(this.groupBox1);
|
|
this.Controls.Add(this.label8);
|
|
this.Controls.Add(this.cbo_WriteType);
|
|
this.Controls.Add(this.label11);
|
|
this.Controls.Add(this.label10);
|
|
this.Controls.Add(this.txtTriggerAddr);
|
|
this.Controls.Add(this.label5);
|
|
this.Controls.Add(this.txtResultAddr);
|
|
this.Controls.Add(this.label4);
|
|
this.Name = "TriggerUI";
|
|
this.Size = new System.Drawing.Size(513, 244);
|
|
this.Load += new System.EventHandler(this.TriggerUI_Load);
|
|
this.groupBox1.ResumeLayout(false);
|
|
this.groupBox1.PerformLayout();
|
|
this.ResumeLayout(false);
|
|
this.PerformLayout();
|
|
|
|
}
|
|
|
|
#endregion
|
|
|
|
private Label label8;
|
|
|
|
private ComboBox cbo_WriteType;
|
|
|
|
private Label label11;
|
|
|
|
private Label label10;
|
|
|
|
private Label label5;
|
|
|
|
private TextBox txtResultAddr;
|
|
|
|
private Label label4;
|
|
private TextBox txtReadLength;
|
|
private Label label1;
|
|
private TextBox txtReadAddr;
|
|
private Label label3;
|
|
private Label label2;
|
|
private CheckBox cbIsRead;
|
|
private ComboBox cboReadType;
|
|
private GroupBox groupBox1;
|
|
private ComboBox cboTriggerType;
|
|
private TextBox txtTriggerAddr;
|
|
private TextBox txtTrrigerCommand;
|
|
}
|
|
}
|