using Module.Plc.ModbusTcp.Model; using RS.Model; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Module.Plc.ModbusTcp.Tool { public class Common { #region public static bool opening = false; /// /// 报警消除 /// public static bool arm = false; /// /// 全部初始化 /// public static bool allInitialize { get; set; } /// /// BRT初始化 /// public static bool brtInitialize { get; set; } /// /// CA初始化 /// public static bool caInitialize { get; set; } /// /// SCR1初始化 /// public static bool scr1Initialize { get; set; } /// /// SCR2初始化 /// public static bool scr2Initialize { get; set; } /// /// SCR3初始化 /// public static bool scr3Initialize { get; set; } /// /// SCR4初始化 /// public static bool scr4Initialize { get; set; } #endregion public static RecipeContent recipeContent1 = new RecipeContent(); public static string ip = "192.168.1.5"; public static string fristFunctionButtons = "操作"; public static string twoFunctionButtons = "主页"; /// /// CS1配方是否允许下拉 /// public static bool CS1Combox = false; /// /// CS2配方是否允许下拉 /// public static bool CS2Combox = false; /// /// CS1配方是否请求下发 /// public static bool CS1RecipeLoad = false; /// /// CS2配方是否请求下发 /// public static bool CS2RecipeLoad = false; public static bool CS1RecipeLoadFinish = false; public static bool CS2RecipeLoadFinish = false; public static int scr = 0; public static int unitPageState = 1; /// /// 打开那个界面后判断采集那个界面 /// /// public void GetUnitPageState(int str) { unitPageState = str; } public void GetNowFristPage(string str) { fristFunctionButtons = str; } public void GetNowTwoPage(string str) { twoFunctionButtons = str; } /// /// 随机生成4位数 /// /// /// /// public static string random(string s, Random rm) { for (int i = 0; i < 4; i++) { int k = rm.Next(); char j = (char)('0' + (char)(k % 10)); s += j.ToString(); } return s; } /// 主轴 public static CommonClass commonClass_scr1_mainShaft = new CommonClass(); /// 顶针 public static CommonClass commonClass_scr1_thimble = new CommonClass(); /// /// 擦洗臂上下 /// public static CommonClass commonClass_scr1_scrubUpDown = new CommonClass(); /// /// 擦洗臂左右 /// public static CommonClass commonClass_scr1_scrubLeftRight = new CommonClass(); /// /// 冲洗臂 /// public static CommonClass commonClass_scr1_flush = new CommonClass(); /// /// 阀控制 /// public static ValveControl commonClass_scr1_valve = new ValveControl(); /// /// 工位单次动作 /// public static StationOperation commonClass_scr1_movement = new StationOperation(); /// /// 主轴 /// public static CommonClass commonClass_scr2_mainShaft = new CommonClass(); /// /// 顶针 /// public static CommonClass commonClass_scr2_thimble = new CommonClass(); /// /// 擦洗臂上下 /// public static CommonClass commonClass_scr2_scrubUpDown = new CommonClass(); /// /// 擦洗臂左右 /// public static CommonClass commonClass_scr2_scrubLeftRight = new CommonClass(); /// /// 冲洗臂 /// public static CommonClass commonClass_scr2_flush = new CommonClass(); /// /// 阀控制 /// public static ValveControl commonClass_scr2_valve = new ValveControl(); /// /// 工位单次动作 /// public static StationOperation commonClass_scr2_movement = new StationOperation(); /// /// 主轴 /// public static CommonClass commonClass_scr3_mainShaft = new CommonClass(); /// /// 顶针 /// public static CommonClass commonClass_scr3_thimble = new CommonClass(); /// /// 擦洗臂上下 /// public static CommonClass commonClass_scr3_scrubUpDown = new CommonClass(); /// /// 擦洗臂左右 /// public static CommonClass commonClass_scr3_scrubLeftRight = new CommonClass(); /// /// 冲洗臂 /// public static CommonClass commonClass_scr3_flush = new CommonClass(); /// /// 阀控制 /// public static ValveControl commonClass_scr3_valve = new ValveControl(); /// /// 工位单次动作 /// public static StationOperation commonClass_scr3_movement = new StationOperation(); /// /// 主轴 /// public static CommonClass commonClass_scr4_mainShaft = new CommonClass(); /// /// 顶针 /// public static CommonClass commonClass_scr4_thimble = new CommonClass(); /// /// 擦洗臂上下 /// public static CommonClass commonClass_scr4_scrubUpDown = new CommonClass(); /// /// 擦洗臂左右 /// public static CommonClass commonClass_scr4_scrubLeftRight = new CommonClass(); /// /// 冲洗臂 /// public static CommonClass commonClass_scr4_flush = new CommonClass(); /// /// 阀控制 /// public static ValveControl commonClass_scr4_valve = new ValveControl(); /// /// 工位单次动作 /// public static StationOperation commonClass_scr4_movement = new StationOperation(); /// /// 翻转 /// public static Overturn overturn_scr1 = new Overturn(); /// /// 工位操作 /// public static StationOperation stationOperation_scr1 = new StationOperation(); /// /// 工位信息 /// public static StationInfo stationInfo_scr1 = new StationInfo(); /// /// 翻转 /// public static Overturn overturn_scr2 = new Overturn(); public static StationOperation stationOperation_scr2 = new StationOperation(); public static StationInfo stationInfo_scr2 = new StationInfo(); /// /// 翻转 /// public static Overturn overturn_scr3 = new Overturn(); public static StationOperation stationOperation_scr3 = new StationOperation(); public static StationInfo stationInfo_scr3 = new StationInfo(); /// /// 翻转 /// public static Overturn overturn_scr4 = new Overturn(); /// /// 工位操作 /// public static StationOperation stationOperation_scr4 = new StationOperation(); /// /// 工位信息 /// public static StationInfo stationInfo_scr4 = new StationInfo(); /// /// CS工位 CS1,CS2 /// public static StationCS stationCS1 = new StationCS(); /// /// CS工位 CS1,CS2 /// public static StationCS stationCS2 = new StationCS(); /// /// CA工位 /// public static StationCA stationCA = new StationCA(); /// /// 机器人 /// public static StationRobot stationRobot = new StationRobot(); /// /// 设备系统 /// public static EquipmentSystem equipmentSystem = new EquipmentSystem(); /// /// 输入信号 /// public static InputSingal inputSingal = new InputSingal(); /// /// 输出信号 /// public static OutputSingal outputSingal = new OutputSingal(); /// /// 报警日志列表 /// public static List operateAlarmLogs = new List(); } }