From 0c1d696af1d1d81c78f95f4e8542564bdb2bb57c Mon Sep 17 00:00:00 2001 From: lhiven Date: Fri, 26 Jul 2024 20:22:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=8E6=E5=8F=B7=E6=B2=BB?= =?UTF-8?q?=E5=85=B7=E5=88=B0Input=E5=8F=96=E6=96=99=E6=97=B6=E8=A3=85?= =?UTF-8?q?=E5=88=B0=E6=90=AC=E8=BF=90=E8=BD=B4=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.DeweyTester/Flow/SubFlow/StockTakeFlow.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Rs.DeweyTester/Flow/SubFlow/StockTakeFlow.cs b/Rs.DeweyTester/Flow/SubFlow/StockTakeFlow.cs index c7eed36..4f15af0 100644 --- a/Rs.DeweyTester/Flow/SubFlow/StockTakeFlow.cs +++ b/Rs.DeweyTester/Flow/SubFlow/StockTakeFlow.cs @@ -3,6 +3,7 @@ using Rs.Framework; using Rs.MotionPlat.Commom; using Rs.MotionPlat.Entitys; using Rs.MotionPlat.Flow.Common; +using Rs.MotionPlat.Flow.SafePosFlow; using System; using System.Collections.Generic; using System.Linq; @@ -104,6 +105,11 @@ namespace Rs.MotionPlat.Flow.SubFlow targetPosition.Y2 += result.OffsetY; } } + double curLoadX = Ops.GetCurPosition(AxisControl.LoadX); + if (curLoadX - GlobalVar.FixtureSafePosX > 50) + { + DischargeModuleGoSafePosFlow.Instance.GoSafePostion(ESafePosSide.PlaceToStock); + } if (GroupAxisMove.XY1Y2MovePos(targetPosition, GlobalVar.WholeSpeed)) { AxisPosPrint.PrintXY1Y2TargetPos($"到料仓{waitTakeProductSlot.Index}号穴位取料位上方,", targetPosition, GetClassName());