Beispiel #1
0
        /// <summary>
        /// Determines the size of the table.
        /// </summary>
        /// <param name="Table0">The Table 0 object for the current device.</param>
        /// <param name="table2409">The Table 61 object for the current device.</param>
        /// <param name="table2410"> The Table 62 object for the current device</param>
        /// <returns>The size of the table in bytes.</returns>
        // Revision History
        // MM/DD/YY who Version Issue# Description
        // -------- --- ------- ------ ---------------------------------------
        // 12/06/11 RCG 2.53.14 N/A    Created

        private static uint DetermineTableSize(CTable00 Table0, OpenWayMFGTable2409 table2409, OpenWayMFGTable2410 table2410)
        {
            uint uiTableSize = 0;

            uiTableSize += table2409.Set4ActualLimits.NumberOfBlocks
                           * LPBlockDataRecord.Size(Table0, table2409, table2410, LPDataSet.Set4);

            return(uiTableSize);
        }
Beispiel #2
0
        /// <summary>
        /// Public Constructor to be used when creating this table.
        /// </summary>
        /// <param name="psem">The PSEM communications object for the current session.</param>
        /// <param name="table0">The table 0 object for the current device.</param>
        /// <param name="table2409">The table 61 object for the current device.</param>
        /// <param name="table2410">The table 62 object for the current device.</param>
        // Revision History
        // MM/DD/YY who Version Issue# Description
        // -------- --- ------- ------ ---------------------------------------
        // 12/06/11 RCG 2.53.14 N/A    Created

        public OpenWayMFGTable2415(CPSEM psem, CTable00 table0, OpenWayMFGTable2409 table2409, OpenWayMFGTable2410 table2410)
            : base(psem, 2415, DetermineTableSize(table0, table2409, table2410), table0, table2409, table2410, LPDataSet.Set4)
        {
        }