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.
82 lines
3.7 KiB
C#
82 lines
3.7 KiB
C#
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<TbAddress> lazy = new Lazy<TbAddress>(() => 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", "收卷轴米数");
|
|
|
|
|
|
public string A放卷涨紧 = iNIFile.IniReadValue("TBPLcAddress", "A放卷涨紧");
|
|
public string B放卷涨紧 = iNIFile.IniReadValue("TBPLcAddress", "B放卷涨紧");
|
|
public string 放卷开始 = iNIFile.IniReadValue("TBPLcAddress", "放卷开始");
|
|
public string A放卷结束 = iNIFile.IniReadValue("TBPLcAddress", "A放卷结束");
|
|
public string B放卷结束 = iNIFile.IniReadValue("TBPLcAddress", "B放卷结束");
|
|
public string A放卷RFID = iNIFile.IniReadValue("TBPLcAddress", "A放卷RFID");
|
|
public string B放卷RFID = iNIFile.IniReadValue("TBPLcAddress", "B放卷RFID");
|
|
public string A放卷SFC = iNIFile.IniReadValue("TBPLcAddress", "A放卷SFC");
|
|
public string B放卷SFC = iNIFile.IniReadValue("TBPLcAddress", "B放卷SFC");
|
|
public string 放卷RFID异常 = iNIFile.IniReadValue("TBPLcAddress", "放卷RFID异常");
|
|
public string 放卷MES异常 = iNIFile.IniReadValue("TBPLcAddress", "放卷MES异常");
|
|
public string 放卷气胀泄气 = iNIFile.IniReadValue("TBPLcAddress", "放卷气胀泄气");
|
|
public string 放卷控制下料 = iNIFile.IniReadValue("TBPLcAddress", "放卷控制下料");
|
|
public string 放卷强制下料 = iNIFile.IniReadValue("TBPLcAddress", "放卷强制下料");
|
|
public string 放卷是否转塔 = iNIFile.IniReadValue("TBPLcAddress", "放卷是否转塔");
|
|
|
|
}
|
|
}
|