Quellcode durchsuchen

fix bug in SEMFPlaceRoutine

zhouhr vor 1 Jahr
Ursprung
Commit
6e3aa49351
1 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. 4 1
      Venus/Venus_RT/Modules/TM/VenusEntity/SEMFPlaceRoutine.cs

+ 4 - 1
Venus/Venus_RT/Modules/TM/VenusEntity/SEMFPlaceRoutine.cs

@@ -217,7 +217,10 @@ namespace Venus_RT.Modules.TM.VenusEntity
 
         private bool Placing()
         {
-            return _robot.Place(VCE2LP.QueryLP2VCE(_targetModule), 0, _hand);
+            if(ModuleHelper.IsLoadPort(_targetModule))
+                return _robot.Place(VCE2LP.QueryLP2VCE(_targetModule), 0, _hand);
+            else
+                return _robot.Place(_targetModule, 0, _hand);
         }
 
         private bool CheckModuleReady()