package cn.stylefeng.guns.plcserver.opc; import java.util.HashMap; import java.util.Map; public class GlobalVariable { // public static boolean TERMINATED = false; public static boolean TERMINATED = true; public static int SLEEP_TIME = 1000; public static int HEART_MAX_COUNT = 10; public static Map PRODUCT_TYPE_MAP = new HashMap<>(); public static Map PRODUCT_CODE_MAP = new HashMap<>(); //OP010 public static boolean OP010_F_HEART_BEAT = false;//心跳 public static boolean OP010_J_PLC_START = false;//PLC开始 public static boolean OP010_J_PC_WRITE_ORDER = false;//PC下发工单 public static boolean OP010_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP010_J_PC_READ_INFO = false;//PC读信息 public static boolean OP010_J_PLC_FINISH = false;//PLC完成 public static boolean OP010_J_PC_FINISH = false;//PLC完成 public static String OP010_S_SFC_CODE = "";//总成编码 public static int OP010_E_STATE = 0;//设备状态 public static boolean OP010_P_REPAIR = false;//产品返修 public static int OP010_P_REPAIR_LOCATION = 0;//产品返修工位 //OP020 public static boolean OP020_F_HEART_BEAT = false;//心跳 public static boolean OP020_J_PLC_START = false;//PLC开始 public static boolean OP020_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean OP020_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP020_J_PC_READ_INFO = false;//PC读信息 public static boolean OP020_J_PLC_FINISH = false;//PLC完成 public static boolean OP020_J_PC_FINISH = false;//PLC完成 public static String OP020_S_SFC_CODE = "";//总成编码 //OP030 public static boolean OP030_F_HEART_BEAT = false;//心跳 public static boolean OP030_J_PLC_START = false;//PLC开始 public static boolean OP030_J_PC_WRITE_ORDER= false;//PC读工单完成 public static boolean OP030_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP030_J_PC_READ_INFO = false;//PC读信息 public static boolean OP030_J_PLC_FINISH = false;//PLC完成 public static boolean OP030_J_PC_FINISH = false;//PLC完成 public static String OP030_S_SFC_CODE = "";//总成编码 //OP040 public static boolean OP040_F_HEART_BEAT = false;//心跳 public static boolean OP040_J_PLC_START = false;//PLC开始 public static boolean OP040_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean OP040_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP040_J_PC_READ_INFO = false;//PC读信息 public static boolean OP040_J_PLC_FINISH = false;//PLC完成 public static boolean OP040_J_PC_FINISH = false;//PLC完成 public static String OP040_S_SFC_CODE = "";//总成编码 //OP050 public static boolean OP050_F_HEART_BEAT = false;//心跳 public static boolean OP050_J_PLC_START = false;//PLC开始 public static boolean OP050_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean OP050_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP050_J_PC_READ_INFO = false;//PC读信息 public static boolean OP050_J_PLC_FINISH = false;//PLC完成 public static boolean OP050_J_PC_FINISH = false;//PLC完成 public static String OP050_S_SFC_CODE = "";//总成编码 //OP070 public static boolean OP070_F_HEART_BEAT = false;//心跳 public static boolean OP070_J_PLC_START = false;//PLC开始 public static boolean OP070_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean OP070_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP070_J_PC_READ_INFO = false;//PC读信息 public static boolean OP070_J_PLC_FINISH = false;//PLC完成 public static boolean OP070_J_PC_FINISH = false;//PLC完成 public static String OP070_S_SFC_CODE = "";//总成编码 //OP080 public static boolean OP080_F_HEART_BEAT = false;//心跳 public static boolean OP080_J_PLC_START = false;//PLC开始 public static boolean OP080_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean OP080_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP080_J_PC_READ_INFO = false;//PC读信息 public static boolean OP080_J_PLC_FINISH = false;//PLC完成 public static boolean OP080_J_PC_FINISH = false;//PLC完成 public static String OP080_S_SFC_CODE = "";//总成编码 public static boolean OP080_P_REPAIR = false;//产品返修 public static int OP080_P_REPAIR_LOCATION = 0;//产品返修工位 //OP090 public static boolean OP090_F_HEART_BEAT = false;//心跳 public static boolean OP090_J_PLC_START = false;//PLC开始 public static boolean OP090_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean OP090_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP090_J_PC_READ_INFO = false;//PC读信息 public static boolean OP090_J_PLC_FINISH = false;//PLC完成 public static boolean OP090_J_PC_FINISH = false;//PLC完成 public static String OP090_S_SFC_CODE = "";//总成编码 //OP100 public static boolean OP100_F_HEART_BEAT = false;//心跳 public static boolean OP100_J_PLC_START = false;//PLC开始 public static boolean OP100_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean OP100_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP100_J_PC_READ_INFO = false;//PC读信息 public static boolean OP100_J_PLC_FINISH = false;//PLC完成 public static boolean OP100_J_PC_FINISH = false;//PLC完成 public static String OP100_S_SFC_CODE = "";//总成编码 //OP110 public static boolean OP110_F_HEART_BEAT = false;//心跳 public static boolean OP110_J_PLC_START = false;//PLC开始 public static boolean OP110_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean OP110_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP110_J_PC_READ_INFO = false;//PC读信息 public static boolean OP110_J_PLC_FINISH = false;//PLC完成 public static boolean OP110_J_PC_FINISH = false;//PLC完成 public static String OP110_S_SFC_CODE = "";//总成编码 //OP120 public static boolean OP120_F_HEART_BEAT = false;//心跳 public static boolean OP120_J_PLC_START = false;//PLC开始 public static boolean OP120_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean OP120_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP120_J_PC_READ_INFO = false;//PC读信息 public static boolean OP120_J_PLC_FINISH = false;//PLC完成 public static boolean OP120_J_PC_FINISH = false;//PLC完成 public static String OP120_S_SFC_CODE = "";//总成编码 //OP120B public static boolean OP120B_F_HEART_BEAT = false;//心跳 public static boolean OP120B_J_PLC_START = false;//PLC开始 public static boolean OP120B_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean OP120B_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP120B_J_PC_READ_INFO = false;//PC读信息 public static boolean OP120B_J_PLC_FINISH = false;//PLC完成 public static boolean OP120B_J_PC_FINISH = false;//PLC完成 public static String OP120B_S_SFC_CODE = "";//总成编码 //OP130 public static boolean OP130_F_HEART_BEAT = false;//心跳 public static boolean OP130_J_PLC_START = false;//PLC开始 public static boolean OP130_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean OP130_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP130_J_PC_READ_INFO = false;//PC读信息 public static boolean OP130_J_PLC_FINISH = false;//PLC完成 public static boolean OP130_J_PC_FINISH = false;//PLC完成 public static String OP130_S_SFC_CODE = "";//总成编码 //OP130B public static boolean OP130B_F_HEART_BEAT = false;//心跳 public static boolean OP130B_J_PLC_START = false;//PLC开始 public static boolean OP130B_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean OP130B_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP130B_J_PC_READ_INFO = false;//PC读信息 public static boolean OP130B_J_PLC_FINISH = false;//PLC完成 public static boolean OP130B_J_PC_FINISH = false;//PLC完成 public static String OP130B_S_SFC_CODE = "";//总成编码 //OP140 public static boolean OP140_F_HEART_BEAT = false;//心跳 public static boolean OP140_J_PLC_START = false;//PLC开始 public static boolean OP140_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean OP140_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP140_J_PC_READ_INFO = false;//PC读信息 public static boolean OP140_J_PLC_FINISH = false;//PLC完成 public static boolean OP140_J_PC_FINISH = false;//PLC完成 public static String OP140_S_SFC_CODE = "";//总成编码 //OP150 public static boolean OP150_F_HEART_BEAT = false;//心跳 public static boolean OP150_J_PLC_START = false;//PLC开始 public static boolean OP150_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean OP150_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP150_J_PC_READ_INFO = false;//PC读信息 public static boolean OP150_J_PLC_FINISH = false;//PLC完成 public static boolean OP150_J_PC_FINISH = false;//PLC完成 public static String OP150_S_SFC_CODE = "";//总成编码 //OP160 public static boolean OP160_F_HEART_BEAT = false;//心跳 public static boolean OP160_J_PLC_START = false;//PLC开始 public static boolean OP160_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean OP160_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP160_J_PC_READ_INFO = false;//PC读信息 public static boolean OP160_J_PLC_FINISH = false;//PLC完成 public static boolean OP160_J_PC_FINISH = false;//PLC完成 public static String OP160_S_SFC_CODE = "";//总成编码 //OP170 public static boolean OP170_F_HEART_BEAT = false;//心跳 public static boolean OP170_J_PLC_START = false;//PLC开始 public static boolean OP170_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean OP170_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean OP170_J_PC_READ_INFO = false;//PC读信息 public static boolean OP170_J_PLC_FINISH = false;//PLC完成 public static boolean OP170_J_PC_FINISH = false;//PLC完成 public static String OP170_S_SFC_CODE = "";//总成编码 //COP010 public static boolean COP010_F_HEART_BEAT = false;//心跳 public static boolean COP010_J_PLC_START = false;//PLC开始 public static boolean COP010_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean COP010_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean COP010_J_PC_READ_INFO = false;//PC读信息 public static boolean COP010_J_PLC_FINISH = false;//PLC完成 public static boolean COP010_J_PC_FINISH = false;//PLC完成 public static String COP010_S_SFC_CODE = "";//总成编码 public static boolean COP010_P_REPAIR = false;//产品返修 public static int COP010_P_REPAIR_LOCATION = 0;//产品返修工位 //COP020 public static boolean COP020_F_HEART_BEAT = false;//心跳 public static boolean COP020_J_PLC_START = false;//PLC开始 public static boolean COP020_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean COP020_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean COP020_J_PC_READ_INFO = false;//PC读信息 public static boolean COP020_J_PLC_FINISH = false;//PLC完成 public static boolean COP020_J_PC_FINISH = false;//PLC完成 public static String COP020_S_SFC_CODE = "";//总成编码 //COP030 public static boolean COP030_F_HEART_BEAT = false;//心跳 public static boolean COP030_J_PLC_START = false;//PLC开始 public static boolean COP030_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean COP030_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean COP030_J_PC_READ_INFO = false;//PC读信息 public static boolean COP030_J_PLC_FINISH = false;//PLC完成 public static boolean COP030_J_PC_FINISH = false;//PLC完成 public static String COP030_S_SFC_CODE = "";//总成编码 //BOP010 public static boolean BOP010_F_HEART_BEAT = false;//心跳 public static boolean BOP010_J_PLC_START = false;//PLC开始 public static boolean BOP010_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean BOP010_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean BOP010_J_PC_READ_INFO = false;//PC读信息 public static boolean BOP010_J_PLC_FINISH = false;//PLC完成 public static boolean BOP010_J_PC_FINISH = false;//PLC完成 public static String BOP010_S_SFC_CODE = "";//总成编码 public static boolean BOP010_P_REPAIR = false;//产品返修 public static int BOP010_P_REPAIR_LOCATION = 0;//产品返修工位 //BOP020 public static boolean BOP020_F_HEART_BEAT = false;//心跳 public static boolean BOP020_J_PLC_START = false;//PLC开始 public static boolean BOP020_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean BOP020_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean BOP020_J_PC_READ_INFO = false;//PC读信息 public static boolean BOP020_J_PLC_FINISH = false;//PLC完成 public static boolean BOP020_J_PC_FINISH = false;//PLC完成 public static String BOP020_S_SFC_CODE = "";//总成编码 //BOP030 public static boolean BOP030_F_HEART_BEAT = false;//心跳 public static boolean BOP030_J_PLC_START = false;//PLC开始 public static boolean BOP030_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean BOP030_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean BOP030_J_PC_READ_INFO = false;//PC读信息 public static boolean BOP030_J_PLC_FINISH = false;//PLC完成 public static boolean BOP030_J_PC_FINISH = false;//PLC完成 public static String BOP030_S_SFC_CODE = "";//总成编码 //BOP030B public static boolean BOP030B_F_HEART_BEAT = false;//心跳 public static boolean BOP030B_J_PLC_START = false;//PLC开始 public static boolean BOP030B_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean BOP030B_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean BOP030B_J_PC_READ_INFO = false;//PC读信息 public static boolean BOP030B_J_PLC_FINISH = false;//PLC完成 public static boolean BOP030B_J_PC_FINISH = false;//PLC完成 public static String BOP030B_S_SFC_CODE = "";//总成编码 //BOP040 public static boolean BOP040_F_HEART_BEAT = false;//心跳 public static boolean BOP040_J_PLC_START = false;//PLC开始 public static boolean BOP040_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean BOP040_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean BOP040_J_PC_READ_INFO = false;//PC读信息 public static boolean BOP040_J_PLC_FINISH = false;//PLC完成 public static boolean BOP040_J_PC_FINISH = false;//PLC完成 public static String BOP040_S_SFC_CODE = "";//总成编码 //BOP040B public static boolean BOP040B_F_HEART_BEAT = false;//心跳 public static boolean BOP040B_J_PLC_START = false;//PLC开始 public static boolean BOP040B_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean BOP040B_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean BOP040B_J_PC_READ_INFO = false;//PC读信息 public static boolean BOP040B_J_PLC_FINISH = false;//PLC完成 public static boolean BOP040B_J_PC_FINISH = false;//PLC完成 public static String BOP040B_S_SFC_CODE = "";//总成编码 //EOP010 public static boolean EOP010_F_HEART_BEAT = false;//心跳 public static boolean EOP010_J_PLC_START = false;//PLC开始 public static boolean EOP010_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean EOP010_J_PLC_FINISH = false;//PLC完成 public static boolean EOP010_J_PC_FINISH = false;//PLC完成 public static String EOP010_S_SFC_CODE = "";//总成编码 //EOP020 public static boolean EOP020_F_HEART_BEAT = false;//心跳 public static boolean EOP020_J_PLC_START = false;//PLC开始 public static boolean EOP020_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean EOP020_J_PLC_FINISH = false;//PLC完成 public static boolean EOP020_J_PC_FINISH = false;//PLC完成 public static String EOP020_S_SFC_CODE = "";//总成编码 //EOP030 public static boolean EOP030_F_HEART_BEAT = false;//心跳 public static boolean EOP030_J_PLC_START = false;//PLC开始 public static boolean EOP030_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean EOP030_J_PLC_FINISH = false;//PLC完成 public static boolean EOP030_J_PC_FINISH = false;//PLC完成 public static String EOP030_S_SFC_CODE = "";//总成编码 //EOP040 public static boolean EOP040_F_HEART_BEAT = false;//心跳 public static boolean EOP040_J_PLC_START = false;//PLC开始 public static boolean EOP040_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean EOP040_J_PLC_FINISH = false;//PLC完成 public static boolean EOP040_J_PC_FINISH = false;//PLC完成 public static String EOP040_S_SFC_CODE = "";//总成编码 //EOP050 public static boolean EOP050_F_HEART_BEAT = false;//心跳 public static boolean EOP050_J_PLC_START = false;//PLC开始 public static boolean EOP050_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean EOP050_J_PLC_FINISH = false;//PLC完成 public static boolean EOP050_J_PC_FINISH = false;//PLC完成 public static String EOP050_S_SFC_CODE = "";//总成编码 //EOP060 public static boolean EOP060_F_HEART_BEAT = false;//心跳 public static boolean EOP060_J_PLC_START = false;//PLC开始 public static boolean EOP060_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean EOP060_J_PLC_FINISH = false;//PLC完成 public static boolean EOP060_J_PC_FINISH = false;//PLC完成 public static String EOP060_S_SFC_CODE = "";//总成编码 public static boolean EOP060_P_REPAIR = false;//产品返修 public static int EOP060_P_REPAIR_LOCATION = 0;//产品返修工位 //EOP070 public static boolean EOP070_F_HEART_BEAT = false;//心跳 public static boolean EOP070_J_PLC_START = false;//PLC开始 public static boolean EOP070_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean EOP070_J_PLC_FINISH = false;//PLC完成 public static boolean EOP070_J_PC_FINISH = false;//PLC完成 public static String EOP070_S_SFC_CODE = "";//总成编码 //EOP070B public static boolean EOP070B_F_HEART_BEAT = false;//心跳 public static boolean EOP070B_J_PLC_START = false;//PLC开始 public static boolean EOP070B_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean EOP070B_J_PLC_FINISH = false;//PLC完成 public static boolean EOP070B_J_PC_FINISH = false;//PLC完成 public static String EOP070B_S_SFC_CODE = "";//总成编码 //EOP080 public static boolean EOP080_F_HEART_BEAT = false;//心跳 public static boolean EOP080_J_PLC_START = false;//PLC开始 public static boolean EOP080_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean EOP080_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean EOP080_J_PC_READ_INFO = false;//PC读信息 public static boolean EOP080_J_PLC_FINISH = false;//PLC完成 public static boolean EOP080_J_PC_FINISH = false;//PLC完成 public static String EOP080_S_SFC_CODE = "";//总成编码 //EOP090 public static boolean EOP090_F_HEART_BEAT = false;//心跳 public static boolean EOP090_J_PLC_START = false;//PLC开始 public static boolean EOP090_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean EOP090_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean EOP090_J_PC_READ_INFO = false;//PC读信息 public static boolean EOP090_J_PLC_FINISH = false;//PLC完成 public static boolean EOP090_J_PC_FINISH = false;//PLC完成 public static String EOP090_S_SFC_CODE = "";//总成编码 //EOP090B public static boolean EOP090B_F_HEART_BEAT = false;//心跳 public static boolean EOP090B_J_PLC_START = false;//PLC开始 public static boolean EOP090B_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean EOP090B_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean EOP090B_J_PC_READ_INFO = false;//PC读信息 public static boolean EOP090B_J_PLC_FINISH = false;//PLC完成 public static boolean EOP090B_J_PC_FINISH = false;//PLC完成 public static String EOP090B_S_SFC_CODE = "";//总成编码 //DOP010 public static boolean DOP010_F_HEART_BEAT = false;//心跳 public static boolean DOP010_J_PLC_START = false;//PLC开始 public static boolean DOP010_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean DOP010_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean DOP010_J_PC_READ_INFO = false;//PC读信息 public static boolean DOP010_J_PLC_FINISH = false;//PLC完成 public static boolean DOP010_J_PC_FINISH = false;//PLC完成 public static String DOP010_S_SFC_CODE = "";//总成编码 public static boolean DOP010_P_REPAIR = false;//产品返修 public static int DOP010_P_REPAIR_LOCATION = 0;//产品返修工位 //DOP020 public static boolean DOP020_F_HEART_BEAT = false;//心跳 public static boolean DOP020_J_PLC_START = false;//PLC开始 public static boolean DOP020_J_PC_WRITE_ORDER = false;//PC读工单完成 public static boolean DOP020_J_PLC_WRITE_INFO = false;//PLC写信息 public static boolean DOP020_J_PC_READ_INFO = false;//PC读信息 public static boolean DOP020_J_PLC_FINISH = false;//PLC完成 public static boolean DOP020_J_PC_FINISH = false;//PLC完成 public static String DOP020_S_SFC_CODE = "";//总成编码 }