/// <summary> /// Constructor /// </summary> /// <param name="psem">The current PSEM communications object</param> /// <param name="Table0"></param> /// <param name="Table2368"></param> // Revision History // MM/DD/YY Who Version Issue# Description // -------- --- ------- ------ ------------------------------------------- // 06/07/11 jrf 2.51.10 173353 Created // public OpenWayMFGTable2370(CPSEM psem, CTable00 Table0, OpenWayMFGTable2368 Table2368) : base(psem, 2370, GetTableSize(Table0, Table2368), TABLE_TIMEOUT) { m_iTimeFormat = Table0.TimeFormat; m_byPowerMonitorRecordsUsed = Table2368.PowerMonitorRecordsUsed; //Get the resource manager m_rmStrings = new ResourceManager(RESOURCE_FILE_PROJECT_STRINGS, this.GetType().Assembly); }
/// <summary> /// Constructor used to get Data from the EDL file /// </summary> /// <param name="reader"></param> /// <param name="Table0"></param> /// <param name="Table2368"></param> // Revision History // MM/DD/YY Who Version Issue# Description // -------- --- ------- ------ ------------------------------------------- // 06/07/11 jrf 2.51.10 173353 Created // public OpenWayMFGTable2370(PSEMBinaryReader reader, CTable00 Table0, OpenWayMFGTable2368 Table2368) : base(2370, GetTableSize(Table0, Table2368)) { m_rmStrings = new ResourceManager(RESOURCE_FILE_PROJECT_STRINGS, this.GetType().Assembly); m_iTimeFormat = Table0.TimeFormat; m_byPowerMonitorRecordsUsed = Table2368.PowerMonitorRecordsUsed; m_Reader = reader; ParseData(); m_TableState = TableState.Loaded; }
/// <summary> /// Gets the size of the table in bytes. /// </summary> /// <param name="Table0">The table 0 object for the current device</param> /// <param name="Table2368">The table 2368 object for the current device</param> /// <returns>The size of the table in bytes</returns> // Revision History // MM/DD/YY Who Version Issue# Description // -------- --- ------- ------ --------------------------------------------- // 06/07/11 jrf 2.51.10 173353 Created // private static uint GetTableSize(CTable00 Table0, OpenWayMFGTable2368 Table2368) { uint uiNumberRecords = Table2368.PowerMonitorRecordsUsed; if (NUMBER_OF_MONOPHASE_RECORDS != uiNumberRecords) { uiNumberRecords = NUMBER_OF_POLYPHASE_RECORDS; } return((8 + Table0.STIMESize) * uiNumberRecords); }