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);