Browse Source

Measure.CS 20200911

@wang_qi0307 5 years ago
parent
commit
d36253a833
1 changed files with 20 additions and 4 deletions
  1. 20 4
      MeasureThread/Measure.cs

+ 20 - 4
MeasureThread/Measure.cs

@@ -29,26 +29,34 @@ namespace MeasureThread
 
 
     public class ThreadStatusEventArgs
     public class ThreadStatusEventArgs
     {
     {
+        //状态
         public string State
         public string State
         {
         {
             get { return m_state; }
             get { return m_state; }
             set { m_state = value; }
             set { m_state = value; }
         }
         }
         private string m_state;
         private string m_state;
-
+        //时间
         public DateTime Time
         public DateTime Time
         {
         {
             get { return m_time; }
             get { return m_time; }
             set { m_time = value; }
             set { m_time = value; }
         }
         }
         private DateTime m_time;
         private DateTime m_time;
-
+        //步骤代码
         public String Step_Code
         public String Step_Code
         {
         {
             get { return step_Code; }
             get { return step_Code; }
             set { step_Code = value; }
             set { step_Code = value; }
         }
         }
         private String step_Code;
         private String step_Code;
+        //其他消息
+        public String Message
+        {
+            get { return this.message; }
+            set { this.message = value; }
+        }
+        private String message;
 
 
         //图片信息
         //图片信息
         public class PictureInformation
         public class PictureInformation
@@ -457,14 +465,22 @@ namespace MeasureThread
             {
             {
                 //拍照
                 //拍照
                 case "1-3":
                 case "1-3":
+                case "1-9":
                     //电压、放大倍数、工作距离、位置信息、图片路径
                     //电压、放大倍数、工作距离、位置信息、图片路径
                     arg.Picture_Information.Work_Voltage = iSEM.GetSEMVoltage();
                     arg.Picture_Information.Work_Voltage = iSEM.GetSEMVoltage();
                     arg.Picture_Information.Work_Status = "SEM";
                     arg.Picture_Information.Work_Status = "SEM";
                     arg.Picture_Information.Work_Distance = iSEM.GetWorkingDistance();
                     arg.Picture_Information.Work_Distance = iSEM.GetWorkingDistance();
                     arg.Picture_Information.Magnification = iSEM.GetMagnification();
                     arg.Picture_Information.Magnification = iSEM.GetMagnification();
                     break;
                     break;
-                case "1-1":
-
+                case "1-10":
+                    //获取偏移信息
+                    break;
+                case "1-12":
+                    //验证移动准备性
+                    break;
+                default:
+                    arg.Step_Code = "0-0";
+                    arg.Message = step_code;
                     break;
                     break;
             }
             }
             SendThreadStatus(this, arg);
             SendThreadStatus(this, arg);