Esempio n. 1
0
        public JTest(SignalListDef _SL, DOnExec _onExec, DOnStatus _OnStatus = null)
        {
            SL     = _SL;
            onExec = _onExec;
            prst("Режим ТЕСТ");
            IsComplete   = false;
            RK.ST.result = new Result();
            IW           = new cIW(true);
            IW.Thick     = false;
            IW.SG        = false;
            bank         = new Bank(IW);

            J.Add(jAlarm = new JAlarmList());
            if (IW.Cross)
            {
                J.Add(jCollectCross = new JCollect(bank, EUnit.Cross, IW));
            }
            if (IW.Line)
            {
                J.Add(jCollectLine = new JCollect(bank, EUnit.Line, IW));
            }
            J.Add(jTransportTest = new JTransportTest(bank));
            if (ParAll.ST.Defect.Some.TestWithMagnit)
            {
                J.Add(jRectifierThCross = new JRectifierTh(ParAll.ST.Defect.Cross.Rectifiers, ParAll.CTS.Cross.Rectifier, true, false));
                J.Add(jRectifierThLine  = new JRectifierTh(ParAll.ST.Defect.Line.Rectifiers, ParAll.CTS.Line.Rectifier, true, false));
            }

            OnStatus = _OnStatus;
        }
Esempio n. 2
0
 public JBankResult(cIW _IW, Bank _bank, DOnExec _OnExec, DOnStatus _OnStatus)
 {
     IW         = _IW;
     bank       = _bank;
     OnExec     = _OnExec;
     OnStatus   = _OnStatus;
     IsComplete = true;
 }
Esempio n. 3
0
 public JWorkSGSOP(SGWorkPars _tsDefSG, Bank _bank, SignalListDef _SL, DOnStatus _OnStatus = null)
 {
     tsDefSG             = _tsDefSG;
     bank                = _bank;
     SL                  = _SL;
     OnStatus            = _OnStatus;
     IsComplete          = false;
     J.Add(jAlarm        = new JAlarmList());
     sgSet               = new SGSet(_SL, pr);
     J.Add(jDemagnetizer = new JDemagnetizer(ParAll.ST.Defect.Demagnetizer, ParAll.CTS.DemagnetizerTS, false));
 }
Esempio n. 4
0
 public JWorkSG(Bank _bank, SignalListDef _SL, ILCard502 _lcard, bool _restart, DOnStatus _OnStatus = null)
 {
     bank       = _bank;
     SL         = _SL;
     restart    = _restart;
     OnStatus   = _OnStatus;
     IsComplete = false;
     sgSet      = new SGSet(_lcard, _SL, pr);
     SGSet.SaveParsToDB();
     J.Add(jDemagnetizer = new JDemagnetizer(ParAll.ST.Defect.Demagnetizer, ParAll.CTS.DemagnetizerTS, false));
 }
Esempio n. 5
0
        public JWork(cIW _IW, SignalListDef _SL, bool _restart, DOnExec _OnExec, DOnStatus _OnStatus = null)
        {
            IW         = _IW;
            SL         = _SL;
            onExec     = _OnExec;
            OnStatus   = _OnStatus;
            IsComplete = false;
            bank       = new Bank(IW);

            J.Add(jAlarm     = new JAlarmList());
            J.Add(jTransport = new JTransportStrobe(bank, SL, _IW));
            if (IW.Cross)
            {
                J.Add(jCollectCross     = new JCollect(bank, EUnit.Cross, IW));
                J.Add(jRectifierThCross = new JRectifierTh(ParAll.ST.Defect.Cross.Rectifiers, ParAll.CTS.Cross.Rectifier, true, false));
            }
            else
            {
                if (IW.SG)
                {
                    J.Add(jCollectCross = new JCollect(bank, EUnit.Cross, IW));
                }
            }
            if (IW.Line)
            {
                J.Add(jCollectLine     = new JCollect(bank, EUnit.Line, IW));
                J.Add(jRectifierThLine = new JRectifierTh(ParAll.ST.Defect.Line.Rectifiers, ParAll.CTS.Line.Rectifier, true, false));
                J.Add(jInverterTh      = new JInverterTh(ParAll.ST.Defect.Line.ComPortConverters,
                                                         ParAll.ST.Defect.Line.Converter,
                                                         ParAll.ST.TSSet.Current.Line.Frequency));
            }
            if (IW.Thick)
            {
                J.Add(jThick = new JThick(bank));
            }
            if (IW.SG)
            {
                J.Add(jWorkSG = new JWorkSG(bank, SL, null, _restart));
            }
            J.Add(jResult = new JResult(bank, SL, ParAll.ST.Defect.Some.CheckZonePeriod));
            //            J.Add(jNewTube = new JNewTube(ParAll.ST.Defect.IsDBS));
            J.Add(jBankResult = new JBankResult(_IW, bank, _OnExec, _OnStatus));
        }