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.
172 lines
7.4 KiB
C#
172 lines
7.4 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 MqAddress
|
|
{
|
|
private static INIFile iNIFile = new INIFile(System.Environment.CurrentDirectory + "/PlcConfig/App.InI");
|
|
|
|
private static readonly Lazy<MqAddress> lazy = new Lazy<MqAddress>(() => new MqAddress());
|
|
|
|
public static MqAddress Instance
|
|
{
|
|
get
|
|
{
|
|
return lazy.Value;
|
|
}
|
|
}
|
|
|
|
private MqAddress() { }
|
|
|
|
public string 上左收卷涨紧 = iNIFile.IniReadValue("MQPLcAddress", "上左收卷涨紧");
|
|
|
|
public string 下左收卷涨紧 = iNIFile.IniReadValue("MQPLcAddress", "下左收卷涨紧");
|
|
|
|
public string 上右收卷涨紧 = iNIFile.IniReadValue("MQPLcAddress", "上右收卷涨紧");
|
|
|
|
public string 下右收卷涨紧 = iNIFile.IniReadValue("MQPLcAddress", "下右收卷涨紧");
|
|
|
|
public string 左放卷涨紧 = iNIFile.IniReadValue("MQPLcAddress", "左放卷涨紧");
|
|
|
|
public string 右放卷涨紧 = iNIFile.IniReadValue("MQPLcAddress", "右放卷涨紧");
|
|
|
|
//
|
|
public string 上左收卷开始 = iNIFile.IniReadValue("MQPLcAddress", "上左收卷开始");
|
|
|
|
public string 下左收卷开始 = iNIFile.IniReadValue("MQPLcAddress", "下左收卷开始");
|
|
|
|
public string 上右收卷开始 = iNIFile.IniReadValue("MQPLcAddress", "上右收卷开始");
|
|
|
|
public string 下右收卷开始 = iNIFile.IniReadValue("MQPLcAddress", "下右收卷开始");
|
|
|
|
public string 左放卷开始 = iNIFile.IniReadValue("MQPLcAddress", "左放卷开始");
|
|
|
|
public string 右放卷开始 = iNIFile.IniReadValue("MQPLcAddress", "右放卷开始");
|
|
|
|
//
|
|
public string 上左收卷结束 = iNIFile.IniReadValue("MQPLcAddress", "上左收卷结束");
|
|
|
|
public string 下左收卷结束 = iNIFile.IniReadValue("MQPLcAddress", "下左收卷结束");
|
|
|
|
public string 上右收卷结束 = iNIFile.IniReadValue("MQPLcAddress", "上右收卷结束");
|
|
|
|
public string 下右收卷结束 = iNIFile.IniReadValue("MQPLcAddress", "下右收卷结束");
|
|
|
|
public string 左放卷结束 = iNIFile.IniReadValue("MQPLcAddress", "左放卷结束");
|
|
|
|
public string 右放卷结束 = iNIFile.IniReadValue("MQPLcAddress", "右放卷结束");
|
|
|
|
//
|
|
public string 上左收卷EA = iNIFile.IniReadValue("MQPLcAddress", "上左收卷EA");
|
|
|
|
public string 下左收卷EA = iNIFile.IniReadValue("MQPLcAddress", "下左收卷EA");
|
|
|
|
public string 上右收卷EA = iNIFile.IniReadValue("MQPLcAddress", "上右收卷EA");
|
|
|
|
public string 下右收卷EA = iNIFile.IniReadValue("MQPLcAddress", "下右收卷EA");
|
|
|
|
//
|
|
public string 上左收卷读取结果 = iNIFile.IniReadValue("MQPLcAddress", "上左收卷读取结果");
|
|
|
|
public string 下左收卷读取结果 = iNIFile.IniReadValue("MQPLcAddress", "下左收卷读取结果");
|
|
|
|
public string 上右收卷读取结果 = iNIFile.IniReadValue("MQPLcAddress", "上右收卷读取结果");
|
|
|
|
public string 下右收卷读取结果 = iNIFile.IniReadValue("MQPLcAddress", "下右收卷读取结果");
|
|
|
|
public string 左放卷读取结果 = iNIFile.IniReadValue("MQPLcAddress", "左放卷读取结果");
|
|
|
|
public string 右放卷读取结果 = iNIFile.IniReadValue("MQPLcAddress", "右放卷读取结果");
|
|
|
|
//
|
|
public string 上左收卷报警 = iNIFile.IniReadValue("MQPLcAddress", "上左收卷报警");
|
|
|
|
public string 下左收卷报警 = iNIFile.IniReadValue("MQPLcAddress", "下左收卷报警");
|
|
|
|
public string 上右收卷报警 = iNIFile.IniReadValue("MQPLcAddress", "上右收卷报警");
|
|
|
|
public string 下右收卷报警 = iNIFile.IniReadValue("MQPLcAddress", "下右收卷报警");
|
|
|
|
public string 左放卷报警 = iNIFile.IniReadValue("MQPLcAddress", "左放卷报警");
|
|
|
|
public string 右放卷报警 = iNIFile.IniReadValue("MQPLcAddress", "右放卷报警");
|
|
|
|
//
|
|
public string 上左收卷写入 = iNIFile.IniReadValue("MQPLcAddress", "上左收卷写入");
|
|
|
|
public string 下左收卷写入 = iNIFile.IniReadValue("MQPLcAddress", "下左收卷写入");
|
|
|
|
public string 上右收卷写入 = iNIFile.IniReadValue("MQPLcAddress", "上右收卷写入");
|
|
|
|
public string 下右收卷写入 = iNIFile.IniReadValue("MQPLcAddress", "下右收卷写入");
|
|
|
|
public string 左放卷写入 = iNIFile.IniReadValue("MQPLcAddress", "左放卷写入");
|
|
|
|
public string 右放卷写入 = iNIFile.IniReadValue("MQPLcAddress", "右放卷写入");
|
|
|
|
//
|
|
public string 上左收卷SFC = iNIFile.IniReadValue("MQPLcAddress", "上左收卷SFC");
|
|
|
|
public string 下左收卷SFC = iNIFile.IniReadValue("MQPLcAddress", "下左收卷SFC");
|
|
|
|
public string 上右收卷SFC = iNIFile.IniReadValue("MQPLcAddress", "上右收卷SFC");
|
|
|
|
public string 下右收卷SFC = iNIFile.IniReadValue("MQPLcAddress", "下右收卷SFC");
|
|
|
|
public string 左放卷SFC = iNIFile.IniReadValue("MQPLcAddress", "左放卷SFC");
|
|
|
|
public string 右放卷SFC = iNIFile.IniReadValue("MQPLcAddress", "右放卷SFC");
|
|
|
|
//
|
|
public string 上左收卷下料 = iNIFile.IniReadValue("MQPLcAddress", "上左收卷下料");
|
|
|
|
public string 下左收卷下料 = iNIFile.IniReadValue("MQPLcAddress", "下左收卷下料");
|
|
|
|
public string 上右收卷下料 = iNIFile.IniReadValue("MQPLcAddress", "上右收卷下料");
|
|
|
|
public string 下右收卷下料 = iNIFile.IniReadValue("MQPLcAddress", "下右收卷下料");
|
|
|
|
public string 左放卷下料 = iNIFile.IniReadValue("MQPLcAddress", "左放卷下料");
|
|
|
|
public string 右放卷下料 = iNIFile.IniReadValue("MQPLcAddress", "右放卷下料");
|
|
|
|
//
|
|
public string 上左收卷状态 = iNIFile.IniReadValue("MQPLcAddress", "上左收卷状态");
|
|
|
|
public string 下左收卷状态 = iNIFile.IniReadValue("MQPLcAddress", "下左收卷状态");
|
|
|
|
public string 上右收卷状态 = iNIFile.IniReadValue("MQPLcAddress", "上右收卷状态");
|
|
|
|
public string 下右收卷状态 = iNIFile.IniReadValue("MQPLcAddress", "下右收卷状态");
|
|
|
|
public string 左放卷状态 = iNIFile.IniReadValue("MQPLcAddress", "左放卷状态");
|
|
|
|
public string 右放卷状态 = iNIFile.IniReadValue("MQPLcAddress", "右放卷状态");
|
|
|
|
//
|
|
public string 上左打标数 = iNIFile.IniReadValue("MQPLcAddress", "上左打标数");
|
|
|
|
public string 下左打标数 = iNIFile.IniReadValue("MQPLcAddress", "下左打标数");
|
|
|
|
public string 上右打标数 = iNIFile.IniReadValue("MQPLcAddress", "上右打标数");
|
|
|
|
public string 下右打标数 = iNIFile.IniReadValue("MQPLcAddress", "下右打标数");
|
|
//
|
|
public string 开机启动 = iNIFile.IniReadValue("MQPLcAddress", "开机启动");
|
|
|
|
public string 全局报警 = iNIFile.IniReadValue("MQPLcAddress", "全局报警");
|
|
|
|
//
|
|
public string 放卷方向 = iNIFile.IniReadValue("MQPLcAddress", "放卷方向");
|
|
|
|
public string 上轴方向 = iNIFile.IniReadValue("MQPLcAddress", "上轴方向");
|
|
|
|
public string 下轴方向 = iNIFile.IniReadValue("MQPLcAddress", "下轴方向");
|
|
}
|
|
}
|