120 lines
2.4 KiB
C#
120 lines
2.4 KiB
C#
using System;
|
|||
|
|
using System.Collections.Generic;
|
||
|
|
using System.Linq;
|
||
|
|
using System.Text;
|
||
|
|
using System.Threading.Tasks;
|
||
|
|
|
||
|
|
namespace JinYuan.Models
|
||
|
|
{
|
||
|
|
// 变量配置模型
|
||
|
|
public class VariableConfig
|
||
|
|
{
|
||
|
|
|
||
|
|
public string _varName;
|
||
|
|
|
||
|
|
public string VarName
|
||
|
|
{
|
||
|
|
get => _varName;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
if (_varName == value) return;
|
||
|
|
_varName = value;
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
public string _varAddress;
|
||
|
|
public string VarAddress
|
||
|
|
{
|
||
|
|
get => _varAddress;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
if (_varAddress == value) return;
|
||
|
|
_varAddress = value;
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
public string _start;
|
||
|
|
public string Start
|
||
|
|
{
|
||
|
|
get => _start;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
if (_start == value) return;
|
||
|
|
_start = value;
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
public string _dataType;
|
||
|
|
public string DataType
|
||
|
|
{
|
||
|
|
get => _dataType;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
if (_dataType == value) return;
|
||
|
|
_dataType = value;
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
public int _offsetOrLength;
|
||
|
|
public int OffsetOrLength
|
||
|
|
{
|
||
|
|
get => _offsetOrLength;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
if (_offsetOrLength == value) return;
|
||
|
|
_offsetOrLength = value;
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
/// <summary>
|
||
|
|
/// PLC编号
|
||
|
|
/// </summary>
|
||
|
|
private int _plcNum;
|
||
|
|
public int PlcNum
|
||
|
|
{
|
||
|
|
get => _plcNum;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
if (_plcNum == value) return;
|
||
|
|
_plcNum = value;
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
/// <summary>
|
||
|
|
/// 通信组
|
||
|
|
/// </summary>
|
||
|
|
private string _groupName;
|
||
|
|
public string GroupName
|
||
|
|
{
|
||
|
|
get => _groupName;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
if (_groupName == value) return;
|
||
|
|
_groupName = value;
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|
||
|
|
private string _remark;
|
||
|
|
public string Remark
|
||
|
|
{
|
||
|
|
get => _remark;
|
||
|
|
set
|
||
|
|
{
|
||
|
|
if (_remark == value) return;
|
||
|
|
_remark = value;
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
}
|
||
|
|
}
|