Esempio n. 1
0
        /// <summary>
        /// This method determines the size of the table.
        /// </summary>
        /// <param name="Table2419">Extended self read actual table.</param>
        /// <returns>The size of the table.</returns>
        // Revision History
        // MM/DD/YY who Version Issue# Description
        // -------- --- ------- ------ ---------------------------------------
        //  11/21/11 jrf 2.53.10 TC5321 Created
        //
        private static uint DetermineTableSize(OpenWayMFGTable2419 Table2419)
        {
            uint uiTableSize = 0;

            //Add in approprate number of extended self read entries
            uiTableSize += EXTENDED_SELF_READ_RCD_SIZE * Table2419.NumberExtendedSelfReadEntries;

            return(uiTableSize);
        }
Esempio n. 2
0
        /// <summary>
        /// Constructor used to get Data from the EDL file
        /// </summary>
        /// <param name="reader">The current PSEM binary reader object.</param>
        /// <param name="Table2419">Extended self read actual table.</param>
        /// <param name="iTimeFormat">The time format used in the meter.</param>
        //  Revision History
        //  MM/DD/YY Who Version Issue# Description
        //  -------- --- ------- ------ -------------------------------------------
        //  01/06/12 jrf 2.53.27 TREQ2904 Created
        //  02/08/12 jrf 2.53.39 TC7075 Removed storing the number of extended self read entries
        //                              and now store the whole table2419.
        //
        public OpenWayMFGTable2423(PSEMBinaryReader reader, OpenWayMFGTable2419 Table2419, int iTimeFormat)
            : base(2423, DetermineTableSize(Table2419))
        {
            m_Reader     = reader;
            m_TimeFormat = (PSEMBinaryReader.TM_FORMAT)iTimeFormat;
            m_Table2419  = Table2419;

            ParseData();

            m_TableState = TableState.Loaded;
        }
Esempio n. 3
0
        /// <summary>
        /// Constructor used to get Data from the EDL file
        /// </summary>
        /// <param name="reader">The current PSEM binary reader object.</param>
        /// <param name="Table2419">Extended self read actual table.</param>
        //  Revision History
        //  MM/DD/YY Who Version Issue# Description
        //  -------- --- ------- ------ -------------------------------------------
        //  01/06/12 jrf 2.53.27 TREQ2904 Created
        //
        public OpenWayMFGTable2422(PSEMBinaryReader reader, OpenWayMFGTable2419 Table2419)
            : base(2422, DetermineTableSize(Table2419))
        {
            m_Reader = reader;
            m_byConfiguredEnergies           = Table2419.NumberConfiguredExtendedEnergies;
            m_byConfguredInstantaneousValues = Table2419.NumberConfiguredInstantaneousValues;

            ParseData();

            m_TableState = TableState.Loaded;
        }
Esempio n. 4
0
        /// <summary>
        /// This method determines the size of the table.
        /// </summary>
        /// <param name="Table2419">Extended self read actual table.</param>
        /// <returns>The size of the table.</returns>
        // Revision History
        // MM/DD/YY who Version Issue# Description
        // -------- --- ------- ------ ---------------------------------------
        //  11/21/11 jrf 2.53.10 TC5321 Created
        //
        private static uint DetermineTableSize(OpenWayMFGTable2419 Table2419)
        {
            uint uiTableSize = 1; //Monitoring Phases

            //Add in extended energies size
            uiTableSize += NONBILLING_CURRENT_ENTRY_RCD_SIZE * Table2419.NumberConfiguredExtendedEnergies;

            //Add in instantaneous values size
            uiTableSize += NONBILLING_CURRENT_ENTRY_RCD_SIZE * Table2419.NumberConfiguredInstantaneousValues;

            return(uiTableSize);
        }
Esempio n. 5
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="psem">The current PSEM communications object.</param>
 /// <param name="Table2419">Extended self read actual table.</param>
 //  Revision History
 //  MM/DD/YY Who Version Issue# Description
 //  -------- --- ------- ------ -------------------------------------------
 //  01/06/12 jrf 2.53.27 TREQ2904 Created
 //  02/08/12 jrf 2.53.39 TC7075 Removed storing the number of extended self read entries
 //                              and now store the whole table2419.
 //
 public OpenWayMFGTable2423(CPSEM psem, OpenWayMFGTable2419 Table2419)
     : base(psem, 2423, DetermineTableSize(Table2419), TABLE_TIMEOUT)
 {
     m_TimeFormat = (PSEMBinaryReader.TM_FORMAT)psem.TimeFormat;
     m_Table2419  = Table2419;
 }
Esempio n. 6
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="psem">The current PSEM communications object.</param>
 /// <param name="Table2419">Extended self read actual table.</param>
 //  Revision History
 //  MM/DD/YY Who Version Issue# Description
 //  -------- --- ------- ------ -------------------------------------------
 //  01/06/12 jrf 2.53.27 TREQ2904 Created
 //
 public OpenWayMFGTable2422(CPSEM psem, OpenWayMFGTable2419 Table2419)
     : base(psem, 2422, DetermineTableSize(Table2419), TABLE_TIMEOUT)
 {
     m_byConfiguredEnergies           = Table2419.NumberConfiguredExtendedEnergies;
     m_byConfguredInstantaneousValues = Table2419.NumberConfiguredInstantaneousValues;
 }