换电小步优化

zw
tq 5 months ago
parent 9cbbb5a6a7
commit fc51905784

@ -107,7 +107,7 @@ public class InfoEnum
[Const("车辆到位")] CarInPositionFlag, [Const("车辆到位")] CarInPositionFlag,
[Const("云平台下发换电指令")] CloudCarCanStartFlag, [Const("云平台下发换电指令")] CloudCarCanStartFlag,
[Const("车辆解锁")] VelUnlockFlag, [Const("车辆解锁")] VelUnlockFlag,
[Const("下发plc选包")] DistributeSelectPackFlag, // [Const("下发plc选包")] DistributeSelectPackFlag,
[Const("开始换电")] StartSwappingFlag, [Const("开始换电")] StartSwappingFlag,
[Const("拆旧电池完成")] UnOldBatteryFlag, [Const("拆旧电池完成")] UnOldBatteryFlag,

@ -42,11 +42,11 @@ public class CommonMgr
var stepModel = new StepModel var stepModel = new StepModel
{ {
StepName = BaseEnumExtensions.GetDescription(step), StepName = BaseEnumExtensions.GetDescription(step),
StepNo = machine.StepSort, StepNo = (int)step,
StartTime = DateTime.Now, StartTime = DateTime.Now,
Status = 1 Status = 1
}; };
machine.StepModel[machine.StepSort.ToString()] = stepModel; machine.StepModel[stepModel.StepNo.ToString()] = stepModel;
_swapOrderStepService.InsertSwapStepForSwapMain(step, _swapOrderStepService.InsertSwapStepForSwapMain(step,

@ -92,11 +92,11 @@ public class CarCtrlState : IState
machine.DistributeSelectPackFlag = machine.DistributeSelectPackFlag =
PlcApi.DistributeSelectPack(swapOrderBatteryInfo.InBinInfo.No, swapOrderBatteryInfo.UpBinInfo.No); PlcApi.DistributeSelectPack(swapOrderBatteryInfo.InBinInfo.No, swapOrderBatteryInfo.UpBinInfo.No);
if (machine.DistributeSelectPackFlag) // if (machine.DistributeSelectPackFlag)
{ // {
_CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.DistributeSelectPackFlag, // _CommonMgr.InsertStep(InfoEnum.BusinessSwappingStep.DistributeSelectPackFlag,
machine); // machine);
} // }
}, () => }, () =>
{ {
// machine.LedTool?.WriteProgramContent(InfoEnum.SwapInfo.ErrDistributeSelectPack.GetLed()); // machine.LedTool?.WriteProgramContent(InfoEnum.SwapInfo.ErrDistributeSelectPack.GetLed());

@ -75,18 +75,19 @@ public class SwappingStateMachine : IDisposable
["2"] = new StepModel { StepNo = 2, Status = 0, StepName = "rfid扫描完成" }, ["2"] = new StepModel { StepNo = 2, Status = 0, StepName = "rfid扫描完成" },
["3"] = new StepModel { StepNo = 3, Status = 0, StepName = "云平台车辆认证" }, ["3"] = new StepModel { StepNo = 3, Status = 0, StepName = "云平台车辆认证" },
["4"] = new StepModel { StepNo = 4, Status = 0, StepName = "车辆到位" }, ["4"] = new StepModel { StepNo = 4, Status = 0, StepName = "车辆到位" },
["5"] = new StepModel { StepNo = 5, Status = 0, StepName = "车辆解锁" }, ["5"] = new StepModel { StepNo = 5, Status = 0, StepName = "云平台下发换电指令" },
["6"] = new StepModel { StepNo = 6, Status = 0, StepName = "车辆解锁" },
//["6"] = new StepModel { StepNo = 6, Status = 0, StepName = "下发plc选包" }, //["6"] = new StepModel { StepNo = 6, Status = 0, StepName = "下发plc选包" },
["6"] = new StepModel { StepNo = 7, Status = 0, StepName = "开始换电" }, ["7"] = new StepModel { StepNo = 7, Status = 0, StepName = "开始换电" },
["7"] = new StepModel { StepNo = 8, Status = 0, StepName = "拆旧电池完成" }, ["8"] = new StepModel { StepNo = 8, Status = 0, StepName = "拆旧电池完成" },
["8"] = new StepModel { StepNo = 9, Status = 0, StepName = "入库旧电池完成" }, ["9"] = new StepModel { StepNo = 9, Status = 0, StepName = "入库旧电池完成" },
["9"] = new StepModel { StepNo = 10, Status = 0, StepName = "搬运新电池完成" }, ["10"] = new StepModel { StepNo = 10, Status = 0, StepName = "搬运新电池完成" },
["10"] = new StepModel { StepNo = 11, Status = 0, StepName = "安装新电池完成" }, ["11"] = new StepModel { StepNo = 11, Status = 0, StepName = "安装新电池完成" },
["11"] = new StepModel { StepNo = 12, Status = 0, StepName = "安装完成" }, ["12"] = new StepModel { StepNo = 12, Status = 0, StepName = "安装完成" },
["12"] = new StepModel { StepNo = 13, Status = 0, StepName = "车辆上锁" }, ["13"] = new StepModel { StepNo = 13, Status = 0, StepName = "车辆上锁" },
["13"] = new StepModel { StepNo = 14, Status = 0, StepName = "换电完成(车辆驶离)" }, ["14"] = new StepModel { StepNo = 14, Status = 0, StepName = "换电完成(车辆驶离)" },
["14"] = new StepModel { StepNo = 15, Status = 0, StepName = "换电失败(车辆驶离)" }, ["15"] = new StepModel { StepNo = 15, Status = 0, StepName = "换电失败(车辆驶离)" },
}; };
#region 小步状态 #region 小步状态

Loading…
Cancel
Save