Exemplo n.º 1
0
        /// <summary>
        /// Gets the size of an individual FW Download event log entry
        /// </summary>
        /// <param name="table2379">The Table 2379 object for the current device</param>
        /// <param name="ltimeSize">The size of an LTIME data type</param>
        /// <returns>The size of the entry in bytes.</returns>
        //  Revision History
        //  MM/DD/YY who Version Issue# Description
        //  -------- --- ------- ------ -------------------------------------------
        //  08/08/11 MMD                 Created

        internal static uint GetEntrySize(OpenWayMFGTable2379 table2379, uint ltimeSize)
        {
            uint EntrySize = 0;

            if (table2379 != null)
            {
                if (table2379.IsLoggingDateAndTime)
                {
                    EntrySize += ltimeSize;
                }

                if (table2379.IsLoggingEventNumber)
                {
                    EntrySize += 2;
                }

                if (table2379.IsLoggingSequenceNumber)
                {
                    EntrySize += 2;
                }

                EntrySize += 46;

                EntrySize += table2379.FWDownloadArgumentDataLength;
            }

            return(EntrySize);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Constructor used by EDL File
        /// </summary>
        /// <param name="binaryReader">The binary reader containing the table data.</param>
        ///  <param name="table2379">The Table 2379 object for the current meter</param>
        /// <param name="table0">That Table 0 object for the current meter</param>
        //  Revision History
        //  MM/DD/YY who Version Issue# Description
        //  -------- --- ------- ------ -------------------------------------------
        //  08/08/11 MMD                 Created

        public OpenWayMFGTable2382(PSEMBinaryReader binaryReader, OpenWayMFGTable2379 table2379, CTable00 table0)
            : base(2379, GetTableSize(table2379, table0))
        {
            m_Table2379 = table2379;
            m_Table0    = table0;

            m_TableState = TableState.Loaded;
            m_Reader     = binaryReader;
            ParseData();
        }
Exemplo n.º 3
0
        /// <summary>
        /// Gets the size of the table
        /// </summary>
        /// <param name="table2379">The Actual FW Download Log Table for the current meter.</param>
        /// <param name="table0">That Table 0 object for the current meter</param>
        /// <returns>The size of the table in bytes</returns>
        //  Revision History
        //  MM/DD/YY who Version Issue# Description
        //  -------- --- ------- ------ -------------------------------------------
        //  08/08/11 MMD                 Created
        //  05/07/15 jrf 4.20.05 583950  Updated to retrieve the FWDL event log entry count from
        //                               the Actual FW Download Log Table (2379)
        private static uint GetTableSize(OpenWayMFGTable2379 table2379, CTable00 table0)
        {
            uint TableSize = 11;

            if (table2379 != null)
            {
                TableSize += table2379.FWDownloadEntryCount * FWDownloadLogEvent.GetEntrySize(table2379, table0.LTIMESize);
            }

            return(TableSize);
        }
Exemplo n.º 4
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="psem">The PSEM communications object for the current session</param>
        /// <param name="table2379">The Table 2379 object for the current meter</param>
        /// <param name="table0">That Table 0 object for the current meter</param>
        //  Revision History
        //  MM/DD/YY who Version Issue# Description
        //  -------- --- ------- ------ -------------------------------------------
        //  08/08/11 MMD                 Created

        public OpenWayMFGTable2382(CPSEM psem, OpenWayMFGTable2379 table2379, CTable00 table0)
            : base(psem, 2382, GetTableSize(table2379, table0), TABLE_TIMEOUT)
        {
            m_Table2379 = table2379;
            m_Table0    = table0;
        }