1、增加放料到治具时,是否打开治具真空吸

develop
lhiven 10 months ago
parent a9af4ddcdf
commit e8c89c2768

@ -996,7 +996,10 @@ namespace Rs.MotionPlat.Flow
//获取需要放料的吸嘴 //获取需要放料的吸嘴
hasProductNozzles = TransitNozzleManager.Instance.GetHasProductNozzles(); hasProductNozzles = TransitNozzleManager.Instance.GetHasProductNozzles();
/*打开测试穴位真空吸*/ /*打开测试穴位真空吸*/
VacManager.TestTrayVacSuction(EVacOperator.Open, false, hasProductNozzles.Select(n => n.NozzleIndex).ToArray()); if(GlobalVar.EnablePlaceToFixtureOpenVac)
{
VacManager.TestTrayVacSuction(EVacOperator.Open, false, hasProductNozzles.Select(n => n.NozzleIndex).ToArray());
}
if (GlobalVar.VirtualAxis) if (GlobalVar.VirtualAxis)
{ {
Thread.Sleep(GlobalVar.VirtualAxisMoveTime); Thread.Sleep(GlobalVar.VirtualAxisMoveTime);
@ -1696,6 +1699,8 @@ namespace Rs.MotionPlat.Flow
{ {
if (AxisArrived.PressZIsInTargetPos(targetPressZ)) if (AxisArrived.PressZIsInTargetPos(targetPressZ))
{ {
QifuManager.Instance.Write(SysConfigParam.GetValue<float>("QifuValue"));
Thread.Sleep(200);
ActionEnd("到治具保压位下方"); ActionEnd("到治具保压位下方");
logInfo = GetClassName() + $"已到测试保压位下方2 PressZ at:{Ops.GetCurPosition(AxisAlias.PressZ)}"; logInfo = GetClassName() + $"已到测试保压位下方2 PressZ at:{Ops.GetCurPosition(AxisAlias.PressZ)}";
MessageQueue.Instance.Insert(logInfo); MessageQueue.Instance.Insert(logInfo);
@ -1741,6 +1746,8 @@ namespace Rs.MotionPlat.Flow
//if(MachineManage.Instance.tes) //if(MachineManage.Instance.tes)
if (MachineManage.Instance.TestStatus == ETestStatus.Finished && TransitModuleSafePosFlow.Instance.Finished()) if (MachineManage.Instance.TestStatus == ETestStatus.Finished && TransitModuleSafePosFlow.Instance.Finished())
{ {
QifuManager.Instance.Write((float)GlobalVar.ClosedQifuValue);
Thread.Sleep(200);
hasUnloadFlag = true; hasUnloadFlag = true;
//测试完成后,重新打开真空吸 //测试完成后,重新打开真空吸
List<TestTraySlot> tested = TestTrayManager.Instance.GetSlots(ETestTraySlotStatus.Have); List<TestTraySlot> tested = TestTrayManager.Instance.GetSlots(ETestTraySlotStatus.Have);

@ -120,6 +120,7 @@
this.button68 = new System.Windows.Forms.Button(); this.button68 = new System.Windows.Forms.Button();
this.panelEx1 = new Rs.Controls.PanelEx(); this.panelEx1 = new Rs.Controls.PanelEx();
this.groupBox1 = new System.Windows.Forms.GroupBox(); this.groupBox1 = new System.Windows.Forms.GroupBox();
this.txtPressSafeZ = new System.Windows.Forms.TextBox();
this.cboxSocketTrayPressEnableTwoSpeed = new System.Windows.Forms.CheckBox(); this.cboxSocketTrayPressEnableTwoSpeed = new System.Windows.Forms.CheckBox();
this.tbarSocketTrayPressOneSpeed = new System.Windows.Forms.TrackBar(); this.tbarSocketTrayPressOneSpeed = new System.Windows.Forms.TrackBar();
this.lblSocketTrayPressOneSpeed = new System.Windows.Forms.Label(); this.lblSocketTrayPressOneSpeed = new System.Windows.Forms.Label();
@ -128,6 +129,7 @@
this.label4 = new System.Windows.Forms.Label(); this.label4 = new System.Windows.Forms.Label();
this.btnMovePressSafeZ = new System.Windows.Forms.Button(); this.btnMovePressSafeZ = new System.Windows.Forms.Button();
this.txtSocketTrayPressOneSpeedOffsetHeight = new System.Windows.Forms.TextBox(); this.txtSocketTrayPressOneSpeedOffsetHeight = new System.Windows.Forms.TextBox();
this.txtPressZ = new System.Windows.Forms.TextBox();
this.txtPressY = new System.Windows.Forms.TextBox(); this.txtPressY = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label(); this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label(); this.label2 = new System.Windows.Forms.Label();
@ -137,8 +139,7 @@
this.btnMovePressY = new System.Windows.Forms.Button(); this.btnMovePressY = new System.Windows.Forms.Button();
this.btnTeachPressY = new System.Windows.Forms.Button(); this.btnTeachPressY = new System.Windows.Forms.Button();
this.timer1 = new System.Windows.Forms.Timer(this.components); this.timer1 = new System.Windows.Forms.Timer(this.components);
this.txtPressZ = new System.Windows.Forms.TextBox(); this.cboxEnablePlaceToFixtureOpenVac = new System.Windows.Forms.CheckBox();
this.txtPressSafeZ = new System.Windows.Forms.TextBox();
this.panelEx2.SuspendLayout(); this.panelEx2.SuspendLayout();
this.panelEx3.SuspendLayout(); this.panelEx3.SuspendLayout();
this.groupBox13.SuspendLayout(); this.groupBox13.SuspendLayout();
@ -1035,6 +1036,7 @@
// //
// groupBox1 // groupBox1
// //
this.groupBox1.Controls.Add(this.cboxEnablePlaceToFixtureOpenVac);
this.groupBox1.Controls.Add(this.txtPressSafeZ); this.groupBox1.Controls.Add(this.txtPressSafeZ);
this.groupBox1.Controls.Add(this.cboxSocketTrayPressEnableTwoSpeed); this.groupBox1.Controls.Add(this.cboxSocketTrayPressEnableTwoSpeed);
this.groupBox1.Controls.Add(this.tbarSocketTrayPressOneSpeed); this.groupBox1.Controls.Add(this.tbarSocketTrayPressOneSpeed);
@ -1058,6 +1060,15 @@
this.groupBox1.Name = "groupBox1"; this.groupBox1.Name = "groupBox1";
this.groupBox1.TabStop = false; this.groupBox1.TabStop = false;
// //
// txtPressSafeZ
//
this.txtPressSafeZ.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(16)))), ((int)(((byte)(16)))), ((int)(((byte)(16)))));
this.txtPressSafeZ.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtPressSafeZ.ForeColor = System.Drawing.Color.White;
resources.ApplyResources(this.txtPressSafeZ, "txtPressSafeZ");
this.txtPressSafeZ.Name = "txtPressSafeZ";
this.txtPressSafeZ.Tag = "PressZ";
//
// cboxSocketTrayPressEnableTwoSpeed // cboxSocketTrayPressEnableTwoSpeed
// //
resources.ApplyResources(this.cboxSocketTrayPressEnableTwoSpeed, "cboxSocketTrayPressEnableTwoSpeed"); resources.ApplyResources(this.cboxSocketTrayPressEnableTwoSpeed, "cboxSocketTrayPressEnableTwoSpeed");
@ -1117,6 +1128,17 @@
this.txtSocketTrayPressOneSpeedOffsetHeight.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txtSysParam_KeyUp); this.txtSocketTrayPressOneSpeedOffsetHeight.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txtSysParam_KeyUp);
this.txtSocketTrayPressOneSpeedOffsetHeight.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.Stop_Click); this.txtSocketTrayPressOneSpeedOffsetHeight.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.Stop_Click);
// //
// txtPressZ
//
this.txtPressZ.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(16)))), ((int)(((byte)(16)))), ((int)(((byte)(16)))));
this.txtPressZ.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
resources.ApplyResources(this.txtPressZ, "txtPressZ");
this.txtPressZ.ForeColor = System.Drawing.Color.White;
this.txtPressZ.Name = "txtPressZ";
this.txtPressZ.Tag = "PressZ";
this.txtPressZ.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txtSysParam_KeyUp);
this.txtPressZ.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.Stop_Click);
//
// txtPressY // txtPressY
// //
this.txtPressY.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(16)))), ((int)(((byte)(16)))), ((int)(((byte)(16))))); this.txtPressY.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(16)))), ((int)(((byte)(16)))), ((int)(((byte)(16)))));
@ -1198,25 +1220,12 @@
this.timer1.Interval = 500; this.timer1.Interval = 500;
this.timer1.Tick += new System.EventHandler(this.timer1_Tick); this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
// //
// txtPressZ // cboxEnablePlaceToFixtureOpenVac
// //
this.txtPressZ.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(16)))), ((int)(((byte)(16)))), ((int)(((byte)(16))))); resources.ApplyResources(this.cboxEnablePlaceToFixtureOpenVac, "cboxEnablePlaceToFixtureOpenVac");
this.txtPressZ.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; this.cboxEnablePlaceToFixtureOpenVac.Name = "cboxEnablePlaceToFixtureOpenVac";
resources.ApplyResources(this.txtPressZ, "txtPressZ"); this.cboxEnablePlaceToFixtureOpenVac.UseVisualStyleBackColor = true;
this.txtPressZ.ForeColor = System.Drawing.Color.White; this.cboxEnablePlaceToFixtureOpenVac.CheckedChanged += new System.EventHandler(this.cbox_CheckedChanged);
this.txtPressZ.Name = "txtPressZ";
this.txtPressZ.Tag = "PressZ";
this.txtPressZ.KeyUp += new System.Windows.Forms.KeyEventHandler(this.txtSysParam_KeyUp);
this.txtPressZ.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.Stop_Click);
//
// txtPressSafeZ
//
this.txtPressSafeZ.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(16)))), ((int)(((byte)(16)))), ((int)(((byte)(16)))));
this.txtPressSafeZ.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
this.txtPressSafeZ.ForeColor = System.Drawing.Color.White;
resources.ApplyResources(this.txtPressSafeZ, "txtPressSafeZ");
this.txtPressSafeZ.Name = "txtPressSafeZ";
this.txtPressSafeZ.Tag = "PressZ";
// //
// PressConfig // PressConfig
// //
@ -1354,5 +1363,6 @@
private System.Windows.Forms.Button button68; private System.Windows.Forms.Button button68;
private System.Windows.Forms.TextBox txtPressZ; private System.Windows.Forms.TextBox txtPressZ;
private System.Windows.Forms.TextBox txtPressSafeZ; private System.Windows.Forms.TextBox txtPressSafeZ;
private System.Windows.Forms.CheckBox cboxEnablePlaceToFixtureOpenVac;
} }
} }

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save