|
|
@@ -1372,7 +1372,7 @@ namespace TeamAAS_VP.Core
|
|
|
Int16 positionIndex = plc.ReadNode<Int16>(addressConfig.In_ProductNum.Address);
|
|
|
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 currentPosition = robot.GetRobotPos();
|