예제 #1
0
 internal string checkTask02(InputDV dv1,InputDV dv2,InputDV dv3,InputDV dv4,InputDV dv5,InputDV dv6)
 {
     if (!MtzCtrl.IsTurnOn()) return mrzsErrors.mtzError1;
     else if (!MtzCtrl.IsMTZ1TurnOn()) return mrzsErrors.mtzError2;
     else if (!MtzCtrl.IsMTZ2TurnOn()) return mrzsErrors.mtzError5;
     else if (MtzCtrl.getMTZ1Value() != 0.1) return mrzsErrors.mtzError3;
     else if (MtzCtrl.getMTZ2Value() != 0.1) return mrzsErrors.mtzError6;
     else if (!ReleCtrl.IsRele1ConfiguredOnMTZ1()) return mrzsErrors.mtzError4;
     else if (!ReleCtrl.IsRele1ConfiguredOnMTZ2()) return mrzsErrors.mtzError7;
     else if (dv2.IsChecked.Value) return mrzsErrors.DVError1 + "2";
     else if (dv3.IsChecked.Value) return mrzsErrors.DVError1 + "3";
     else if (dv4.IsChecked.Value) return mrzsErrors.DVError1 + "4";
     else if (dv5.IsChecked.Value) return mrzsErrors.DVError1 + "5";
     else if (dv6.IsChecked.Value) return mrzsErrors.DVError1 + "6";
     else if (!DVCtrl.IsDV1ConfOnTurnOFFMtz1()) return mrzsErrors.DVError2;
     else if (!dv1.IsChecked.Value) return mrzsErrors.DVError3;
     else return mrzsErrors.SucfRez;
 }
예제 #2
0
 internal string checkMTZ8(InputDV dv1)
 {
     if (!DVCtrl.IsDV1ConfOnTurnOFFMtz1()) return mrzsErrors.DVError2;
     else if (!dv1.IsChecked.Value) return mrzsErrors.DVError3;
     else return mrzsErrors.SucfRez;
 }