using System; using HybirdFrameworkCore.Autofac.Attribute; namespace Service.Charger.Msg.Host.Req; /// /// 参数设置 /// public class ParameterSettingsReq : ASDU { ///// ///// 信息体地址 ///// // [Property(0, 24 )] //public byte[] MessageBodyAddress {get;set;} /// /// 参数类型 /// [Property(0, 8 )] public byte ParameterType {get;set;} /// /// 参数 /// [Property(8, 8 )] public byte Parameter {get;set;} // byte[] messageBodyAddress, public ParameterSettingsReq( byte parameterType, byte parameter) { FrameTypeNo = 62; MsgBodyCount = 1; TransReason = 3; PublicAddr = 0; MsgBodyAddr = new byte[] { 0, 0, 0 }; // MessageBodyAddress = new byte[] { 00, 00, 00 }; ParameterType =parameterType; Parameter = parameter; } }