增加治具夹头老化测试功能

Eight
lhiven 2 months ago
parent a740f868ff
commit 862f47007c

@ -31,6 +31,6 @@ using System.Runtime.InteropServices;
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
[assembly: AssemblyVersion("20.25.19.1")]
[assembly: AssemblyVersion("20.25.20.1")]
//[assembly: AssemblyVersion("1.0.0.0")]
//[assembly: AssemblyFileVersion("1.0.0.0")]

@ -150,6 +150,12 @@
this.button5 = new System.Windows.Forms.Button();
this.button3 = new System.Windows.Forms.Button();
this.button1 = new System.Windows.Forms.Button();
this.groupBox3 = new System.Windows.Forms.GroupBox();
this.txtIntervalTime = new System.Windows.Forms.TextBox();
this.label4 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.btnEnd = new System.Windows.Forms.Button();
this.btnStart = new System.Windows.Forms.Button();
this.panel2.SuspendLayout();
this.groupBox22.SuspendLayout();
this.groupBox27.SuspendLayout();
@ -164,6 +170,7 @@
this.groupBox15.SuspendLayout();
this.panel1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
this.SuspendLayout();
//
// panel2
@ -1410,10 +1417,62 @@
this.button1.UseVisualStyleBackColor = false;
this.button1.Click += new System.EventHandler(this.btnTake_Click);
//
// groupBox3
//
this.groupBox3.Controls.Add(this.txtIntervalTime);
this.groupBox3.Controls.Add(this.label4);
this.groupBox3.Controls.Add(this.label3);
this.groupBox3.Controls.Add(this.btnEnd);
this.groupBox3.Controls.Add(this.btnStart);
resources.ApplyResources(this.groupBox3, "groupBox3");
this.groupBox3.ForeColor = System.Drawing.Color.White;
this.groupBox3.Name = "groupBox3";
this.groupBox3.TabStop = false;
//
// txtIntervalTime
//
resources.ApplyResources(this.txtIntervalTime, "txtIntervalTime");
this.txtIntervalTime.Name = "txtIntervalTime";
//
// label4
//
resources.ApplyResources(this.label4, "label4");
this.label4.Name = "label4";
//
// label3
//
resources.ApplyResources(this.label3, "label3");
this.label3.Name = "label3";
//
// btnEnd
//
this.btnEnd.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56)))));
this.btnEnd.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnEnd.FlatAppearance.BorderColor = System.Drawing.Color.White;
resources.ApplyResources(this.btnEnd, "btnEnd");
this.btnEnd.ForeColor = System.Drawing.Color.White;
this.btnEnd.Name = "btnEnd";
this.btnEnd.Tag = "6";
this.btnEnd.UseVisualStyleBackColor = false;
this.btnEnd.Click += new System.EventHandler(this.btnEnd_Click);
//
// btnStart
//
this.btnStart.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(56)))), ((int)(((byte)(56)))), ((int)(((byte)(56)))));
this.btnStart.Cursor = System.Windows.Forms.Cursors.Hand;
this.btnStart.FlatAppearance.BorderColor = System.Drawing.Color.White;
resources.ApplyResources(this.btnStart, "btnStart");
this.btnStart.ForeColor = System.Drawing.Color.White;
this.btnStart.Name = "btnStart";
this.btnStart.Tag = "6";
this.btnStart.UseVisualStyleBackColor = false;
this.btnStart.Click += new System.EventHandler(this.btnStart_Click);
//
// FixtureConfig
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.groupBox3);
this.Controls.Add(this.panel1);
this.Controls.Add(this.panel3);
this.Controls.Add(this.panel2);
@ -1441,6 +1500,8 @@
this.panel1.ResumeLayout(false);
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox3.ResumeLayout(false);
this.groupBox3.PerformLayout();
this.ResumeLayout(false);
}
@ -1567,5 +1628,11 @@
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.TextBox txtFixtureTakePicDelaytime;
private System.Windows.Forms.GroupBox groupBox3;
private System.Windows.Forms.TextBox txtIntervalTime;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label4;
private System.Windows.Forms.Button btnStart;
private System.Windows.Forms.Button btnEnd;
}
}

@ -11,6 +11,7 @@ using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using static System.Windows.Forms.VisualStyles.VisualStyleElement.Button;
@ -217,5 +218,37 @@ namespace Rs.MotionPlat.SysConfig
DischargeModuleGoSafePosFlow.Instance.GoSafePostion();
});
}
static bool stop = false;
private void btnStart_Click(object sender, EventArgs e)
{
stop = false;
if(int.TryParse(txtIntervalTime.Text, out int interval))
{
Task.Run(() => {
while (true)
{
if (stop)
break;
for (int i = 1; i <= 6; i++)
{
Ops.On($"治具夹{i}");
}
Thread.Sleep(interval);
for (int i = 1; i <= 6; i++)
{
Ops.Off($"治具夹{i}");
}
Thread.Sleep(interval);
}
});
}
}
private void btnEnd_Click(object sender, EventArgs e)
{
stop = true;
}
}
}

