徐孝锋 hace 8 meses
padre
commit
9ef027bdf0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      TeamAAS-VM/Core/Management.cs

+ 1 - 1
TeamAAS-VM/Core/Management.cs

@@ -1372,7 +1372,7 @@ namespace TeamAAS_VP.Core
                             Int16 positionIndex = plc.ReadNode<Int16>(addressConfig.In_ProductNum.Address);
                             Int16 positionIndex = plc.ReadNode<Int16>(addressConfig.In_ProductNum.Address);
                             SendTaskMessage($"编号:{positionIndex}", MessageLevel.Info);
                             SendTaskMessage($"编号:{positionIndex}", MessageLevel.Info);
                             //获取当前锁付点
                             //获取当前锁付点
-                            var screwPoint = currentProduct.ScrewPoints.FirstOrDefault(p => p.Number == positionIndex+1);
+                            var screwPoint = currentProduct.ScrewPoints.FirstOrDefault(p => p.Number == positionIndex);
                             //获取当前的机器人点位
                             //获取当前的机器人点位
                             var robot = _robotService.GetAllRobots().FirstOrDefault();
                             var robot = _robotService.GetAllRobots().FirstOrDefault();
                             var currentPosition = robot.GetRobotPos();
                             var currentPosition = robot.GetRobotPos();