修改移仓以及语音调整频率

master
赵宝玉 1 month ago
parent a7d39970f8
commit 5219494360

@ -77,10 +77,10 @@ public class PlcApi
StationSoftMgr.PutDeviceLog((int)StationConstant.DeviceCode.Plc,SwapConstant.PlcProtocol.StartBatteryMove,
$"出仓位:{outBinNo},入仓位:{inBinNo}" ,(int)SwapConstant.CommunicationType.Send);
$"出仓位:{inBinNo},入仓位:{outBinNo}" ,(int)SwapConstant.CommunicationType.Send);
Log.Info($"PlcApi StartBatteryMove param= inBinNo={inBinNo}, outBinNo={outBinNo}");
ClientMgr.PlcClient?.SendMoveCommandReq(Convert.ToByte(outBinNo), Convert.ToByte(inBinNo));
ClientMgr.PlcClient?.SendMoveCommandReq(Convert.ToByte(inBinNo), Convert.ToByte(outBinNo));
Log.Info($"PlcApi StartBatteryMove done");

@ -47,7 +47,7 @@ public class CarCtrlState : IState
/// <returns></returns>
public InvokeStatus UnLockCar(SwappingStateMachine machine)
{
return Invoker.Invoke("UnLockCar", 500, 5, machine.IsCanceled,
return Invoker.Invoke("UnLockCar", 500, 7, machine.IsCanceled,
() => machine.VelUnlockFlag, () =>
{
Task<bool> result = TBoxApi.UnLockCarManyTimes(machine.RfidReadModel.VelVin);
@ -88,6 +88,6 @@ public class CarCtrlState : IState
}, false, () => { machine.ExceptionReason = ExceptionReason.UnLockCarError; }
, 4, InvokeStatus.None);
, 5, InvokeStatus.None);
}
}

@ -148,6 +148,7 @@ public class DoSwappingState : IState
//查詢當前任務狀態是否被更改
if (startSwapping)
{
ClientMgr.PlcClient.ExChangeTaskNo(1);
machine.SwapOrder.SwapBeginTime = DateTime.Now;
_CommonMgr.UpdateSwapOrder(machine);
machine.SwapStatus = 0;

@ -258,7 +258,6 @@ public class StationReadyState : IState
break;
case 4:
_log.Info("radar 车辆靠后");
i++;
if (i==10)

Loading…
Cancel
Save