30 lines
787 B
C#
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;
|
|
}
|
|
}
|
|
}
|