using MaterialTraceability.Common; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MaterialTraceability.Entity.Config { public sealed class LyAddress { private static INIFile iNIFile = new INIFile(System.Environment.CurrentDirectory + "/PlcConfig/App.InI"); private static readonly Lazy lazy = new Lazy(() => new LyAddress()); public static LyAddress Instance { get { return lazy.Value; } } private LyAddress() { } public string 放卷涨紧 = iNIFile.IniReadValue("LYPLcAddress", "放卷涨紧"); public string 放卷结束 = iNIFile.IniReadValue("LYPLcAddress", "放卷结束"); public string 收卷1A涨紧 = iNIFile.IniReadValue("LYPLcAddress", "1A收卷涨紧"); public string 收卷1B涨紧 = iNIFile.IniReadValue("LYPLcAddress", "1B收卷涨紧"); public string 收卷2A涨紧 = iNIFile.IniReadValue("LYPLcAddress", "2A收卷涨紧"); public string 收卷2B涨紧 = iNIFile.IniReadValue("LYPLcAddress", "2B收卷涨紧"); public string 收卷1A结束 = iNIFile.IniReadValue("LYPLcAddress", "1A收卷结束"); public string 收卷1B结束 = iNIFile.IniReadValue("LYPLcAddress", "1B收卷结束"); public string 收卷2A结束 = iNIFile.IniReadValue("LYPLcAddress", "2A收卷结束"); public string 收卷2B结束 = iNIFile.IniReadValue("LYPLcAddress", "2B收卷结束"); public string 收卷1A异常下料 = iNIFile.IniReadValue("LYPLcAddress", "1A异常下料"); public string 收卷1B异常下料 = iNIFile.IniReadValue("LYPLcAddress", "1B异常下料"); public string 收卷2A异常下料 = iNIFile.IniReadValue("LYPLcAddress", "2A异常下料"); public string 收卷2B异常下料 = iNIFile.IniReadValue("LYPLcAddress", "2B异常下料"); public string 放卷SFC = iNIFile.IniReadValue("LYPLcAddress", "放卷SFC"); public string 收卷1ASFC = iNIFile.IniReadValue("LYPLcAddress", "1A轴SFC"); public string 收卷1BSFC = iNIFile.IniReadValue("LYPLcAddress", "1B轴SFC"); public string 收卷2ASFC = iNIFile.IniReadValue("LYPLcAddress", "2A轴SFC"); public string 收卷2BSFC = iNIFile.IniReadValue("LYPLcAddress", "2B轴SFC"); public string 放卷OK = iNIFile.IniReadValue("LYPLcAddress", "放卷OK"); public string 收卷1AOK = iNIFile.IniReadValue("LYPLcAddress", "1A轴OK"); public string 收卷1BOK = iNIFile.IniReadValue("LYPLcAddress", "1B轴OK"); public string 收卷2AOK = iNIFile.IniReadValue("LYPLcAddress", "2A轴OK"); public string 收卷2BOK = iNIFile.IniReadValue("LYPLcAddress", "2B轴OK"); public string 放卷控制下料 = iNIFile.IniReadValue("LYPLcAddress", "放卷控制下料"); public string 收卷1A控制下料 = iNIFile.IniReadValue("LYPLcAddress", "1A轴控制下料"); public string 收卷1B控制下料 = iNIFile.IniReadValue("LYPLcAddress", "1B轴控制下料"); public string 收卷2A控制下料 = iNIFile.IniReadValue("LYPLcAddress", "2A轴控制下料"); public string 收卷2B控制下料 = iNIFile.IniReadValue("LYPLcAddress", "2B轴控制下料"); public string 收卷1AEA = iNIFile.IniReadValue("LYPLcAddress", "1A轴EA"); public string 收卷1BEA = iNIFile.IniReadValue("LYPLcAddress", "1B轴EA"); public string 收卷2AEA = iNIFile.IniReadValue("LYPLcAddress", "2A轴EA"); public string 收卷2BEA = iNIFile.IniReadValue("LYPLcAddress", "2B轴EA"); public string 收卷1A状态 = iNIFile.IniReadValue("LYPLcAddress", "1A轴状态"); public string 收卷1B状态 = iNIFile.IniReadValue("LYPLcAddress", "1B轴状态"); public string 收卷2A状态 = iNIFile.IniReadValue("LYPLcAddress", "2A轴状态"); public string 收卷2B状态 = iNIFile.IniReadValue("LYPLcAddress", "2B轴状态"); public string RFID异常 = iNIFile.IniReadValue("LYPLcAddress", "RFID异常"); public string MES异常 = iNIFile.IniReadValue("LYPLcAddress", "MES异常"); public string 合卷报警 = iNIFile.IniReadValue("LYPLcAddress", "合卷报警"); public string 手动上料 = iNIFile.IniReadValue("LYPLcAddress", "手动上料"); public string 放卷方向 = iNIFile.IniReadValue("LYPLcAddress", "放卷方向"); public string 收卷1A方向 = iNIFile.IniReadValue("LYPLcAddress", "1A轴方向"); public string 收卷1B方向 = iNIFile.IniReadValue("LYPLcAddress", "1B轴方向"); public string 收卷2A方向 = iNIFile.IniReadValue("LYPLcAddress", "2A轴方向"); public string 收卷2B方向 = iNIFile.IniReadValue("LYPLcAddress", "2B轴方向"); } }