|
|
|
@ -119,6 +119,7 @@ public class StationReadyState : IState
|
|
|
|
|
string welcomeContent = "欢迎光临" + StaticStationInfo.StationName + "正在营业";
|
|
|
|
|
SoundApi.PlayOneSound((int)InfoEnum.SwapInfo.WelcomeInfo);
|
|
|
|
|
// machine.LedTool?.WriteContent(welcomeContent);
|
|
|
|
|
//查看雷达
|
|
|
|
|
isRemote = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
@ -132,7 +133,7 @@ public class StationReadyState : IState
|
|
|
|
|
|
|
|
|
|
public InvokeStatus EntranceRadar(SwappingStateMachine machine)
|
|
|
|
|
{
|
|
|
|
|
return Invoker.Invoke("wait entrance radar", 1000, 5, machine.IsCanceled,
|
|
|
|
|
return Invoker.Invoke("wait entrance radar", 1000, 2, machine.IsCanceled,
|
|
|
|
|
() => machine.RadarInFlag, () =>
|
|
|
|
|
{
|
|
|
|
|
if (!PlcApi.EntranceRadar())
|
|
|
|
@ -146,7 +147,7 @@ public class StationReadyState : IState
|
|
|
|
|
_log.Info("entrance radar true");
|
|
|
|
|
machine.RadarInFlag = true;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}, () => { }, true, () => { }, 2, InvokeStatus.TimeOut);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public InvokeStatus BeginRead(SwappingStateMachine machine)
|
|
|
|
@ -213,8 +214,8 @@ public class StationReadyState : IState
|
|
|
|
|
var machineRfidReadModel = rfidReadModel.Result;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ( rfidReadModel.IsCompletedSuccessfully && machineRfidReadModel != null
|
|
|
|
|
&& machineRfidReadModel.Result==1
|
|
|
|
|
if (rfidReadModel.IsCompletedSuccessfully && machineRfidReadModel != null
|
|
|
|
|
&& machineRfidReadModel.Result == 1
|
|
|
|
|
&& !string.IsNullOrEmpty(machineRfidReadModel.VelVin))
|
|
|
|
|
{
|
|
|
|
|
machine.RfidReadModel = machineRfidReadModel;
|
|
|
|
|