@ -2494,7 +2494,7 @@
<value>$this</value>
</data>
<data name="&gt;&gt;panel2.ZOrder" xml:space="preserve">
<value>2</value>
<value>3</value>
</data>
<data name="txtColletOpenDelaytime.Font" type="System.Drawing.Font, System.Drawing">
<value>宋体, 9pt</value>
@ -3112,7 +3112,7 @@
<value>$this</value>
</data>
<data name="&gt;&gt;panel3.ZOrder" xml:space="preserve">
<value>1</value>
<value>2</value>
</data>
<metadata name="timer1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
@ -3670,6 +3670,180 @@
<value>$this</value>
</data>
<data name="&gt;&gt;panel1.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="txtIntervalTime.Location" type="System.Drawing.Point, System.Drawing">
<value>113, 51</value>
</data>
<data name="txtIntervalTime.Size" type="System.Drawing.Size, System.Drawing">
<value>97, 21</value>
</data>
<data name="txtIntervalTime.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="txtIntervalTime.Text" xml:space="preserve">
<value>50</value>
</data>
<data name="&gt;&gt;txtIntervalTime.Name" xml:space="preserve">
<value>txtIntervalTime</value>
</data>
<data name="&gt;&gt;txtIntervalTime.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;txtIntervalTime.Parent" xml:space="preserve">
<value>groupBox3</value>
</data>
<data name="&gt;&gt;txtIntervalTime.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="label4.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label4.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="label4.Location" type="System.Drawing.Point, System.Drawing">
<value>216, 54</value>
</data>
<data name="label4.Size" type="System.Drawing.Size, System.Drawing">
<value>17, 12</value>
</data>
<data name="label4.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="label4.Text" xml:space="preserve">
<value>ms</value>
</data>
<data name="&gt;&gt;label4.Name" xml:space="preserve">
<value>label4</value>
</data>
<data name="&gt;&gt;label4.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label4.Parent" xml:space="preserve">
<value>groupBox3</value>
</data>
<data name="&gt;&gt;label4.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="label3.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label3.Location" type="System.Drawing.Point, System.Drawing">
<value>24, 54</value>
</data>
<data name="label3.Size" type="System.Drawing.Size, System.Drawing">
<value>83, 12</value>
</data>
<data name="label3.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="label3.Text" xml:space="preserve">
<value>IntervalTime:</value>
</data>
<data name="&gt;&gt;label3.Name" xml:space="preserve">
<value>label3</value>
</data>
<data name="&gt;&gt;label3.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label3.Parent" xml:space="preserve">
<value>groupBox3</value>
</data>
<data name="&gt;&gt;label3.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="btnEnd.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="btnEnd.Font" type="System.Drawing.Font, System.Drawing">
<value>宋体, 10pt</value>
</data>
<data name="btnEnd.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="btnEnd.Location" type="System.Drawing.Point, System.Drawing">
<value>202, 106</value>
</data>
<data name="btnEnd.Size" type="System.Drawing.Size, System.Drawing">
<value>104, 38</value>
</data>
<data name="btnEnd.TabIndex" type="System.Int32, mscorlib">
<value>46</value>
</data>
<data name="btnEnd.Text" xml:space="preserve">
<value>End</value>
</data>
<data name="&gt;&gt;btnEnd.Name" xml:space="preserve">
<value>btnEnd</value>
</data>
<data name="&gt;&gt;btnEnd.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;btnEnd.Parent" xml:space="preserve">
<value>groupBox3</value>
</data>
<data name="&gt;&gt;btnEnd.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="btnStart.FlatStyle" type="System.Windows.Forms.FlatStyle, System.Windows.Forms">
<value>Flat</value>
</data>
<data name="btnStart.Font" type="System.Drawing.Font, System.Drawing">
<value>宋体, 10pt</value>
</data>
<data name="btnStart.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="btnStart.Location" type="System.Drawing.Point, System.Drawing">
<value>26, 102</value>
</data>
<data name="btnStart.Size" type="System.Drawing.Size, System.Drawing">
<value>104, 38</value>
</data>
<data name="btnStart.TabIndex" type="System.Int32, mscorlib">
<value>46</value>
</data>
<data name="btnStart.Text" xml:space="preserve">
<value>Start</value>
</data>
<data name="&gt;&gt;btnStart.Name" xml:space="preserve">
<value>btnStart</value>
</data>
<data name="&gt;&gt;btnStart.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;btnStart.Parent" xml:space="preserve">
<value>groupBox3</value>
</data>
<data name="&gt;&gt;btnStart.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="groupBox3.Dock" type="System.Windows.Forms.DockStyle, System.Windows.Forms">
<value>Left</value>
</data>
<data name="groupBox3.Location" type="System.Drawing.Point, System.Drawing">
<value>1242, 0</value>
</data>
<data name="groupBox3.Size" type="System.Drawing.Size, System.Drawing">
<value>358, 865</value>
</data>
<data name="groupBox3.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="groupBox3.Text" xml:space="preserve">
<value>Aging test</value>
</data>
<data name="&gt;&gt;groupBox3.Name" xml:space="preserve">
<value>groupBox3</value>
</data>
<data name="&gt;&gt;groupBox3.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;groupBox3.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;groupBox3.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
@ -3694,6 +3868,6 @@
<value>FixtureConfig</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>Rs.MotionPlat.BaseForm, Rs.MotionPlat, Version=1.20.25.9, Culture=neutral, PublicKeyToken=null</value>
<value>Rs.MotionPlat.BaseForm, Rs.MotionPlat, Version=20.25.20.1, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>
Loading…
Cancel
Save