/// <summary> /// Constructor, create the config blocks specific to the Poly. /// </summary> /// <param name="psem">The protocol instance to use</param> /// <example><code> /// Communication comm = new Communication(); /// comm.OpenPort("COM4:"); /// CPSEM PSEM = new CPSEM(comm); /// PSEM.Logon(""); /// PSEM.Security"(""); /// CTable2048_Poly Table2048 = new CTable2048_Poly( PSEM ); /// </code></example> /// // Revision History // MM/DD/YY who Version Issue# Description // -------- --- ------- ------ --------------------------------------- // 05/22/06 mrj 7.30.00 N/A Created // 01/15/07 RCG 8.00.06 Adding DisplayConfig public CTable2048_Poly(CPSEM psem) : base(psem) { m_ConstantsConfig = new ConstantsConfig(psem, m_2048Header.ConstantsOffset, ConstantsConfig.IMAGE_CONSTANTS_CONFIG_LENGTH); m_BillingSchedConfig = new BillingSchedConfig(psem, m_2048Header.BillingSchedOffset, BillingSchedConfig.IMAGE_BILLING_SCHED_CONFIG_LENGTH); m_DisplayConfig = new DisplayConfig_Shared(psem, m_2048Header.DisplayOffset); m_HistoryLogConfig = new CENTRON_POLY_HistoryLogConfig(psem, m_2048Header.HistoryLogOffset); // Initialize Firmware and/or device specific tables InitializeSpecialCases(); }
/// <summary> /// Constructor, create the config blocks specific to the Sentinel. /// </summary> /// <param name="psem">The protocol instance to use</param> /// <param name="FW_Rev">Firmware rev of this meter</param> /// <example><code> /// Communication comm = new Communication(); /// comm.OpenPort("COM4:"); /// CPSEM PSEM = new CPSEM(comm); /// PSEM.Logon(""); /// PSEM.Security"(""); /// CTable2048_Sentinel Table2048 = new CTable2048_Sentinel( PSEM ); /// </code></example> /// /// Revision History /// MM/DD/YY who Version Issue# Description /// -------- --- ------- ------ --------------------------------------- /// 05/22/06 mrj 7.30.00 N/A Created /// public CTable2048_Sentinel(CPSEM psem, float FW_Rev) : base(psem) { m_ConstantsConfig = new ConstantsConfig(psem, m_2048Header.ConstantsOffset, ConstantsConfig.SENTINEL_CONSTANTS_CONFIG_LENGTH); m_BillingSchedConfig = new BillingSchedConfig(psem, m_2048Header.BillingSchedOffset, BillingSchedConfig.SENTINEL_BILLING_SCHED_CONFIG_LENGTH); m_DisplayConfig = new SENTINEL_DisplayConfig(psem, m_2048Header.DisplayOffset); m_HistoryLogConfig = new SENTINEL_HistoryLogConfig(psem, m_2048Header.HistoryLogOffset); if (SATURN_FIRMWARE_REV > FW_Rev) { // The default case in the base class handles Saturn and Image // meters m_MaxCalYears = PRE_SATURN_CALENDAR_YEARS; } // Initialize Firmware and/or device specific tables InitializeSpecialCases(); }