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.

33 lines
807 B

using System;
using HybirdFrameworkCore.Autofac.Attribute;
namespace Service.Charger.Msg.Host.Req;
/// <summary>
/// 开始换电命令
/// </summary>
public class StartBatterySwapReq : ASDU {
/// <summary>
/// 取仓位号
/// </summary>
[Property(0, 8 )]
public byte TakePositionNumber {get;set;}
/// <summary>
/// 存仓位号
/// </summary>
[Property(8, 8 )]
public byte PositionNumber {get;set;}
public StartBatterySwapReq(byte takePositionNumber, byte positionNumber)
{
FrameTypeNo = 69;
MsgBodyCount = 1;
TransReason = 3;
PublicAddr = 0;
MsgBodyAddr = new byte[] { 0, 0, 0 };
TakePositionNumber= takePositionNumber;
PositionNumber= positionNumber;
}
}