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.

38 lines
926 B

5 months ago
using System;
using HybirdFrameworkCore.Autofac.Attribute;
namespace Service.Charger.Msg.Host.Req;
/// <summary>
/// 移库命令
/// </summary>
4 months ago
public class MoveCommandReq : ASDU
{
/// <summary>
/// 取仓位号
/// </summary>
[Property(0, 8)]
public byte TakePositionNumber { get; set; }
5 months ago
4 months ago
/// <summary>
/// 存仓位号
/// </summary>
[Property(8, 8)]
public byte PositionNumber { get; set; }
5 months ago
4 months ago
/// <summary>
///
/// </summary>
/// <param name="takePositionNumber">取仓位号</param>
/// <param name="positionNumber">存仓位号</param>
public MoveCommandReq(byte takePositionNumber, byte positionNumber)
5 months ago
{
FrameTypeNo = 70;
MsgBodyCount = 1;
TransReason = 3;
PublicAddr = 0;
MsgBodyAddr = new byte[] { 0, 0, 0 };
TakePositionNumber = takePositionNumber;
PositionNumber = positionNumber;
}
4 months ago
}