using MaterialTraceability.Common; using MaterialTraceability.Entity.DTO; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MaterialTraceability.Entity.Config { public sealed class TbAddress { private static INIFile iNIFile = new INIFile(System.Environment.CurrentDirectory + "/PlcConfig/App.InI"); private static readonly Lazy lazy = new Lazy(() => new TbAddress()); public static TbAddress Instance { get { return lazy.Value; } } private TbAddress() { } public string 心跳 = iNIFile.IniReadValue("TBPLcAddress", "心跳"); public string A收卷轴涨紧 = iNIFile.IniReadValue("TBPLcAddress", "A收卷轴涨紧"); public string B收卷轴涨紧 = iNIFile.IniReadValue("TBPLcAddress", "B收卷轴涨紧"); public string 涨紧信号清除 = iNIFile.IniReadValue("TBPLcAddress", "涨紧信号清除"); public string 收卷轴开始 = iNIFile.IniReadValue("TBPLcAddress", "收卷轴开始"); public string A收卷轴完工 = iNIFile.IniReadValue("TBPLcAddress", "A收卷轴完工"); public string B收卷轴完工 = iNIFile.IniReadValue("TBPLcAddress", "B收卷轴完工"); public string 强制下料 = iNIFile.IniReadValue("TBPLcAddress", "强制下料"); public string 控制下料 = iNIFile.IniReadValue("TBPLcAddress", "控制下料"); public string 气涨泄气 = iNIFile.IniReadValue("TBPLcAddress", "气涨泄气"); public string RFID异常 = iNIFile.IniReadValue("TBPLcAddress", "RFID异常"); public string MES异常 = iNIFile.IniReadValue("TBPLcAddress", "MES异常"); public string 是否转塔 = iNIFile.IniReadValue("TBPLcAddress", "是否转塔"); public string A轴膜卷号 = iNIFile.IniReadValue("TBPLcAddress", "A轴膜卷号"); public string A轴标签号 = iNIFile.IniReadValue("TBPLcAddress", "A轴标签号"); public string B轴膜卷号 = iNIFile.IniReadValue("TBPLcAddress", "B轴膜卷号"); public string B轴标签号 = iNIFile.IniReadValue("TBPLcAddress", "B轴标签号"); public string 收卷轴米数 = iNIFile.IniReadValue("TBPLcAddress", "收卷轴米数"); } }