using System.Collections.Generic;
namespace SlnMesnac.Config
{
///
/// PLC配置,通过AppConfig进行获取
///
public class PlcConfig
{
///
/// PLC配置ID
///
public int configId { get; set; }
///
/// PIC类型
///
public string plcType { get; set; }
///
/// PLC IP
///
public string plcIp { get; set; }
///
/// PLC Port
///
public int plcPort { get; set; }
///
/// PLC Key
///
public string plcKey { get; set; }
///
/// 是否启用
///
public bool isFlage { get; set; }
public List plcAddr = new List()
{
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; }
}