增加在OK盘盒盖前报警检查是否产品放歪

master
lhiven 11 months ago
parent 726bba1296
commit 0473700627

@ -17,6 +17,17 @@ namespace Rs.Framework
{ {
#region newpro #region newpro
/// <summary>
/// 允许Ok tray 满料检查
/// </summary>
[ParameterInit("bool", "true", "system", "允许Ok tray 满料检查")]
public static bool EnableOkTrayCheckFull
{
get
{
return SysConfigParam.GetValue<bool>(nameof(EnableOkTrayCheckFull));
}
}
/// <summary> /// <summary>
/// 治具侧安全位X /// 治具侧安全位X

@ -393,6 +393,10 @@ namespace Rs.MotionPlat.Flow
case ETakeTrayFlowStep.: case ETakeTrayFlowStep.:
//if (DischargeFlow.Instance.XYCanGoLocalArea()) //if (DischargeFlow.Instance.XYCanGoLocalArea())
{ {
if(toTray== ETrayType.Ok && GlobalVar.EnableOkTrayCheckFull)
{
Msgbox.ShowTipDialog(EButtonType.Ok, "please check product in tray has placed ok?", "Tip", true);
}
if(toTray== ETrayType.Ok) if(toTray== ETrayType.Ok)
{ {
targetPosition.TakeTrayX = GlobalVar.OkStockGrabPos + GlobalVar.ClampCenter2CameraCenterDist; targetPosition.TakeTrayX = GlobalVar.OkStockGrabPos + GlobalVar.ClampCenter2CameraCenterDist;

@ -170,6 +170,8 @@
this.btnTeachStockZ1FirstTray = new System.Windows.Forms.Button(); this.btnTeachStockZ1FirstTray = new System.Windows.Forms.Button();
this.btnMoveStockZ1OutStock = new System.Windows.Forms.Button(); this.btnMoveStockZ1OutStock = new System.Windows.Forms.Button();
this.btnTeachStockZ1OutStock = new System.Windows.Forms.Button(); this.btnTeachStockZ1OutStock = new System.Windows.Forms.Button();
this.groupBox28 = new System.Windows.Forms.GroupBox();
this.cboxEnableOkTrayCheckFull = new System.Windows.Forms.CheckBox();
this.panelEx2.SuspendLayout(); this.panelEx2.SuspendLayout();
this.panel1.SuspendLayout(); this.panel1.SuspendLayout();
this.groupBox23.SuspendLayout(); this.groupBox23.SuspendLayout();
@ -203,6 +205,7 @@
this.groupBox3.SuspendLayout(); this.groupBox3.SuspendLayout();
this.groupBox2.SuspendLayout(); this.groupBox2.SuspendLayout();
this.groupBox1.SuspendLayout(); this.groupBox1.SuspendLayout();
this.groupBox28.SuspendLayout();
this.SuspendLayout(); this.SuspendLayout();
// //
// timer1 // timer1
@ -1275,6 +1278,7 @@
// //
// panelEx3 // panelEx3
// //
this.panelEx3.Controls.Add(this.groupBox28);
this.panelEx3.Controls.Add(this.groupBox8); this.panelEx3.Controls.Add(this.groupBox8);
this.panelEx3.Controls.Add(this.groupBox3); this.panelEx3.Controls.Add(this.groupBox3);
this.panelEx3.Controls.Add(this.groupBox2); this.panelEx3.Controls.Add(this.groupBox2);
@ -1585,6 +1589,20 @@
this.btnTeachStockZ1OutStock.UseVisualStyleBackColor = false; this.btnTeachStockZ1OutStock.UseVisualStyleBackColor = false;
this.btnTeachStockZ1OutStock.Click += new System.EventHandler(this.Teach_Click); this.btnTeachStockZ1OutStock.Click += new System.EventHandler(this.Teach_Click);
// //
// groupBox28
//
this.groupBox28.Controls.Add(this.cboxEnableOkTrayCheckFull);
resources.ApplyResources(this.groupBox28, "groupBox28");
this.groupBox28.ForeColor = System.Drawing.Color.White;
this.groupBox28.Name = "groupBox28";
this.groupBox28.TabStop = false;
//
// cboxEnableOkTrayCheckFull
//
resources.ApplyResources(this.cboxEnableOkTrayCheckFull, "cboxEnableOkTrayCheckFull");
this.cboxEnableOkTrayCheckFull.Name = "cboxEnableOkTrayCheckFull";
this.cboxEnableOkTrayCheckFull.UseVisualStyleBackColor = true;
//
// StockConfig // StockConfig
// //
resources.ApplyResources(this, "$this"); resources.ApplyResources(this, "$this");
@ -1631,6 +1649,8 @@
this.groupBox2.PerformLayout(); this.groupBox2.PerformLayout();
this.groupBox1.ResumeLayout(false); this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout(); this.groupBox1.PerformLayout();
this.groupBox28.ResumeLayout(false);
this.groupBox28.PerformLayout();
this.ResumeLayout(false); this.ResumeLayout(false);
} }
@ -1777,5 +1797,7 @@
private System.Windows.Forms.Button btnInStock1; private System.Windows.Forms.Button btnInStock1;
private System.Windows.Forms.Button btnOutStock1; private System.Windows.Forms.Button btnOutStock1;
private System.Windows.Forms.Button btnPrepareTray1; private System.Windows.Forms.Button btnPrepareTray1;
private System.Windows.Forms.GroupBox groupBox28;
private System.Windows.Forms.CheckBox cboxEnableOkTrayCheckFull;
} }
} }

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