You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.2 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System.Collections.Generic;
namespace SlnMesnac.Config
{
/// <summary>
/// PLC配置通过AppConfig进行获取
/// </summary>
public class PlcConfig
{
/// <summary>
/// PLC配置ID
/// </summary>
public int configId { get; set; }
/// <summary>
/// PIC类型
/// </summary>
public string plcType { get; set; }
/// <summary>
/// PLC IP
/// </summary>
public string plcIp { get; set; }
/// <summary>
/// PLC Port
/// </summary>
public int plcPort { get; set; }
/// <summary>
/// PLC Key
/// </summary>
public string plcKey { get; set; }
/// <summary>
/// 是否启用
/// </summary>
public bool isFlage { get; set; }
public List<PlcAddress> plcAddr = new List<PlcAddress>()
{
new PlcAddress(){spaceCode = 1,spaceArea = "A",address = "X10D3"},
new PlcAddress(){spaceCode = 2,spaceArea = "A",address = "X10D9"},
new PlcAddress(){spaceCode = 3,spaceArea = "A",address = "X10E3"},
new PlcAddress(){spaceCode = 4,spaceArea = "A",address = "X10E9"},
new PlcAddress(){spaceCode = 5,spaceArea = "A",address = "X10F3"},
new PlcAddress(){spaceCode = 6,spaceArea = "A",address = "X10F9"},
new PlcAddress(){spaceCode = 7,spaceArea = "A",address = "X1103"},
new PlcAddress(){spaceCode = 8,spaceArea = "A",address = "X1109"},
new PlcAddress(){spaceCode = 9,spaceArea = "A",address = "X1113"},
new PlcAddress(){spaceCode = 10,spaceArea = "A",address = "X1119"},
new PlcAddress(){spaceCode = 11,spaceArea = "A",address = "X1123"},
new PlcAddress(){spaceCode = 12,spaceArea = "A",address = "X1129"},
new PlcAddress(){spaceCode = 13,spaceArea = "A",address = "X1133"},
new PlcAddress(){spaceCode = 14,spaceArea = "A",address = "X1139"}
};
}
}
public class PlcAddress
{
public int spaceCode { get; set; }
public string spaceArea { get; set; }
public string address { get; set; }
}