优化周转盘先点击示教再生成点位时点位错误的问题。

develop
lhiven 2 days ago
parent ade1d5ee5e
commit f0e39146e4

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

@ -184,6 +184,7 @@ namespace Rs.MotionPlat.Recipe
{
if(NormalTrayLogic.Update(txt.Name.Replace("txt", ""),pos,GlobalVar.CurRecipe,m_trayName)>0)
{
BindPoints();
Msg.ShowInfo("teach point ok!");
}
}

@ -64,6 +64,7 @@ namespace Rs.MotionPlat.Recipe
private void BindPoints()
{
dt = BindTrayInfo();
DataTable dtRunPoints = TrayPointsLogic.GetData(GlobalVar.CurRecipe, trayName);
if (ObjectHelper.IsNotNullorEmpty(dtRunPoints))
{
@ -89,7 +90,7 @@ namespace Rs.MotionPlat.Recipe
{
LanguageHelper.LoadLanguage(this, this.GetType());
dgvSlotOffset.AutoGenerateColumns = false;
dt= NormalTrayLogic.GetData(GlobalVar.CurRecipe,trayName);
dt = BindTrayInfo();
if(ObjectHelper.IsNotNullorEmpty(dt))
{
DataRow dr = dt.Rows[0];
@ -159,14 +160,18 @@ namespace Rs.MotionPlat.Recipe
{
if(NormalTrayLogic.Update(txt.Name.Replace("txtTurnoverTray", ""),pos,GlobalVar.CurRecipe,trayName)>0)
{
string querySql = "select * from NormalTray where trayname='Turnover'";
dt = db.GetDataTable(querySql);
Msg.ShowInfo("teach point ok!");
}
}
}
}
DataTable BindTrayInfo()
{
return NormalTrayLogic.GetData(GlobalVar.CurRecipe, trayName);
}
private void btnMove_Click(object sender, EventArgs e)
{
Button btnTeach = (Button)sender;

Loading…
Cancel
Save