public void CheckExpectedResultsFromPreviousControl()
        {
            VcSubstationAlarmDevice VcSubAlarm = new VcSubstationAlarmDevice();

            for (int Indextransformer = 0; Indextransformer < VcSubAlarm.ZNTX; Indextransformer++)
            {
                CheckIfControlDoneLastCycle(Indextransformer);
            }
        }
Ejemplo n.º 2
0
        public void CheckTieBreaker()
        {
            VcSubstationInfomation  VcSubInfo  = new VcSubstationInfomation();
            VcSubstationAlarmDevice VcSubAlarm = new VcSubstationAlarmDevice();
            BellyUps BU = new BellyUps();

            // tie_v = sw_db::read_and_verify_point(farm_dev_id, tie_230_id, @Zquit_bits);
            VcSubInfo.TieV = 1;
            if (VcSubInfo.TieV != 0)    // "Value Type" in .NET (int) cannot, by definition, be null.
            {
                //if (tie_v != CLOSE)
                //{
                //    ibal = 0;                                       // can not balance mvrs tie open
                //}
            }
            else
            {
                BU.BellyUp(string.Format("undefed bits set or {0} = prog_stat", VcSubAlarm.LtcProgram));
            }
        }
Ejemplo n.º 3
0
        public void VerifyProgramControl(string ProgStat)
        {
            ProgLogMessage          ProgLogMsg = new ProgLogMessage();
            VcSubstationAlarmDevice VcSubAlarm = new VcSubstationAlarmDevice();
            BellyUps BU = new BellyUps();

            if (ProgStat != null)
            {
                //// Good Verify no bits set
                //string messageInput = string.Format("Program {0} {1} LTC state: {2}", VcSubAlarm.LtcDevice, VcSubAlarm.LtcProgram, ProgStat);
                //ProgLogMsg.PrintProgLogMessage(messageInput);
                //ProgLogMsg.LogMessage = messageInput;
                //ProgLogMsg.SerializeToXml(logFolderName);

                if (ProgStat == "ON")
                {
                    m_messageInput += string.Format("{0} {1} Program control is {2} |", VcSubAlarm.LtcDevice, VcSubAlarm.LtcProgram, ProgStat);
                }
            }
            else
            {
                m_messageInput += string.Format("Undefed bits set or {0} = {1} | ", VcSubAlarm.LtcProgram, ProgStat);
            }
        }