Beispiel #1
0
        /// <summary>
        /// laser 功率矫正初始化
        /// </summary>
        /// <returns></returns>
        public bool Load_Watt_Percent_Relate()
        {
            string File_Name = "Correct_File/Laser_Watt_Percent_Relate.csv";
            string File_Path = @"./\Config/" + File_Name;

            if (File.Exists(File_Path))
            {
                //获取矫正数据
                if (CSV_RW.DataTable_Double_Fit_Data(CSV_RW.OpenCSV(File_Path)).Count >= 1)
                {
                    Laser_Watt_Percent_Relate = new Double_Fit_Data(CSV_RW.DataTable_Double_Fit_Data(CSV_RW.OpenCSV(File_Path))[0]);
                    Log.Info("Laser_Watt_Percent_Relate 矫正文件加载成功!!!");
                    return(true);
                }
                else
                {
                    return(false);
                }
            }
            else
            {
                Log.Info("Laser_Watt_Percent_Relate 矫正文件不存在!!!,禁止加工,请检查!");
                return(false);
            }
        }
Beispiel #2
0
        /// <summary>
        /// 加载刀具参数
        /// </summary>
        public bool Load_Scissor_Para()
        {
            string File_Path = @"./\Config/" + "Scissor_Parameter/ScissorList.csv";

            if (File.Exists(File_Path))
            {
                ScissorList = Common_Collect.DtToList <Tech_Parameter> .ConvertToModel(CSV_RW.OpenCSV(File_Path));//刀具参数 读取

                return(true);
            }
            else
            {
                return(false);
            }
        }