using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace iWareSda_QQJF.SrmTranModel
|
{
|
public class SrmTran_DB
|
{
|
/// <summary>输送线名字
|
///
|
/// </summary>
|
public string tranName { get; set; }
|
|
/// <summary>起始点
|
///
|
/// </summary>
|
public string startStationW { get; set; }
|
|
/// <summary>目的点
|
///
|
/// </summary>
|
public string endStationW { get; set; }
|
/// <summary>任务号
|
///
|
/// </summary>
|
public string taskIdW { get; set; }
|
|
/// <summary>父任务号
|
///
|
/// </summary>
|
public string fathertaskIdW { get; set; }
|
|
/// <summary>货物尺寸类型
|
///
|
/// </summary>
|
public string goodsTypeW { get; set; }
|
|
/// <summary>删除任务
|
///
|
/// </summary>
|
public string deleteW { get; set; }
|
|
/// <summary>解警
|
///
|
/// </summary>
|
public string resetW { get; set; }
|
|
/// <summary>急停
|
///
|
/// </summary>
|
public string stopW { get; set; }
|
|
|
/// <summary>写要查询的设备号
|
///
|
/// </summary>
|
public string stateStationNOW { get; set; }
|
//-----------------------------------------------------
|
|
public string stateStationNOWBat { get; set; }
|
|
/// <summary>站点号
|
///
|
/// </summary>
|
public string stationNoR { get; set; }
|
|
|
/// <summary>任务ID
|
///
|
/// </summary>
|
public string taskIdR { get; set; }
|
|
|
/// <summary>当前站点运送的目的点
|
///
|
/// </summary>
|
public string endStationR { get; set; }
|
|
|
/// <summary>设备模式
|
///
|
/// </summary>
|
public string autoR { get; set; }
|
|
|
|
|
/// <summary>报警状态号,(状态合并)
|
///
|
/// </summary>
|
public string stateERR { get; set; }
|
|
|
/// <summary>报警状态号,(状态合并)
|
///
|
/// </summary>
|
public string stateWait { get; set; }
|
|
/// <summary>入口有新货
|
///
|
/// </summary>
|
public string enterR1 { get; set; }
|
|
/// <summary>入口有新货
|
///
|
/// </summary>
|
public string enterR2 { get; set; }
|
|
/// <summary>入口有新货
|
///
|
/// </summary>
|
public string enterR3 { get; set; }
|
|
/// <summary>入口有新货
|
///
|
/// </summary>
|
public string enterR4 { get; set; }
|
|
/// <summary>入口有新货
|
///
|
/// </summary>
|
public string enterR5 { get; set; }
|
|
|
/// <summary>入口有新货
|
///
|
/// </summary>
|
public string enterR6 { get; set; }
|
|
/// <summary>入口尺寸超标
|
///
|
/// </summary>
|
public string errorR1 { get; set; }
|
|
/// <summary>入口尺寸超标
|
///
|
/// </summary>
|
public string errorR2 { get; set; }
|
|
/// <summary>入口尺寸超标
|
///
|
/// </summary>
|
public string errorR3 { get; set; }
|
|
/// <summary>入口尺寸超标
|
///
|
/// </summary>
|
public string errorR4 { get; set; }
|
|
/// <summary>入口尺寸超标
|
///
|
/// </summary>
|
public string errorR5 { get; set; }
|
|
/// <summary>入口尺寸超标
|
///
|
/// </summary>
|
public string errorR6 { get; set; }
|
|
/// <summary>光电1状态
|
///
|
/// </summary>
|
public string PH1R { get; set; }
|
|
|
/// <summary>光电2状态
|
///
|
/// </summary>
|
public string PH2R { get; set; }
|
|
|
/// <summary>高位
|
///
|
/// </summary>
|
public string PRHR { get; set; }
|
/// <summary>低位
|
///
|
/// </summary>
|
public string PRLR { get; set; }
|
|
|
/// <summary>是否有货
|
///
|
/// </summary>
|
public string goodsR { get; set; }
|
|
|
/// <summary>报警代码
|
/// 1:运行超时报警;2:水平变频器报警;3:马达保护器报警;
|
/// 4:急停报警;5:左超宽;6:右超宽;7:超高
|
/// </summary>
|
public string errIdR { get; set; }
|
/// <summary>货物重量
|
///
|
/// </summary>
|
public string weight { get; set; }
|
/// <summary>输送线心跳
|
///
|
/// </summary>
|
public string handShakeR { get; set; }
|
|
|
/// <summary>外形检测
|
/// 0没有到位,1到位不正常,2到位正常
|
/// </summary>
|
public string shapeCheckR { get; set; }
|
|
/// <summary>条码地址集合
|
///
|
/// </summary>
|
public List<string> CodeList { get; set; }
|
|
/// <summary>
|
/// 故障地址集合
|
/// </summary>
|
public List<string> ErrorList { get; set; }
|
|
public SrmTran_DB(int tranid)
|
{
|
// startStationW= "DB34.DBW0";
|
// endStationW = "DB34.DBW4";
|
// taskIdW = "DB34.DBW2";
|
// goodsTypeW = "DB34.DBW6";
|
// stateStationNOW = "DB34.DBW8";
|
|
// stopW = "DB34.DBW12";
|
// deleteW = "DB34.DBW14";
|
// resetW = "DB34.DBW10";
|
|
// fathertaskIdW = "DB34.DBW16";
|
////----------------------------------------------------------------------------
|
// stationNoR = "DB35.DBW0";
|
// taskIdR = "DB35.DBW2";
|
// endStationR = "DB35.DBW4";
|
// autoR = "DB35.DBX26.0";
|
// stateERR = "DB35.DBX26.1";
|
// stateWait = "DB35.DBX26.2";
|
// enterR1 = "DB35.DBX36.0";
|
// enterR2 = "DB35.DBX36.1";
|
// enterR3 = "DB35.DBX36.2";
|
// enterR4 = "DB35.DBX36.3";
|
// enterR5 = "DB35.DBX36.4";
|
// enterR6 = "DB35.DBX36.5";
|
|
// PH1R = "DB35.DBX27.1";
|
// PH2R = "DB35.DBX27.2";
|
// PRHR = "DB35.DBX27.3";
|
// PRLR = "DB35.DBX27.4";
|
// goodsR = "DB35.DBX27.5";
|
// errIdR = "DB35.DBW28";
|
// weight = "DB35.DBW30";
|
// handShakeR = "DB35.DBW32";
|
// shapeCheckR = "DB35.DBW34";
|
|
// CodeList = new List<string>{
|
// "DB35.DBB6",
|
// "DB35.DBB7",
|
// "DB35.DBB8",
|
// "DB35.DBB9",
|
// "DB35.DBB10",
|
// "DB35.DBB11",
|
// "DB35.DBB12",
|
// "DB35.DBB13",
|
// "DB35.DBB14",
|
// "DB35.DBB15",
|
// "DB35.DBB16",
|
// "DB35.DBB17",
|
// "DB35.DBB18",
|
// "DB35.DBB19",
|
// "DB35.DBB20",
|
// "DB35.DBB21",
|
// "DB35.DBB22",
|
// "DB35.DBB23",
|
// "DB35.DBB24",
|
// "DB35.DBB25"
|
// };
|
stateStationNOWBat = "DB500.2";
|
|
startStationW = "DB34.0";
|
endStationW = "DB34.4";
|
taskIdW = "DB34.2";
|
goodsTypeW = "DB34.6";
|
stateStationNOW = "DB34.8";
|
|
stopW = "DB34.12";
|
deleteW = "DB34.14";
|
resetW = "DB34.10";
|
|
fathertaskIdW = "DB34.16";
|
//----------------------------------------------------------------------------
|
stationNoR = "DB500." + (4 + (tranid-1)*32);
|
taskIdR = "DB500." + (10 + (tranid - 1) * 32);
|
endStationR = "DB500." + (12 + (tranid - 1) * 32);
|
autoR = "DB500." + (6 + (tranid - 1) * 32);
|
stateERR = "DB500." + (8 + (tranid - 1) * 32)+".4";
|
stateWait = "DB500." + (8 + (tranid - 1) * 32)+".3";
|
enterR1 = "DB35.36.0";
|
enterR2 = "DB35.36.1";
|
enterR3 = "DB35.36.2";
|
enterR4 = "DB35.36.3";
|
enterR5 = "DB35.36.4";
|
enterR6 = "DB35.36.5";
|
|
errorR1 = "DB35.38.0";
|
errorR2 = "DB35.38.1";
|
errorR3 = "DB35.38.2";
|
errorR4 = "DB35.38.3";
|
errorR5 = "DB35.38.4";
|
errorR6 = "DB35.38.5";
|
|
PH1R = "DB35.27.1";
|
PH2R = "DB35.27.2";
|
PRHR = "DB35.27.3";
|
PRLR = "DB35.27.4";
|
goodsR = "DB500." + (8 + (tranid - 1) * 32) + ".0";
|
errIdR = "DB35.28";
|
weight = "DB500." + (14 + (tranid - 1) * 32);
|
handShakeR = "DB500.0";
|
shapeCheckR = "DB35.34";
|
|
CodeList = new List<string>{
|
"DB500."+(16+ (tranid-1)*32),
|
"DB500."+(17+ (tranid-1)*32),
|
"DB500."+(18+ (tranid-1)*32),
|
"DB500."+(19+ (tranid-1)*32),
|
"DB500."+(20+ (tranid-1)*32),
|
"DB500."+(21+ (tranid-1)*32),
|
"DB500."+(22+ (tranid-1)*32),
|
"DB500."+(23+ (tranid-1)*32),
|
"DB500."+(24+ (tranid-1)*32),
|
"DB500."+(25+ (tranid-1)*32),
|
"DB500."+(26+ (tranid-1)*32),
|
"DB500."+(27+ (tranid-1)*32),
|
"DB500."+(28+ (tranid-1)*32),
|
"DB500."+(29+ (tranid-1)*32),
|
"DB500."+(30+ (tranid-1)*32),
|
"DB500."+(31+ (tranid-1)*32),
|
"DB500."+(32+ (tranid-1)*32),
|
"DB500."+(33+ (tranid-1)*32),
|
"DB500."+(34+ (tranid-1)*32),
|
"DB500."+(35+ (tranid-1)*32)
|
};
|
|
ErrorList = new List<string>{
|
"DB510.0.0",
|
"DB510.0.1",
|
"DB510.0.2",
|
"DB510.0.3",
|
"DB510.2.0",
|
"DB510.2.1",
|
"DB510.2.2",
|
"DB510.2.3",
|
"DB510.4.0",
|
"DB510.4.1",
|
"DB510.4.2",
|
"DB510.4.3",
|
"DB510.4.4",
|
"DB510.4.5",
|
"DB510.4.6",
|
"DB510.4.7",
|
"DB510.5.0",
|
"DB510.6.0",
|
"DB510.6.1",
|
"DB510.6.2",
|
"DB510.6.3",
|
"DB510.6.4",
|
"DB510.12.5",
|
"DB510.12.6",
|
"DB510.12.7",
|
"DB510.13.0",
|
"DB510.13.1",
|
|
};
|
}
|
}
|
}
|