using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace iWareSda_QQJF.SrmTranModel
{
public class SrmTran_DB
{
/// 输送线名字
///
///
public string tranName { get; set; }
/// 起始点
///
///
public string startStationW { get; set; }
/// 目的点
///
///
public string endStationW { get; set; }
/// 任务号
///
///
public string taskIdW { get; set; }
/// 父任务号
///
///
public string fathertaskIdW { get; set; }
/// 货物尺寸类型
///
///
public string goodsTypeW { get; set; }
/// 删除任务
///
///
public string deleteW { get; set; }
/// 解警
///
///
public string resetW { get; set; }
/// 急停
///
///
public string stopW { get; set; }
/// 写要查询的设备号
///
///
public string stateStationNOW { get; set; }
//-----------------------------------------------------
public string stateStationNOWBat { get; set; }
/// 站点号
///
///
public string stationNoR { get; set; }
/// 任务ID
///
///
public string taskIdR { get; set; }
/// 当前站点运送的目的点
///
///
public string endStationR { get; set; }
/// 设备模式
///
///
public string autoR { get; set; }
/// 报警状态号,(状态合并)
///
///
public string stateERR { get; set; }
/// 报警状态号,(状态合并)
///
///
public string stateWait { get; set; }
/// 入口有新货
///
///
public string enterR1 { get; set; }
/// 入口有新货
///
///
public string enterR2 { get; set; }
/// 入口有新货
///
///
public string enterR3 { get; set; }
/// 入口有新货
///
///
public string enterR4 { get; set; }
/// 入口有新货
///
///
public string enterR5 { get; set; }
/// 入口有新货
///
///
public string enterR6 { get; set; }
/// 入口尺寸超标
///
///
public string errorR1 { get; set; }
/// 入口尺寸超标
///
///
public string errorR2 { get; set; }
/// 入口尺寸超标
///
///
public string errorR3 { get; set; }
/// 入口尺寸超标
///
///
public string errorR4 { get; set; }
/// 入口尺寸超标
///
///
public string errorR5 { get; set; }
/// 入口尺寸超标
///
///
public string errorR6 { get; set; }
/// 光电1状态
///
///
public string PH1R { get; set; }
/// 光电2状态
///
///
public string PH2R { get; set; }
/// 高位
///
///
public string PRHR { get; set; }
/// 低位
///
///
public string PRLR { get; set; }
/// 是否有货
///
///
public string goodsR { get; set; }
/// 报警代码
/// 1:运行超时报警;2:水平变频器报警;3:马达保护器报警;
/// 4:急停报警;5:左超宽;6:右超宽;7:超高
///
public string errIdR { get; set; }
/// 货物重量
///
///
public string weight { get; set; }
/// 输送线心跳
///
///
public string handShakeR { get; set; }
/// 外形检测
/// 0没有到位,1到位不正常,2到位正常
///
public string shapeCheckR { get; set; }
/// 条码地址集合
///
///
public List CodeList { get; set; }
///
/// 故障地址集合
///
public List 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{
// "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{
"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{
"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",
};
}
}
}