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; }
public JTransport(Bank _bank, SignalListDef _SL, cIW _IW) { bank = _bank; SL = _SL; DimensionsPars Pars = ParAll.ST.Dimensions; if (_IW.Thick) { LTE.Add(new TESignal(SL.iCONTROL1, true, Pars.Stand1)); } LTE.Add(teCONTROL2On = new TESignal(SL.iCONTROL2, true, Pars.Stand2)); LTE.Add(teCONTROL3On = new TESignal(SL.iCONTROL3, true, Pars.Stand3)); LTE.Add(teSGInOn = new TESignal(SL.iSGIN, true, Pars.SGIn)); LTE.Add(teSGOutOn = new TESignal(SL.iSGOUT, true, Pars.SGOut)); if (_IW.Thick) { LTE.Add(new TESignal(SL.iCONTROL1, false, Pars.Stand2)); } LTE.Add(teCONTROL2Off = new TESignal(SL.iCONTROL2, false, Pars.Stand3)); LTE.Add(new TESignal(SL.iCONTROL3, false, Pars.Stand4)); LTE.Add(new TESignal(SL.iSGIN, false, Pars.SGIn)); LTE.Add(new TESignal(SL.iSGOUT, false, Pars.SGOut)); SL.CatchClear(); SL.CatchAdd(SL.iCONTROL1); SL.CatchAdd(SL.iCONTROL2); SL.CatchAdd(SL.iCONTROL3); SL.CatchAdd(SL.iSGIN); SL.CatchAdd(SL.iSGOUT); new ExecSQL("update ThickWork set TubeLength = null"); new ExecSQL("delete from TickPositions"); }
public JTransportStrobe(Bank _bank, SignalListDef _SL, cIW _IW) { bank = _bank; SL = _SL; DimensionsPars Pars = ParAll.ST.Dimensions; if (_IW.Thick) { teOn = new TESignal(SL.iCONTROL1, true, Pars.Stand1); teOff0 = new TESignal(SL.iCONTROL1, false, Pars.Stand2); } else if (_IW.Cross) { teOn = new TESignal(SL.iCONTROL2, true, Pars.Stand2); teOff0 = new TESignal(SL.iCONTROL2, false, Pars.Stand3); } else if (_IW.Line) { teOn = new TESignal(SL.iCONTROL3, true, Pars.Stand3); teOff0 = new TESignal(SL.iCONTROL3, false, Pars.Stand4); } teStrobe = new TEStrobe(SL.iSTROBE, true, teOn.Position, ParAll.ST.ZoneSize); SL.CatchClear(); SL.CatchAdd(SL.iCONTROL1); SL.CatchAdd(SL.iCONTROL2); SL.CatchAdd(SL.iCONTROL3); SL.CatchAdd(SL.iSTROBE); new ExecSQL("update ThickWork set TubeLength = null"); new ExecSQL("delete from TickPositions"); }
public void Init(DOnExec _OnExec, UCrossLine _uCross, UCrossLine _uLine) { OnExec = _OnExec; uCross = _uCross; uLine = _uLine; timer1.Interval = (int)ParAll.ST.Defect.Some.Period; SL = new SignalListDef(ParAll.ST.Defect.PCIE1730, ParAll.ST.Some.SignalsPanel, pr); checkBox1.Checked = ParAll.ST.Defect.Some.IsInterruptView; }
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)); }
public FTune(SignalListDef _SL) { InitializeComponent(); SL = _SL; }
public JResult(Bank _bank, SignalListDef _SL, int _period) { bank = _bank; SL = _SL; period = _period; }