using iWareModel;
using System.Collections.Generic;
namespace iWareCommon.Common.Globle
{
public static class SysGloble
{
///
/// 上一次下发出库任务的下发时间和当前时间的差值
///
public static int MIN_OUTSTORE_RGV_TASK_JIANGE = 15;
///
/// 默认设置1011站点持续有货的持续计数的最大数
///
public static int MAX_RGV_1011_HasCategory_COUNT = 60 * 60;//10分钟,等待了这些时间,还不下发任务,就下发任务 30 * 60
///
/// 默认设置1012站点持续有货的持续计数的最大数
///
public static int MAX_RGV_1012_HasCategory_COUNT = 30;
///
/// 缺料信息
///
public static string QUELIAO_STR = "缺料";
///
/// 分隔符
///
public static string SPLIT_STR = " || ";
public static string LogDir = "d://log";
public const string WCSSystem = "调度系统";
///
/// 当前配置的堆叠顺序排序方式
///
public const StackSequenceSortRule CurrentStackSequenceSortRule = StackSequenceSortRule.Ascending;
///
/// 1号堆垛机进出口库位
///
public const string Srm_I_O_Place1_1 = "1-01-01-01";
///
/// 1号堆垛机进出口库位
///
public const string Srm_I_O_Place1_2 = "1-02-01-01";
///
/// 2号堆垛机进出口库位
///
public const string Srm_I_O_Place2_1 = "2-01-01-01";
///
/// 2号堆垛机进出口库位
///
public const string Srm_I_O_Place2_2 = "2-02-01-01";
///
/// 3号堆垛机进出口库位
///
public const string Srm_I_O_Place3_1 = "3-01-01-01";
///
/// 3号堆垛机进出口库位
///
public const string Srm_I_O_Place3_2 = "3-02-01-01";
///
/// 4号堆垛机进出口库位
///
public const string Srm_I_O_Place4_1 = "4-01-01-01";
///
/// 4号堆垛机进出口库位
///
public const string Srm_I_O_Place4_2 = "4-02-01-01";
///
/// 特殊库位的字典
///
public static Dictionary Dict_SpecialPlace = new Dictionary() {
{Srm_I_O_Place1_1,Srm_I_O_Place1_1},
{Srm_I_O_Place1_2,Srm_I_O_Place1_2},
{Srm_I_O_Place2_1,Srm_I_O_Place2_1},
{Srm_I_O_Place2_2,Srm_I_O_Place2_2},
{Srm_I_O_Place3_1,Srm_I_O_Place3_1},
{Srm_I_O_Place3_2,Srm_I_O_Place3_2},
{Srm_I_O_Place4_1,Srm_I_O_Place4_1},
{Srm_I_O_Place4_2,Srm_I_O_Place4_2},
};
///
/// 特殊库位的字典(堆垛机的入库口)
///
public static Dictionary Dict_SpecialPlace_IN = new Dictionary() {
{Srm_I_O_Place1_1,Srm_I_O_Place1_1},
{Srm_I_O_Place2_1,Srm_I_O_Place2_1},
{Srm_I_O_Place3_1,Srm_I_O_Place3_1},
{Srm_I_O_Place4_2,Srm_I_O_Place4_2},
};
///
/// 入口地址
///
public readonly static int InStorePlace = 20101;
///
/// 出口地址
///
public readonly static int OutStorePlace = 20301;
///
/// 维修出口地址
///
public readonly static int OutStoreForFixPlace = 10801;
///
/// 最小的空托盘默认的模具号(虚拟模具号)
///
public readonly static short MinNoDieNumber = 1000;
#region 库位号和PLC偏移量字典
//里面有空格,别忘了最后trim下
public static IDictionary offsetPlaceNoDict = new System.Collections.Generic.Dictionary() {
{10101,120},
{10102,122},
{10103,124},
{10104,126},
{10105,128},
{10106,130},
{10201,132},
{10202,134},
{10203,136},
{10204,138},
{10205,140},
{10206,142},
{10301,144},
{10302,146},
{10303,148},
{10304,150},
{10305,152},
{10306,154},
{10401,156},
{10402,158},
{10403,160},
{10404,162},
{10405,164},
{10406,166},
{10501,168},
{10502,170},
{10503,172},
{10504,174},
{10505,176},
{10506,178},
{10601,180},
{10602,182},
{10603,184},
{10604,186},
{10605,188},
{10606,190},
{10701,192},
{10702,194},
{10703,196},
{10704,198},
{10705,200},
{10706,202},
{10802,204},
{10803,206},
{10804,208},
{10805,210},
{10806,212},
{10901,214},
{10902,216},
{10903,218},
{10904,220},
{10905,222},
{10906,224},
{20102,226},
{20103,228},
{20104,230},
{20105,232},
{20106,234},
{20201,236},
{20202,238},
{20203,240},
{20204,242},
{20205,244},
{20206,246},
{20302,248},
{20303,250},
{20304,252},
{20305,254},
{20306,256},
{20401,258},
{20402,260},
{20403,262},
{20404,264},
{20405,266},
{20406,268},
{20501,270},
{20502,272},
{20503,274},
{20504,276},
{20505,278},
{20506,280},
{20601,282},
{20602,284},
{20603,286},
{20604,288},
{20605,290},
{20606,292},
{20701,294},
{20702,296},
{20703,298},
{20704,300},
{20705,302},
{20706,304},
{20801,306},
{20802,308},
{20803,310},
{20804,312},
{20805,314},
{20806,316},
{20901,318},
{20902,320},
{20903,322},
{20904,324},
{20905,326},
{20906,328},
};
#endregion
}
}