public override bool ReportAlarmHappend(ErrorStatus alarm_status, E_ALARM_LVL alarm_lvl, string error_code, string desc)
 {
     //string alcd = SECSConst.AlarmStatus.convert2MCS(alarm_status, alarm_lvl);
     //string alid = error_code;
     //string altx = desc;
     //return iBSEMDriver.S5F1SendAlarmReport(alcd, alid, altx);
     return(false);
 }
Ejemplo n.º 2
0
            public static string convert2MCS(E_ALARM_LVL alarm_lvl)
            {
                switch (alarm_lvl)
                {
                case E_ALARM_LVL.Error:
                    return(ALTX_Vehicle_Heavy_Error);

                case E_ALARM_LVL.Warn:
                    return(ALTX_Vehicle_Light_Error);

                case E_ALARM_LVL.None:
                    return(ALTX_Vehicle_Light_Error);

                default:
                    return("");
                }
            }
 public override bool newReportUnitAlarmClear(string eq_id, ErrorStatus alarm_status, E_ALARM_LVL alarm_lvl, string error_code, string desc, List <AMCSREPORTQUEUE> reportqueues)
 {
     ////string alcd = SECSConst.AlarmStatus.convert2MCS(alarm_status, alarm_lvl);
     //string alid = SECSConst.ALID.convert2MCS(alarm_lvl);
     //string altx = SECSConst.ALTX.convert2MCS(alarm_lvl);
     //bool isSuccsess = true;
     //isSuccsess = isSuccsess && iBSEMDriver.S6F11SendUnitAlarmCleared(alid, altx, error_code, desc, reportqueues);
     return(false);
 }
Ejemplo n.º 4
0
            public static string convert2MCS(ProtocolFormat.OHTMessage.ErrorStatus alarm_status, E_ALARM_LVL alarm_lvl)
            {
                switch (alarm_status)
                {
                case ProtocolFormat.OHTMessage.ErrorStatus.ErrSet:
                    if (alarm_lvl == E_ALARM_LVL.Error)
                    {
                        return(ALCD_Alarm_Set_Heavy);
                    }
                    else
                    {
                        return(ALCD_Alarm_Set_Light);
                    }

                case ProtocolFormat.OHTMessage.ErrorStatus.ErrReset:
                    if (alarm_lvl == E_ALARM_LVL.Error)
                    {
                        return(ALCD_Alarm_Clear_Heavy);
                    }
                    else
                    {
                        return(ALCD_Alarm_Clear_Light);
                    }

                default:
                    return("");
                }
            }