82 lines
3.3 KiB
C#
82 lines
3.3 KiB
C#
using Cowain.Preheat.Model;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Cowain.Preheat.Common
|
|
{
|
|
public static class Global
|
|
{
|
|
public static string VS = "";
|
|
public const int MAX_READS = 1; //最大读取PLC次数
|
|
public const int MAX_TCP_READ_OUTTIME = 500;
|
|
public const int SCANCODE_COUNT = 3; //扫码次数
|
|
public const int HEARTBEAT_INTERVAL_TIME = 3000;
|
|
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 = 17;
|
|
/// <summary>
|
|
/// 是否启动PLC写入模式(1为启动写入,0为停止写入)
|
|
/// </summary>
|
|
public static bool StartStopWritePlcMode = true;
|
|
/// <summary>
|
|
/// 是否测试模式(1为正式生产,0为调试模式)
|
|
/// </summary>
|
|
public static bool DebugMode = true;
|
|
}
|
|
public static class MainRowDefinition
|
|
{
|
|
public const float UpperSpacing = 1;
|
|
public const float UpperHeight = 6;
|
|
public const float MidHeight = 0;
|
|
public const float LowerHeight = 0;
|
|
public const float LowerSpacing = 1;
|
|
public const float TotalHeight = UpperSpacing + LowerSpacing + UpperHeight + LowerHeight + MidHeight;
|
|
}
|
|
|
|
public static class MyPath
|
|
{
|
|
public const string MAIN_APP = "D:\\Preheat";
|
|
public const string PLC = "Cowain.Preheat.Communication.PLC.";
|
|
public const string SCAN = "Cowain.Preheat.Communication.Scan.";
|
|
public const string TESTER = "Cowain.Preheat.Communication.Tester.";
|
|
public const string SCALE = "Cowain.Preheat.Communication.ElectronicScale.";
|
|
public const string PRINTER = "Cowain.Preheat.Communication.Printer.";
|
|
public const string SIGNAL_TRIGGER = "Cowain.Preheat.Main.Station.";
|
|
public const string HEAD_CMD = "Cowain.Preheat.Main.Common.HeaderCMD";
|
|
public const string MES_INTERFACE = @"D:\MESlog\{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:\MESDATE\MES\{0}\{1}\{2}\{3}.csv";//设备本地日志文件
|
|
}
|
|
|
|
public static class FTPFile
|
|
{
|
|
public const string CCD = "CCD";
|
|
public const string SFC = "SFC";
|
|
public const string INTERFACE = "INTERFACE";
|
|
public const string SYS = "SYS";
|
|
|
|
}
|
|
|
|
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; }
|
|
}
|
|
|
|
}
|