Kaynağa Gözat

2#施釉后绑定防伪码

chenxy 4 yıl önce
ebeveyn
işleme
98f129c822
1 değiştirilmiş dosya ile 14 ekleme ve 14 silme
  1. 14 14
      PCLCommunication/FrmMelsecA1EAscii.cs

+ 14 - 14
PCLCommunication/FrmMelsecA1EAscii.cs

@@ -747,7 +747,7 @@ namespace PCLCommunication
                         if (ConnSetting.SE_CODE_FLAG)
                         {
                             // 读取防伪码
-                            int lianti = 222;
+                            int lianti = 496;
                             string se_code1 = m.GetHexData("D", lianti, 6);
                             if (!string.IsNullOrWhiteSpace(se_code1) &&
                                 se_code1.StartsWith("8100"))
@@ -759,23 +759,23 @@ namespace PCLCommunication
                             else
                             { se_code1 = null; }
 
-                            int zhineng = 222;
-                            string se_code2 = m.GetHexData("D", zhineng, 6);
-                            if (!string.IsNullOrWhiteSpace(se_code2) &&
-                                se_code2.StartsWith("8100"))
-                            {
-                                se_code2 = se_code2.Substring(4);
-                                if (se_code2.StartsWith("0"))
-                                { se_code2 = null; }
-                            }
-                            else
-                            { se_code2 = null; }
+                            //int zhineng = 222;
+                            //string se_code2 = m.GetHexData("D", zhineng, 6);
+                            //if (!string.IsNullOrWhiteSpace(se_code2) &&
+                            //    se_code2.StartsWith("8100"))
+                            //{
+                            //    se_code2 = se_code2.Substring(4);
+                            //    if (se_code2.StartsWith("0"))
+                            //    { se_code2 = null; }
+                            //}
+                            //else
+                            //{ se_code2 = null; }
 
                             string se_code = null;
                             if (!string.IsNullOrWhiteSpace(se_code1))
                             { se_code = se_code1; }
-                            else if (!string.IsNullOrWhiteSpace(se_code2))
-                            { se_code = se_code2; }
+                            //else if (!string.IsNullOrWhiteSpace(se_code2))
+                            //{ se_code = se_code2; }
                             
                             if (string.IsNullOrWhiteSpace(se_code))
                             {