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