diff --git a/DAL/VisualDAL.cs b/DAL/VisualDAL.cs index 561a27d..c906b1a 100644 --- a/DAL/VisualDAL.cs +++ b/DAL/VisualDAL.cs @@ -272,15 +272,16 @@ namespace DAL { if (model.ID > 0) { - string sqlstr = "update V_RectangleModel set Point_Row1=@Point_Row1,Point_Column1=@Point_Column1,Point_Row2=@Point_Row2,Point_Column2=@Point_Column2,PassagewayBrightness1=@PassagewayBrightness1,PassagewayBrightness2=@PassagewayBrightness2,PassagewayBrightness3=@PassagewayBrightness3,PassagewayBrightness4=@PassagewayBrightness4 where ID=@ID"; + //string sqlstr = "update V_RectangleModel set Point_Row1=@Point_Row1,Point_Column1=@Point_Column1,Point_Row2=@Point_Row2,Point_Column2=@Point_Column2,PassagewayBrightness1=@PassagewayBrightness1,PassagewayBrightness2=@PassagewayBrightness2,PassagewayBrightness3=@PassagewayBrightness3,PassagewayBrightness4=@PassagewayBrightness4 where ID=@ID"; + string sqlstr = "update V_RectangleModel set Point_Row1=@Point_Row1,Point_Column1=@Point_Column1,Point_Row2=@Point_Row2,Point_Column2=@Point_Column2 where ID=@ID"; return AccHelpers.ExecuteNonQuery(sqlstr, new OleDbParameter("@Point_Row1", model.Point_Row1), new OleDbParameter("@Point_Column1", model.Point_Column1), new OleDbParameter("@Point_Row2", model.Point_Row2), new OleDbParameter("@Point_Column2", model.Point_Column2), - new OleDbParameter("@PassagewayBrightness1", model.PassagewayBrightness1), - new OleDbParameter("@PassagewayBrightness2", model.PassagewayBrightness2), - new OleDbParameter("@PassagewayBrightness3", model.PassagewayBrightness3), - new OleDbParameter("@PassagewayBrightness4", model.PassagewayBrightness4), + //new OleDbParameter("@PassagewayBrightness1", model.PassagewayBrightness1), + //new OleDbParameter("@PassagewayBrightness2", model.PassagewayBrightness2), + //new OleDbParameter("@PassagewayBrightness3", model.PassagewayBrightness3), + //new OleDbParameter("@PassagewayBrightness4", model.PassagewayBrightness4), new OleDbParameter("@ID", model.ID)); diff --git a/ViewModel/MainWindowVM.cs b/ViewModel/MainWindowVM.cs index a390b02..64693b2 100644 --- a/ViewModel/MainWindowVM.cs +++ b/ViewModel/MainWindowVM.cs @@ -1607,7 +1607,7 @@ namespace ViewModel //} if (AnQuanDoor) { - for (int i = 8; i <= 11; i++) + for (int i = 8; i <= 9; i++) { if (!InputList[i].LightUp) { @@ -2062,10 +2062,20 @@ namespace ViewModel { FrontStationSend.Safe = false; RobotSafe = false; - //获取取料点 - TempPoint = Coper(Robot.RobotPointList.Where(w => w.PointType == 3).FirstOrDefault()); - MyFlow.RunStep++; - MyFlow.RunTime = DateTime.Now; + if (FrontStationReceive.OutProducrNumber==1) + { + //获取取料点 + TempPoint = Coper(Robot.RobotPointList.Where(w => w.PointType == 3).FirstOrDefault()); + MyFlow.RunStep++; + MyFlow.RunTime = DateTime.Now; + } + else if (FrontStationReceive.OutProducrNumber == 2) + { + //获取取料点 + TempPoint = Coper(Robot.RobotPointList.Where(w => w.PointType == 16).FirstOrDefault()); + MyFlow.RunStep++; + MyFlow.RunTime = DateTime.Now; + } } //测试盒有待取料,清料 else if (TestBenchBox.Where(w => w.State.StatusBackground == ColorStr.Green || w.State.StatusBackground == ColorStr.Red).Count() > 0) @@ -3509,27 +3519,27 @@ namespace ViewModel /// public void CheckXizui() { - //if (RunStatu == RunStatuEnum.Normal) - //{ - // if (XizuiLabelPaperList != null) - // { - // foreach (var item in XizuiLabelPaperList) - // { - // //运行中,产品掉落,报警提示 - // if (item.State.StatusBackground != ColorStr.White && item.State.StatusBackground != ColorStr.Red && item.VacuumSwitch.Switchs && !item.VacuumCheck.LightUp) - // { - // if (item.CheckVacuumTime.AddMilliseconds(1000) <= DateTime.Now) - // { - // ExcepStop("吸嘴" + item.Number + "产品掉落,请检查"); - // } - // } - // else - // { - // item.CheckVacuumTime = DateTime.Now; - // } - // } - // } - //} + if (RunStatu == RunStatuEnum.Normal) + { + if (XizuiLabelPaperList != null) + { + foreach (var item in XizuiLabelPaperList) + { + //运行中,产品掉落,报警提示 + if (item.State.StatusBackground != ColorStr.White && item.State.StatusBackground != ColorStr.Red && item.VacuumSwitch.Switchs && !item.VacuumCheck.LightUp) + { + if (item.CheckVacuumTime.AddMilliseconds(1000) <= DateTime.Now) + { + ExcepStop("吸嘴" + item.Number + "产品掉落,请检查"); + } + } + else + { + item.CheckVacuumTime = DateTime.Now; + } + } + } + } } #endregion diff --git a/ViewModel/Vision/HalconVisual.cs b/ViewModel/Vision/HalconVisual.cs index 4e684f1..b3fb15d 100644 --- a/ViewModel/Vision/HalconVisual.cs +++ b/ViewModel/Vision/HalconVisual.cs @@ -1634,8 +1634,11 @@ namespace ViewModel.Vision //if (SaveAll(RM) && RM.MyROI.SaveFeatureModel() && RM.MyROI.Save_roi_Region()) if (SaveAll(RM) && RM.MyROI.SaveFeatureModel()) { + string filePath = @"Image/" + RM.MyROI.HelpFileName + ".bmp"; //模板图片路径 HOperatorSet.WriteImage(Ho_Image, "bmp", 0, filePath); //保存模板图片 + + } else { diff --git a/gitserver.bat b/gitserver.bat index 05e2347..3883d28 100644 --- a/gitserver.bat +++ b/gitserver.bat @@ -1,5 +1,3 @@ Set PATH=%PATH%;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw64\bin\;C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\Git\mingw64\bin -git config --global --add safe.directory E:/PCGIT/.git -git config --global --add safe.directory F:/PCGIT/.git -git config --global --add safe.directory //192.168.20.10/temp/PCGIT/.git +git config --global --add safe.directory * cmd \ No newline at end of file