From 14295ef574c12ae51b27d8e0181d8a0f620833aa Mon Sep 17 00:00:00 2001 From: lxw Date: Wed, 29 May 2024 12:15:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AF=AD=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Service/Execute/Step/StationReadyState.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Service/Execute/Step/StationReadyState.cs b/Service/Execute/Step/StationReadyState.cs index d401d41..e006487 100644 --- a/Service/Execute/Step/StationReadyState.cs +++ b/Service/Execute/Step/StationReadyState.cs @@ -39,6 +39,12 @@ public class StationReadyState : IState { return null; } + //plc是否是远程模式 + var plcIsAuto = PlcIsAuto(machine); + if (InvokeStatus.Done != plcIsAuto) + { + return SwappingStateMachine.ReturnWithInvokeErr(plcIsAuto, ExceptionReason.None); + } //plc是否是远程模式 var plcIsRemote = PlcIsRemote(machine);