You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

122 lines
4.5 KiB

using System;
namespace BatCharging.Model
{
public class StopCharging: ASDU
{
/// <summary>
/// 成功标识
/// </summary>
public byte Result { get; set; }
/// <summary>
//失败原因
/// </summary>
public byte FailReason { get; set; }
/// <summary>
//BMS 中止充电原因
// </summary>
public byte SuspendingChargingReason { get; set; }
/// <summary>
//BMS 充电故障原因
/// </summary>
public UInt16 CauseOfChargingFault { get; set; }
/// <summary>
//BMS 中止错误原因
/// </summary>
public byte AbortErrorReason { get; set; }
/// <summary>
//中止荷电状态 SOC(%)
/// </summary>
public byte SuspendTheStateOfCharge { get; set; }
/// <summary>
//动力蓄电池单体最低电压(V)
/// </summary>
public UInt16 MinimumVoltageOfTractionBattery { get; set; }
/// <summary>
//动力蓄电池单体最高电压(V)
/// </summary>
public UInt16 MaximumVoltageOfTractionBattery { get; set; }
/// <summary>
//动力蓄电池最低温度(ºC)
/// </summary>
public byte MinimumTemperatureOfTractionBattery { get; set; }
/// <summary>
//动力蓄电池最高温度(ºC)
/// </summary>
public byte MaximumTemperatureOfTractionBattery { get; set; }
/// <summary>
//接收SPN2560=0x00 的充电机辨识报文超时
/// </summary>
public UInt16 XOOIdentificationMessageTimeout { get; set; }
/// <summary>
//接收SPN2560=0xAA 的充电机辨识报文超时
/// </summary>
public UInt16 XAAIdentificationMessageTimeout { get; set; }
/// <summary>
//接收充电机的时间同步和充电机最大输出能力报文超时
/// </summary>
public UInt16 TimeSyncAndMaxOutCapTimeout { get; set; }
/// <summary>
//接收充电机完成充电准备报文超时
/// </summary>
public UInt16 ReceiveFinishPrepareChargeTimeout { get; set; }
/// <summary>
//接收充电机充电状态报文超时
/// </summary>
public UInt16 TimeReceiveChargerStatusMessage { get; set; }
/// <summary>
//接收充电机中止充电报文超时
/// </summary>
public UInt16 TimeReceiveChargingSuspensionMessage { get; set; }
// <summary>
//接收充电机充电统计报文超时
/// </summary>
public UInt16 TimeReceiveChargingStatisticsMessageOfCharger { get; set; }
/// <summary>
//BMS 检测到的其他错误
/// </summary>
public byte OtherErrorsDetectedByBms6 { get; set; }
/// <summary>
//接收BMS和车辆的辨识报文超时
/// </summary>
public UInt16 TimeoutReceivingIdentificationMessageBms { get; set; }
/// <summary>
//接收电池充电参数报文超时
/// </summary>
public UInt16 TimeoutReceivingBatteryChargingParameterMessage { get; set; }
/// <summary>
//接收 BMS完成充电准备报文超时
/// </summary>
public UInt16 TimeoutReceivingBmsChargingPreparationMessage { get; set; }
/// <summary>
//接收电池充电要求报文超时
/// </summary>
public UInt16 TimeoutReceivingBatteryChargingMessage { get; set; }
/// <summary>
//接收电池充电总状态报文超时
/// </summary>
public UInt16 TimeoutReceivingBatteryChargingTotalStatusMessage { get; set; }
/// <summary>
//接收BMS中止充电报文超时
/// </summary>
public UInt16 TimeoutReceivingBmsChargingSuspensionMessage { get; set; }
/// <summary>
//接收BMS充电统计报文超时
/// </summary>
public UInt16 TimeoutReceivingBmsChargingStatisticsMessage { get; set; }
/// <summary>
//充电机检测到的其他错误
/// </summary>
public UInt16 OtherErrorsDetectedByTheCharger { get; set; }
public StopCharging()
{
this.FrameTypeNo = 45;
//this.SetReason(3);
this.MsgBodyCount = 1;
//this.RecordType = 3;
}
}
}