Files
DevToolsAvalonia/常用工具集/Utility/Network/S7netplus/ORM/S7PLCAttribute.cs
2025-08-26 08:37:44 +08:00

30 lines
787 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MES.Utility.Network.S7netplus.ORM;
namespace MES.Utility.Network.S7netplus.ORM
{
public class S7PLCAttribute : Attribute
{
public string Address { get; set; }
public int StrLength { get; set; }
public S7NodeType Type { get; set; }
public S7PLCAttribute() { }
public S7PLCAttribute(string address, S7NodeType type)
{
this.Address = address;
this.Type = type;
}
public S7PLCAttribute(string address, int strLength, S7NodeType type)
{
this.Address = address;
this.StrLength = strLength;
this.Type = type;
}
}
}