|
|
|
@ -80,6 +80,11 @@ namespace Service.Station
|
|
|
|
|
{
|
|
|
|
|
return Result<bool>.Fail("停止充电失败");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (ExistCar())
|
|
|
|
|
{
|
|
|
|
|
return Result<bool>.Fail("通道内存在车辆");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var result = PlcMgr.DistributeTask(0, ushort.Parse(entrySelection), 5);
|
|
|
|
@ -107,7 +112,11 @@ namespace Service.Station
|
|
|
|
|
return PlcTaskMgr.QueryPlcTask(5, 1100, 1101) ? Result<bool>.Success() : Result<bool>.Fail();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 消防移仓调用停止充电
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="binNo"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
private bool StopCharge(string binNo)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
@ -135,5 +144,17 @@ namespace Service.Station
|
|
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 是否存在车辆判断
|
|
|
|
|
/// 判断入口和出口雷达
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
private bool ExistCar()
|
|
|
|
|
{
|
|
|
|
|
bool EntranceRadar = PlcApi.EntranceRadar();
|
|
|
|
|
bool ExitRadar = PlcApi.ExitRadar();
|
|
|
|
|
return EntranceRadar & ExitRadar;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|