public FASealingUnitModule()
        {
            FrontLoadcellPressStatus = new LoadcellPressStatus();
            RearLoadcellPressStatus = new LoadcellPressStatus();

            AlarmShieldBagArrivalAtGripPos = 2008001;
            AlarmGripperShieldBagSensorCheckFail = 2008002;
            AlarmShieldBagPickerVacuumFail = 2008003;
            AlarmShieldBagVacuumFail = 2008004;
            AlarmMoveShieldBagToOutPosFail = 2008005;
            AlarmOutToVT5071Timeout = 2008006;
            AlarmFrontSealingPressFail = 2008007;
            AlarmRearSealingPressFail = 2008008;
            AlarmFrontRearSealingPressFail = 2008009;
            AlarmSealingTimeRangeOver = 2008010;
            AlarmHeaterDownBalanceError = 2008011;
            AlarmHeaterPressureCheckBalanceError = 2008012;
            AlarmHeaterPressureCheckFrontHuntingError = 2008013;
            AlarmHeaterPressureCheckRearHuntingError = 2008014;
            AlarmHeaterFrontPressureOnTimeError = 2008015;
            AlarmHeaterRearPressureOnTimeError = 2008016;
            AlarmHeaterFrontPressureOnError = 2008017;
            AlarmHeaterRearPressureOnError = 2008018;
            AlarmFrontLoadcellSensorOnPreHeaterDown = 2008019;
            AlarmRearLoadcellSensorOnPreHeaterDown = 2008020;
            AlarmShieldBagVacuumOn = 2008021;
        }
 public static bool IsPressBalanceOk(LoadcellPressStatus status1, LoadcellPressStatus status2, TimeSpan time)
 {
     if (Math.Abs((status1.FirstOnTime - status2.FirstOnTime).Ticks) > time.Ticks)
         return false;
     else
         return true;
 }