Selaa lähdekoodia

revise TC connect judgement

chenzk 3 päivää sitten
vanhempi
commit
c0bc387d9f

+ 2 - 2
CyberX8_RT/Config/Layout/ToolLayoutConfiguration.xml

@@ -736,7 +736,7 @@
 		<!-- SRDs -->
 
 		<Item i:type="SRD">
-			<Installed>false</Installed>
+			<Installed>true</Installed>
 			<PermittedWaferSizeInMM>300</PermittedWaferSizeInMM>
 			<ResourceID>SRD1</ResourceID>
 			<Type>SRD</Type>
@@ -744,7 +744,7 @@
 			<SubType>VacuumChuckWithFan</SubType>
 		</Item>
 		<Item i:type="SRD">
-			<Installed>false</Installed>
+			<Installed>true</Installed>
 			<PermittedWaferSizeInMM>300</PermittedWaferSizeInMM>
 			<ResourceID>SRD2</ResourceID>
 			<Type>SRD</Type>

+ 3 - 4
Framework/Common/Device/TemperatureController/TemperatureSerialDevice.cs

@@ -1169,6 +1169,7 @@ namespace MECF.Framework.Common.Device.ResistivityProbe
             byte[] response=new byte[length];
             DateTime dt = DateTime.Now;
             int count = 0;
+            bool hasReceivedData = false; // 新增标志,用于记录是否接收到数据
             while (true)
             {
                 int bytLength = _serialPort.BytesToRead;
@@ -1180,6 +1181,7 @@ namespace MECF.Framework.Common.Device.ResistivityProbe
                     if (bytLength + count >= length)
                     {
                         Array.Copy(bytes, 0, response, count, length-count);
+                        hasReceivedData = true;
                         break;
                     }
                     else
@@ -1195,12 +1197,9 @@ namespace MECF.Framework.Common.Device.ResistivityProbe
                     WriteErrorMsg(err,false);
                     return null;
                 }
-                else
-                {
-                    TemperatureConfigManager.Instance.UpdataTCPowerConnectDic(_name + '-' + id.ToString(),true);
-                }
                 Thread.Sleep(2);
             }
+            TemperatureConfigManager.Instance.UpdataTCPowerConnectDic(_name + '-' + id.ToString(), hasReceivedData);
             WriteInfoMsg(0, response);
             return response;
         }