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.
60 lines
2.2 KiB
C#
60 lines
2.2 KiB
C#
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 AbAddress
|
|
{
|
|
private static INIFile iNIFile = new INIFile(System.Environment.CurrentDirectory + "/PlcConfig/App.InI");
|
|
private static readonly Lazy<AbAddress> lazy = new Lazy<AbAddress>(() => new AbAddress());
|
|
|
|
public static AbAddress Instance
|
|
{
|
|
get
|
|
{
|
|
return lazy.Value;
|
|
}
|
|
}
|
|
|
|
private AbAddress() { }
|
|
|
|
public string 心跳 = iNIFile.IniReadValue("ABPLcAddress", "心跳");
|
|
|
|
public string 放卷开始 = iNIFile.IniReadValue("ABPLcAddress", "放卷开始");
|
|
|
|
public string 放卷涨紧 = iNIFile.IniReadValue("ABPLcAddress", "放卷涨紧");
|
|
|
|
public string 放卷结束 = iNIFile.IniReadValue("ABPLcAddress", "放卷结束");
|
|
|
|
public string 收卷开始 = iNIFile.IniReadValue("ABPLcAddress", "收卷开始");
|
|
|
|
public string 收卷涨紧 = iNIFile.IniReadValue("ABPLcAddress", "收卷涨紧");
|
|
|
|
public string 收卷结束 = iNIFile.IniReadValue("ABPLcAddress", "收卷结束");
|
|
|
|
public string 放卷异常下料 = iNIFile.IniReadValue("ABPLcAddress", "放卷异常下料");
|
|
|
|
public string 收卷异常下料 = iNIFile.IniReadValue("ABPLcAddress", "收卷异常下料");
|
|
|
|
public string 放卷控制下料 = iNIFile.IniReadValue("ABPLcAddress", "放卷控制下料");
|
|
|
|
public string 收卷控制下料 = iNIFile.IniReadValue("ABPLcAddress", "收卷控制下料");
|
|
|
|
public string RFID异常 = iNIFile.IniReadValue("ABPLcAddress", "RFID异常");
|
|
|
|
public string MES异常 = iNIFile.IniReadValue("ABPLcAddress", "MES异常");
|
|
|
|
public string 放卷手动上料 = iNIFile.IniReadValue("ABPLcAddress", "放卷手动上料");
|
|
|
|
public string 收卷手动上料 = iNIFile.IniReadValue("ABPLcAddress", "收卷手动上料");
|
|
|
|
public string 放卷气胀轴泄气 = iNIFile.IniReadValue("ABPLcAddress", "放卷气胀轴泄气");
|
|
|
|
public string 收卷气胀轴泄气 = iNIFile.IniReadValue("ABPLcAddress", "收卷气胀轴泄气");
|
|
}
|
|
}
|