Browse Source

fix bug in SEMFPlaceRoutine

zhouhr 11 months ago
parent
commit
6e3aa49351
1 changed files with 4 additions and 1 deletions
  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()