From 12db37a01c8868d959cd0a175e7b4440385e14e6 Mon Sep 17 00:00:00 2001 From: lhiven Date: Sun, 11 Aug 2024 14:37:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=99=E4=BB=93=E6=9C=89=E6=97=A0=E6=96=99?= =?UTF-8?q?=E7=9B=98=E7=94=A8=E6=84=9F=E5=BA=94=E5=99=A8=E5=92=8C=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E5=90=8C=E6=97=B6=E7=94=A8=E6=88=96=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Rs.SkyLine/Flow/NormalFlow/StockTrayFlow.cs | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/Rs.SkyLine/Flow/NormalFlow/StockTrayFlow.cs b/Rs.SkyLine/Flow/NormalFlow/StockTrayFlow.cs index 15cfb32..72ccf70 100644 --- a/Rs.SkyLine/Flow/NormalFlow/StockTrayFlow.cs +++ b/Rs.SkyLine/Flow/NormalFlow/StockTrayFlow.cs @@ -891,7 +891,25 @@ namespace Rs.AutoDischarge.V3.Flow public bool HasTray() { - return (Ops.IsOn($"{(int)m_stockType}号料仓料盘到位光电检测")) ; + bool hasTray = Ops.IsOn($"{(int)m_stockType}号料仓料盘到位光电检测"); + bool hasTray2 = GlobalTray.GetTray(m_stockType).Status == "Loaded"; + //if(!hasTray) + //{ + // //斜推气缸松开 + // Ops.Off($"{(int)m_stockType}号料仓斜推气缸"); + // Thread.Sleep(200); + // //斜退气缸顶住 + // Ops.On($"{(int)m_stockType}号料仓斜推气缸"); + // Thread.Sleep(200); + // hasTray = Ops.IsOn($"{(int)m_stockType}号料仓料盘到位光电检测"); + // if(!hasTray) + // { + // Ops.Off($"{(int)m_stockType}号料仓斜推气缸"); + // Thread.Sleep(200); + // } + //} + return hasTray || hasTray2; + //return (Ops.IsOn($"{(int)m_stockType}号料仓料盘到位光电检测")) ; } private void ReportSwitchTray(int no)