25112101 添加PLC测堵气缸控制

This commit is contained in:
moxiliang
2025-11-21 14:23:37 +08:00
parent 76648e7eb4
commit ec2d161816
24 changed files with 293 additions and 216 deletions

View File

@@ -46,6 +46,14 @@
this.bt_M1030 = new System.Windows.Forms.Button();
this.bt_M1029 = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.bt_M1048_False = new System.Windows.Forms.Button();
this.bt_M1048_True = new System.Windows.Forms.Button();
this.bt_M1047_False = new System.Windows.Forms.Button();
this.bt_M1047_True = new System.Windows.Forms.Button();
this.bt_M1046_False = new System.Windows.Forms.Button();
this.bt_M1046_True = new System.Windows.Forms.Button();
this.bt_M1045_False = new System.Windows.Forms.Button();
this.bt_M1045_True = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
@@ -98,7 +106,7 @@
// bt_M1025_up
//
this.bt_M1025_up.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1025_up.Location = new System.Drawing.Point(551, 133);
this.bt_M1025_up.Location = new System.Drawing.Point(551, 104);
this.bt_M1025_up.Name = "bt_M1025_up";
this.bt_M1025_up.Size = new System.Drawing.Size(127, 57);
this.bt_M1025_up.TabIndex = 13;
@@ -109,7 +117,7 @@
// bt_M1025_down
//
this.bt_M1025_down.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1025_down.Location = new System.Drawing.Point(403, 133);
this.bt_M1025_down.Location = new System.Drawing.Point(403, 104);
this.bt_M1025_down.Name = "bt_M1025_down";
this.bt_M1025_down.Size = new System.Drawing.Size(127, 57);
this.bt_M1025_down.TabIndex = 12;
@@ -120,7 +128,7 @@
// bt_M1024
//
this.bt_M1024.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1024.Location = new System.Drawing.Point(167, 121);
this.bt_M1024.Location = new System.Drawing.Point(167, 92);
this.bt_M1024.Name = "bt_M1024";
this.bt_M1024.Size = new System.Drawing.Size(127, 57);
this.bt_M1024.TabIndex = 11;
@@ -132,7 +140,7 @@
// bt_M1023
//
this.bt_M1023.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1023.Location = new System.Drawing.Point(17, 121);
this.bt_M1023.Location = new System.Drawing.Point(17, 92);
this.bt_M1023.Name = "bt_M1023";
this.bt_M1023.Size = new System.Drawing.Size(127, 57);
this.bt_M1023.TabIndex = 10;
@@ -144,7 +152,7 @@
// bt_M1028_up
//
this.bt_M1028_up.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1028_up.Location = new System.Drawing.Point(551, 234);
this.bt_M1028_up.Location = new System.Drawing.Point(551, 176);
this.bt_M1028_up.Name = "bt_M1028_up";
this.bt_M1028_up.Size = new System.Drawing.Size(127, 57);
this.bt_M1028_up.TabIndex = 17;
@@ -155,7 +163,7 @@
// bt_M1028_down
//
this.bt_M1028_down.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1028_down.Location = new System.Drawing.Point(403, 234);
this.bt_M1028_down.Location = new System.Drawing.Point(403, 176);
this.bt_M1028_down.Name = "bt_M1028_down";
this.bt_M1028_down.Size = new System.Drawing.Size(127, 57);
this.bt_M1028_down.TabIndex = 16;
@@ -166,7 +174,7 @@
// bt_M1027
//
this.bt_M1027.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1027.Location = new System.Drawing.Point(167, 222);
this.bt_M1027.Location = new System.Drawing.Point(167, 164);
this.bt_M1027.Name = "bt_M1027";
this.bt_M1027.Size = new System.Drawing.Size(127, 57);
this.bt_M1027.TabIndex = 15;
@@ -178,7 +186,7 @@
// bt_M1026
//
this.bt_M1026.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1026.Location = new System.Drawing.Point(17, 222);
this.bt_M1026.Location = new System.Drawing.Point(17, 164);
this.bt_M1026.Name = "bt_M1026";
this.bt_M1026.Size = new System.Drawing.Size(127, 57);
this.bt_M1026.TabIndex = 14;
@@ -190,7 +198,7 @@
// bt_M1031_up
//
this.bt_M1031_up.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1031_up.Location = new System.Drawing.Point(551, 335);
this.bt_M1031_up.Location = new System.Drawing.Point(551, 250);
this.bt_M1031_up.Name = "bt_M1031_up";
this.bt_M1031_up.Size = new System.Drawing.Size(127, 57);
this.bt_M1031_up.TabIndex = 21;
@@ -201,7 +209,7 @@
// bt_M1031_down
//
this.bt_M1031_down.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1031_down.Location = new System.Drawing.Point(403, 335);
this.bt_M1031_down.Location = new System.Drawing.Point(403, 250);
this.bt_M1031_down.Name = "bt_M1031_down";
this.bt_M1031_down.Size = new System.Drawing.Size(127, 57);
this.bt_M1031_down.TabIndex = 20;
@@ -212,7 +220,7 @@
// bt_M1030
//
this.bt_M1030.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1030.Location = new System.Drawing.Point(167, 323);
this.bt_M1030.Location = new System.Drawing.Point(167, 238);
this.bt_M1030.Name = "bt_M1030";
this.bt_M1030.Size = new System.Drawing.Size(127, 57);
this.bt_M1030.TabIndex = 19;
@@ -224,7 +232,7 @@
// bt_M1029
//
this.bt_M1029.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1029.Location = new System.Drawing.Point(17, 323);
this.bt_M1029.Location = new System.Drawing.Point(17, 238);
this.bt_M1029.Name = "bt_M1029";
this.bt_M1029.Size = new System.Drawing.Size(127, 57);
this.bt_M1029.TabIndex = 18;
@@ -246,16 +254,112 @@
this.groupBox1.Controls.Add(this.bt_M1027);
this.groupBox1.Location = new System.Drawing.Point(12, 12);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(313, 394);
this.groupBox1.Size = new System.Drawing.Size(313, 317);
this.groupBox1.TabIndex = 22;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "点动式";
//
// bt_M1048_False
//
this.bt_M1048_False.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1048_False.Location = new System.Drawing.Point(907, 250);
this.bt_M1048_False.Name = "bt_M1048_False";
this.bt_M1048_False.Size = new System.Drawing.Size(147, 57);
this.bt_M1048_False.TabIndex = 38;
this.bt_M1048_False.Text = "CH4 测堵气缸缩回";
this.bt_M1048_False.UseVisualStyleBackColor = true;
this.bt_M1048_False.Click += new System.EventHandler(this.bt_M1048_False_Click);
//
// bt_M1048_True
//
this.bt_M1048_True.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1048_True.Location = new System.Drawing.Point(741, 250);
this.bt_M1048_True.Name = "bt_M1048_True";
this.bt_M1048_True.Size = new System.Drawing.Size(147, 57);
this.bt_M1048_True.TabIndex = 37;
this.bt_M1048_True.Text = "CH4 测堵气缸伸出";
this.bt_M1048_True.UseVisualStyleBackColor = true;
this.bt_M1048_True.Click += new System.EventHandler(this.bt_M1048_True_Click);
//
// bt_M1047_False
//
this.bt_M1047_False.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1047_False.Location = new System.Drawing.Point(907, 176);
this.bt_M1047_False.Name = "bt_M1047_False";
this.bt_M1047_False.Size = new System.Drawing.Size(147, 57);
this.bt_M1047_False.TabIndex = 36;
this.bt_M1047_False.Text = "CH3 测堵气缸缩回";
this.bt_M1047_False.UseVisualStyleBackColor = true;
this.bt_M1047_False.Click += new System.EventHandler(this.bt_M1047_False_Click);
//
// bt_M1047_True
//
this.bt_M1047_True.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1047_True.Location = new System.Drawing.Point(741, 176);
this.bt_M1047_True.Name = "bt_M1047_True";
this.bt_M1047_True.Size = new System.Drawing.Size(147, 57);
this.bt_M1047_True.TabIndex = 35;
this.bt_M1047_True.Text = "CH3 测堵气缸伸出";
this.bt_M1047_True.UseVisualStyleBackColor = true;
this.bt_M1047_True.Click += new System.EventHandler(this.bt_M1047_True_Click);
//
// bt_M1046_False
//
this.bt_M1046_False.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1046_False.Location = new System.Drawing.Point(907, 104);
this.bt_M1046_False.Name = "bt_M1046_False";
this.bt_M1046_False.Size = new System.Drawing.Size(147, 57);
this.bt_M1046_False.TabIndex = 34;
this.bt_M1046_False.Text = "CH2 测堵气缸缩回";
this.bt_M1046_False.UseVisualStyleBackColor = true;
this.bt_M1046_False.Click += new System.EventHandler(this.bt_M1046_False_Click);
//
// bt_M1046_True
//
this.bt_M1046_True.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1046_True.Location = new System.Drawing.Point(741, 104);
this.bt_M1046_True.Name = "bt_M1046_True";
this.bt_M1046_True.Size = new System.Drawing.Size(147, 57);
this.bt_M1046_True.TabIndex = 33;
this.bt_M1046_True.Text = "CH2 测堵气缸伸出";
this.bt_M1046_True.UseVisualStyleBackColor = true;
this.bt_M1046_True.Click += new System.EventHandler(this.bt_M1046_True_Click);
//
// bt_M1045_False
//
this.bt_M1045_False.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1045_False.Location = new System.Drawing.Point(907, 31);
this.bt_M1045_False.Name = "bt_M1045_False";
this.bt_M1045_False.Size = new System.Drawing.Size(147, 57);
this.bt_M1045_False.TabIndex = 32;
this.bt_M1045_False.Text = "CH1 测堵气缸缩回";
this.bt_M1045_False.UseVisualStyleBackColor = true;
this.bt_M1045_False.Click += new System.EventHandler(this.bt_M1045_False_Click);
//
// bt_M1045_True
//
this.bt_M1045_True.Font = new System.Drawing.Font("宋体", 12F);
this.bt_M1045_True.Location = new System.Drawing.Point(741, 31);
this.bt_M1045_True.Name = "bt_M1045_True";
this.bt_M1045_True.Size = new System.Drawing.Size(147, 57);
this.bt_M1045_True.TabIndex = 31;
this.bt_M1045_True.Text = "CH1 测堵气缸伸出";
this.bt_M1045_True.UseVisualStyleBackColor = true;
this.bt_M1045_True.Click += new System.EventHandler(this.bt_M1045_True_Click);
//
// Form_PLCcontrol
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(704, 418);
this.ClientSize = new System.Drawing.Size(1114, 350);
this.Controls.Add(this.bt_M1048_False);
this.Controls.Add(this.bt_M1048_True);
this.Controls.Add(this.bt_M1047_False);
this.Controls.Add(this.bt_M1047_True);
this.Controls.Add(this.bt_M1046_False);
this.Controls.Add(this.bt_M1046_True);
this.Controls.Add(this.bt_M1045_False);
this.Controls.Add(this.bt_M1045_True);
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.bt_M1031_up);
this.Controls.Add(this.bt_M1031_down);
@@ -294,5 +398,13 @@
private System.Windows.Forms.Button bt_M1030;
private System.Windows.Forms.Button bt_M1029;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Button bt_M1048_False;
private System.Windows.Forms.Button bt_M1048_True;
private System.Windows.Forms.Button bt_M1047_False;
private System.Windows.Forms.Button bt_M1047_True;
private System.Windows.Forms.Button bt_M1046_False;
private System.Windows.Forms.Button bt_M1046_True;
private System.Windows.Forms.Button bt_M1045_False;
private System.Windows.Forms.Button bt_M1045_True;
}
}