首次提交:添加src文件夹代码
This commit is contained in:
78
Cowain.Bake.Common/Global.cs
Normal file
78
Cowain.Bake.Common/Global.cs
Normal file
@@ -0,0 +1,78 @@
|
||||
using Cowain.Bake.Common.Core;
|
||||
using Cowain.Bake.Model;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Cowain.Bake.Common
|
||||
{
|
||||
public static class Global
|
||||
{
|
||||
public static string VS = " (V1.0.0.10)";
|
||||
public const int MAX_READS = 1; //最大读取PLC次数
|
||||
//public const int LAYER_IN_PALLET = 1;
|
||||
public const int MAX_TCP_READ_OUTTIME = 500;
|
||||
public const int SCANCODE_COUNT = 3; //扫码次数
|
||||
public const int HEARTBEAT_INTERVAL_TIME = 10000;
|
||||
public const int MAX_QUEUE_SIGNAL = 15;
|
||||
public static bool AppExit = false;
|
||||
public static int SECONDS_TO_MILLISCONDS = 1000;
|
||||
public static int WINDOWS_CONTROLS_HEAD_HIGHT = 30;
|
||||
public static int STOVE_LAYERS = 14;
|
||||
public static int PALLET_ROWS = SettingProvider.Instance.PalletRows; //7;
|
||||
public static int PALLET_COLS = SettingProvider.Instance.PalletCols;
|
||||
public static int PALLET_TOTAL_BATTERYS = PALLET_ROWS * PALLET_COLS;
|
||||
public static int PALLET_MAX_BATTERYS = 301;
|
||||
public static int STOVE_MAX_LAYERS = 21;
|
||||
public const int ONCE_SCAN_BATTERY = 8; //一次扫码几个电芯
|
||||
public const int MAX_LOG_QTY = 100;
|
||||
public const int DEW_STOVE_NUMBER = 3;
|
||||
|
||||
/// <summary>
|
||||
/// 是否测试模式(1为正式生产,0为调试模式)
|
||||
/// </summary>
|
||||
public static bool DebugMode = true;
|
||||
}
|
||||
|
||||
|
||||
public static class MyPath
|
||||
{
|
||||
public const string MAIN_APP = "D:\\Bake";
|
||||
public const string PLC = "Cowain.Bake.Communication.PLC.";
|
||||
public const string SCAN = "Cowain.Bake.Communication.Scan.";
|
||||
public const string TESTER = "Cowain.Bake.Communication.Tester.";
|
||||
public const string SCALE = "Cowain.Bake.Communication.ElectronicScale.";
|
||||
public const string PRINTER = "Cowain.Bake.Communication.Printer.";
|
||||
public const string SIGNAL_TRIGGER = "Cowain.Bake.Main.Station.";
|
||||
public const string HEAD_CMD = "Cowain.Bake.Main.Common.HeaderCMD";
|
||||
public const string MES_INTERFACE = @"D:\MOMlog\{0}\{1}\{2}\{3}\{4}.csv";
|
||||
public const string SYS_LOG = @"D:\SysLog\{0}\{1}\{2}\{3}.csv";//D:\MESDATE\MES \年份\月份\日期\流水号.csv,
|
||||
public const string MOMDATE = @"D:\MOMDATE\MES\{0}\{1}\{2}\{3}.csv";//设备本地日志文件
|
||||
}
|
||||
|
||||
public static class MyAgvPath
|
||||
{
|
||||
//imageSource = "file:///E:/svn/DryingStove/branch/得壹烘烤线6098-006/src/Cowain.Bake.Main/Images/png/RgvError.png"; //绝对路径
|
||||
public const string Normal = "pack://application:,,,/Cowain.Bake.Main;component/Images/png/RgvMove.png";
|
||||
public const string Error = "pack://application:,,,/Cowain.Bake.Main;component/Images/png/RgvError.png";
|
||||
public const string Wait = "pack://application:,,,/Cowain.Bake.Main;component/Images/png/RgvWait.png";
|
||||
}
|
||||
public static class ReflexFun
|
||||
{
|
||||
public const string OPC_READ_GROUPS = "ReadGroups";
|
||||
public const string OPC_READ_SINGLES = "ReadSingles";
|
||||
public const string TRIG_INSTANCE = "TrigInstance";
|
||||
public const string TRIG_REPLY = "TrigReply";
|
||||
public const string TRIG_FUNC = "TrigFunc";
|
||||
public const string OPC_WRITE_NODE = "WriteNode";
|
||||
public const string OPC_WRITE_NODES = "WriteNodes";
|
||||
public const string OBJECT_TO_T = "ObjectToT";
|
||||
}
|
||||
|
||||
public static class ProcessParas
|
||||
{
|
||||
public static List<TProcessParameter> processParameters { get; set; }
|
||||
public static string StopReason { get; set; }
|
||||
public static string Equipment { get; set; }
|
||||
public static string Equipment2 { get; set; }
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user