Environmental monitoring and reporting system for EPA cluster rule 010094

Abstract
A system and method are provided for tracking and documenting environmental compliance in a pulp mill, related primarily to the bypassing of liquid hazardous pollutants from a capture and treatment system. The method and system provide continuous information regarding the input materials, the output products, and the operations of equipment in the pulping process. The continuous information is provided to a central processor for determindation of emission levels that exceed certain predetermined levels. The method and system permit personnel to verify compliance with environmental regulations, verify the reliability of pollutant collection and treatment equipment and record the actions taken to correct an inappropriate emission or equipment failure.
Description


STATEMENT REGARDING FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT

[0002] Not Applicable



FIELD OF INVENTION

[0003] This invention relates to monitoring of emissions and/or waste streams from a production facility.



BACKGROUND OF INVENTION

[0004] The United States Environmental Protection Agency (EPA), prior to the present invention, has required monitoring and reporting on individual sources of actual or potential undesirable emissions of gaseous matter or liquid matter. These requirements have heretofore been satisfied by “end of the line” monitoring techniques. Heretofore, there has been no known method or system for the environmental monitoring and reporting of a combination of gaseous and liquid emissions from a production facility.


[0005] Of recent, the EPA combined air and water regulation applying to the pulp and paper industry, known as the Cluster Rule. This Cluster Rule was developed to minimize and control Hazardous Air Pollutant (HAP) emissions via direct air vents from non-condensable type gas systems (NCG) (referred to in the Rule as Low Volume High Concentration (LVHC) and High Volume Low concentration (HVLC systems), and from volatilization fro HAP bearing liquid streams originating in the pulping and evaporation processes. These liquid streams are produced from the condensation of relief or evaporation vapors in various direct and indirect condensing systems in the aforementioned areas. The Cluster Rule refers to these HAP bearing condensates as “named streams”.


[0006] The Cluster Rule is unique in the history of the industry as It is the first Rule to require monitoring of significant process parameters in the mill proper, and the first Rule to require the daily/continuous inventory of HAP9 produced in the mill proper. Most regulations look at final emissions on end-of-pipe treatment systems and their respective treatment efficiencies (eq. wastewater treatment basins, steam strippers, recovery boiler electrostatic precipitators etc). The industry was faced for the first time with monitoring AND reporting in-process activity as relates to HAP evolution, in addition to treatment. Many of these process areas were never monitored to this extent in the past and in many cases, no instrumentation was even present to track required parameters. Many new condensate collections systems had to be built with new piping to transport condensates from evaporator and pulping condensers to a main collection tank prior to delivery to one or more treatment devices. Operation parameters in the evaporators such as liquor flow, liquor solids, conductivity, condensate flow, temperature and valve positions along the delivery piping (to confirm actual collection) had to be installed and connected to the mill distributed control system (DCS) and process information (PI) systems. Digester systems required monitoring of chip meter rotation as an Indicator of pulp production, conductivity, condensate flow, temperature and valve position. Many of the Cluster Rule requirements did not provide instruction on the development of the monitoring and tracking systems, only the final goals.


[0007] On Apr. 15, 1998 the Environmental Protection Agency (EPA) promulgated the Cluster Rule for the pulp and paper industry. These rules establish the effluent guidelines and standards under the Clean Water Act and the national emission standards for EPA's designated hazardous air pollutants under the Clean Air Act and have a mill-wide effect on the affected International Paper mills.


[0008] The Clean Air Act Amendments of 1990 designated certain substances as hazardous air pollutants (HAPs) and required the industry to reduce HAPs using Maximum Achievable Control Technology (MACT) control measures. MACT means the best demonstrated control technology or practices used by similar sources of air toxics, defined by law as the average pollutant reduction achieved by the best-performing 12 percent of mills. The MACT regulation for the pulp and paper mills is codified in 40 CFR Part 63 Subpart S.


[0009] The regulation requires pulp and paper mills to control HAPs, using methanol and chlorine as surrogates in the mills' condensate, LVHC/HVLC and bleach plant systems, respectively. International Paper has developed an automated monitoring, record keeping and reporting system to comply with the regulation. The project objective is to comply with the requirements of these Cluster Rule components. This document was developed to establish the design specifications and programming methodology for this data collection system.


[0010] The purpose of this document is to describe the design of the record keeping and reporting system for condensate treatment using an aerated stabilization basin (ASB). The software is comprised of PI Data Archive software (which is used for automatic data collection from various process instrumentation and control systems) and Proficy software (which monitors and reports compliance based on the PI data and operator inputs). This documentation is directed toward system administrator level personnel but can be used for a basic understanding of how the system works.


[0011] The following sections describe the general configuration of the standard biological condensate treatment monitoring system. Deviations from the standard model, configuration listings for specific lines, and mill-specific details are contained within the appendices.


[0012] Foul condensate is collected in a central collection tank (Main Tank) from sources such as digesters, evaporators, and turpentine systems. For treatment in a biological system, the condensate is pumped through a hardpipe delivery system discharging below the surface of an aerated stabilization basin (ASB) (or some other device such as a UNOX system). In most cases, the flow from the Main Tank mixes with the remaining whole mill influent to create the total ASB influent flow. In a few cases, the total ASB Influent flow is equal to the hardpipe flow if the ASB is a dedicated condensate treatment system that receives no other wastewater. The metric used to determine ASB compliance is the Total ASB Influent soluble Chemical Oxygen Demand (sCOD) load relative to the basin processing capacity based on aeration horsepower (with the units of sCOD lbs/HP). sCOD is defined as the amount of oxygen required to oxidize all soluble compounds, both organic and inorganic, in water. sCOD is expressed in units of mg/l (ppm). Compliance is demonstrated by operating below the limit of sCOD lbs/HP determined in a Performance Test. Other measurements of ASB Influent Load such as to Total Organic Carbon (TOC) can be used in place of sCOD. (Specified as the alternative method in §63.463(j)2)


[0013] When the ASB treatment performance metric falls below the limit set in the performance test, the mill will respond in accordance with the SSM Plan and may retest to show compliance at this new parameter range with the result that no excess emission event occurred. (§63.453(p)) The monitoring system logs the potential Excess Emission (EE) event and corresponding operator responses to the event. The responses record the operator determined Trouble, Cause, Correction (response), and Report Code (report categorization) for the event. The report categorization specifies if the event is considered an allowable excess emission if the emission is due to a Startup, Shutdown, or Malfunction (SSM). The events are compiled by the system and reported to the state regulatory agency on a semi-annual basis or more frequently as required (§63.10).


[0014] For mills following this ASB Treatment methodology, a warning limit is attached to the 15 Day-MEOH Avg variable to warn the operator that MEOH collection is close to falling below the excess emission limit for condensate collection. If the methanol load remains lower than that collected and treated during the initial performance test, the facility may be required to raise the ASB efficiency (by lowering the sCOD lbs/HP target) following a required quarterly retest unless the methanol collection can be restored to original collection levels. The warning limit is specific to the mill based upon the biological treatment efficiency of the ASB at the sCOD lbs/HP upper limit for the ASB system. The value of the warning limit is calculated from the minimum fbio (fraction bio-degraded) that correlates to the sCOD lbs/HP upper limit, determined during a performance test; the limit is set to 11.1/fbio for bleached mills and 7.2/fbio for non-bleached mills. This warning notifies the operator to inspect and troubleshoot the condensate closed collection and treatment systems to insure compliance during the next quarterly performance test. Therefore the lower warning flag on collection may not result in an immediate excess emission for collection or treatment as long as the ASB continues to meet its initial performance test sCOD lbs/HP target. However if methanol collection levels are not restored by the quarterly test, excess emissions could be recorded indefinitely (on a daily basis) until the ASB efficiency is increased or collection restored. (§63.446(e) & (p))


[0015] In addition to capturing and categorizing EE events, the monitoring system also captures and records failures (downtime) of the Continuous Monitoring System (CMS). All Condensate Treatment ASB CMS events are manually triggered and are 24 hours in duration. This event is summarized and reported to the state in a semi-annual CMS performance report or more frequently as required. The report categorization specifies if the event is considered allowable based on the specific regulations. (§63.8(c)2, §63.8(c)8 and §63.10)


[0016] In addition to monitoring and recording the above, the monitoring system records and displays operating parameters (on the ASB Treatment Autolog) to insure that the ASB is running under normal operating conditions. These operating parameters are used with specification limits applied to notify the operator (through color coding) to take whatever action is necessary to restore the ASB to normal operating conditions. The parameters are used for display only and do not create any events. The sample location for the operating parameters will vary by mill, but the standard operating parameters for all ASB's are; sCOD, dissolved oxygen (DO), dissolved oxygen uptake rate (DOLTR), mixed liquor suspended solids (MLVSS), and specific oxygen uptake rate (SOUR).


[0017] The Total Influent Load to the ASB is monitored in three ways:


[0018] 1) A sCOD lbs/day alarm (upper user specification limit displayed on the autolog), when the maximum sCOD lbs/day design capacity of the ASB system is exceeded, indicating a possible process malfunction.


[0019] 2) A sCOD lbs/HP alarm (upper user specification limit displayed on the autolog), when the ratio of the total sCOD pounds per day to total aeration horsepower per day (sCOD lbs/HP) is 90% of the limit, indicating the operator should increase aeration horsepower or decrease influent load.


[0020] 3) A sCOD lbs/HP event (upper warning specification limit displayed on the autolog and the event is created on the downtime display), when the sCOD lbs/HP exceeds the limit established in a performance test, indicating a potential Excess Emission (EE) event.


[0021] The sCOD load is calculated by multiplying the total daily ASB influent (Gals) by the sCOD (ppm) with appropriate factors to convert the result into lbs/day delivered to the ASB. Aerator horsepower is the product of an aerator horsepower factor (a mill may have several different factors if they maintain different types of aerators) and the number of aerators of each type in service. Both Total ASB Influent flow and sCOD may require multiple calculations to first determine the contribution of the hardpipe and whole mill influent. The total sCOD (lbs/day) inlet load is divided by the total aerator horsepower (HP/day) to determine the sCOD lbs/HP for the day, or:
1sCOD(lbs/HP)=ASBInfluentFlow(gpm)*sCOD(ppm)*8.35(lbs/gal)*1440(min/day)((HP1*#Aerators1)+(HP2*#Aerators2)++(HPn*#Aeratorsn))*1,000,000.


[0022] Proficy calculates the total sCOD lbs/day, the total aerator HP/day, and the sCOD lbs/HP ratio once an operator manually enters the type and number of aerators (and/or blower systems) running, a daily sCOD test(s), and the Total ASB Influent Flow (note: at certain mills Total ASB Influent flow may be automatically entered from PI as the sum of the whole mill influent and hard pipe flows). The parameters required to calculate sCOD lbs/day are the Continuous Monitoring System (CMS) parameters for ASB treatment.


[0023] Proficy compares the sCOD lbs/HP against a upper specification warning limit established during a Performance Test to determine if a potential EE event has occurred. The duration of a potential EE event is 24 hours. Performance Tests, conducted quarterly, relate the sCOD lbs/HP ratio to a minimum required ASB MEOH removal efficiency (fbio). A sCOD lbs/HP value greater than the warning limit indicates the ASB is outside of the operating range established during the Performance Test. This indicates that the ASB is potentially overloaded and the ASB removal efficiency may be less than required for compliance.


[0024] When the potential EE event is created, the mill must respond in accordance with the SSM Plan and may retest to show compliance at this new parameter range with the result that no excess emission event occurred. The Proficy software logs the potential EE event and corresponding operator responses to the event. The responses record the operator determined Trouble, Cause, Correction (response), and Report Code (report categorization) for the event. The report categorization specifies if the event is considered an allowable excess emission if the emission is due to a Startup, Shutdown, or Malfunction (SSM). A comment is required to be entered in Proficy whenever a potential EE event occurs.1 The events are compiled by the system and reported to the state regulatory agency on a semi-annual basis or more frequently as required. 1 This is accomplished by forcing an operator to enter comment on the Trouble reason code in the Proficy downtime event.


[0025] For mills following this ASB Treatment methodology, a warning limit (the Proficy lower user specification limit) is attached to the 15 Day-MeOH Avg variable to warn the operator that MEOH collection is close to falling below the excess emission limit (the Proficy lower warning specification limit) for condensate collection. If the methanol load remains lower than that collected and treated during the initial performance test, the facility may be required to raise the ASB efficiency (by lowering the sCOD lbs/HP target) following a required quarterly retest unless the methanol collection can be restored to original collection levels. The Proficy lower user specification limit is specific to the mill based upon the biological treatment efficiency of the ASB at the sCOD lbs/HP upper limit in Proficy for the ASB system. The value of the warning limit (Proficy lower user specification limit) is calculated from the minimum fbio (fraction bio-degraded) that correlates to the sCOD lbs/HP upper limit, determined during a performance test; the limit is set to 11.1/fbio for bleached mills and 7.2/fbio for non-bleached mills. This warning notifies the operator to inspect and troubleshoot the condensate closed collection and treatment systems to insure compliance during the next quarterly performance test. Therefore the lower warning flag on collection may not result in an immediate excess emission for collection or treatment as long as the ASB continues to meet its initial performance test sCOD lbs/HP target. However if methanol collection levels are not restored by the quarterly test, excess emissions could be recorded indefinitely (on a daily basis) until the ASB efficiency is increased or collection restored.


[0026] In addition to capturing and categorizing events, the Proficy system also captures and records failures (downtime) of the Continuous Monitoring System (CMS). All Condensate Treatment ASB CMS events are manually triggered and are 24 hours in duration. This event is summarized and reported to the state in a semi-annual CMS performance report or more frequently as required. The report categorization specifies if the event is considered allowable based on the specific regulations.


[0027] In addition to monitoring and recording the above, Proficy records and displays operating parameters (on the ASB Treatment Autolog) to insure that the ASB is running under normal operating conditions. These operating parameters are used with specification limits applied to notify the operator (through color coding) to take whatever action is necessary to restore the ASB to normal operating conditions. The parameters are used for display only and do not create any events. The sample location for the operating parameters will vary by mill, but the standard operating parameters for all ASB's are; sCOD, dissolved oxygen (DO), dissolved oxygen uptake rate (DOUR), mixed liquor suspended solids (NLVSS), and specific oxygen uptake rate (SOUR).


[0028] Table-1 gives the process inputs typically required for ASB systems, their engineering units, data source, and corresponding Proficy variable names.
1TABLE 1Input VariablesProductionEngUnit/GroupProficy VariableUnitsData SourceDescriptionTreatmentTotal ASB InfluentppmManual entryDaily COD influent from labVariablessCODanalysis. More than one inputmay be required.TreatmentTotal ASB InfluentGals/dayManual entryInfluent flow daily total. MoreVariablesFlowor PIthan one input may berequired.Treatment# Of AeratorsManual entryNumber of aerators inVariablesRunningoperation (for each aeratortype).TreatmentHP/AeratorHPManual entryFactor for power deliveredVariablesper aerator (for each aeratortype).TreatmentASB Treatment DataManual entryManual treatment CMS eventCMSQuality (CMS)trigger. A menu choice allowsthe selection of a 24 hourCMS event or to indicate thatthe condensate system wasShutdown.OperatingBasin TemperatureDeg FManual entryBasin temperatureParametersor PIOperatingMinimum %%Manual entryMinimum required treatmentParametersTreatmentpercentage (fbio) - Correlatesto sCOD/HP maximumestablished during aperformance testOperatingASB sCODppmManual entrysCOD in the ASBParametersOperatingASB DO%Manual entryDissolved O2 (DO) in theParametersASBOperatingASB DOURmg/1/Manual entryDissolved O2 UptakeParametershr(DOUR) Rate in the ASBOperatingASB MLVSSmg/1Manual entryMixed Liquor VolatileParametersSuspended Solids (MLVSS)in the ASB


[0029] The percent treatment minimum limit (Minimum % Treatment) reflects the fbio (fraction bio-degraded) that correlates to the maximum sCOD lbs/HP ratio (Total LB COD/HP) that was measured during any performance test (initial or quarterly). This maximum ratio (displayed on the Max sCOD lbs/HP U per Limit Autolog variable) is the Proficy upper warning specification limit attached to the variable Total sCOD lbs/HP (see table 2 below).


[0030] Additionally each mill may define mill specific operating variables to be monitored in addition to those specified above. User Specification limits for the operating parameters are listed in the specification limits table in Section V. Table-2 lists typical calculated variables for the system and a brief description of each.
2TABLE 2Calculated VariablesEngProduction UnitProficy VariableUnitsDescriptionTreatmentCalculated ASB Influent sCODsCODDaily calculated sCOD load.VariablesLoadlbs/dayTreatmentTotal Aeration HPHP/dayTotal aeration horsepower per day.VariablesTreatmentTotal sCOD lbs/HPsCODTotal sCOD per aeration horsepower.Variableslbs/HPThe value changes color when itexceeds a warning level (Proficyupper user limit) and a potential EEevent level (Proficy upper warninglimit)TreatmentMax LBS sCOD lbs/HP UppersCODUpper warning limit that triggers aVariablesLimitlbs/HPpotential EE event for the High(Display Only)sCOD/HP load. This variable is fordisplay only and the value is updatedvia the Proficy administratorspecification entry tool on thevariable Total sCOD lbs/HP.High sCOD/HPTreatment Events (HighStatusDisplays a potential EE event (24-hr)Potential EEsCOD/HP)whenever the Total sCOD lbs/HPexceeds its upper warningspecification limit, representing themaximum sCOD lbs/HP load.Treatment CMSTreatment CMS EventsStatusDisplays a CMS 24-hr CMSdowntime event whenever the ASBTreatment Data Quality (CMS)variable selection is used to create themanual CMS event.OperatingASB SOURmg/Specific O2 Uptake Rate (SOUR).ParametersgVSS/hrTriggers a visible warning when thecalculation falls below the configuredlower user limit attached to it.Reporting UnitRun TimeMinThe daily running minutes of theCondensate Collection system.


[0031] 1) ASB Run State and PTE


[0032] The ASB basin is considered to be running anytime that the Condensate Collection system is operating. Consequently the ASB potential to emit status (PTE status) is equivalent to the Condensate Collection potential to emit. Whenever the Condensate Collection system is shutdown for a majority of the day (>80% of the potential runtime or 4.8 hours in a 24 hour period) the ASB is also considered shutdown. See the section below (Condensate System Shutdown) for a detailed explanation of how this is indicated within the system.


[0033] The total reporting minutes of ASB operation, reported to the appropriate regulatory authority on a semi-annual or more frequent basis as required, correspond to the total source operating minutes of the Condensate Collection system.


[0034] 2) sCOD Load


[0035] The whole mill influent flow and hard pipe flow (if separate streams exist) going into the ASB are sampled and analyzed daily for sCOD. The sCOD load (Calculated ASB Influent sCOD Load) is the sum of the two streams' sCODs (Total ASB Influent sCOD) multiplied by their daily total flows (Total ASB Influent Flow). Some mills have two sCOD loading (one from condensate sources and one from mill influent sources) implying that the Calculated ASB Influent sCOD Load will be the sum of the products of the sCOD and flows from each source for the day.


[0036] 3) Total Aeration Horsepower


[0037] A separate mill-specific Autolog will be designed to calculate the total aeration horsepower, Total Aeration HP.2 For each type of aerator, the number of aerators in operation will be multiplied by their respective horsepower to calculate the total horsepower for that specific aerator type. The total horsepower's for all types of aerators in operation are then summed to calculate the total aeration horsepower (Total Aeration HP. 2 This is accomplished by forcing an operator to enter comment on the Trouble reason code in the Proficy downtime event.


[0038] 4) COD Load per Aerator Horsepower


[0039] This value (Total sCOD lbs/HP) is an estimate of the sCOD load relative to the processing capacity of the basin and is calculated by dividing the ASB influent sCOD load (Calculated ASB Influent sCOD Load) by the total aeration horsepower (Total Aeration HP).


[0040] 5) ASB Treatment EE Events


[0041] An excess emission event is generated under the following conditions:


[0042] the value of Total sCOD lbs/HP is greater than its configured upper warning specification limit (i.e., a high value), and


[0043] the value of the ASB Treatment Data Quality (CMS) is not “Bad Data-24-Hr CMS” and not “Shutdown.”


[0044] If an event is created and the ASB Treatment Data Quality (CMS) variable is subsequently changed (to either “Bad Data-24-Hr CMS” or “Shutdown”) the recorded event remains in the system and must be answered appropriately.


[0045] If the mill SSM plan allows for retesting of the ASB at the higher sCOD lbs/HP ratio and the testing of the ASB determines that the sCOD lbs/HP ratio resulted in maintaining the removal efficiency, the mill may report the event as No Excess Emission.


[0046] If the parameter value is exceeded and the SSM plan allows for it, the mill may chose to run a performance test to show compliance at this new parameter range. If the removal efficiency was maintained the event may be reported as No Excess Emission. A comment in Proficy is required whenever this condition occurs.


[0047] All ASB Treatment EE events are 24-hours in duration.


[0048] 6) ASB Treatment CMS Events


[0049] A reportable 24-hour CMS downtime event is created whenever the operator or environmental contact chooses the “Bad Data-24-Hr CMS” selection on the pull-down menu of the ASB Treatment Data Quality (CMS) variable. Manually selecting this option results in the creation of a 24-hour CMS event. A 24-hour CMS event results whenever one of the following parameters (required to determine sCOD lbs/HP) cannot be determined for the day:


[0050] Total ASB Influent Flow (gals),


[0051] Total ASB Influent sCOD (ppm),


[0052] Number and Type of Aerators Running.


[0053] All ASB Treatment CMS events are 24-hours in duration.


[0054] 7) Condensate System Shutdown


[0055] Whenever the condensate system has been shutdown for greater than 80% of the day the operator or environmental contact should indicate the shutdown by selecting the “Shutdown” selection from the ASB Treatment Data Quality (CMS) variable.
3Guidelines For Use of Manual Pull-Down SelectionsRunning ConditionAppropriate Action>20% of daily runtimeEnter manual values and thecalculations willcomplete.<20% runtime (4.8 hours or 288 min.)Select “Shutdown”over the production dayNo method to determineSelect “Bad Data -aerators running,24 Hrs CMS”Bad or missing flows with no approvedalternate method of manuallyentering the values


[0056] 8) Specific O2 Uptake Rate


[0057] The Specific Oxygen Uptake Rate (SOUR), also known as the oxygen consumption or respiration rate, is defined as the milligram of oxygen consumed per gram of volatile suspended solids per hour. The value is computed by dividing the Dissolved Oxygen Uptake Rate ([mg/l]/hr) by the Mixed Liquor Volatile Suspended Solids (mg/l) and then multiplied by 1000 (1000 mg/l g) yielding the units of [mg/g]/hr.


[0058] Standard PI Model


[0059] Typically, all inputs to the standard ASB treatment model are manual entries (with the possible exception of the ASB inlet flow); therefore PI tags are not required.


[0060] Standard Proficy Model


[0061] The Proficy model consists of input variables, calculated variables, stored procedures, and Visual Basic scripts (VB scripts). Variables and associated parameters for a typical ASB treatment plant and descriptions of the stored procedures and the VB scripts are included below. Complete listings of the Stored Procedures can be found in Appendix A.
4Proficy Input VariablesDataEngEventDataSamplingSamplingVariable DescriptionSourceUnitsTypeTypeIntervalOffset3PrecisionTotal ASB Influent CODAutoLogppmTimeFloat14403300Total ASB Influent FlowAutoLogGalsTimeFloat14403300# of Aerators RunningAutoLogTimeInteger1440330HP/AeratorAutoLogHPTimeFloat14403301ASB Treatment DataAutoLogTimeData1440330Quality (CMS)Quality3The sampling offset is determined by the mill-specific start of day time. The offset value is the number of minutes from midnight to the mill start of day


[0062]

5











Proficy Calculated Variables















Variable



Sampling
Sampling





Description
Eng Units
Event Type
Data Type
Interval
Offset4
Precision
Calc Type
Calc Name





Calculated ASB
lbs COD
Time
Float
1440
330
0
Equation
Calc


Influent COD







(A*8.34*B/1000000)


Load


Total Aeration
HP
Time
Float
1440
330
0
Equation
Calc (A*B)


HP


Total LBS
lbs
Time
Float
1440
330
1
Equation
Calc (A/B)


COD/HP
COD/HP


Max LBS
lbs
Time
Float
1440
330
1
Equation
Upper Warning Spec


COD/HP Upper
COD/HP






Limit


Limit


Treatment Events
Status
Time
String
1440
330

Stored
ASB Treatment EE


(High-High








4
The sampling offset is determined by the mill-specific start of day time. The offset value is the number of minutes from midnight to the mill start of day.









[0063] Specification Limits


[0064] Proficy has upper and lower specification limits that can be defined for every variable: entry limits, user limits, warning limits, and reject limits. The following descriptions define how Proficy uses these limits to trigger events and inform operators of impending events:


[0065] User Limits


[0066] Provides a visible warning that event trigger points are being approached by changing the font color of the variable on an Autolog sheet


[0067] Warning Limits


[0068] Trigger level for EE events


[0069] Reject Limits


[0070] Trigger level for CMS events or data quality limits


[0071] Entry Limnits


[0072] Restricts the range of valid numerical entries used for a manual entry variable.


[0073] 9) Proficy Variables and Specification Limits


[0074] All manually entered operating parameters have Upper and Lower Entry specification limits.
6Total sCODUpperColor coded Autolog warninglbs/HPUserthat the Max COD/HP load isbeing approachedUpperMaximum COD/HP ratio determinedWarningduring a performance test.Triggers a 24 hour potentialEE eventASB sCODUpperColor coded Autolog warning thatUsersCOD is above normal conditionsASB DOLowerColor coded Autolog warning thatUserDO is below normal conditionsASB DOURLowerColor coded Autolog warning thatUserDOUR is below normal conditionsASB MLVSSLowerColor coded Autolog warning thatUserMLVSS is below normal conditionsASB SOURLowerColor coded Autolog warning that(Specific O2Userthe SOUR is dropping below normalUptake Rate)operating conditions


[0075] Calculations


[0076] ASB Treatment EE Events


[0077] Type: Stored Procedure—spLocal_ASBTreatmentEvents


[0078] This procedure reads the value of the dependent variable (Total LBS COD/HP) and compares it to the variable's upper warning specification limit, as specified in the calculation inputs. If this value is outside of the upper warning specification limit, then a 24-hr downtime event is created (appended if a contiguous event exists) on the variable's unit. Some mill systems may elect to specify warning limits (Lower Warning-LW and/or Upper Warning-UW) to provide operators with a visual indication on the Autolog sheet that the upper limit is being approached.


[0079] ASB Treatment CMS Events


[0080] Type: Stored Procedure—spLocal_ASBTreatmentCMS


[0081] This stored procedure creates a 24-hour downtime event that is triggered by a manual input from the operator (via ASB Treatment Data Quality (CMS)) which is configured as the dependent variable).


[0082] Calc (A*8.34*B/1000000)


[0083] Type: Equation


[0084] Calculates the value of Calculated ASB Influent COD Load from Total ASB Influent COD (input-A in ppm) and the Total ASB Influent Flow (input-B in Gals).


[0085] Upper Warning Spec Limit


[0086] Type: Equation


[0087] Returns the upper warning specification limit for a designated variable. This calculation is used to display the limit for Total LBS COD/HP.


[0088] Calc (A/B)


[0089] Type: Equation


[0090] Returns the quotient of the two inputs, A and B.


[0091] Calc (A*B)


[0092] Type: Equation


[0093] Returns the product of the two inputs, A and B.


[0094] Calc (A/B*1000)


[0095] Type: Equation


[0096] Calculates the value of the Specific O2 Uptake Rate (SOUR) by dividing the Dissolved Oxygen Uptake Rate (input-A in mg/l/hr) by the Mixed Liquor Volatile Suspended Solids (input-B in mg/l) and then multiplies by 1000 (1000 mg/g) to compute the SOUR in [mg/g]/hr.
7Stored Procedure ListingsspLocal_ASBTreatmentEvents/*Procedure Name:spLocal_ASBTreatmentEventsCopyright (C) 2001, International Paper CompanyProcess Management Application GroupGeneral Description: This procedure reads the value of the dependent variable and compares it to the variable's designated specification limit (LR,LW,UW,UR). If this value is outside the limit and the data quality flag <> ‘Shutdown’ and <> ‘Bad Data 24Hr CMS, then a 24-hr downtime event is created ( or appended if a contiguous event exists) on this variables PU.Triggers:1.Calculation Manager: Time (based on sample interval for variable).2.Dependent variable value changes.Inputs and Depedencies:1.Inputs described in body of code.2.Dependent variable - Value to be tested (e.g., 15-day MeOH Lb/ODTP)Outputs:Type: Status message (string)ValueOccures when....------------------------------------------------------------------------------------------“Later Event”An event exists with a later timestamp“No Dep Var”The dependant variable is notconfigured.“No Reject”The Reject_Limit input constantis not configured (“LR”,“LW”,“UW” or “UR”).“Incorrect Reject”The Reject_Limit input constant isconfigured but is incorrect(not“LR”,“LW”,“UW” or “UR”).“Bad Limit”The retrieved specification limitis NULL.“No Value”The dependant variable value isNULL.“Event Created”The test failed and a downtime eventwas created.“Shutdown”The data quality flag is set to ‘Shutdown’“Bad Data”The data quality flag is set to ‘Bad Data - 24Hr CMS’Variables:1. Described in body of code.Tables Modified:1.Timed_Event_Details*/CREATE PROCEDURE dbo.spLocal_ASBTreatmentEvents@OutputValue varchar(50) OUTPUT,--Ouput (not used).@Var_Id int,--This variables Var_Id.@PU_Id int,--This variables Unit Id.@Timestamp datetime,--Timestamp for this variable's datavalue.@Reject_Limit varchar(2),--Specification limitapplied in test--(valid values: “LR”,“LW”,“UW” or “UR”)@Data_Quality varchar(50)--Value of data quality flagASDeclare@DepVar_Id int,--Variable Id of the dependent variable (thevalue to be tested).@Applied_Prod_Id int,--Product Id from which spec limits are retrieved.@Prod_Id int,--Product Id from which spec limits are retrieved.@RejectVal varchar(30),--Lower warning spec limit value for the dependentvariable.@Value varchar(30),--Value to be tested against LW spec limit.@StatusId int,--Not used@FaultId int,--Not used@Reason1 int,--Used to retain reason if event is appended.@Reason2 int,--Used to retain reason if event is appended.@Reason3 int,--Used to retain reason if event is appended.@Reason4 int,--Used to retain reason if event is appended.@ProductionRate float,--Must be specified for event creation (= 0.0 inthis procedure).@Duration float,--Must be specified for event creation (= 0.0 in thisprocedure).@Transaction_Type int,--(1=Add, 2=Update, 3=Delete, 4=Close).@EventStartTime datetime,--Start time for new downtime event.@TEDet_Id int,--Downtime event Id for existing event.@@Start_Time datetime,--Start time for the downtime event if appended.@@End_Time datetime,--End time for an event for the previous interval if itexists.@TEFault_Id int,--Fault Id from fault translation table.@Outside_Limit int,--Indicates that the dependantvariable value is outside of--the specification limits@Count int,--Number of events with timestamps later thanthe timestamp for--this interval.@Current Value Varchar(50)--Value of this variable at this time.--Get the current value of this variable (i.e., the message)Select @CurrentValue=Result from Tests where Var_Id=@Var_Id and Result_On=@TimestampSet @OutputValue = @CurrentValue--Initialize variablesSelect @ProductionRate = 0.0Select @Duration = 0.0--Get variable ID of the dependent variable (this is the value to be tested).Select @DepVar_Id = Var_Id From Calculation_Instance_Dependencies Where Result_Var_Id = @Var_Id--If the dependent variable is not configured, then returnIf (@DepVar_Id is Null) Begin Set @OutputValue=‘No Dep Var’ Return End--Validate Configured Reject Limit Constantif @Reject_Limit = NULL or @Reject_Limit = “ begin Set @OutputValue = ‘No Reject’ Return end--Get the product id in order to retrieve the specification values.Select @Applied_Prod_Id = Applied_Product From events where pu_id = @PU_Id and timestamp = @Timestampif @Applied_Prod_Id is NULL Begin select @Prod_Id = Prod_Id from production_starts where pu_id = @pu_id and Start_Time <= @Timestamp and ((End_Time > @Timestamp) or (End_Time Is Null)) EndElse Begin select @Prod_Id = @Applied_Prod_Id EndSet @RejectVal = NULLif @Reject_Limit = ‘LR’Select @RejectVal = L_Reject from var_specs where var_id = @DepVar_Id andprod_id = @prod_id andEffective_Date <= @Timestamp and((Expiration_Date > @Timestamp) or (Expiration_Date Is Null))Elseif @Reject_Limit = ‘LW’Select @RejectVal = L_Warning from var_specs where var_id = @DepVar_Id andprod_id = @prod_id andEffective_Date <= @Timestamp and((Expiration_Date > @Timestamp) or (Expiration_Date Is Null))Elseif @Reject_Limit = ‘UW’Select @RejectVal = U_Warning from var_specs where var_id = @DepVar_Id andprod_id = @prod_id andEffective_Date <= @Timestamp and((Expiration_Date > @Timestamp) or (Expiration_Date Is Null))Elseif @Reject_Limit = ‘UR’Select @RejectVal = U_Reject from var_specs where var_id = @DepVar_Id andprod_id = @prod_id andEffective_Date <= @Timestamp and((Expiration_Date > @Timestamp) or (Expiration_Date Is Null))Else begin Set @OutputValue = ‘Incorrect Reject’ Return end--Validate specification limit valueIf @RejectVal is NULL or @RejectVal=“ Begin Set @OutputValue=‘Bad Limit’ Return End--Get the value of the dependent variable at this timestampSelect @Value = Result From Tests Where Var_Id = @DepVar_Id and Result_On = @Timestamp--If the dependent variable value is NULL then returnIf @Value is Null Begin Set @OutputValue=‘No Value’ Return End--Set the start time of the event to be created to 24-hrs ago.Select @EventStartTime = DateAdd(dd,−1,@Timestamp)--Check the data quality flag. Return if ‘Shutdown’ or ‘Bad Data - 24Hr CMS’If @Data_Quality = ‘Shutdown’ Begin Set @OutputValue=‘Shutdown’ Return EndIf @Data_Quality = ‘Bad Data - 24Hr CMS’ Begin Set @OutputValue=‘Bad Data’ Return EndSet @Outside_Limit = 0--Compare the value of the dependant variable to the specification limit and set flag--“@Outside_Limit” if the value is out of limitIf @Reject_Limit = ‘LR” or @Reject_Limit =‘LW’beginif Convert(float,@Value) <= Convert(float,@RejectVal) Set @Outside_Limit = 1endIf @Reject_Limit = ‘UW’ or @Reject_Limit =‘UR’beginif Convert(float,@Value) >= Convert(float,@RejectVal) Set @Outside_Limit = 1end--If the value of the dependent variable is outside the limit and--an event does not exist for the previous interval, then create a new one or--append to the event for the previous interval. The value of the Data Quality--variable must also be NULL.If @Outside_Limit = 1 AND @Data_Quality IS NULL Begin --Find all events for this PU that begin or end later than the timestamp for this variable Select @Count = Count(*)  From Timed_Event_Details  Where pu_id = @pu_id and ((Start_Time >= @Timestamp) or (End_Time >= @Timestamp)) --Return if there exists an event later than the timestamp of this variable If Convert(float,@Count) > 0.0  Begin  If @CurrentValue <> ‘Event Created’   Set @OutputValue=‘Later Event’  Return  End Select @TEDet_Id = TEDet_Id,@@Start_Time = Start_Time,@@End_Time =End_Time,@Reasonl=Reason_Level1,@Reason2=Reason_Level2,@Reason3=Reason_Level3,@Reason4=Reason_Level4,@TEFault_Id=TEFault_Id From timed_event_details Where pu_id = @Pu_Id and Start_time <= @EventStartTime and ((End_Time >= @EventStartTime)or (End_Time is Null)) If @TEDet_Id is NULL  Begin  Select 5, @PU_Id,@PU_Id,NULL,NULL,NULL,NULL,NULL,NULL,@ProductionRate,@Duration,1,@EventStartTime,NULL,0  Select 5, @PU_Id,@PU_Id,NULL,NULL,NULL,NULL,NULL,NULL,@ProductionRate,@Duration,4,NULL,@Timestamp,0  End Else  Begin  Select 5, @PU_Id,@PU_Id,NULL,@TEFault_Id,@Reason1,@Reason2,@Reason3,@Reason4,NULL,NULL,2,@@Start_Time,@Timestamp,@TEDet_Id  End Set @OutputValue=‘Event Created’ EndElse Set @OutputValue=‘No Event’TEDet_Id*/


[0097]

8













spLocal_ASBTreatmentCMS


/*








Procedure Name:
spLocal_ASBTreatmentCMS









Copyright (C) 2001, International Paper Company



Process Management Application Group







Revision History:


General Description:


 This stored procedure creates a 24-hour downtime event triggered by a manual input from the operator.


Triggers:










1.
Calculation Manager: Time (based on sample interval for variable).



2.
Dependent variable value changes.







Inputs and Depedencies:










1.
Inputs described in body of code.



2.
Dependent variable - Manual treatment CMS event trigger







Outputs:









Type: Status message (string)










Value
Occures







when....










-------------------
--------------------------







--------------------------------










“Later Event”
An event exists with a later timestamp










“No Dep Var”
The dependant variable







is not configured.










“Event Created”
A downtime event was created







or Appended.










“No Event”
An event was not created.







Variables:









1. Described in body of code.







Tables Modified:










1.
Timed_Event_Details







*/


CREATE PROCEDURE dbo.spLocal_ASBTreatmentCMS








@OutputValue varchar(50) OUTPUT,
--Ouput (not used).








@Var_Id int,
--This variables Var_Id.








@PU_Id int,
--This variables Unit Id.


@Timestamp datetime
--Timestamp for this variable's data value.







AS


Declare








@DepVar_Id int,
--Variable Id of the dependent variable (the event trigger).


@Value varchar(30),
--Value of the dependent variable.








@StatusId int,
--Not used








@FaultId int,
--Not used








@Reason1 int,
--Used to retain reason if event is appended.


@Reason2 int,
--Used to retain reason if event is appended.


@Reason3 int,
--Used to retain reason if event is appended.


@Reason4 int,
--Used to retain reason if event is appended.








@ProductionRate float,
--Must be specified for event creation (= 0.0 in this procedure).








@Duration float,
--Must be specified for event creation (= 0.0 in this procedure).








@Transaction_Type int,
--(1=Add, 2=Update, 3=Delete, 4=Close).


@EventStartTime datetime,
--Start time for new downtime event.








@TEDet_Id int,
--Downtime event Id for existing event.








@@Start_Time datetime,
--Start time for the downtime event if appended.


@@End_Time datetime,
--End time for an event for the previous interval if it exists.








@TEFault_Id int,
--Fault Id from fault translation table.








@Count int
--Number of events with timestamps later than the timestamp for









--this interval.








@CurrentValue varchar(50)
--Value of this variable at this time.







--Get the current value of this variable (i.e., the message)


Select @CurrentValue=Result from Tests


 where Var_Id=@Var_Id and Result_On=@Timestamp


Set @OutputValue = @CurrentValue


--initialize variables


Select @ProductionRate = 0.0


Select @Duration = 0.0


--Find Var_Id of the dependent variable. This variable triggers a 24-hr CMS event


Select @DepVar_Id = Var_Id


 From Calculation_Instance_Dependencies


 Where Result_Var_Id = @Var_Id


--Verify that dependent variable is configured. Return if it is not.


If (@DepVar_Id is Null)


 Begin


 Set @OutputValue=‘No Dep Var’


 Return


 End


--Get the corresponding value of the dependent variable


Select @Value = Result


 From Tests Where Var_Id = @DepVar_Id and Result_On = @Timestamp


--If the value of the dependent variable is NULL then return.


If @Value is Null


 Begin


 Set @OutputValue=‘No Event’


 Return


 End


--Set the start time of the new event to 24-Hrs ago.


Select @EventStartTime = DateAdd(dd,−1,@Timestamp)


--If the trigger variable value = ‘Treatment CMS’, then append an existing or open event if this event


overlaps


--with the existing/open event. Otherwise, create a new event.


If @Value = ‘Bad Data - 24Hr CMS’


 Begin


 --Find all events for this PU that begin or end later than the timestamp for this variable


 Select @Count = Count(*)


 From Timed_Event_Details


 Where pu_id = @pu_id and ((Start_Time >= @Timestamp) or (End_Time >= @Timestamp))


 --Return if there exists an event later than the timestamp of this variable


 If Convert(float,@Count) > 0.0


  Begin


  If @CurrentValue <> ‘Event Created’


   Set @OutputValue=‘Later Event’


  Return


  End


 Select @TEDet_Id = TEDet_Id,@@Start_Time = Start_Time,@@End_Time =


End_Time,@Reason1=Reason_Level1,@Reason2=Reason_Level2,@Reason3=Reason_Level3,@Reason


4=Reason_Level4,@TEFault_Id=TEFault_Id


 From timed_event_details


 Where pu_id = @Pu_Id and Start_time <= @EventStartTime and ((End_Time >= @EventStartTime)


or (End_Time is Null))


 If @TEDet_Id is NULL


  Begin


  Select 5, @PU_Id,


@PU_Id,NULL,NULL,NULL,NULL,NULL,NULL,@ProductionRate,@Duration,1,@EventStartTime,N


ULL,0


  Select 5, @PU_Id,


@PU_Id,NULL,NULL,NULL,NULL,NULL,NULL,@ProductionRate,@Duration,4,NULL,@Timestamp


,0


  End


 Else


  Begin


  Select 5, @PU_Id,


@PU_Id,NULL,@TEFault_Id,@Reason1,@Reason2,@Reason3,@Reason4,NULL,NULL,2,@@Start_T


ime,@Timestamp,@TEDet_Id


  End


 Set @OutputValue=‘Event Created’


 End


*/










[0098] The purpose of this document is to describe the design of the record-keeping and reporting system for the Condensate Collection system. The software is comprised of PI Data Archive software (which is used for automatic data collection from various process instrumentation and control systems) and Proficy software (which monitors and reports compliance based on the PI data and operator inputs). This documentation is directed toward system administrator level personnel but is useful for gaining a basic understanding of how the system works.


[0099] The following sections describe the general configuration of the standard condensate collection monitoring system. Deviations from the standard model, configuration listings for specific lines, and mill-specific details are contained within the appendices.


[0100] Cluster Rule regulations require that affected sites maintain continuous compliance with one of the following options for condensate collection:


[0101] Named Stream, which is the collection of all named streams listed in the regulation (§63.446(c)1); or


[0102] 65%, which is collection of all HVLC and LVHC condensate and condensates that contain at least 65% of the total HAP mass from the remaining named condensate streams using methanol (MeOH) as a surrogate (§63.446(c)2); or


[0103] lb/ton, which is the collection of at least 11.1/7.2 lb HAP/ton of oven dried pulp at the digester (bleached/unbleached respectively) from the named streams using methanol as a surrogate (§63.446(c)3).


[0104] Sites must obtain regulatory agency approval for their proposed method of continuous compliance and the continuous monitoring system (CMS). This document details IP's primary approach for continuous compliance using the lb/ton method referenced herein as the “Main Tank” or “Main Tank Collection” method.


[0105] The continuous monitoring system (CMS) is operated to measure the quantity of methanol (MeOH) collected in the main condensate collection tank relative to pulp production. The regulatory requirement (§63.446(c)3) for compliance is to collect a minimum quantity of methanol per oven dried ton of pulp produced at the digester (7.2 lbs/ODTP for a non-bleached mill and 11.1 lbs/ODTP for a bleached mill). The lbs/ODTP collected in the main tank is calculated over an averaging period (e.g. fifteen-days). The collection quantity is derived from three primary process variables:


[0106] Pulp Production (Oven Dried Tons Pulp per Day (ODTP/Day), determined from chip meter or blow rate;


[0107] Condensate Flow (gpm), determined from a flow meter on main tank outlet;


[0108] Condensate MeOH Concentration (ppm), determined from a lab test.


[0109] The data for pulp production, condensate flow and MEOH concentration are collected on a daily basis. Regulatory requirements for reduction of monitoring data are defined in §63.8(g), which requires four or more data points equally spaced over each 1 -hour period. We are using daily totals of pulp production and condensate flow to match the collection period of the daily composite sample, which is used to determine the average daily MeOH concentration. Because there are rather large variances in these process values on a day to day basis, a 15-day rolling average is used to determine the lbs/ODTP value for excess emission reporting.


[0110] The monitoring system logs all Excess Emission (EE) events and operator responses to those events, on a daily basis. The responses recorded by the operator determined Trouble, Cause, Correction (response), and Report Code (report categorization) for the event. The report categorization specifies if the event is considered an allowable excess emission due to Startup, Shutdown, and Malfunction (SSM) provisions., as required in §63.6(e)3(iii). The events are compiled by the system and reported to the state regulatory agency on a semi-annual basis or more frequently as required (§63.10).


[0111] In addition to capturing and categorizing EE and bypass events, the monitoring system also captures and records failures (downtime) of Continuous Monitoring System (CMS) devices, referred to as CMS events. CMS out of control conditions are defined in §63.8(c)7. Condensate collection CMS parameters include the MeOH Concentration, pulp production measurement (ODTP) and the daily total condensate flow. The monitoring system records these CMS events on a daily basis, along with the operator determined Trouble, Cause, Correction (response), and Report Code (report categorization) for the event, as required by §63.8(c)8. These events are summarized and reported to the state in a semi-annual CMS performance report or more frequently as required (§63.10).


[0112] Program Design


[0113] The data for pulp production and condensate flow is collected and archived by the PI system and made available to the Proficy system as daily totals. MEOH concentration data is received automatically, through a file transfer from the testing lab, or manually entered (as a fixed value or manual override) into Proficy. If the MEOH concentration is relatively stable, a fixed (factor) value for the concentration may be used in place of the lab daily analysis when approved by the appropriate regulatory authority.


[0114] At the beginning of each mill day, Proficy computes the relative MeOH collection rate (lbs MeOH/ODTP) over a 15-day window by dividing the 15-day collected MeOH total by the 15-day pulp production total (using only days and values exhibiting good data quality). This 15-day average lbs/ODTP collected is compared against the lbs per ODTP required for compliance to determine if an Excess Emission (EE) event has occurred. EE events are captured and recorded by the system whenever the calculated 15 Day lbs/ODTP of MeOH falls below the required minimum. Since this is a daily calculation, when this occurs the system records 24-hours of EE.


[0115] The Proficy software logs all EE events and operator responses to those events. The operator responses determine the Trouble, Cause, Correction (response), and Report Code (report categorization) for the event. The report categorization specifies if the event is considered an allowable excess emission due to Startup, Shutdown, and Malfunction (SSM) provisions. The events are compiled by the system and reported to the state regulatory agency on a semi-annual basis or more frequently as required.


[0116] Proficy also monitors for “bypass events” from the condensate closed collection system. A bypass event occurs when a portion of the condensate flow is diverted away from the collection system while the area is in a running state (i.e., the potential to emit HAPS [PTE] existed). Diverts are typically a result of flow diversion to sewer due to high conductivity or vessel overflow due to a malfunction—although other reasons for diverts exist. Proficy records the duration of the bypass events along with the operator responses to those events. The operator responses determine the Trouble, Cause, Correction (response), and Report Code. Bypass event reports are maintained by the mill to help categorize excess emission events (and as supporting documentation for Leak Detection and Repair (LDR) record keeping).


[0117] In addition to capturing and categorizing EE and bypass events, the Proficy system also captures and records failures (downtime) of Continuous Monitoring System (CMS) devices, referred to as CMS events. Condensate collection CMS parameters include the MeOH Concentration, pulp production measurement (ODTP determined from a chip meter or digester blows) and the daily total condensate flow. Whenever data for any of the parameters fails to meet preset criteria (out of range, poor instrument signal quality, flatline signal, or missing MEOH lab test results) the system suspends all calculations until intervention by an operator or the environmental contact. Intervention is made by either entering manual data or by selecting from a pull-down menu indicating that the system received Bad Data (creating a 24-hour CMS event and removing the day from the 15-day MeOH average calculation) or was Shutdown for greater than 80% of the production day (removing the day from the calculation but not creating a CMS event). Fields exist in the system to accommodate the manual data entry of the CMS parameters (using methods allowed by the state regulatory agency as a back up for instrumentation failures), resulting in no CMS event even when failures in automatic data collection occur.


[0118] CMS events are created manually when an operator or environmental contact determines that one or more of the CMS parameters have failed to obtain sufficient data to compute Daily MEOH collection for a 24-hour period. The individual creates the 24-hour CMS event by selecting “Bad Data” from the pull down menu on the Main Tank Proficy Autolog sheet. The system records the operator determined Trouble, Cause, Correction (response), and Report Code (report categorization) for the event. These events are summarized and reported to the state in a semi-annual CMS performance report or more frequently as required. Again, the report categorization specifies if the event is considered allowable based on the specific regulations.


[0119] Additionally Proficy provides a selection on the pull-down menu to indicate that the condensate sources were shutdown for more than 80% of the production day (i.e., operational for <4.8 hours). As with the CMS “Bad Data” selection, this has the effect of removing the day from the 15 day MeOH average calculation. Details of this process and guidelines on utilizing the menu selections are explained in detail below.


[0120] Table-1 provides the minimum required process inputs, their engineering units, associated PI tags (typical), and corresponding Proficy variable names. Italicized text represents mill-specific information.
9TABLE 1Input VariablesEngInputUnitsPI TagnameProficy VariableDaily pulp productionODTPCR-pulp_production.DayDaily - PI Digester TonsDaily condensate collectionGalsCR-cond_collection.DayDaily - PI Main Tank TotalizedFlowCondensate MeOHppmN/ALAB MeOH Conc Test ResultconcentrationPulp production data qualityCR-pulp_production.DQN/A (Used in event detectionflagmodel)Condensate flowCR-cond_collection.DQN/A (Used in event detectionmeasurement data qualitymodel)Pulp production percent%CR-pulp_production.PctGdDaily - PI chip meter % GoodgoodCondensate flow percent%CR-cond_collection.PctGdDaily - PI Main Tank FlowgoodMeter % GoodCondensate bypass or divertCR-devicename.DivertN/A (Used in event detectionevent indicatormodel)Process downtime (bothMins/DayCR-COND_Down.DAYDown Timedigester and evaporator areaare down)


[0121] Proficy also calculates, and periodically writes to PI, the data shown in Table-2 or 2A:
10TABLE 2Proficy Data Written to PIProficy VariableEng UnitsPI TagnameDescription15 Day - MeOH AvgLbs/ODTPCR-MeOHCollection.15Day15-Day average MeOH collection15 Day - MeOH Avg LowerLbs/ODTPCR-MeOHCollection.LL15-Day average MeOH collectionLimitlower specification limit from Proficy


[0122]

11





TABLE 2A










Proficy Data Written to PI For Mills following ASB Only Treatment Methods










Proficy Variable
Eng Units
PI Tagname
Description





15 Day - MeOH Avg
Lbs/ODTP
CR-MeOHCollection.15Day
15-Day average MeOH collection


(Lb/ODTP)


15 Day - MeOH Avg Lower
Lbs/ODTP
CR-MeOHCollection.LL
15-Day average MeOH collection


Limit


Lower Warning specification limit from





Proficy


15 Day - MeOH Avg
Lbs/ODTP
CR-MeOHCollection.LWL
15-Day average MeOH collection


Warning Limit


Lower User specification limit from





Proficy










[0123] Table-3 lists typical Proficy variables for the system and a brief description of each.
12TABLE 3Proficy VariablesDataProduction UnitVariableSourceDescriptionProduction Line: Condensate Event (CMS)Condensate EventCondensate CMS EventsCalculationCalculation that generates the 24-hour CMS(CMS)downtime event.Condensate EventCondensate CollectionAutoLogManual trigger for the 24-hour CMS downtime(CMS)Data Quality (CMS)event.Production Line: (mill specific)(mill specific)Daily - PI ChipPIPulp production data quality indicator (event forMetereach digester).% Good(mill specific)Daily - PI Main TankPICondensate flow data quality indicator.Flow Meter % GoodProduction Line: Main Tank ComplianceMain Tank15 Day - Avg End TimeAutoLogDisplays the timestamp for the last data point usedCompliancein the 15 Day MeOH Avg calculation.Main Tank15 Day - Avg Start TimeAutoLogDisplays the timestamp for the first data pointComplianceused in the 15 Day MeOH Avg calculation.Main Tank15 Day - Digester TonsCalculationTotal pulp production over the last 15-days whereCompliancethe corresponding data quality is good.Main Tank15 Day - MeOHCalculationTotal lbs MeOH collected over the last 15-daysComplianceCollectedwhere the corresponding data quality is good.Main Tank15 Day - MeOH AvgCalculationAverage MeOH collection over the last 15-daysCompliancewhere the data quality is good.Main Tank15 Day - MeOH AvgCalculationLower limit to alert the operator or EHS that theComplianceWarning LimitEE trigger point is being approached for MeOHcollection (Lower User Specification Limit)Main Tank15 Day - MeOH AvgCalculationTrigger limit for MeOH Collection ExcessComplianceLower LimitEmissions. Equals 11.1 (non-bleached) or 13.2(bleached). (Lower Warning Specification Limit).Main TankCondensate EE EventsCalculationCompares 15 Day - MeOH Avg (Lb/ODTP) toCompliancethe Lower Warning specification limit. An 24-hour EE event is generated if the Avg is less thanthe limit.Main TankDaily - LAB MeOHCalculationDaily Lab MeOH Concentration test result. IfComplianceConcmultiple samples are coded for a given day, equalto the last value received.Main TankFixed MeOH ConcAutoLogManually entered Fixed MeOH Concentration.ComplianceMain TankConcentration MethodAutoLogOperator selectable as “Daily Sample” or “FixedComplianceConc”. This determines whether the Daily - LABMeOH Conc or Fixed MeOH Conc is used insubsequent calculationsMain TankFixed or LAB MeOHCalculationMeOH concentration value used (LAB or FIXEDComplianceConcfrom above)Main TankDaily - Manual MeOHAutoLogManually entered MeOH concentration whichComplianceConcoverrides the calculated value.Main TankDaily - MeOH ConcCalculationSelected MeOH concentration (Fixed or LABComplianceUsed for AvgMeOH Conc or Daily - Manual MeOH Conc)used in the calculation of Daily - MeOHCollected.Main TankDaily - PI Main TankPITotalized flow from the condensate tank. ThisComplianceTotalized Flowmay come directly from a single PI tag or isderived from multiple flow totals.Main TankDaily - Manual MainAutoLogManually entered daily flow value. If entered, theComplianceTank Totalized Flowvalue will override the PI value.Main TankDaily - Main TankCalculationThe selected value used in subsequentComplianceTotalized Flow Used forcalculations.AvgMain TankDaily - MeOH CollectedCalculationCalculated lbs MeOH collected. Inputs are Daily -ComplianceMeOH Conc Used for Avg and Daily - MainTank Totalized Flow Used for Avg.Main TankDaily - PI Digester TonsPIDaily pulp production from PI (ODTP/day)ComplianceMain TankDaily - Manual DigesterAutoLogManually entered daily pulp production value. IfComplianceTonsentered, the value will override the PI value.Main TankDaily - Digester TonsCalculationDaily pulp production used in the calculation ofComplianceUsed for Avg15 Day - Digester Tons (ODTP).Main TankDaily - MeOH AvgCalculationCalculated daily MeOH collection (Daily - MeOHComplianceCollected)/(Daily - Digester Tons Used for Avg)Production Line: Main Tank LAB MeOH Test DataMain Tank LABLAB MeOH Conc TestFileCondensate sample test results.MeOH Test DataResultTransferProduction Line: Reporting UnitReporting UnitCondensate DailyPIProcess downtime (mins)DowntimeReporting UnitRunning TimeCalculationCalculated process uptime (1440- Down Time)


[0124] The following paragraphs describe the interrelationship between the PI and Proficy variables and how they work together to complete the calculation of the 15 day MEOH collection average.


[0125] Digesters and Evaporators PTE State


[0126] A performance equation calculates an individual area's potential to emit (PTE) status each minute in PI. The performance equation logic returns a state of “CanEmit” when condensate is present in the area's condensate collection system. This is normally during the period from startup of the area (digester or evaporator) until a mill specific period after the area stops operating and methanol has been cleared from the system. The digester area PTE-state (CR-Dig_PTE.STAT) is calculated each minute based upon mill specific criteria (such as chip meter feed or extraction flows for a continuous digester). Similarly, the evaporator area PTE-state (CR-Evap_PTE.STAT) is calculated each minute and is based upon mill specific criteria (typically steam or liquor flow).


[0127] Condensate System PTE State


[0128] The Condensate system's potential to emit (PTE) is determined in PI using a performance equation, CR-Cond_PTE.STAT which is calculated every minute. The equation logic returns a state of “CanEmit” when either the digester area or evaporator area has a potential to emit status of “CanEmit”. When both areas have a PTE status of “CanNotEmit” the condensate PTE tag returns a state of “CanNotEmit”.


[0129] Condensate Daily Downtime Counter


[0130] At the start of each mill day, a PI performance equation, CR-Cond_Down.Day, totals the “CanNotEmit” time for the condensate system (CR-Cond_PTE.Stat) over the previous 24-hour period. This value is read by Proficy and is used for both the daily display and daily calculation of condensate runtime (“CanEmit” for the daily period). The daily runtime minutes are kept in Proficy and are used to compute the total runtime minutes for the reporting period.


[0131] The Evaporator Area PTE, Digester Area PTE, overall Condensate System PTE and Daily Downtime data flow is depicted in FIG. 1.


[0132] Pulp Production Filtered Tag and Percent Good


[0133] For every new snapshot value for the raw DCS PI tag, a PI performance equation, CR-pulp_production.Filt, filters the raw DCS tag for bad data quality or non-running status (PTE status of “CanNotEmit”). The check for a flat-lined signal is not required since most pulp production totals are calculated from the chip meter speed or the blow counter which are generally static values. If the PTE status is in a “CanEmit” state the value of the tag is compared against upper and lower reject limits (maintained in Proficy and written periodically to PI). If the tag is within the limits the raw value is archived; if the tag is outside the limits the text string “BAD” is archived instead. When the PTE status is “CanNotEmit” a value of 0 is archived representing no additional pulp production for the minute.


[0134] At the millday rollover, a PI performance equation CR-pulp_production.PctGd, calculates the percentage of time that the CR-pulp_Production.Filt tag had a valid numerical value over the previous mill day (1440 minutes). The CR-pulp_production.PctGd tag is read by Proficy and displayed on an Autolog sheet to help explain missing data and for monitoring by operators and the environmental contact.


[0135] Daily pulp production data flow is depicted in FIG. 2.


[0136] Daily Pulp Production


[0137] At the start of each mill day a PI totalizer tag, CR-pulp_production.DAY, performs a time-weighted total of the digester pulp production rate filtered tag (CR-pulp_production.Filt, ODTP/min) over the previous 24-hour period. Only production rate values while the digester area's PTE status is “CanEmit” are included in the total.


[0138] Proficy reads the pulp production daily total and stores the value in the variable Daily-PI Digester Tons. As long as 80% of the daily runtime minutes5 for pulp production experienced good data quality, the PI system will extrapolate a production total based upon 100% of the runtime minutes. The operator can also manually enter a pulp production value (Daily-Manual Digester Tons) to override an incorrect or missing PI value in the calculation of the daily and 15 Day-Digester Tons. 5 The current implementation uses a totalizer period which is 24-hrs for the daily runtime.


[0139] Daily pulp production data flow is depicted in FIG. 2.


[0140] Condensate Collection Filtered Tag and Percent Good


[0141] For every new snapshot value for the raw DCS PI tag, a PI performance equation, CR-cond_collection.Filt, examines the raw DCS tag for bad data quality, a flat-lined signal, or non-running status (PTE status of “CanNotEmit”). If (1) the PTE status is in a “CanEmit” state, (2) the difference between the maximum value of the raw tag for the past three hours and the minimum value of the raw tag for the past three hours is greater than zero, and (3) the raw value is within upper and lower data quality limits the raw value is archived by the filter tag; if the value of the tag is outside the limits or the maximum value minus the minimum value over the three hour period is zero a value of “BAD” is archived by the tag instead. If the PTE status is “CanNotEmit” a value of 0 is archived representing no flow for the minute.


[0142] At the millday rollover, a PI performance equation CR-cond_collection.PctGd calculates the percentage of time that the CR-cond_collection.Filt tag had a valid numerical value over the previous mill day (1440 minutes). The CR-cond_collection.PctGd tag is read by Proficy and displayed on an Autolog sheet to help explain missing data and for monitoring by operators and the environmental contact.


[0143] Daily condensate data flow is depicted in FIG. 2.


[0144] Daily Condensate Collection


[0145] At the end of each mill day a PI totalizer tag, CR-cond_collection.DAY, calculates a time-weighted totalized flow out of the main collection tank (GPM) over the previous 24-hour period. Proficy reads the condensate daily total and stores the value in the variable Daily-PI Main Tank Totalized Flow. As long as 80% of the daily runtime minutes1 experienced good flow meter data quality, the PI system will extrapolate the flow total based upon 100% of the runtime minutes. The operator can also manually enter a flow value for the day (Daily-Manual Main Tank Totalized Flow) that will override an incorrect or missing PI value for daily flow. This value (and the Daily-MeOH Conc. Used for Avg value—see below) is used to calculate the daily collected MeOH (Daily-MeOH Collected). Daily collected MEOH is used in the calculation of 15 day collected MeOH (15 Day-MEOH Collected). 1 This is accomplished by forcing an operator to enter comment on the Trouble reason code in the Proficy downtime event.


[0146] Daily condensate data flow is depicted in FIG. 2.


[0147] MeOH Concentration


[0148] MeOH concentration is determined by lab analysis of samples taken from the main collection tank. The CRC lab analysis uses File Transfer Protocal (FTP) to automatically enter the lab determined MEOH concentration into the Main Tank Autolog variable Daily-Lab MeOH Conc for the period (mill day) from which the sample was taken (and applies to). For other labs, the daily concentration must be manually entered by the mill.


[0149] Alternatively a second Autolog variable, Fixed MeOH Conc. can be used in place of the Daily-Lab MeOH Conc if the mill and state regulatory agency agree upon an approach to calculate and verify a fixed MeOH factor, referred to as the Fixed MeOH Conc (Fixed MeOH Concentration).


[0150] A pull down selection (Concentration Method) is used to select between the use of the Daily-Lab MEOH Conc and the Fixed MeOH Conc. The Fixed MEOH Conc is a manually entered, repeating Autolog variable and is used whenever the pull down selection is set to FLIED CONC. The calculation of Daily MEOH Avg (lbs/ODTP) will immediately occur once the daily tons produced (ODTP) and daily totalized flows are entered in the system (either manually or automatically from PI data). Since this is a mill specific averaging period, the system administrator, in concert with the environmental contact, is responsible to manually update the value of Fixed MEOH Conc to accurately reflect the most current fixed factor MeOH concentration whenever the factor value changes (and in accordance with the regulatory agency agreed upon requirements). If the Concentration Method pull down is set to DAILY SAMPLE, the system will wait until a lab concentration is available in the Daily-LAB MeOH Conc field to compute the Daily MeOH Avg (lbs/ODTP).


[0151] A third variable, Daily-Manual MeOH Conc, is available for the environmental contact to enter a manual concentration that will override the automatically entered value (either the Daily-LAB MEOH Conc [if Concentration Method is set to DAILY SAMPLE] or the Fixed MeOH Conc [if Concentration Method is set to FIXED CONC]) in case of an incorrect or missing concentration.


[0152] Either the automatic or manually entered concentration (if entered) is copied into a fourth variable, Daily-MeOH Cone Used for Avg. The value initially is set to the automatically entered value (Daily-LAB MeOH Conc or Fixed MeOH Conc). The value updates when:


[0153] 1) a value is added to the Daily-Manual MeOH Conc;


[0154] 2) the Concentration Method flag changes (from/to DAILY SAMPLE to/from FIXED CONC); or


[0155] 3) a previously entered manual value is deleted.


[0156] Whenever the value in this variable changes, the system will re-compute the Daily MeOH Avg (lbs/ODTP) and affected 15 day averages using the new value.


[0157] Security will be applied to the variables Fixed MeOH Conc and the Concentration Method selection field to prevent anyone except the designated person from modifying the method used (Daily or Fixed) or change the value of the repeating fixed concentration. This is usually accomplished by the security on the autolog display.


[0158] MeOH concentration data flow is depicted in FIG. 4.


[0159] 10) 15-Day Totals


[0160] Fifteen-day totals for collected pounds MeOH (15 Day-MeOH Collected) and pulp production (15 Day-Digester Tons) are calculated in Proficy from the respective daily values. The calculation looks at the data over the last 30-days and sums the most recent 15 daily values where the corresponding data quality is good (as specified by the data quality flag, Condensate Collection Data Quality (CMS)). Fifteen values are required before a total is calculated. The 15-day average MeOH, 15 Day-MeOH Avg (lbs/ODTP), is calculated by dividing the 15-day collected MeOH total (15 Day-MeOH Collected) by the 15-day pulp production total (15 Day-Digester Tons).


[0161] For mills following the ASB Treatment methodology, a warning limit (the Proficy lower user specification limit) is attached to the 15 Day-MeOH Avg variable to warn the operator that MeOH Collection is close to falling below the excess emission limit (the Proficy lower warning specification limit) for condensate collection. The Proficy lower user specification limit is specific to the mill based upon the biological treatment efficiency of the ASB at the sCOD/HP upper limit in Proficy for the ASB system. The value of the warning limit (Proficy lower user specification limit) is calculated from the minimum fbio (fraction bio-degraded) that correlates to the sCOD/HP upper limit, determined during a performance test; the limit is set to 11.1/fbio for bleached mills and 7.2/fbio for non-bleached mills. This warning notifies the operator to inspect and troubleshoot the condensate closed collection and treatment systems to insure compliance during the next quarterly performance test.


[0162] Data flow for 15-day totals is depicted in FIG. 4.


[0163] Condensate Collection System EE


[0164] A main tank condensate collection EE event is created whenever the 15 Day-MEOH Avg (lbs/ODTP) is less than its lower warning specification limit configured in Proficy. The event duration is 24-hours.


[0165] Data flow for condensate system EE is depicted in FIG. 5.


[0166] Condensate System Bypass Events


[0167] Bypasses of the condensate closed collection system are monitored by PI. A typical bypass indicator is the state of a two-way divert valve (Open/Closed) or the state of a tank overflow indicator (Overflow/NotOverflow). For divert valves, a PI performance equation, CR-devicename.Divert, returns a value of “Collect” when flow through the device is directed toward the main condensate collection tank and returns a value of “Divert” when flow through the device is diverted from the main collection tank (while the device's area—digesters, evaporators or both—has a PTE status of “CanEmit”). These performance equations are calculated every minute. Bypass events are monitored for Leak Detection and Repair reporting and may contribute to an EE event if the 15-day average MeOH Lbs/ODTP collected at the main tank falls below the lower warning specification limit.


[0168] Proficy monitors these tags using Proficy downtime model 200 with up to a 15 minute filter. Any PI value other than “Collect” begins a Bypass event. The Event ends when the PI value returns to “Collect”.


[0169] Bypass Event data flow is depicted in FIG. 5.


[0170] Condensate Data Quality Indicator Events


[0171] For Data Quality indicator events, Proficy monitors the data quality status for the main tank flow meter and each digester production indicator (blow counters are usually exempt) using Proficy downtime Model-200 with a mill specific delay filter. PI performance equations, CR-devicename.DQ, return a value of “Bad” when the instrument readings are outside the mill-specified instrument range while the respective area has a PTE status of “CanNotEmit”as indicated by the associated filtered (.Filt) tag; otherwise, the returned value is “Good”. Whenever Proficy reads any value from PI other than “Good,” a Data Quality Indicator event is started. The event ends when the PI value returns to “Good.” These events are not reportable to the state and are used for diagnostic troubleshooting of the closed condensate collection system.


[0172] Missing MeOH concentration data due to problems with the sample or the lab test are captured with manual downtime events in Proficy. This event is not reportable to the state and is used for diagnostic troubleshooting of the closed collection system.


[0173] Condensate device Data Quality Indicator event data flow is depicted in FIG. 2.


[0174] Condensate CMS Events


[0175] A reportable, 24-hour CMS downtime event is created whenever the operator sets the Condensate Collection Data Quality (CMS) pull-down selection to a value of “Bad Data-24Hr CMS”. This selection will be chosen when the MeOH Concentration, daily flow total, or daily digester production (ODTP) cannot be determined for the day. The operator will use the reasons assigned to the Data Quality Indicator events for the day to assign the appropriate reasons to the 24-hour CMS event. If the mill is using a fixed MeOH concentration factor (Concentration Method set to FIXED CONC), the absence of a daily MEOH concentration will no longer result in a reportable CMS event.


[0176] Condensate system CMS event data flow is depicted in FIG. 4.


[0177] Condensate System Shutdown


[0178] Whenever the condensate system sources (digesters and evaporators) have been shutdown for a majority of the day (<20% of the potential runtime minutes or <4.8 hours per production day) the operator can manually select the option Shutdown from the pull-down selection on the Condensate Collection Data Quality (CMS) variable. This has the effect of eliminating the shutdown day data from use in computing subsequent 15-day rolling MeOH collection averages.


[0179] When one or more of the required values to compute MeOH collection are missing, Proficy will suspend MEOH calculations until the values are available or operator intervention (through manual entry of a value or manual selection regarding data quality) is made. The table below reflects the appropriate action under differing runtime conditions and/or data quality conditions.
13Guidelines For Use of Manual Pull-Down SelectionsRunning ConditionsAppropriate Action>20% of daily runtime and >80%No action required; values automatically enteredGood datain PI and read by Proficy.>20% runtime and <80% Good dataManual entry of ODTP, Total Flow, and/or(Bad or missing PI Data) and anMeOH Concentration as requiredapproved alternate method of obtainingODTP, Flow, or MeOH Concentration<20% runtime (4.8 hours or 288 min.)Select “Shutdown”over the production day<80% Good Data for runtime min.Select “Bad Data - 24 Hrs CMS”with no approved alternate method ofODTP, Flow, or MeOH Concentration


[0180]












[0181] Standard PI Model


[0182] Tag Name Specifications


[0183] All Cluster Rule PI tags will begin with “CR-”.


[0184] Digital State Set Specifications


[0185] The following are the minimum required digital state sets in PI to support the Cluster Rule Bleach Plant model.
14Digital Set NameState 0State 1P2EmitCanEmitCanNotEmitOK-EEOKEEGOOD-BADGoodBadDivertCollectDivertCollectRunningRunningNotRunning


[0186] Scan Class Specifications


[0187] The following scan classes must be available in PI. Note, the scan class number will vary from mill to mill.


[0188] A one minute scan class offset 0 seconds from midnight;


[0189] A twenty-four hour scan class offset to the start of mill day.


[0190] Examples of the scan class syntax are as follows:


[0191] /fr=00:01:00, 00:00:00 (alternately/fr=00:01:00, 0)


[0192] /fr=24:00:00, 07:00:00 (alternately/f=24:00:00, 25200) for mill day at 07:00 am


[0193] PI Totalizer Configuration


[0194] PI Totalizer tags are used to calculate daily totals from flow meters and production rate tags. In order to properly account for potential to emit status and percent good limits for the source tag, the following procedures are used to configure these totalizers:


[0195] 1. The flow source tag, which is read directly from a DCS flow indicator, will be referred to as cond_collection (Condensate Flow Indicator). The pulp production source tag, which is read directly from a DCS chip meter or blow counter, will be referred to as pulp_production (total ODTP/d).


[0196] 2. The totalizer souce tag needs to have cluster rule data quality criteria applied. This includes data quality limits (instrument range), flat-lined signal tests and PTE status. Some tags, such as chip meter RPM, may change so slowly that a flat-lined signal test is not applicable. Other tags, such as condensate flow, will check the difference in the maximum value and the minimum value over the previous three hours to insure that the tag is not flat-lined. When the PTE status is “CanNotEmit”, the .Filt tag returns a value of 0 so that the Totalizer will total a value of 0 instead of an interpolated value. The .FILT tag should be a PI PE tag, event scheduled, so that buffered DCS data will re-trigger the calculations. so that the totalizer will compute a value within one minute of the end of the day, the raw DCS tag exception max attribute must be set to 60 seconds or less. This will help Proficy's ability to read the value at the mill day rollover.


[0197] 3. Proficy will generate informational downtime events, when CMS instruments are not reading, which can be used to identify reasons for 24 hour CMS downtime, when totalizer values are missing because the % goodis less than 80%. These downtime events are generated from a .DQ tag which is “GOOD” if the .Filt tag has a numeric value and “BAD” when the .Filt tag's value is a digital state. The .DQ tag is an event scheduled PE tag, based on changes in the .FILT tag, so that it computes immediately whenever the process value changes.


[0198] 4. A .PctGd PE tag will calculate daily percent good of the .FILT, but will not generate CMS events automatically. It will be read by Proficy and displayed for operator information. Daily CMS events are manually created by the environmental contact using a Proficy Autolog pull down menu.


[0199] 5. The daily totalizer, .DAY, will use .FILT as its SourceTag using a %-good attribute of 80% (or other value negotiated with the state agency). The effect of this is that the totalizer only totalizes pulp_production or cond_collection when the status of the source tag is good (a numeric value), and there is a potential to emit (included in the .Filt tag logic). If the percent good of .FILT is greater than 80%, but less than 100%, the totalizer will extrapolate the available values to estimate a 100% daily total. If the percent good is less than 80%, the totalizer will not generate a valid daily total. When there is no potential to emit, the .FILT tag will have a value of zero, so will contribute nothing to the daily total for that period.


[0200] PI Tag Configuration Specification


[0201] Tables 4-1 and 4-2 provide tag configuration examples of performance equations for a typical condensate collection model. Tables 4-3 and 4-4 provide tag configuration examples of totalizers for a typical condensate collection model. Table 4-5 gives exception and compressions attribute standards for raw DCS PI tags.
15TABLE 4-1TagName DescriptionCommentsExdescCR-Dig.Stat/CR-Mill-DependentIf (‘flow.PV’<lowflowlimit . . . ) then “NotRunning” else “Running”Evaps.Stat6Running statusCR-Dig_PTE.STAT7CanEmit if the area isif BadVal(TimeEQ(‘CR-Dig.STAT’, ‘*-delaytime, ‘*’, “Running”))Digesters Potential to Emitrunning, producing MeOH, orthen PrevVal(‘CR-Dig_PTE.STAT’, ‘*-delaytime’) else ifStatushas been running and hasTimeEQ(‘CR-Dig.STAT’, ‘*-delaytime’, ‘*’, “Running”) >not yet purged all MeOH0 then “CanEmit” else “CanNotEmit”from the systemCR-Evaps_PTE.STAT2CanEmit if the area isif BadVal(TimeEQ(‘CR-Evaps.STAT’, ‘*-delaytime’, ‘*’,Evaporatorsrunning, producing MeOH, or“Running”)) then PrevVal(‘CR-Evaps_PTE.STAT’, ‘*-delaytime’)Potential to Emithas been running and has notelse if TimeEQ(‘CR-Evaps.STAT’, ‘*-delaytime’, ‘*’, “Running”) >Statusyet purged all MeOH from the0 then “CanEmit” else “CanNotEmit”systemCR-Cond_PTE.STAT2CanEmit if either dig orIf ‘CR-Dig_PTE.STAT’ = “CanNotEmit” and ‘CR_Evaps_PTE.STAT =Condensateevaps area PTE is“CanNotEmit” then “CanNotEmit” else “CanEmit”Potential to Emit“CanEmit”;StatusCanNotEmit if both dig andevaps area PTE is CanNotEmitCR-Cond_Down.Day8Total minutes in theTimeEq(‘CR-Cond_PTE.STAT’, ‘Y+7H’, ‘T+7H’,Daily CondensateCanNotEmit state for“CanNotEmit”)/60downtimeyesterdays operating dayCR-pulp_production.FiltFilters raw DCS tag based onEvent=pulp_production, if ‘CR-Dig_PTE.STAT’=“CanEmit” then (ifPulp productionupper and lower limts and PTE(‘pulp_production’>=lowlowlimit and ‘pulp_production’<=rate filteredstatushihilimit) then ‘pulp production’ else “Bad”) else 0CR-cond_collection.FiltFilters raw DCS tag based onEvent=cond_collection, if ‘CR-Cond_PTE.STAT’=“CanEmit” then (ifCondensate collectionupper and lower limts and PTE(TagMax(‘cond_collection’, ‘*-3h’, ‘*’) − TagMin(‘cond_collection’,filteredtatus‘*-3h’, ‘*’) > 0 and ‘cond_collection’>=lowlowlimit and‘cond_collection’<=hihilimit) then ‘ cond_collection’ else “Bad”) else 0CR-pulp_production.DQ4BAD if .Filt tag has BADevent=CR-pulp_production.Filt, if BadVal(‘ CR-pulp_production.Filt ’)Pulp productionvalue; GOOD is Filt tag hasthen “Bad” else “Good”rate data qualitynumeric valueCR-cond_collection.DQ9BAD if .Filt tag has BADevent=CR-pulp_production.Filt, if BadVal(‘ CR-pulp_production.Filt ’)Condensate Collectionvalue; GOOD is Filt tagthen “Bad” else “Good”Data Qualityhas numericvalueCR-pulp_production.PctGdCalculates the daily percentIf BadVal(PctGood(‘CR-pulp_production.Filt’, ‘Y+420M’, ‘T+420M’))Pulp productiongood of the .Filt tagthen 0 else PctGood(‘CR-pulp_production.Filt’, ‘Y+420M’,rate % Good‘T+420M’)CR-cond_collection.PctGdCalculates the daily percentIf BadVal(PctGood(‘CR-pulp_production.Filt’, ‘Y+420M’, ‘T+420M’))Condensate collection %good of the .Filt tagthen 0 else PctGood(‘CR-pulp_production.Filt’, ‘Y+420M’,Good‘T+420M’)CR-devicename.Divert10Monitor tank overflows andFor tank overflows - If (‘CR-Cond_PTE.STAT’=”CanNotEmit”) thenBypass eventdiverts of condensate to“Collect” else if (‘tank_level.PV’ <= HiHiLimit) then “Collect”sewer for leak detectionelse “Divert”and repair reportingFor divert valves - If (‘CR-Cond_PTE.STAT’=”CanNotEmit”) then“Collect” else if (‘devicename.PV’ = “Open”) then“Collect” else “Divert”CR-15-Day Average MeOHMeOHCollection.15DaycollectionCR-MeOHCollection.LL15-Day Avg MeOHcollection Low LimitCR-15-Day Avg MeOH coll.MeOHCollection.LWL11Low User Limit6Running Status tag logic is to be defined so that any error conditions will default to the value of “Running” (final clause is else “Running”) 7If delaytime is not required, running status logic is used in the PTE tag and the running status tag is not needed. PTE Status tag logic is defined so that the default value is “CanNotEmit” (final clause is else “CanNotEmit”) 8Daily downtime tag logic, Y+7H refers to 7:00 am yesterday and T+7H refers to 7:00 am today for a mill-day rollover of 7:00 am (adjust for mill's actual rollover) 9Data Quality (CMS) tag logic is defined so that any error conditions will default to the value of “Bad” (final clause is else “Bad”) 10Bypass Divert tag logic is defined so that any error conditions will default to the value of “Divert” (final clause is else “Divert”) 11Lower User Specification Limit is written to PI ONLY when ASB Treatment method is used.


[0202]

16



















TABLE 4-2













LLoca-

Com-









Tag
eng
Point
Ppoint
Digital
tion
cComp
press-
Comp
Eexc

shut-


Name
units
Source
type
Set
4
dev
ing
Max
dev
excmax
down
step
zero
Span































CR-


Running/
C
Digital
Running
1
Mill
1
Mill
Mill
Mill
1
0






Dig.


NotRunning




std

std
std
std








Stat/






CR-Evaps.






Stat




CR-
CanEmit/
C
Digital
P2EMIT
1
0
1
28800
00
60
1
0


Dig_PTE.
CanNotEmit


STAT


CR-
CanEmit/
C
Digital
P2EMIT
1
0
1
28800
00
60
1
0


Evaps_PTE.
CanNotEmit


STAT


CR-
CanEmit/
C
Digital
P2EMIT
1
0
1
28800
00
60
1
0


Cond_PTE.
CanNotEmit


STAT


CR-
Min/Day
C
Float32

4
0
1
7200
00
60
0
1
0
1440


Cond_Down.


Day


CR-
ODTP/m
C
Float32

1
0
1
Mill
0
60
1
0
?
?




pulp
_








std




production
.



Filt


CR-
GPM
C
Float32

1
0
1
Mill
0
60
1
0
?
?




cond
_








std




collection
_





tag
.



Filt


CR-
GOOD-
C
Digital
BAD-
1
0
1
28800
0
60
0
0




pulp
_

BAD


GOOD




production
.



DQ


CR-
GOOD-
C
Digital
BAD-
1
0
1
28800
0
60
0
0




cond
_

BAD


GOOD




collection
_





tag
.



DQ


CR-
%
C
Float32

4
0
1
7200
00
60
1
1
0
100




pulp
_





production
.



PctGd


CR-
%
C
Float32

4
0
1
7200
0
60
0
1
0
100




cond
_





collection
_





tag
.



PctGd


CR-
Divert-
C
Digital
Divert-
1
0
1
28800
0
60
0
1




device-


Collect


Collect




name
.



Divert


CR-
Lbs/
Lab
Float32

1
0
1
28800
0
600
0
1
0
15


MeOH-
ODTP


Collection.


15 Day


CR-
Lbs/
Lab
Float32

1
0
1
28800
0
600
0
1
0
15


MeOH-
ODTP


Collection.


LL


CR-
Lbs/
Lab
Float32

1
0
1
28800
0
600
0
1
0
15


MeOH-
ODTP


Collection.


LWL






Note:




Italics print represents mill specific information.








[0203]

17











TABLE 4-3








Tag








Name/Descriptor
Comments
Eng units
pointsource
Pt class
Sourcetag
FilterExpr







CR-pulp_production.
Totalizes filtered
ODTPD
T
Totalizer
CR-pulp_production_tag.Filt
Must be none


DAY Daily Total
pulp production



(daily digester production)


Digester
rate tag for


Production
yesterday. Must



have 80% of good



value


CR-cond_collection
Totalizes
Gal/Day
T
Totalizer
CR-cond_collection_tag.Filt
Must be none


DAY Daily Total
filtered condensate


Condensate to
flow to treatment


Treatment
for yesterday. Must



have 80% of good



values










[0204]

18













TABLE 4-4








Tag Name
Rate Sample Mode
Total Close Mode
Report Mode
Function
CalcMode
Period
Offset
Pct Good







CR-pulp_production.DAY
Natural
Clock
Period End
Total
Time weighted
+1 d
+7 h1
80


CR-cond_collection.DAY
Natural
Clock
Period End
Total
Time weighted
+1 d
+7 h1
80






Note:




Italics print represents mill specific information.






1
Totalizes values for yesterday's MILL day. Example shows offset for mill day rollover at 7:00 am.









[0205]

19











TABLE 4-5








Tag Name
Descriptor
ExcDev
ExcMax
Comp Dev
Comp Max
Compressing









pulp
_production

Raw DCS tag for pulp
Mill std
60
Mill std
<= 3600
1



production




cond
_collection

Raw DCS tag for main tank
Mill std
60
Mill std
<= 3600
1



flow




devicename.PV


Raw DCS tag for divert
Mill std
60
Mill std
Mill std
1



valve




tank
_level.PV

Raw DCS tag for tank level
Mill std
60
Mill std
Mill std
1










[0206] Standard Proficy Model


[0207] The Proficy model consists of input variables (PI inputs), calculated variables, stored procedures, and Visual Basic scripts (VB scripts). Variables for a typical Condensate Main Tank Collection system and descriptions of the stored procedures and the VB scripts are included below. Complete listings of the Stored Procedures can be found herein.


[0208] PI Interface Proficy Variables
20VariableDataEngEventDataSamplingSamplingSamplingSamplingPIDescriptionSourceUnitsTypeTypePrecisionWindowIntervalOffset1TypeTag15 Day -Calcu-lbs/TimeFloat21440420CR-MeOH-MeOH AvglationODTPCollection.LWL2WarningLimit15 Day -Calcu-lbs/TimeFloat21440420CR-MeOH-MeOH AvglationODTPCollection.LL2LowerLimit15 Day -Calcu-lbs/TimeFloat21440420CR-MeOH-MeOH AvglationODTPCollection.15Day2Daily -PIODTPTimeFloat0601440420LastCR-pulpPIGoodproduction.DAYDigesterValueTonsDaily -PIGalsTimeFloat0601440420LastCR-condPI MainGoodcollection.DAYTankValueTotalizedFlowDaily -PI%TimeFloat1601440420LastCR-pulpPI ChipGoodproduction.PctGdMeter %ValueGoodDaily -PI%TimeFloat1601440420LastCR-condPI MainGoodcollection.PctGdTank FlowValueMeter %GoodCondensatePIMMinTimeInteger601440420LastCR-CondDailyutesGoodDown.DayDowntimeValue1The sampling offset is determined based upon the mill-specific start of day time. The offset value is the number of minutes from midnight to the mill start of day. Example shows mill day start at 7:00 am. 2Values written to PI


[0209]

21











Proficy Calculated Variables
















Variable
Eng
Event
Data

Sampling
Sampling
Sampling
Calc
Calc


Description
Units
Type
Type
Precision
Interval
Offset
Window
Type
Name





Condensate
Status
Time
String

1440
420

Stored
Condensate


CMS







Procedure
CMS


Events








Events


15 Day -
ODTP
Time
Float
1
1440
420
21599
Stored
15 Day


Digester







Procedure
Total


Tons


15 Day -
lbs/
Time
Float
2
1440
420

Equation
Lower User


MeOH Avg
ODTP







Spec Limit


(Lb/ODTP)


Warning


Limit


15 Day -
lbs/
Time
Float
2
1440
420

Equation
Lower


MeOH Avg
ODTP







Warning


Lower Limit








Spec Limit


15 Day -
bs/
Time
Float
2
1440
420

Equation
Calc (A/B)


MeOH Avg
ODTP


15 Day -
lbs
Time
Float
0
1440
420
21599
Stored
15 Day


MeOH







Procedure
Total


Collected


Condensate
Status
Time
String

1440
420

Stored
Condensate


EE Events







Procedure
EE Events


Daily -
ODTP
Time
Float
1
1440
420

Stored
Manual


Digester







Procedure
Update


Tons Used


for Avg


Daily -
ppm
Time
Float
0
1440
420

Stored
GetMeOH-


LAB MeOH







Procedure
LabData


Conc


Fixed or
ppm
Time
Float
0
1440
420

Stored
Fixed or


LAB MeOH







Procedure
LAB MeOH


Conc








Conc.


Daily -
ppm
Time
Float
0
1440
420

Stored
Manual


MeOH Conc







Procedure
Update


Used for


Avg


Daily -
Gals
Time
Float
0
1440
420

Stored
Manual


Main Tank







Procedure
Update


Totalized


Flow Used


for Avg


Daily -
lbs
Time
Float
0
1440
420

Equation
Calc


MeOH








(A*8.34*B/


Collected








1000000)


Daily -
lbs/
Time
Float
2
1440
420

Equation
Calc (A/B)


MeOH Avg
ODTP


Condensate
Minutes
Time
Integer

1440
420

Equation
UpTime


Daily








(Daily)


UpTime










[0210]

22











11) Proficy AutoLog & File Transfer Variable

















Eng



Sampling
Sampling



Variable Description
DataSource
Units
Event Type
DataType
Precision
Interval
Offset1
Repeating


















Condensate Collection Data
AutoLog
Status
Time
Data

1440
420



Quality (CMS)



Quality


15 Day - Avg End Time
AutoLog
Date
Time
String

1440
420


15 Day - Avg Start Time
AutoLog
Date
Time
String

1440
420


Daily - Manual Digester Tons
AutoLog
ODTP
Time
Float
1
1440
420


Fixed MeOH Conc
AutoLog
ppm
Time
Float
0
1440
420
Yes


Concentration Method
AutoLog
ppm
Time
Sampling

1440
420
Yes






Method


Daily - Manual MeOH Conc
AutoLog
ppm
Time
Float
0
1440
420


LAB MeOH Conc Test Result
File
ppm
Production
Float
0
1



Transfer

Event








1
The sampling offset is determined based upon the mill-specific start of day time. The offset value is the number of minutes from midnight to the mill start of day. Example shows mill day start at 7:00 am.









[0211] Specification Limits


[0212] Proficy has upper and lower specification limits that can be defined for every variable: entry limits, user limits, warning limits, and reject limits. The following descriptions define how Proficy uses these limits to trigger events and inform operators of impending events:


[0213] User Limits


[0214] Provides a visible warning that event trigger points are being approached by changing the font color of the variable on an Autolog sheet


[0215] Warning Limits


[0216] Trigger level for EE events


[0217] Reject Limits


[0218] Trigger level for CMS events or data quality limits


[0219] Entry Limits


[0220] Restricts the range of valid numerical entries used for a manual entry variable.


[0221] 12) Proficy Variables and Specification limits
23Daily - Manual Digester TonsLower EntryMinimum possible daily digester tonsUpper EntryMaximum possible daily digester tons (max ODTP/m*1440)Fixed MeOH ConcentrationLower EntryMinimum possible daily MeOH ConcentrationUpper EntryMaximum possible daily MeOH Concentration (max ppm*1440)Daily - Manual MeOH ConcentrationLower EntryMinimum possible daily MeOH ConcentrationUpper EntryMaximum possible daily MeOH Concentration (max ppm*1440)Daily - Manual Main Tank Totalized FlowLower EntryMinimum possible daily main tank flowUpper EntryMaximum possible daily main tank flow (max gpm*1440)Daily - MeOH AvgLower UserVisible warning that EE limit is being approachedLower WarningVisible warning that EE limit for the day has been tripped (No EEevent is created)15 Day - MeOH AvgLower UserVisible warning that EE limit is being approachedLower WarningTrigger 24 hour EE eventDaily - PI chip meter % GoodLower RejectUsed to indicate bad data quality (value is always 80)Daily - PI Main Tank Flow Meter % GoodLower RejectUsed to indicate bad data quality (value is always 80)


[0222] MeOH Test Data File Transfer


[0223] MeOH concentration test results are imported from the testing lab host via file transfer. New test data is stored in a delimited ASCII file in a specified folder on the testing lab host. Proficy's FTP engine, at a specified frequency, looks for new files with a name matching a specified mask in the designated folder on the remote host. When the FTP engine detects a new file, the file is moved from the host to the folder “ProficyIncoming” folder on the Proficy server. Similarly, Proficy import Model-79 continuously monitors “ProficyIncoming” every minute for a new data file. If a new file is found, the data is parsed and transferred as inputs to the stored procedure spLocal_CRCEvent_Data where it is processed. The data file structure consists of four fields: the data source ID (e.g., example: CR-AU-MT-HP-IN where AU=mill Id), date, timestamp, and test result. The stored procedure runs once for every record in the file, creates a production event (event number format—mmddhhmmss from the data's date/time), and records the data in the TESTS table while retaining the data's relationship to the event number. If processing is successful, the file is moved to the folder “\Proficy\Processed” and the file name appended with a timestamp designating the processing date/time. If processing is unsuccessful, the file is moved to the folder “\Proficy\UnProcessed” and timestamped.


[0224] Calculations


[0225] 15 Day Total


[0226] Type: Stored Procedure—spLocal15DayTotal


[0227] This procedure looks at daily data for a specified variable (either Daily-MeOH Collected (Lbs) or Daily-Digester Tons Used for Avg (ODTP)) over the last 30-days and sums the most recent 15 daily values where the data quality is good (as specified by the data quality flag, Condensate Collection Data Quality (CMS)). Fifteen values are required before a total is calculated. Values with a timestamp that is not the mill-day rollover are excluded from the calculation.


[0228] Condensate EE Events


[0229] Type: Stored Procedure—spLocal_CondEvents


[0230] This procedure reads the value of the dependent variable (15 Day-MeOH Avg (Lbs/ODTP)) and compares it to the variable's specification limit, as specified in the calculation inputs (LW, LR, etc.). If this value is outside of the limit, then a 24-hr downtime event is created (appended if a contiguous event exists) on the variable's unit. The following table lists the possible status messages and their definition. This status message is displayed on the Autolog display as the variable Condensate EE Events.
24Status MessageDefinitionNo Dep VarCalculation is not configured correctly, dependantvariable is not configuredNo RejectCalculation is not configured correctly, reject limitinput constant is not configured.Incorrect RejectCalculation is not configured correctly, reject limitis incorrect.Bad LimitThe reject specification limit is NULL.No ValueThe dependant variable value is NULLEvent CreatedA downtime event was created because the 15 dayMeOH Avg is less than the reject limit.Event UpdatedAn existing event was extended because the nextday's 15 day MeOH Avg is still less than thereject limit.


[0231] Condensate CMS Events


[0232] Type: Stored Procedure—spLocal_CondCMSEvents


[0233] This stored procedure creates a 24-hour downtime event that is triggered by a manual input from the operator (via Condensate Collection Data Quality (CMS) which is configured as the dependent variable). . The following table lists the possible status messages and their definition. This status message is displayed on the Autolog display as the variable Condensate CMS Events.
25Status MessageDefinitionNo Dep VarCalculation is not configured correctly, dependantvariable is not configuredNo EventA downtime event was not created.Event CreatedA downtime event was created when the “Bad Data -24 hr CMS” option was chosen on theAutolog display.Event UpdatedAn existing event was extended when the “BadData - 24 hr CMS” option was chosen on theAutolog display for the next mill day.


[0234] Calc (A*8.34*B/1000000)


[0235] Type: Equation


[0236] Calculates the MeOH quantity (Lbs) from the MEOH concentration (A in ppm) and the condensate collection total (B in gals).


[0237] ManualUpdate


[0238] Type: Stored Procedure—spLocal_ManualUpdate


[0239] This procedure uses one input and one dependent variable. This procedure performs a signal selection between a manually entered (dependent variable) value and another variable (the input). If the dependant variable value (the manually entered value) is NULL, the output is the value of the input variable. Otherwise, the output is set to the value of the dependant variable. The triggers for this procedure are time (based on the sample interval for the variable), value change for the dependant variable or value change for the input variable.


[0240] Fixed or LAB MeOH Conc


[0241] Type: Stored Procedure—spLocal_MeOHConcSelect


[0242] This procedure selects the correct MeOH concentration value, Fixed MeOH Conc or Daily-LAB MeOH Conc based on the value of the pulldown selector, Concentration Method.


[0243] GetMeOHLabData


[0244] Type: Stored Procedure—spLocal_GetMeOHLabData


[0245] This procedure returns the last value for LAB MeOH Conc. Test Result, from the previous 24-hour period.


[0246] Uptime (Daily)


[0247] Type: Equation


[0248] Calculates the daily uptime in minutes (Condensate Daily UpTime) from the daily downtime received from PI (Condensate Daily Downtime)


[0249] Lower Warning Spec Limit


[0250] Type: Equation


[0251] Returns the lower warning specification limit of the specified input variable.


[0252] Lower User Spec Limit


[0253] Type: Equation


[0254] Returns the lower User specification limit of the specified input variable.


[0255] Calc (A/B)


[0256] Type: Equation


[0257] Returns quotient of the two inputs, A and B.


[0258] AutoLog Displays
26Main Tank ComplianceUnitVariableTitle TextMill DayReporting UnitMill DayPulp ProductionMain Tank ComplianceDaily - PI Pine Digester TonsKamyr Chip Meter DataDaily - PI Pine Chip Meter % GoodQualityMain Tank ComplianceDaily - Manual Pine Digester TonsMain Tank ComplianceDaily - Manual Hwd Digester TonsMain Tank ComplianceDaily - Total Digester TonsMeOH ConcentrationMain Tank ComplianceDaily - LAB MeOH ConcMain Tank ComplianceFixed MeOH ConcMain Tank ComplianceConcentration MethodMain Tank ComplianceDaily - Manual MeOH ConcMain Tank ComplianceDaily - MeOH Conc Used for AvgMeOH CollectionMain Tank ComplianceDaily - PI Main Tank Totalized FlowMain Tank ComplianceDaily - PI Main Tank Flow Meter % GoodMain Tank ComplianceDaily - Manual Main Tank Totalized FlowMain Tank ComplianceDaily - MeOH CollectedMain Tank ComplianceDaily - MeOH Avg15 Day AveragesMain Tank Compliance15 Day - MeOH CollectedMain Tank Compliance15 Day - Digester TonsMain Tank Compliance15 Day - MeOH AvgMain Tank Compliance15 Day - Avg Start TimeMain Tank Compliance15 Day - Avg End TimeCondensate Event (CMS)Condensate Collection Data Quality (CMS)ReportingReporting UnitDown TimeReporting UnitRunning Time


[0259] THIS IS THE BEGINNING OF lvhc hvlc


[0260] The purpose of this document is to describe the design of the record keeping and reporting system for the collection and destruction of Low Volume/High Concentration (LVHC) and High Volume/Low Concentration (HVLC) gases. The software is comprised of PI Data Archive software (which is used for automatic data collection from various process instrumentation and control systems) and Proficy software (which uses the data collected by PI in conjunction with manual inputs and business rules to monitor and report on the performance of the LVHC/HVLC collection and destruction system). This documentation is directed toward system administrator level personnel.


[0261] The following sections describe the general configuration of the standard LVHC/HVLC monitoring system. Deviations from the standard model, configuration listings for specific areas, and mill-specific details are contained in the appendices.


[0262] Low Volume/High Concentration (LVHC) and High Volume/Low Concentration gases from regulated sources (e.g., blow tanks, blow heat recovery, turpentine system, stripper off gas, diffusion washers, etc.) are collected by a closed vent system and treated by incineration in one or more of the following systems:


[0263] (a) Thermal oxidizer (incinerator),


[0264] (b) Power Boiler,


[0265] (c) Lime Kiln, or


[0266] (d) Flare.


[0267] The Proficy system is used to track both Excess Emission (EE) and Continuous Monitoring System (CMS) DOWNTIME events. Excess emission events occur whenever LVHC/HVLC gases (also referred to as Non-Condensible Gases) are vented to the atmosphere, when gases are inadequately treated, and when no destruction device is operating while gases are being produced. PI monitors the state of each potential emission source (e.g., vent valves, rupture disks, relief valves, loop seals, etc.) while accounting for the area's Potential to Emit status and triggers Proficy to record an event anytime gases are vented. The recorded event includes the event start time, end time and duration.12 12 As required by 40CFR §63.10(c). The regulations provide a non-SSM excess emissions allowance of 1% of operating time for the reporting period for LVHC systems before a violation is recorded (4% for HVLC systems) as stated in §63.443 (e).


[0268] PI tags also monitor the state of all destruction devices. The PI tags trigger instantaneous excess emission events in Proficy whenever any individual destruction device stops operating while regulated gas is directed to it (as determined by mill-specific process input signals). Destruction device excess emissions are recorded by the system whenever


[0269] a thermal oxidizer is in use and the monitored parameter(s) fail to meet the required standard,13 or 13 Thermal-oxidizer monitoring requirements are contained in 40 CFR §63.453(b) and §63.443(d)1 -3.


[0270] no destruction device is operating while regulated gases are being produced.


[0271] The Proficy system also captures and records failures (downtime) of Continuous Monitoring System (CMS) devices, referred to as CMS events. LVHC/HVLC CMS events are created only for applicable destruction devices (thermal oxidizers) and only when the device is in use as a destruction device. The system records failures whenever the data signal


[0272] is suspect (out of a specified data quality range or flat-lined),


[0273] cannot be determined due to signal malfunction, or


[0274] is unavailable due to maintenance calibration.


[0275] The CMS events are summarized individually for each applicable control device and reported separately to the state in a semi-annual CMS performance report or more frequently as required.


[0276] The Proficy software logs all excess emission and CMS events and operator responses to those events. The responses record the operator determined Trouble, Cause, Correction (response), and Report Code (report categorization) for the event. The report categorization specifies if the event is considered an allowable excess emission or CMS occurrence as the event may be allowed due to Startup, Shutdown, and Malfunction (SSM) provisions. The events for LVHC collection/treatment and HVLC collection/treatment are compiled separately by the system and reported separately to the state regulatory agency on a semi-annual basis or more frequently as required.


[0277] The PI system also calculates and makes available to Proficy a “Daily Down Time” which is the time that the processes capable of producing regulated HAPs are not operating. Proficy, in turn calculates the process uptime. The total Daily Uptime for the reporting period becomes the denominator in determining if the mill has exceeded the excess emission allowance for the reporting period.


[0278] Additionally, the PI system calculates the time each day that each LVHC CMS device (thermal oxidizer) is not used to treat gases (Daily Downtime). Proficy uses this daily calculation to calculate the thermal oxidizer uptime, which becomes the denominator in determining if the mill has exceeded the CMS allowance for the reporting period.14 14 As required by 40CFR §63.454(b)(1 1)-(12) and §63.10(c)-(e). HVLC and LVHC CMS downtime is calculated and reported as a percentage of source runtime.


[0279] Events and TCC answers are recorded within the Proficy system. On a periodic or scheduled basis, mill environmental personnel can run reports listing the events (start time, end time, and duration) and their TCC answers, summarizing the total duration of all events by specific report code, and calculating excess emissions and CMS downtime against the allowances. The reports are run from Microsoft Excel using an Excel VBA add-in specifically written and designed to generate environmental reports which meet the regulatory reporting requirements.15 15 The regulatory record keeping and reporting requirements are codified in 40 CFR §63.6(e)(3), §63.8(c)(1), and §63.10.


[0280] For HVLC and LVHC reporting simultaneous excess emission events answered with different report codes are allotted time in the report summaries according to the following report hierarchy:16 16 The report code hierarchy is from top to bottom; that is, if one event is categorized Other Known Causes and a simultaneous event is categorized Process Problems, the event time is allocated and summarized as towards Other Known Causes.


[0281] 1. Other Unknown Causes


[0282] 2. Other Known Causes


[0283] 3. Process Problems


[0284] 4. Control Equipment Problems


[0285] 5. Startup/Shutdown


[0286] Additionally a sixth report code, No Excess Emission, eliminates an event from inclusion in the report categorization hierarchy and indicates that the event was recorded by the system in error. When this report code is utilized, the user must have appropriate documentation that the event was created in error and that no excess emission occurred. The single event will be excluded from the report summarization but concurrent events, either unanswered or with different report codes will be included in the report summary.


[0287] For excess emission events that contain incomplete or missing TCC answers, the report system allocates the event time to either Other Unknown Causes (in the case that there was no simultaneous event answered) or to the report code category of simultaneous events following the hierarchy above.17 17 When the only existing simultaneous event is answered No Excess Emission, the unanswered event is categorized as Other Unknown Causes for the purposes of report code summarization.


[0288] For HVLC and LVHC reporting, simultaneous CMS events answered with different report codes are allotted time according to the following report hierarchy:


[0289] 1. Other Unknown Causes


[0290] 2. Other Known Causes


[0291] 3. Monitor Equipment Malfunctions


[0292] 4. Non-Monitor Equipment Malfunctions


[0293] 5. OA/OC Calibrations


[0294] Additionally a sixth report code, No Monitor Downtime, eliminates an event from inclusion in the report categorization hierarchy and indicates that the event was recorded by the system in error. When this report code is utilized, the user must have appropriate documentation that the event was created in error and that monitoring of the thermal oxidizer was maintained. Unanswered events (or events with incomplete answers resulting in a missing report code) are categorized as Other Unknown Causes from a report summarization standpoint.


[0295] Tables-1, 2 & 3 give PI tag naming conventions and description for typical variables used in the standard model.
27TABLE 1Typical Emission Source PI TagsTag FormatDescriptionCR-millarea.STATRunning/NotRunning status of mill area.CR-millarea_PTE.STATIndicates when a mill area is capableof producing regulated gases.Ventvalve.PVAn emissions point device state indicatorMainValve.PVsuch as a vent valve position.CR-devicename.VentEE event trigger sent to Proficy.CR-Main.VentCR-Rupture.Vent


[0296]

28





TABLE 2










Typical Destruction Device PI Tags










Tag Format
Description







CR-destdevice.TREAT
Indicates when the destruction




device is operating and




that regulated gases are being




directed to a given




destruction device.



CR-LVHC.TREAT
Indicates when at least one



(or CR-HVLC.TREAT)
destruction device in the




LVHC (or HVLC) system is treating.



CR-destdevice.EE
Destruction device EE event




trigger sent to Proficy.



CR-destdevice.DQ
Indicates when the destruction




device status cannot be




confirmed. This is the CMS




downtime event trigger




monitored by Proficy.



CR-
Calculates total time for previous



destdeviceDown.Day
mill day that the destruction




device was not treating gases.











[0297]

29





TABLE 3










Reporting PI Tags










Tag Format
Description







CR-HVLC_PTE.STAT
Outputs “CanEmit” when any




one HVLC area has a




PTE value of “CanEmit”



CR-LVHC_PTE.STAT
Outputs “CanEmit” when any




one LVHC area has a




PTE value of “CanEmit”



CR-HVLC_Down.Day
Daily minutes of time when the




HVLC system is in a




“CanNotEmit” state.



CR-LVHC_Down.Day
Daily minutes of time when the




LVHC system is in a




“CanNotEmit” state.











[0298] The following sections describe in detail how the Proficy/LVHC/HVLC model triggers EE and CMS events.


[0299] Mill Area State—PTE


[0300] Each area that produces regulated gases has a potential to emit (PTE) performance equation tag in PI. The performance equation logic returns a state of “CanEmit” when HAPS are present, and can potentially be emitted when a vent valve is opened. This is normally during the period from startup of the area until a mill specified period after the area stops running, and regulated gases have been cleared from all areas of the system. The area PTE state is calculated each minute based upon mill specified, site specific criteria such as flow, motor running state or pump running state.


[0301] A block diagram of potential to emit and daily downtime/uptime data flow is depicted in FIG. 1.


[0302] Vent Source EE


[0303] For each mill area that can produce regulated gases, PI receives raw DCS states for all of the possible emission points. Generally these are digital tags that give the state of the valve (open or closed) or rupture disk (if the source is a modulating valve, PI receives an analog value from the DCS that represents % open). An event-based performance equation, CR-devicename.VENT, determines when an emission point is venting to the atmosphere while the mill area has a potential to emit. This PI performance equation returns a value of “Vent” or “NotVent.”


[0304] Vent Source EE events are created by Proficy using the Proficy downtime model 200. Proficy monitors the digital tag, CR-devicename.VENT, for the fault value of “Vent”. Whenever the value enters the fault state (or remains in the fault state for a period longer than a specified filter time), an EE event is recorded by the system.


[0305] A block diagram of the vent data flow is depicted in FIG. 3.


[0306] Main Vent Filtering (Optional)


[0307] Main vent filtering is an additional configuration to each “.Vent” tag that attempts to reduce the number of events that operators must answer when a system-wide event occurs. All upstream vents points are filtered out in PI whenever the Main Vent tag has a value of “Vent.” The main vent is defined as the last vent before the gases are routed to the destruction devices (vents at the destruction devices are not main vents).


[0308] A PI performance equation, CR-MainVent.Filt, outputs “Venting” when the main vent is “Venting” and continues to output “Venting” for a mill determined time after the main vent returns to “NotVenting.” This delay is intended to give operators time to close the upstream vents after they have closed the main vent. Each upstream vent tag is set to “NotVenting” whenever the CR-MainVent.Filt tag has the value of “Venting”.


[0309] Destruction Device Treating LVHC/HVLC Gases and EE


[0310] For destruction devices, a PI performance equation, CR-devicename.TREAT, determines if the device is accepting gases by verifying the correct operating conditions (operating flow, motor running, operating pressure or operating temperature), and that the appropriate valves are in position for LVHC/HVLC gases to be directed to the device. For thermal oxidizer devices (incinerators), where a burner management system (BMS) is connected to PI, the preferred running indicator is the BMS “Ready to Accept Gases” tag. The destruction device treating status is required for thermal oxidizer devices to determine running time for the CMS device on the reports. For other types of destruction devices, the device treating status is for other purposes. A block diagram of destruction device treatment status data flow is depicted in FIG. 2.


[0311] For thermal oxidizer destruction devices, another performance equation, CR-destdevice.EE, returns the digital state “EE” whenever the PI logic determines that the device is not properly destroying HAPS while gases are being sent to it; otherwise the equation returns the value “OK”. This tag triggers an EE event when the flame temperature is less than the minimum acceptable temperature, there is the potential to emit, and the device is accepting gases. Proficy monitors this tag using the Proficy downtime model 200. If the fault state of “EE” is detected (or remains for a period longer than a specified filter time) an EE event is triggered. A block diagram of destruction device EE and CMS data flow is depicted in FIG. 4.


[0312] Destruction Device CMS


[0313] Mills that utilize a thermal oxidizer as a destruction device for LVHC/HVLC gases must monitor the temperature of the incinerator and report CMS downtime whenever the incinerator is in use and the flame temperature sensor can not be read by PI. A PI performance equation, CR-devicename.DQ, calculates the value “Bad” when the temperature is out of range, or is in an error state, and the incinerator is selected for treatment; otherwise the value “Good” is calculated.


[0314] Proficy uses the Proficy downtime model 200 to monitor CR-devicename.DQ for the fault state, “Bad”. Whenever the PI tag value “Bad” is detected (or remains for a period longer than a specified filter time), a CMS event is recorded by the system.


[0315] A block diagram of destruction device EE and CMS data flow is depicted in FIG. 4.


[0316] CMS Runtime Counter


[0317] At the start of each mill day, a PI performance equation, CR-Incin_Down.Day, totals the “NotTreating” time for CR-Incin.TREAT over the previous 24-hour period. This value is read by Proficy and is used for both the daily display and daily calculation of Incinerator runtime (“Treating” for the daily period). The daily runtime minutes are kept in Proficy and used to compute the total incinerator treating runtime minutes for the reporting period.


[0318] LVHC/HVLC PTE Downtime Counter


[0319] Every minute, a PI performance equation, CR-LVHC_PTE.STAT/CR-HVLC_PTE.STAT, looks at each mill area PTE tag, CR-millarea_PTE.STAT. If any one mill area tag has a value of “CanEmit”, the equation returns the digital state “CanEmit”. If all of the mill area tags have a value of “CanNotEmit”, the equation returns the digital state “CanNotEmit”. At the start of each mill day, another PI performance equation, CR-LVHC_Down.Day/CR-VLC_Down.Day, totals the “CanNotEmit” time for CR-LVHC_PTE.STAT/CR-HVLC_PTE.STAT over the previous 24-hour period. This value is read by Proficy and is used for both the daily display and daily calculation of LVHC/HVLC runtime (“CanEmit” for the daily period). The daily runtime minutes are kept in Proficy and used to compute the total runtime minutes for the reporting period.


[0320] A block diagram of potential to emit and daily downtime/uptime data flow is depicted in FIG. 1.


[0321] Tag Name Specifications


[0322] All Cluster Rule PI tags will begin with “CR-”.


[0323] Digital State Set Specifications


[0324] The following are the minimum required digital state sets in PI to support the Cluster Rule LVHC/HVLC model.
30Digital Set NameState 0State 1P2EmitCanEmitCanNotEmitOK-EEOKEEGOOD-BADGoodBadVENT-NOTVENTVentNotVentRunningRunningNotRunningTREATINGTreatingNotTreatingACCEPTINGAcceptingNotAccepting


[0325] Scan Class Specifications


[0326] The following scan classes must be available in PI. Note, the scan class number will vary from mill to mill.


[0327] 1. A one minute scan class offset 0 seconds from midnight;


[0328] 2. A twenty-four hour scan class offset to the start of mill day.


[0329] Examples of the scan class syntax are as follows:


[0330] 1. /ft=00:01:00, 00:00:00 (alternately/f=00:01:00, 0)


[0331] 2. /f=24:00:00, 07:00:00 (alternately/f=24:00:00, 25200) for mill day at 07:00 am


[0332] PI Tag Configuration Specification


[0333] Tables 4 and 5 provide tag configuration examples for a typical LVHC/HVLC model. Table 6 contains exception and compression statistic requirements for underlying DCS PI tags.
31TABLE 4Typical PI Tag ConfigurationTag Name/DescriptorCommentsExdescArea + LVHC StatusesCR-millarea.STAT18Extremely mill-dependentIf (‘flow.PV’<lowflowlimit . . . ) then “NotRunning” elseMill Area running status(and area dependent)“Running”(e.g. Evap, Dig, etc. runningstatus)CR-millarea_PTE.STATCanEmit if the area isIf BadVal(TimeEq(‘CR-millarea.STAT’, ‘*-delaytime’,Mill Area potential to emitrunning, producing HAPS,‘*’, “Running”)) then PrevVal(‘CR-millarea_PTE.STAT’,statusor has been running, and‘*-delaytime’) else if TimeEq(‘CR-millarea.STAT’,has not yet purged all‘*-delaytime’, ‘*’, “Running”)>0 then “CanEmit”HAPS from the system.else “CanNotEmit”CR-LVHC_PTE.STATCanEmit if any one LVHCIf (‘CR-Millarea1_PTE.STAT’ = “CanNotEmit” andLVHC System PTE Statusproduction area is in the‘CR-Millarea2_PTE.STAT’ = “CanNotEmit” and . . . andCanEmit state.‘CR-MillArean_PTE.STAT’ = “CanNotEmit”) then“CanNotEmit” else “CanEmit”Treatment Device StatusCR-destdevice.TREAT1Treating if the thermo-Event=BMS.ReadyToAccept, (If (BMS.ReadyToAccept <> “Ready”)Destruction Device treatingoxidizer device is atthen “NotTreating” else “Treating”)status (for incinerator, limeoperating temperature, and-- or you can use the following if you do notkiln, power boiler, etc.)is accepting NCG gases.have a Burner Management System (BMS) --Event=temp.PV, (If (‘temp.PV’<=lowtemplimit . . . )then “NotTreating” else “Treating”)-- or you can use the following --Event=divertValve.PV, (If (‘divertValve.PV’ =“Open”) then “Treating” else “NotTreating”)CR-LVHC.TREATTreating if any one LVHCIf (CR-destdevice1.TREAT=“Treating”) orSome Destruction Device intreatment device is(CR-destdevice2.TREAT = “Treating”) or (CR-the LVHC System isTreating.destdevice3.TREAT = “Treating”) then “Treating”Treating NCGsThis is optional and forelse “NotTreating”display only.Venting-Main & RegularCR-devicename.Vent19,4Vent if vent device is openEvent=divertValve.PV, (If (‘CR-millarea_PTE.STAT’ =DeviceName venting EEto the atmosphere, there is a“CanNotEmit”) or (‘CR-MainVent.FILT’=“Venting”)for Regular Ventpotential to emit in thatthen “NotVent” else if (‘divertValve.PV’ = “Closed”)LVHC area, and at least onethen “NotVent” else “Vent”)LVHC treatment device is--- or for non-isolated area ---Treating.Event= VentValve.PV, (If (‘CR-LVHC_PTE.STAT’ =“CanNotEmit”) or (‘CR-MainVent.FILT’=“Venting”)then “NotVent” else if (‘VentValve.PV’ = “Closed”)then “NotVent” else “Vent”)CR-Main.VentVent if the main NCG ventEvent= MainVent.PV, (If (‘CR-LVHC_PTE.STAT’ =Main Vent Location Ventingis open to the atmosphere,“CanNotEmit”) then “NotVent” else if (‘MainVent.PV’ =and there is a potential to“Closed”) then “NotVent” else “Vent”)emitCR-MainVent.FILTExtend Vent for mill-event=CR-Main.Vent, if ‘CR-Main.Vent’=“Venting”Main Vent Location Ventingspecified time so thatthen “Venting” else if TimeEq(‘CR-Main.Vent’,extendedoperators can close vents‘*-delaytime’, ‘*’, “NotVenting”)<delaytime in secupstream of the main ventthen “Venting” else “NotVenting”after the main vent isclosed. This does NOTextend the recorded event.Optional.CR-Rupture.VentSame as device. VentTypically the same as CR-devicename.Vent (except that the logic must takeRupture Diskinto account that the pressure differential may not return after a Rupturedisk breaks)Dest Device Vent (low Temp)CR-destdevice.EEEE if LVHC treatmentEvent=temp.PV, (If(‘CR-LVHC_PTE.STAT’ = “CanNotEmit”)Destruction Device Excessdevice is accepting NCGor (‘CR-destdevice.TREAT’=“NotTreating”) then “OK”Emission (for incinerator,gases, and there is potentialelse if (‘temp.PV’ >= ‘temp.TARGET’) then “OK”lime kiln, power boiler, etc.)to emit, but the flameelse “EE”)temperature is less than theminimum required tosufficiently destroy HAPS.Incinerator CMSCR-destdevice.DQ20,21,4Bad if you cannot measureEvent= temp.PV, (If (CR-destdevice.TREAT<>“Treating”) thenDestruction Device CMSthe incinerator flame“Good” else if (TagMax(‘temp.PV’, ‘*-3 h’, ‘*’)−temperature due toTagMin(‘temp.PV’, ‘*-3 h’, ‘*’) > 0) andinstrumentation or data(‘tempPV’>=lowlowtemplimit) and (‘temp.PV’<=collection problemshighhightemplimit) then “Good” else “Bad”)(detected by a flame temp.reading either BAD oroutside of the reasonableinstrument range.)Daily Down MinutesCR-LVHC_Down.DayTotal minutes in theTimeEq(‘CR-LVHC_PTE.STAT’, ‘Y+7H’, ‘T+7H’,Daily LVHC DowntimeCanNotEmit state for“CanNotEmit”)/60522yesterdays operating day.CR-Incin_Down.DayTotal minutes in theTimeEq(‘CR-Incin.TREAT’, ‘Y+7H’, ‘T+7H’,Daily Incinerator NotNotTreating state for“NotTreating”)/605Treating Timeyesterday's operating day18Define logic so that else “Running” (or “Treating”) is the final clause, so that any error conditions will result in a default value of “Running” (or “Treating”) 19Define logic so that (else “Vent”) is the final clause, so that any error conditions will result in a default value of “Vent”20Define logic so that (else “Bad”) is the final clause, so that any error conditions will result in a default value of “Bad”. 21Where possible, use event scheduled PE tags for EE and DQ tags. This will help guarantee that PE calculations are performed shortly after the underlying process values change. For time based PE tags, take care in assigning scan classes so that undue delays are not incurred waiting for multiple passes through the PE scans. 22Y+7H refers to 7:00 AM Yesterday & T+7H refers to 7:00 AM today (used when the mill start of day = 7:00) 23To complete the effective steam ratio calculation Condensate Feed Flow must be expressed in lbs/hr. To convert condensate flow to lbs/hr, multiply the flow rate (in gal/min) by 8.35*60.


[0334]

32



















TABLE 5













Loca-

com-











point-
Point-

tion
comp-
press-
Comp-
exc-
exc-
shut-


Tag Name
engunits
source
type
DigitalSet
4
dev
ing
Max
dev
max
down
step
zero
span







CR-millarea.STAT
Running/
C
Digital
Running
1
Mill std
1
Mill Std
Mill
Mill
1
1





NotRunning







std
std


CR-
CanEmit/
C
Digital
P2EMIT
1
Mill std
1
Mill std
Mill
Mill
1
1


millarea_PTE.STAT
CanNotEmit







std
std


CR-
CanEmit/
C
Digital
P2EMIT
1
0
1
28800
0
60
1
1


LVHC_PTE.STAT
CanNotEmit


CR-
Treating
C
Digital
Treating
1
0
1
28800
0
60
1
1


destdevice.TREAT


CR-LVHC.TREAT
Treating
C
Digital
Treating
1
0
1
28800
0
60
1
1


CR-
Vent/
C
Digital
Vent/
1
0
1
28800
0
60
1
1


devicename.Vent
NotVent


NotVent


CR-Main.Vent
Vent/
C
Digital
Vent/
1
0
1
28800
0
60
1
1



NotVent


NotVent


CR-MainVent.FILT
Vent/
C
Digital
Vent/
1
0
1
28800
0
60
1
1



NotVent


NotVent


CR-Rupture.Vent
Vent/
C
Digital
Vent/
1
0
1
28800
0
60
1
1



NotVent


NotVent


CR-destdevice.EE
EE-OK
C
Digital
EE-OK
1
0
1
28800
0
60
1
1


CR-destdevice.DQ
Bad/Good
C
Digital
Bad-Good
1
0
1
28800
0
60
1
1


CR-
Min/Day
C
Float32

4
0
1
7200
1
60
0
1
0
1440


LVHC_Down.Day


CR-
Min/Day
C
Float32

4
0
1
7200
1
60
0
1
0
1440


Inicn_Down.Day










[0335]

33












TABLE 6










Point-







Tag Name
Descriptor
type
compdev
compressing
CompMax
excdev
excMax







Vent.PV
Source (DCS) vent tag
Digital
Mill std
1
Mill Std
Mill std
60


Temp.PV
Incinerator Source (DCS)
Float32
Mill std
1
<=3600
Millstd
60



tag










[0336] 1. VI. Standard Proficy Model


[0337] The Proficy model consists of input variables (PI inputs), calculated variables and equations. Variables for a standard LVHC/HVLC collection system and descriptions of EE and CMS event logic are included below.
34PI Interface Proficy VariablesDataSamplingSamplingSamplingVariableTypePrecisionIntervalOffsetWindowSampling TypePI TagDown TimeInteger1440420 115Last Good ValueCR-LVHC_Down.DayDown TimeInteger144042015Last Good ValueCR-HVLC_Down.DayDown TimeInteger144042015Last Good ValueCR-Incin_Down.DayCalculation Manager Proficy VariablesDataSamplingSamplingCalc.VariableTypePrecisionIntervalOffsetTypeCalc. NameRunningInteger1440420EquationUptime (Daily)TimeRunningInteger1440420EquationUptime (Daily)TimeRunningInteger1440420EquationUptime (Daily)Time1 The sampling offset is determined based upon the mill Start of Day time. The offset value is the number of minutes from # midnight to the mill start of day. In this example the start of day is 7:00 AM (as there are 420 minutes from midnight until 7:00 AM).


[0338] EE Event Logic


[0339] Emission source EE events are generated whenever a vent valve, rupture disk or other valve type opens to the atmosphere while the gas source(s) is operating as determined by PI. Likewise, destruction device EE events are generated whenever the device is not running and regulated gases are being directed to the device. Overlapping intervals from two or more EE events is counted as a single event for the duration of the overlap. Overlapping events are resolved at report creation by the report package and not by the Proficy or PI models. EE events are detected using downtime model-200, with an optional, mill specific delay filter.


[0340] CMS Event Logic


[0341] CMS downtime events are monitored only for particular destruction devices. Typically, the trigger is a PI tag that tests thermal oxidizer device temperature data quality. CMS events are detected using downtime model-200, with an optional, mill specific delay filter.


[0342] Include autologs and downtime event log description


[0343] Describe interaction between DCS/PI/Proficy as a part of the general overview. See Figures below.


[0344] The purpose of this document is to describe the design of the Continuous Monitoring System for foul-condensate treatment monitoring operations. Specifically, the design of the monitoring system for a Steam Stripper column adhering to the 92% compliance option, as specified in §63.446(e)3, is addressed by this document.


[0345] The software is comprised of PI Data Archive software (which is used for automatic data collection from various process instrumentation and control systems) and Proficy software (which monitors and reports compliance based on the PI data and operator inputs). This documentation is directed toward system administrator level personnel but can be used as a basic understanding of how the system works.


[0346] The following sections describe the general configuration of a standard steam stripper monitoring system following the 92% efficiency option. Deviations from the standard model configuration listings for specific lines, and mill-specific details are contained within the appendices.


[0347] Foul condensate is collected in a central collection tank (also referred to as a Main Foul Condensate Collection Tank or Stripper Feed Tank) from sources such as digesters, evaporators, and turpentine systems. From this tank, the condensate is usually heated in a stripper condensate pre-heater heat exchanger using hot, stripped condensate, before being fed to the steam stripper column. Strippers that operate at a vacuum and low temperatures may not have a pre-heater.


[0348] Typically, low pressure steam is used to strip the MeOH out of the foul condensate however strippers can also use medium pressure steam, steam generated from a condensate re-boiler, or evaporator vapor to strip the MeOH from the condensate. The steam flow carries the vaporized MeOH out of the column to a reflux condenser that condenses most of the water vapor out of the MeOH/water vapor stream leaving the column. The concentrated MeOH vapor is often called stripper off gas (SOG). Hydrogen sulfide and other total reduced sulfer (TRS) compounds will be stripped along with the MeOH and are found in high concentrations in the SOG. The SOG is sent to an incinerator, boiler, or kiln where it is incinerated for disposal. The stripped condensate is collected in the bottom of the steam stripper and usually sent through the condensate preheater to heat the incoming condensate to within about 20° F. of the stripper column operating temperature. After exiting the pre-heater, the stripped condensate is either sent to a sewer or is used back in the process.


[0349] Most steam stripper pre-heaters are designed to heat the inlet condensate temperature to within 20° F. of the outlet stripped condensate temperature. If the feed temperature is colder than design, more steam is consumed to preheat the condensate in the column, leaving less steam to actually strip (e.g. reducing the effective stripping steam). In this case, the total stripping steam required to accomplish the same degree of methanol removal should be increased to offset the portion of applied steam needed to further heat the colder incoming condensate. In general, the main reason why the inlet and outlet temperature gap widens over time is due to fouling of the condensate pre-heater.


[0350] One of the treatment options for a steam stripper is to remove or strip 92% of the MeOH in the condensate entering the stripper. The efficiency of a steam stripper to remove MeOH correlates to the ratio of effective steam flow to condensate flow in the stripper. The minimum effective steam ratio to maintain a minimum 92% MeOH removal efficiency is established by the mill during a Performance Test and used as a lower limit to determine excess emissions events.


[0351] Typically, 0.2 lbs of low pressure steam is needed for stripping to achieve 92% methanol removal per pound of foul condensate. This ratio can be expressed as a percentage, such as 20%. For a given condensate flow, inlet temperature, and MeOH concentration; the steam to foul condensate feed flow ratio is fairly constant to achieve a specific methanol removal. Some of the steam fed to the stripping column is condensed to heat the incoming foul condensate to the boiling temperature at the stripper operating pressure. The heating occurs quickly in the first feed tray of the column. About 0.001 pound of steam is needed to heat 1 pound of condensate by 1° F., or about 0.02 pounds of steam (0.02%) to heat the foul condensate 20° F. The steam that is actually doing the work to strip the methanol out of the condensate is referred to as effective steam. Every 10° F. drop in feed temperature takes 1% off the effective steam flow ratio. The effect steam ratio needed to get greater than 92% removal is approximately 0.18.


[0352] Five parameters are required to compute the effective steam ratio, which includes the three parameters required by §63.453(g):


[0353] Foul Condensate Feed Flow, lbs/hr, (FCFF)


[0354] Stripper Steam Flow, lbs/hr, (SSF)


[0355] Stripper Bottom Temperature, degF, (SBT)


[0356] Foul Condensate Feed Temperature, degF,( FCFT)


[0357] Enthalpy of the condensing steam, Btu/lb, (H), t 1000 BTU/lb, usually assumed as a constant.


[0358] Effective Steam Ratio (ESR) is computed as the ratio of effective steam flow divided by the foul condensate flow, or:
2ESR=EffectiveSteamFlowFoulCondFlow=SSF-((FCFF×(SBT-FCFT)×(1BTU/lb-F))/H)FCFF


[0359] For example, assuming:
35Stripper Steam Flow (SSF)= 10,000lb/hrFoul Condensate Feed= 100gpm (100 gpm × 500Flow (FCFF)lb/hr/gpm =50,000 lb/hr)Stripper Bottom Temp= 275° F.(SBT)Foul Condensate Feed= 255° F.Temp (FCFT)Enthalpy (H)= 1000BTU/lb (assumedconstant)


[0360] yields an effective steam ratio of
3ESR=10,000-(((50,000×(275-255))×(1BTU/lb-°F.))/1000)=9000lb/hr50,000lb/hr=0.18


[0361] As the effective steam flow ratio drops below its target, the operator can either increase steam flow to get the effective steam back up to its target level, or can reduce flow to the stripper at the same steam flow to restore the effective steam flow ratio target. The later method may result in slowing back production, or may risk sewering too much condensate per the collection requirements.


[0362] These variables are collected and archived by the PI system and made available to the Proficy system to analyze against specific criteria to determine if an Excess Emission (EE) event has occurred. Two types of excess emission events can occur during the operation of a 92% Steam Stripper system: a low 3-hour rolling average stripper efficiency event (3-hour rolling average excess emission event) and a stripper bypass event (stripper excess emission bypass event). Excess emission events for steam stripper treatment are recorded by the system whenever:


[0363] the steam stripper has the potential to emit (PTE) pollutants (as defined in PI) and the three hour effective steam ratio average falls below the lower effective steam ratio limit (lower reject specification limit); or


[0364] the condensate system sources are operating and the collection tank (stripper feed tank) overflows while the stripper is not running; or


[0365] collected MeOH is diverted from steam stripper treatment, irrespective of whether the condensate sources and steam stripper are running or not.


[0366] The steam stripper system has a 10% allowance against condensate runtime for all excess emission events, as specified in §63.446(g).


[0367] The steam stripper treatment system has the potential to emit pollutants whenever the condensate sources are operating. Therefore the potential to emit runtime for the steam stripper system corresponds to the condensate collection operating time reported to the state regulatory agency on a semi-annual basis or more frequently as required.


[0368] The PI system computes an effective steam flow and effective steam ratio every minute (CR-SS_EFFSteam.Filt and CR-SS_ESRatio.Filt) from the four parameters above (using 1000 as an enthalpy constant). The effective steam flow calculation flow is clamped at zero in the PI tag (CR_SS_ESRATIO.RAW). Additionally every fifteen minutes the related PI tag (CR-SS_ESRatio.Filt) compute what percentage of time the data quality of the effective steam ratio was good over the fifteen minute interval.


[0369] The following table gives an overview of the minimum required process inputs, their engineering units, associated PI tags, and corresponding Proficy variable names.
36InputEng UnitsPI TagnameProficy VariableSteam Stripper TreatingTreating/NotCR-SS-TREAT.STATSteam Stripper TreatingStatusTreating(Potential to Emit) Status(Snapshot)Steam Stripper Numeric0/100CR-SS_TREAT.NUMSteam Stripper TreatingPTE StatusStatus - NumericCondensate System PTECanEmit/CR-Cond-PTE.StatCondensate SystemStatusCanNotEmitPotential to Emit(Snapshot)Daily Steam StripperMin/dayCR-SS_Treat.DayStripper Daily DowntimeNot Treating minutes -calculated at mill end ofdayBottom Temperature° F.CR-SS-BottomTemp.PVN/ACondensate Feed° F.CR-SS-FeedTemp.PVN/ATemperatureCondensate Feed Flow23Lbs/hrCR-SS-CondFlow.PVN/AFeed Steam FlowLbs/hrCR-SS-FeedSteam.PVN/ABottom Temperature%CR-SS-Bottom Temperature 15Data % GoodBottomTemp.PctGdMin - % GoodCondensate Feed%CR-SS-FeedTemp.PctGdFeed Temperature 15 Min -Temperature Data %% GoodGoodFeed Steam Data %%CR-SS-Feed Steam Flow 15 Min -GoodFeedSteamFlow.PctGd% GoodCondenate Feed Flow%CR-SS-CondFlow.PctGdCondensate Flow 15 Min -Data % Good% GoodEffective Steam FlowLbs/hrCR-SS_EFFSTEAM.FiltN/AEffective Steam FlowLbs/hrCR-SS_ESRATIO.RAWN/Aclamped to 0Steam Stripper RatioCR-SS-ES_Ratio.FiltEffective Steam Ratio 15Min (Raw PI Avg)Effective Steam Flow%CR-SS-ES_Ratio.PctGdEffective Steam Ratio 15Data % GoodMin - % Good (CMS)Stripper Divert ValveEE/OKCR-SS-DivertValve.EEStripper Bypass EE EventIndicatorTank Overflow IndicatorEE/OKCR-SS-TankOverflow.EEStripper Tank OverflowEE Event


[0370] Data quality limits for the Bottom Temperature, Feed Temperature, Condensate Flow, and Steam Flow are maintained in PI. These data quality limits are used by a PI performance equation to determine if the PI process value has “Good” or “Bad” signal quality and contribute to the overall data quality of the Effective Steam Ratio calculation. Anytime that the data quality of the four parameters results in a failure of the system to reliably calculate an effective steam ratio for the fifteen minute interval, the system records a Continuous Monitoring System (CMS) event (explained in detail below).


[0371] The following sections describe in detail how the PI/Proficy steam stripper model computes effective steam and triggers Steam Stripper EE and CMS events.


[0372] a) Steam Stripper PTE and Total Runtime


[0373] In general, the steam stripper treatment system has a potential to emit pollutants whenever the condensate collection system or steam stripper column is operating. Specifically the steam stripper treatment system has three distinct potential to emit (PTE) conditions. First the steam stripper has potential to emit pollutants whenever it is operating (usually determined by a minimum flow on a flow meter and a “Running”/“NotRunning” indicator on the stripper). Under these conditions emissions occur whenever the 3 hour rolling average of stripper efficiency falls below 92%. Secondly steam stripper treatment emissions can occur whenever the condensate system is operating while the stripper is not operating. Under this condition overflows of the collection tank or foul condensate diverts upstream of the collection tank are considered steam stripper treatment excess emissions. Lastly emissions can occur if the foul condensate is present in the stripper feed tank (indicated by tank level) irrespective of stripper or condensate system operating status. In this case, emissions occur if the foul condensate is pumped out of the feed tank and towards a non-treated collection point (such as to sewer or through the column when steam is not present).


[0374] The steam stripper system has a 10% emission allowance against source (condensate collection) operating time for all types of emissions. The total number of runtime minutes used to calculate this emission allowance corresponds to the total number of runtime minutes for the condensate collection system over the same period of time.


[0375] The steam stripper is considered to be treating when the following three conditions are met:


[0376] Condensate Flow>minimum value (set by mill but not far from zero)


[0377] Steam Flow>minimum (set by mill; generally 1000 to 10000 lb/hr)


[0378] Bottom Temp>minimum treating limit (generally 212)


[0379] Each minute, the above conditions are monitored with the PI performance equation, CR-SS_Treat.Stat. This treating status is converted into a numeric value (0=NotTreating, 1=Treating) in the tag, CR-SS_Treat.NUM. This PI tag is averaged every 15 minutes and every hour by Proficy (SS % Time Treating (15 min) and SS % Time Treating (1 Hr)) to determine the average treating status over the previous 15 minutes and one hour. Proficy then translates the numeric average into a treating status using VBScript (SS CMS Treating Status (15 min) and SS EE Treating status (1 Hr)) . These average treating statuses are used to filter out EE and CMS events during NotTreating time periods.


[0380] On a daily basis, a PI tag (CR-SS_Treat.Day) computes the total number of minutes that the steam stripper was down during the previous production day. This value is used by Proficy to compute the daily total number of runtime minutes of the steam stripper system. These daily totals are used by the reporting system to compute the total number of steam stripper runtime minutes over the reporting period.


[0381] b) Computing the Effective Steam Ratio


[0382] The effective steam ratio is computed in PI each minute based upon the process data for the four process parameters above from the mill DCS system (and assuming a constant of 1000 for enthalpy). The raw value for each of the four parameters necessary to compute effective steam is first validated in PI against upper and lower specification limits (maintained in PI). If the value is within range (and not flat-lined), PI records the value into an intermediate variable (CR-SS-FeedSteam.FILT, CR-SS-CondFlow.FILT, CR-SS-BottomTemp.FILT, and CR-SS-CondTemp.FILT); if the value is out of range the intermediate variable records “Bad” instead. These PI performance equations are event based (calculated every time a new value enters the PI snapshot) so that data buffered in the PI interface will be captured and used regardless of its PI archive status. If all four process values exhibit good data quality, PI uses the intermediate values to compute an effective steam flow for the minute. PI stores this value in the PI tag CR-SS_EFFSTEAM.Filt. It is possible for the effective steam flow calculation to have a negative result during times of stripper upsets. Since negative values are theoretically impossible and can cause long periods of low three hour averages, the PI tag, CR-SS_ESRATIO.RAWclamps the effective steam ratio to 0 whenever the tag CR-SS_EFFSTEAM.Filt has a negative value. If all four process values exhibit good data quality, PI outputs the value from CR-SS_ESRATIO.RAW to Proficy.


[0383] c) Steam Stripper CMS Events


[0384] When the steam stripper system is running, failures to calculate the effective steam ratio of the stripper result in Continuous Monitoring System (CMS) events. Every fifteen minutes, Proficy computes a time-weighted average of the effective steam ratio calculation (CR-SS-SS_Ratio.Filt) over the previous fifteen minutes and stores the value in the variable Effective Steam Ratio—15 Min PI Avg. At the same time Proficy examines the CR-SS_ESRatio.PctGd tag to determine if CR-SS_ESRatio.Filt maintained “Good” data quality during at least 50% of the fifteen-minute period. If so, the computed fifteen-minute average is copied into the Proficy variable Effective Steam—15 Min Qualified Avg. If any fifteen-minute period fails to meet the 50% criteria while the SS CMS Treating Status (15 min) value is Treating, Proficy instead creates a fifteen-minute steam stripper CMS downtime event (via a stored procedure calculation) for the period or it appends fifteen-minutes to an existing CMS event (if a contiguous CMS event already exists).


[0385] Every fifteen-minutes Proficy also reads and displays the data quality results (% Good) for each parameter required to complete the effective steam ratio calculation. These data-quality values assist the operator in determining which of the four signal(s) was (were) responsible if the effective steam ratio average could not be calculated (resulting in the CMS event). These values are displayed on the steam stripper display for diagnostic purposes but do not, by themselves, create CMS events.


[0386] The Proficy software logs all Steam Stripper CMS events and operator responses to those events. The responses record the operator determined Trouble, Cause, Correction (response), and Report Code (report categorization) of the event. The events are compiled, measured against the stripper operating time for the reporting period, and reported to the state regulatory agency on a semi-annual basis or more frequently as required.


[0387] d) Steam Stripper Excess Emission Events


[0388] Two types of excess emission events can occur during the operation of a 92% Steam Stripper system: a 3-hour rolling average excess emission event and a stripper bypass excess emission event.


[0389] 13) 3-Hour Rolling Average Excess Emission Event


[0390] Once per hour, Proficy examines all fifteen-minute qualified averages (Effective Steam Ratio—15 Min Qualified Avg) during the previous three-hour period. If greater than 50% of the averages exist and have good data quality, Proficy computes a 3-hour rolling average effective steam ratio (Effective Steam Ratio—3 HR Avg.) from all fifteen minute averages exhibiting Good data quality. This computed three hour average is compared against a lower limit (lower specification warning limit on the Effective Steam—3 HR Avg. variable) and if the value falls below the limit and the SS EE Treating Status (1 Hr) value is Treating, Proficy creates a one-hour Excess Emission downtime event or, in the case that a previous contiguous excess emission event existed, it appends one-hour to the existing event (via a stored procedure calculation). The value is also written back to the PI tag CR-SS_ESRatio. 3H for trending within the mill.


[0391] No manual entry of steam stripper effective steam ratio is available in the system.


[0392] The Proficy software logs all Steam Stripper Rolling Average EE events and operator responses to those events. The responses record the operator determined Trouble, Cause, Correction (response), and Report Code (report categorization) of the event. All report categorizations except No Excess Emission are totaled and reported to the state regulatory agency on a semi-annual basis, or more frequently as required, against the 10% steam stripper emission allowance.


[0393] 14) Steam Stripper Excess Emission Bypass Events


[0394] In addition to 3-hour rolling average excess emission events, a steam stripper column also incurs excess emissions if condensate bypasses the stripper column prior to or without treatment while the condensate collection system is operating or during stripper downtime if previously collected condensate is diverted to a non-treated collection point (such as sewer).


[0395] The five types of PI calculations used to monitor steam stripper bypass excess emissions are described below. All of the following PI performance equations are evaluated at least once a minute and are monitored by the Proficy system using model 200 (with a mill specific filter applied). Proficy creates an (EE) event for each minute that the PI performance equations' value is E.


[0396] 1. Main Collection Tank Overflow


[0397] When the tank level is greater than a maximum while the condensate system is operating and the stripper is not running, the performance equation records the minute as a steam stripper bypass excess emission.


[0398] 2. Main Collection Tank Bypass Before Collection Boundary


[0399] When a bypass value located after the tank outlet and before the condensate collection boundary (flow meter) is open (bypassing) while the condensate system is operating and the stripper is not running, a performance equation records the minute as a steam stripper bypass excess emission.


[0400] 3. Main Collection Tank Upstream Bypass


[0401] When the condensate system is operating, the stripper is not running, the main collection tank is not overflowing and all bypasses after the main collection tank outlet are not bypassing, a performance equation checks for any overflows or diverts upstream of the main collection tank. If any upstream diverts occur under the described conditions, the performance equation records the minute as a steam stripper bypass excess emission.


[0402] 4. Main Collection Tank Bypass After Collection Boundary


[0403] When the stripper is not running, a PI performance equation examines the state of any bypass valves past the collection tank (flow meter) but prior to the stripper column to determine if collected condensate is being directed away from the steam stripper column, which is recorded as a steam stripper bypass excess emission.


[0404] 5. Steam Stripper Feed Without Steam Flow


[0405] When the condensate system is operating and the stripper is not running, a performance equation monitors the foul condensate feed flow to the column. If the condensate feed flow is greater than a minimum value, the performance equation records the minute as a steam stripper excess emission.


[0406] The Proficy software logs all Steam Stripper EE Bypass events and operator responses to those events. The responses record the operator determined Trouble, Cause, Correction (response), and Report Code (report categorization) of the event. The steam stripper system has a 10% allowance against the overall condensate system runtime period. Events categorized as No Excess Emission are excluded from this calculation however all other report codes are included in it. The events are compiled and reported to the state regulatory agency on a semi-annual basis or more frequently as required.


[0407] Should a bypass event occur simultaneously during the period when the steam stripper three-hour effective steam rolling average falls below the minimum effective steam limit, only one hour of excess emissions will be reported by the reporting system. That is, in any 24-hour period, there can be no more than 24 hours of total stream stripper excess emissions.


[0408] Table-1 gives the process inputs required for a typical steam stripper system, their engineering units, data source, and corresponding Proficy variable names.
37TABLE 1Input VariablesProductionEngDataUnitProficy VariableUnitsSourceDescriptionSS TreatmentEffective Steam Ratio (%%PI15 min percent good effectiveVariablesGood)steam ratio calculationSS TreatmentEffective Steam RatioratioPI15 min Avg of one minute PIVariables(Raw 15M Avg)calculated effective steamratio.SS TreatmentBottom Temperature 15%PI15 min percent good ofVariablesMin - % GoodBottom Temperature. Usedfor display only.SS TreatmentFeed Temperature 15%PI15 min percent good of CondVariablesMin - % GoodFeed Temperature. Used fordisplay only.SS TreatmentCond Feed Flow 15 Min -%PI15 min percent good ofVariables% GoodCondensate Feed Flow. Usedfor display only.SS TreatmentFeed Steam Flow 15 Min -%PI15 min percent good of FeedVariables% GoodSteam Flow. Used for displayonly.Reporting UnitSteam Stripper TreatingTreating/PIsnapshot of SS TreatingStatus (snapshot)NotTreatingStatus. Used for displayonly.Reporting UnitSS % Time Treating (15%PI15 minute average of SSmin)numeric treating statusReporting UnitSS % Time Treating (1%PI1 hour average of SS numericHr)treating statusReporting UnitCondensate DailyMinPICondensate System processDowntimedowntime (mins)Reporting UnitStripper Daily DowntimeMinPISteam Stripper systemdowntime (mins)


[0409] Table-2 lists typical calculated variables for the system and a brief description of each.
38TABLE 2Calculated VariablesProduction UnitProficy VariableEng UnitsDescriptionSS TreatmentEffective Steam Ratio 15 MinRaw average of 15 min effectiveVariablesAvgsteamSS TreatmentEffective Steam Ratio 15 MinStatusData quality status of 15 min averageVariablesAvg (Status)based on percent good over the 15minute window.SS TreatmentEffective Steam Ratio 15 MinStatusQualified 15 minute average or theVariablesAvg/Status (Used for 3 Hr Avg)status if data quality criteria was notmet.SS TreatmentEffective Steam Ratio 3 HrRolling 3 hour average, calculatedVariablesRolling Avgevery hour, of 15 minute qualifiedaverages.SS TreatmentEffective Steam Ratio 3 HrStatusStatus of 3 hour average (“OK”,VariablesRolling Avg (Status)“Unit Down”, “No PTE”).SS TreatmentEffective Steam Ratio LowerLower excess emission limit for 3VariablesLimithour rolling average effective steam.This value is maintained as a ProficyLower Warning Specification on theEffective Steam 3 Hr Rolling Avgvariable.Reporting UnitSS CMS Treating Status (15Treating/Treating status based on 15 minmin)NotTreatingtreating average. Used in 15 minutecalculations and CMS event creation,Reporting UnitSS EE Treating Status (1 Hr)Treating/Treating status based on 1 hourNotTreatingtreating average. Used in 3 hourcalculations and EE event creation.


[0410]







[0411] e) Tag Name Specifications


[0412] All Cluster Rule Steam Stripper PI tags will begin with the prefix “CR-SS”.


[0413] f) Digital State Set Specifications


[0414] The following are the minimum required digital state sets in PI to support the Cluster Rule Steam Stripper 92% model.
39Digital Set NameState 0State 1P2EmitCanEmitCanNotEmitOK-EEOKEEGOOD-BADGoodBadRUN-STOPRunStopTreatTreatingNotTreating


[0415] g) Scan Class Specifications


[0416] The following scan classes must be available in PI. Note, the actual scan class number will vary by location.


[0417] A one minute scan class offset 0 seconds from midnight;


[0418] A fifteen minute scan class offset 0 seconds from midnight;


[0419] A twenty-four hour scan class offset to the start of mill day.


[0420] Examples of the scan class syntax is as follows:


[0421] /f=00:01:00, 00:00:00 (alternately/fr=00:01:00, 0)


[0422] /f=00: 15:00, 00:00:00 (alternately/f=00: 15:00, 0)


[0423] /f=24:00:00, 07:00:00 (alternately/f=24:00:00, 25200) for mill day at 07:00am


[0424] h) PI Tag Configuration Specification


[0425] The following tables provide the typical PI tags (and their configuration) required for a Steam Stripper Treatment system following the 92% treatment methodology and standard exception and compression attribute values for mill specific DCS PI tags.
40Tag NameDescriptorexdescCR-SS_TREAT.STATSteam Stripper Treatingif ‘CR-SS-CondFlow.PV’ > LL and ‘CR-SS-SteamFlow.PV’ > LL and ‘CR-SS-StatusBottomTemp.PV’ > LL then “Treating” else “NotTreating”CR-SS_TREAT.NUMNumeric Steam Stripperevent=CR-SS_TREAT.STAT, if‘CR-SS_TREAT.STAT’ < > “Treating” and ‘CR-Treating StatusSS_TREAT.STAT’ < > = “NotTreating” then PrevVal(‘CR-SS_TREAT.NUM’,‘*’) else if‘CR-SS_TREAT.STAT’ < > “Treating” then 0 else 100CR-Cond-PTE.STAT24Condensate SystemPotential to Emit StatusCR-SS-TREAT.DaySteam Stripper Daily NotTimeEq(‘CR-SS_TREAT.STAT’,‘Y+7H’,‘T+7H’,“CanNotEmit”)/60TreatingCR-Cond-Down.DayCondensate SystemTimeEq(‘CR-Cond.STAT’,‘Y+7H’,‘T+7H’,“CanNotEmit”)/60Potential to Emitdowntime/dayCR-SS_Overflow.EESS Overflow Excessif ‘CR-SS_TREAT.STAT’=“NotTreating” and ‘CR-CONDSYS-PTE.STAT’=“CanEmit”Emissions Statusthen (if‘TankLevel.PV'’ > HHL then “EE” else “OK”) else “OK”CR-SS_DivertValve.EESS Treatment Bypass EEAfter Cond Coll Flow MeterStatusif ‘CR-CONDSYS-PTE.STAT’=“CanEmit” then (if‘DivertValve.PV'’ = “Open” then “EE”else “OK”) else “OK”Before Cond Coll Flow Meterif ‘CR-SS_TREAT.STAT’=“NotTreating” and ‘CR-CONDSYS-PTE.STAT’=“CanEmit”then (if‘DivertValve.PV'’ = “Open” then “EE” else “OK”) else “OK”CR-SS_FlowEmissions.EEFlow out of bottom ofif ‘CR-SS_TREAT.STAT’ < > “Treating” and ‘CR-SS-CondFlow.Filt’ > min then “EE”column EE Statuselse “OK”CR-SS-Cond.DivertAny upstream condensateIf ‘CR-Valve1.Divert’=“Divert” or ‘CR-Level1.Divert’=“Divert” or ... then “Divert” elsedivert“Collect”CR-SS_CondDvrt.EEUpstream condensate divertif ‘CR-SS_TREAT.STAT’=“NotTreating” and ‘CR-CONDSYS-PTE.STAT’=“CanEmit”EE Statusand ‘CR-SS_Overflow.EE’=“OK” and ‘CR-SS_DivertValve.EE’=“OK” then if ‘CR-SS-Cond.Divert’=“Divert” then “EE” else “OK”CR-SS-BottomTemp.FiltSS Bottoms Temperatureevent=CR-SS-BottomTemp.PV, if (TagMax(‘CR-SS-BottomTemp.PV’,‘*-3h’,‘*’) -FilterTagMin(‘CR-SS-BottomTemp.PV’,‘*-3h’,‘*’) > 0) and (‘CR-SS-BottomTemp.PV’ > LLL)and (‘CR-SS-BottomTemp.PV’ < HHL) then ‘CR-SS-BottomTemp.PV’ else “BAD”CR-SS-FeedTemp.FiltSS Condensate Feedevent=CR-SS-FeedTemp.PV, if (TagMax(‘CR-SS-FeedTemp.PV’,‘*-3h’,‘*’) -Temperature FilterTagMin(‘CR-SS-FeedTemp.PV’,‘*-3h’,‘*’) > 0) and (‘CR-SS-FeedTemp.PV’ > LLL) and(‘CR-SS-FeedTemp.PV’ < HHL) then ‘CR-SS-FeedTemp.PV’ else “BAD”CR-SS-FeedSteamFlow.FiltSS Feed Steam Flow Filterevent=CR-SS-FeedSteam Flow.PV, if (TagMax(‘CR-SS-FeedSteamFlow.PV’,‘*-3h’,‘*’) -TagMin(‘CR-SS-FeedSteamFlow.PV’,‘*-3h’,‘*’) > 0) and (‘CR-SS-FeedSteamFlow.PV’ >LLL) and (‘CR-SS-FeedSteamFlow.PV’ < HHL) then ‘CR-SS-FeedSteamFlow.PV’ else“BAD”CR-SS-CondFlow.Filt25SS Condendate Feed Flowevent=CR-SS-CondFlow.PV, if (TagMax(‘CR-SS-CondFlow.PV’,‘*-3h’,‘*’)-FilterTagMin(‘CR-SS-CondFlow.PV’,‘*-3h’,‘*’) > 0) and (‘CR-SS-CondFlow.PV’ > LLL) and(‘CR-SS-CondFlow.PV’ < HHL) then (‘CR-SS-CondFlow.PV’ * 8.35 * 60 / 1000) else“BAD”CR-SS-BottomTemp.PctGdSS Bottoms Temperature %if BadVal(PctGood(‘CR-SS-BottomTemp.Filt’, ‘*-15M’, ‘*’)) then 0 else PctGood(‘CR-SS-GoodBottomTemp.Filt’, ‘*-15M’, ‘*’)CR-SS-FeedTemp.PctGdSS Feed Temperature %if BadVal(PctGood(‘CR-SS-FeedTemp.Filt’, ‘*-15M’, ‘*’)) then 0 else PctGood(‘CR-SS-GoodFeedTemp.Filt’, ‘*-15M’, ‘*’)CR-SS-SS Feed Steam Flow %if BadVal(PctGood(‘CR-SS-FeedSteamFlow.Filt’, ‘*-15M’, ‘*’)) then 0 else PctGood(‘CR-FeedSteamFlow.PctGdGoodSS-FeedSteamFlow.Filt’, ‘*-15M’, ‘*’)CR-SS-CondFlow.PctGdSS Condensate Feed Flowif BadVal(PctGood(‘CR-SS-CondFlow.Filt’, ‘*-15M’, ‘*’)) then 0 else PctGood(‘CR-SS-% GoodCondFlow.Filt’, ‘*-15M’, ‘*’)CR-SS-EffSteam.FiltSS One Minute Effectiveif BadVal(‘CR-SS-BottomTemp.Filt’)or BadVal(‘CR-SS-FeedTemp.Filt’) or BadVal(‘CR-Steam FilterSS-CondFlow.Filt’)orBadVal(‘CR-FeedSteamFlow.Filt’) then “Bad” else (‘CR-SS-FeedSteam.Filt’ - ( (‘CR-SS-BottomTemp.Filt’ - ‘CR-SS-FeedTemp.Filt’)*‘CR-SS-CondFlow-Filt’/1000))CR-SS_ESRATIO.RAWSS One Minute Eff Steamif ‘CR-SS_EFFSTEAM.FLIT’<0 or ‘CR-SS_CondFlow.FLIT’<0 then 0 else ‘CR-Ratio Raw ValueSS_EFFSTEAM.FLIT’/‘CR-SS_CondFlow.FLIT’CR-SS_ESRatio.FiltSS One Minute Effectiveif BadVal(‘CR-SS-BottomTemp.Filt’)or BadVal(‘CR-SS-FeedTemp.Filt’)or BadVal(‘CR-Steam Ratio FilterSS-CondFlow.Filt’)orBadVal(‘CR-FeedSteamFlow.Filt’) then “Bad” else CR-SS_ESRATIO.RAWCR-SS_ESRatio.PctGdSS One Minute Effectiveif BadVal(If BadVal(PctGood(‘CR-SS_ESRatio.Filt’, ‘*-15M’, ‘*’)) then 0 elseSteam Ratio % GoodPctGood(‘CR-SS_ESRatio.Filt’, ‘*-15M’, ‘*’)CR-SS-_ESRatio.15MEffective Steam/CondFlow 15 Min AvgCR-SS-_ESRatio.3HEffective Steam/CondFlow 3 Hr AvgCR-SS-_ESRatio.LLEffective Steam/CondFlow Lower Limit24The Condensate PTE tag (CR-Cond-PTE.STAT) is available and displayed in the Condensate Collection system. A unique tag for Steam Stripper treatment is not required. 25This example assumes that the raw flow is expressed in M-gpm (1000's gal/min). Subsequent calculations require that the units of condensate flow (gpm) and feed steam rate (lbs/hr) match. To convert the condensate flow (in gpm) into lbs/hr, multiply the flow by 8.35*60. If flow is expressed in M-gpm, the conversion factor is further divided by 1000. Note: Italics bold print represents mill specific information.


[0426]

41
































Loca-

com-











Point-
point-

tion
comp-
press-
Comp-
exc-
exc-
shut-


Tag Name
engunits
source
type
DigitalSet
4
dev
ing
Max
dev
max
down
step
zero
span
























CR-SS_TREAT.STAT
Treating/
C
Digital
TREAT
1
0
1
28800
0
60
1
1





NotTreating


CR-SS_TREAT.NUM
0/100
C
Float32


0
1
60
0
60
1
1
0
100


CR-Cond-PTE.STAT
CanEmit/
C



CanNotEmit


CR-SS_Treat.Day
Min/Day
C
Float32

4
0
1
7200
0
60
0
1
0
1440


CR-Cond-Down.Day
Min/Day
C
Float32


CR-SS-Overflow.EE
OK-EE
C
Digital
OK-EE
1
0
1
28800
0
60
1
1


CR-SS-DivertValve.EE
OK-EE
C
Digital
OK-EE
1
0
1
28800
0
60
1
1


CR-
OK-EE
C
Digital
OK-EE
1
0
1
28800
0
60
1
1


SS_FlowEmissions.EE


CR-SS-Cond.Divert
Divert-
C
Digital
Divert-
1
0
1
28800
0
60
1
1



Collect


Collect


CR-SS_CondDvrt.EE
OK-EE
C
Digital
OK-EE
1
0
1
28800
0
60
1
1


CR-SS-BottomTemp.Filt
Deg F
C
Float32

1
0
1
840
0
60
1
0
0
2500


CR-SS-FeedTemp.Filt
Deg F
C
Float32

1
0
1
840
0
60
1
0
0
2500


CR-SS-
Lbs/hr
C
Float32

1
0
1
840
0
60
1
0
0
20000


FeedSteamFlow.Filt


CR-SS-CondFlow.Filt
Lbs/hr
C
Float32

1
0
1
840
0
60
1
0
0
75000


CR-SS-
%
C
Float32

3
0
1
600
0
60
1
1
0
100


BottomTemp.PctGd


CR-SS-FeedTemp.PctGd
%
C
Float32

3
0
1
600
0
60
1
1
0
100


CR-SS-
%
C
Float32

3
0
1
600
0
60
1
1
0
100


FeedSteamFlow.PctGd


CR-SS-CondFlow.PctGd
%
C
Float32

3
0
1
600
0
60
1
1
0
100


CR-SS-EffSteam.Filt
Lbs/hr
C
Float32

1
0
1
840
0
60
1
0
0
20000


CR-SS_ESRATIO.RAW

C
Float32

3
0
1
600
0
60
1
1
0
1


CR-SS-_ESRatio.Filt

C
Float32

1
0
1
600
0
60
1
0
0
1


CR-SS-_ESRatio.PctGd
%
C
Float32

3
0
1
600
0
60
1
1
0
100


CR-SS-SS_Ratio.15M 2

Lab
Float32

1
0
1
28800
0
600
0
1
0
1


CR-SS-SS_Ratio.3H 2

Lab
Float32

1
0
1
28800
0
600
0
1
0
1


CR-SS-SS_Ratio.LL 3

Lab
Float32

1
0
1
28800
0
600
0
1
0
1

























exc-
exc-



Tag Name
Descriptor
pointtype
compdev
compressing
CompMax
dev
max







Temp or Flow.PV
Raw DCS Temp or Flow
Float32
Mill std
1
<=3600
Mill
60




Value




std



Tank Level.PV
Raw Coll Tank Level
Float32
Mill Std
1
Mill Std
Mill
60









Std



Divert Valve.PV
Divert Valve Status
Digital
Mill Std
1
Mill Std
Mill
60









Std










2
Calculated in Proficy and written periodically to Pl.








3
Maintained in Proficy as a Specification Limit and written periodically from Proficy to Pl









[0427] The Proficy model consists of input variables, calculated variables, stored procedures, and Visual Basic scripts (VB scripts). Variables and associated parameters for a typical 92% steam stripper treatment system and descriptions of the stored procedures and the VB scripts are included below. Complete listings of the Stored Procedures can be found in Appendix A.
4215) Proficy Input Variables (From PI)DataSamplingSamplingSamplingSamplingVariable DesriptionTypePrecisionIntervalOffsetWindowTypePI TagUsed For Display OnlyBottom TemperatureFloat215015Last GoodCR-SS-15 Min - % GoodValueBottomTemp.PctGdCond Feed TemperatureFloat215015Last GoodCR-SS-FeedTemp.PctGd15 Min - % GoodValueFeed Steam FlowFloat215015Last GoodCR-SS-15 Min - % GoodValueFeedSteamFlow.PctGdCondensate FlowFloat215015Last GoodCR-SS-CondFlow.PctGd15 Min - % GoodValueCondensate SystemString15015InterpolatedCR-Cond-PTE.STATPotential To Emit(Snapshot)Used In Proficy CalculationsSS % Time TreatingFloat115015AverageCR-SS_Treat.Num(15 min)SS % Time TreatingFloat160060AverageCR-SS_Treat.Num(1 Hr)Effective SteamFloat21500AverageCR-SS_ESRatio.FiltRatio 15 Min(Raw PI Avg)Effective Steam RatioFloat215015LastGoodCR-SS_ESRatio.PctGd15 Min - % Good (CMS)ValueEffective Steam RatioFloat21500CR-SS_ESRatio.l5M15 Min AvgEffective Steam RatioFloat26000CR-SS_ESRatio.3H3 Hr Rolling AvgEffective Steam RatioFloat21500CR-SS_ESRatio.LLLower LimitDown TimeInteger01440  420 26 15LastGoodCR-SS-TREAT.DayValueProficy Calculated VariablesDataSamplingSamplingVariableTypePrecisionIntervalOffsetCalc. TypeCalc. NameEffective Steam RatioFloat1150VBScriptSS Qualified 15 Min Avg15 Min AvgEffective Steam RatioString150VBScriptSS Qualified 15 Min Avg Status15 Min Avg (Status)Effective Steam RatioString150VBScriptSS 15 Min Avg/Status Reassembly15 Min Avg/Status(Used for 3 Hr Avg)Effective Steam RatioFloat2600Stored ProcedureStripperRollingAvg with AvgPTE3 Hr Rolling AvgEffective Steam RatioString600Stored ProcedureStripperRollingAvgStatus with AvgPTE3 Hr Rolling Avg(Status)Effective Steam RatioFloat2150EquationEffective Steam Ratio Lower LimitLower LimitSteam Ratio EE EventsString600Stored ProcedureSS Treatment EventsSS CMS TreatingString150VBScriptSS PTE CMS Status (15 Min)Status (15 Min)SS EE TreatingString600VBScriptSS PTE EE Status (1 Hr)Status (1 Hr)Run TimeInteger01440 420 1  EquationUptime (Daily)Mill DayString150Stored ProcedureMillDay26 The sampling offset is determined based upon the mill Start of Day time. The offset value is the number of minutes from midnight to the mill start of day. In this example the start of day is 7:00 AM (as there are 420 minutes from midnight until 7:00 AM).


[0428] Proficy Calculations


EE Event Logic

[0429] Steam Stripper Rolling Average Excess Emission events are created in one hour increments using the stored procedure spLocal_SSTreatmentEvents as described below. Bypass events (Treatment Bypass, Overflow bypass, Flow Emissions and Upstream Bypass) EE events are created using Proficy's downtime model 200 with a 61-second (or other mill specific) filter applied. The PI tags, CR-SS_Overflow.EE, CR-SS_CondDivert.EE, CR-SS_FlowEmissions.EE and CR-SS_Bypass.EE, trigger the start of an event whenever their state changes from OK (the normal running state) to EE (the fault state). The event ends when the state changes back to OK. If the state returns to OK within the filter period the state changes are ignored and no event is created in Proficy.


[0430] CMS Event Logic


[0431] CMS events for the Steam Stripper treatment system are created in fifteen minute intervals as described below in the stored procedure sMLocal_SSTreatmentEvents. There are no CMS events associated with collection tank overflows or treatment bypass valves.


[0432] SS Qualified 15 Min Avg


[0433] Type: VBScript


[0434] The inputs to this script are theSS CMS Treating Status (15 Min), the 15 minute raw PI average of Effective Steam ratio, the percent good value for the effective steam calculation over the fifteen minute window, and a lower reject specification limit attached to the percent good variable. This script is triggered by time (based on the sample interval for the variable—normally 15 minutes) or an input value change. This script filters the 15 minute average based on the 15 minute average Treating status and the percent good value for the average. If the percent good value is greater than required (lower reject limit) and the Treating status is Treating, the script outputs the average value for the period. If the Treating status is NotTreating or the percent good value is less than required, this script outputs a null value.


[0435] SS Qualified 15 Min Avg Status


[0436] Type: VBScript


[0437] The inputs to this script are the effective steam 15 minute percent good value, the lower warning limit for percent good, the SS CMS Treating Status (15 Min) and the raw PI effective steam ratio 15 minute average. This script is triggered by time (based on the sample interval for the inputs) or an input value change. This script outputs the status of the Eff Steam Ratio 15 Min Avg (Status) for display on the Autolog display. If the Treating status is NotTreating, this script outputs Unit Down. If the percent good value is greater than 50% and the Treating status is Treating, this script outputs OK. If the percent good value is less than 50% and the Treating status is Treating, the script outputs Bad Val.


[0438] SS 15 Min Avg/Status Reassembly


[0439] Type: VBScript


[0440] The inputs to this script are the Eff Steam Ratio 15 Min Avg and the Eff Steam Ratio 15 min Avg (Status). This script is triggered by time (based on the sample interval for the inputs) or by an input value change. This script combines the two inputs into one string value based on the string value of the Eff Steam Ratio 15 Min Avg (Status). If the Eff Steam Ratio 15 Min Avg (Status) is OK, this script outputs the Eff Steam Ratio 15 min Avg. If the Eff Steam Ratio 15 min Avg (Status) is Unit Down or Bad Val, this script outputs Unit Down or Bad Val.


[0441] spLocal_StripperRollingAvg_wAvgPTE


[0442] Type: Stored Procedure


[0443] This procedure has twoinputs, the percent good value for effective steam ratio and the SS EE Treating Status (1 Hr), and one dependant variable, the reassembled 15 min avg/status for the effective steam ratio. This procedure calculates a 3 hour moving average of the dependant variable every hour from a minimum number of samples over the 3 hour interval. The requirement for a good average is that there must be more than 50% good samples. “Good” samples consist of valid numeric values taken while the EE Treating Status (1 Hr) is Treating and the percent good value is greater than 50%, as determined by the 15 min avg/status reassembly VB script. Values of Bad Val, Unit Down and NULL are excluded from the moving average. The triggers for this procedure are time (based on the sample interval for the variable), value change for the dependant variable or value change for the input variable.


[0444] spLocal_StripperRollingAvgStatus_wAvgPTE


[0445] Type: Stored Procedure


[0446] This procedure has four inputs (the percent good value for the effective steam ratio, the lower warning limit for this variable, the effective steam ratio 3 Hr Rolling Avg and the SS EE Treating Status (1 Hr)) and one dependant variable (the reassembled 15 min avg/status for the effective steam ratio). This procedure generates a status string to compliment the 3 hour moving average calculation, spLocal_StripperRollingAvg_AvgPte. The following table shows the possible outputs for this procedure and the sample types required to generate them.
43OutputCondition RequiredOK>50% of samples have good numeric values, the average isgreater than the lower warning limit and the 1 Hr TreatingStatus is TreatingEE>50% of samples have good numeric values, the average isless than the lower warning limit and the 1 Hr TreatingStatus is TreatingNull In>=50% of samples have Null valueBad Data>=50% of samples have % good values <50%No DepDependent variable is not configuredVariableNo SpecThe input variable from which specification limits areVariableretrieved is not configured.No LimitThe Reject Limit Input constant is not configuredBadThe retrieved specification limit is NULL.LimitBadThe lower reject limit of the % good variable is NULLPctGoodNo PTEThe EE Treating Status (1 Hr) is NULLValueToo ManyThe total count of samples (columns) exceeds the expectedSamplesnumber of samples (typ. 12).No ValueThe average of the samples is NULLUnitThe 1 Hr EE Treating Status is NotTreatingDownInsuf<=50% of samples have a good numeric values and thereDatais not a majority of these “bad” samples with the samevalue OR the number of samples is less than the expectednumber of samplesInsuf<=50% sample pointsColumns


[0447] The triggers for this procedure are time (based on the sample interval for the variable), value change for the dependant variable or value change for the input variable.


[0448] spLocal_SSTreatmentEvents


[0449] Type: Stored Procedure


[0450] This procedure is used to create CMS and EE events for the effective steam ratio. The inputs variables and dependant variables for both CMS and EE are shown in the following table.
44VariablesEECMSSpecification LimitLWLR(Constant)Event Duration6015(Constant)PTESS EE TreatingSS CMS TreatingStatus (1 Hr)Status (15 Min)EE or CMS (Constant)EECMSDependant VariableEff Steam RatioEff Steam Ratio3 Hr Rolling Avg15 Min - % Good


[0451] This procedure tests for CMS or EE events by comparing the dependant variable value against a lower warning specification limit as specified in the calculation input. If the value is above the lower warning limit, a downtime event with duration as specified in the inputs is created. If an event exists for the previous time interval, the duration is appended to the existing event and the event end time is updated. The triggers for this procedure are time (based on the sample interval for the variable), value change for the dependant variable or value change for the input variable.


[0452] The purpose of this document is to describe the design of the Continuous Emissions Monitoring System for Bleach Plant Scrubber monitoring operations. The software is comprised of PI Data Archive software (which is used for automatic data collection from various process instrumentation and control systems) and Proficy software (which uses the data collected by PI in conjunction with manual inputs and business rules to monitor and report on the performance of the scrubbing process). This documentation is directed toward system administrator level personnel.


[0453] The following sections describe the general configuration of the standard bleach plant monitoring system. Deviations from the standard model, configuration listings for specific lines, and mill-specific details are contained within the appendices.


[0454] Cluster Rule regulations require that a continuous monitoring system (CMS) be operated to measure the following parameters for each bleach plant gas scrubber:


[0455] Gas scrubber vent gas inlet flow rate (fan running status is an approved surrogate for this CMS),


[0456] ORP or pH, of the gas scrubber effluent and


[0457] Gas scrubber liquid influent flow rate (later referred to as recirculation flow).


[0458] The data for these variables are collected and archived by the PI system and made available to the Proficy system to analyze against specific criteria to determine if an Excess Emission (EE) event has occurred. Excess Emission events, are recorded by the system when the bleach plant has the potential to emit (PTE) pollutants, as defined in PI, and one of the three monitored parameters does not meet the specified operating criteria. A bleach plant has the potential to emit pollutants when it is running or has been shutdown for less than a specified period of time (typically one hour) as defined by each facility. The potential to emit corresponds to the total source operating time reported to the state regulatory agency on a semi-annual basis or more frequently as required.


[0459] The Proficy software logs all events and operator responses to those events. The responses record the operator determined Trouble, Cause, Correction (response), and Report Code (report categorization) for the event. The report categorization specifies if the event is considered an excess emission, as the emission may be allowed due to Startup, Shutdown, and Malfunction (SSM) provisions. The events are compiled by the system and reported to the state regulatory agency on a semi-annual basis or more frequently as required. In addition to capturing and categorizing events, the Proficy system also captures and records failures (downtime) of Continuous Monitoring System (CMS) devices, referred to as CMS events. The system records failures whenever the validity of the data is suspect or out of range. These are also summarized and reported to the state in a semi-annual CMS performance report or more frequently as required. Again, the report categorization specifies if the event is considered allowable based on the specific regulations.


[0460] The following table gives an overview of the minimum required process inputs, their engineering units, associated PI tags, and corresponding Proficy variable names.
45InputEng. UnitsPI TagnameProficy VariableBleach PlantCanEmit/CR-BP-PTE.STATBP Potential toPTE StatusCanNotEmitEmit (Snapshot)Bleach Plant Numeric 0 = CanNotEmit,CR-BP-PTE.NUMBP % Time CanEmitPTE Status100 = CanEmit(15 Min)BP % Time CanEmit(1 Hr)Daily Bleach PlantMin/dayCR-BP-PTEDown.DayDown TimeNon-PTE minutes -calculated at millend of dayBleach Plant ScrubberpH (or ORP)CR-BP-ScrubPH.FiltpH 15 MinpH (or ORP)(or CR-BP-(Raw PI Avg)ScrubORP.Filt)(or ORP 15 MinRaw PI Avg)Bleach Plant Scrubber%CR-BP-ScrubPH.PctGdpH 15 Min - % GoodpH (or ORP) Data %(or CR-BP-(CMS)GoodScrubORP.PctGd)(or ORP 15Min - % Good (CMS))Bleach Plant ScrubberGPMCR-BP-ScrubRecirc.FiltRecirc Flow 15Recirculation FlowMin (Raw PI Avg)Bleach Plant Scrubber%CR-BP-Recirc Flow 15Recirculation FlowScrubRecirc.PctGdMin - % Good (CMS)Data % GoodBleach Plant ScrubberEE/OKCR-BP-ScrubFan.EEFan EE (Snapshot)Fan StatusBleach Plant ScrubberGood/BadCR-BP-ScrubFan.DQFan Data QualityFan Data QualitySnapshot (CMS)


[0461] Proficy also maintains, and periodically writes to PI, the specification limits (upper data quality limit, lower data quality limit, and excess emission limits) for the pH/ORP and recirculation flows. The data quality limits are used by PI to determine if the PI data has “Good” or “Bad” data quality while the excess emission limit is used by Proficy to determine when excess emission events occur.


[0462] The following sections describe in detail how the Proficy bleach plant model triggers EE and CMS events.


[0463] Bleach Plant State—PTE


[0464] The bleach plant's potential to emit (PTE) is determined in PI using a performance equation. The performance equation logic returns a state of “CanEmit” during the period from startup of the bleach plant until a mill specified period after the bleach plant stops running. The bleach plant run-state is calculated each minute based upon mill specified criteria—typically CLO2 flow, motor running state, or pump running state.


[0465] A PI performance equation translates the digital PTE status into a numeric value with 0=“CanNotEmit” and 100=“CanEmit”. Proficy averages this numeric PTE value of a specified time period and compares the average to a mill specified limit (usually 50) to determine if the bleach plant had a potential to emit over the desired time period. The Proficy variable, BP % Time CanEmit (15 min), averages the numeric PTE status over the previous 15 minute period. If this average is greater than or equal to the lower warning specification limit for this variable, the status is “CanEmit”. If the average is less than the lower warning specification limit, the status is “CanNotEmit”. This PTE status is used by Proficy to qualify the 15 min pH (or ORP) and recirculation flow 15 minute averages and to filter out CMS events when the status is “CanNotEmit”. The Proficy variable, BP % Time CanEmit (1 hr), averages the numeric PTE status over the previous hour. If this average is greater than the lower warning specification limit for this variable, the status is “CanEmit”. If the average is less than or equal to the lower warning specification limit, the status is “CanNotEmit”. This PTE status is used by Proficy to qualify the three hour rolling average.Bleach Plant PTE Counter


[0466] At the start of each mill day, a PI performance equation totals the “CanNotEmit” time over the previous 24-hour period. This value is read by Proficy and is used for both daily display and daily calculation of bleach plant runtime (“CanEmit” for the daily period). The daily runtime minutes are kept in Proficy and used to compute the total runtime minutes for the reporting period.


[0467] Recirculation Flow


[0468] Bleach Plant scrubber recirculation flow is read by PI from the mill DCS system. The raw value is first validated in PI against the upper and lower specification limits provided by Proficy. If the value is within range PI records the value in an intermediate variable (CR-BP-ScrubRecirc.FILT); If the value is out of range the intermediate variable records “BAD” instead. This PI performance equation is event based (calculated every time a new value enters the PI snapshot) so that data buffered in the PI interface will be captured and used regardless of its PI archive status.


[0469] Every 15 minutes, Proficy uses the filtered values to calculate a flow average over the 1 5-minute interval. Values marked “BAD” by PI are excluded from the calculated average.


[0470] The PI system also calculates a data quality metric that provides Proficy with the information it needs to determine whether the measurement of the recirculation flow is reliable. The metric is determined within PI by examining the percentage of time over the 15-minute interval that the recirculation flow data has maintained “good” data quality. This same calculation tests for a flat-lined signal over an extended period of time and calculates a “% Good” of zero if the signal value has remained unchanged. Proficy samples this “%-Good” value every 15-minutes and generates a 15-minute CMS downtime event (via a stored procedure calculation) whenever the percentage falls below 50% within the 15 minute period.


[0471] Recirculation flow EE events are triggered based upon a 3 hour rolling average calculation performed within Proficy. Once per hour, a stored procedure (spLocal_BleachRollingAvg) averages the previous twelve 15 Minute Averages for flow rate over the previous 3-hour window (3 Hr Rolling Avg). If the 3-hour average value is less than the lower warning specification limit configured in Proficy, a 1-hour EE event is generated by the stored procedure “spLocal_BleachEvents”. This 3-hour rolling average calculation excludes averages within periods that reflect a “%-Good” less than 50%, that had no Potential To Emit, and that contained NULL values. Therefore for a 3 Hour Average to be calculated and an EE Event to be created, a minimum of seven valid 15 Minute Averages (>50%, or 7/12) must be present in the 3 hour window.


[0472] Each 15-minute flow average (“Qualified 15 Min Avg”) is accompanied by a corresponding status message (“Qualified 15 Min Avg Status”) that is set to “OK” upon successful calculation of the average. Similarily the 3-hour rolling average has an equivalent variable (“3 Hr Rolling Avg Status”) that provides the status regarding calculation of the 3 hour rolling average. The status messages and their meanings are summarized in the tables below.
46StatusMessageMeaningVariable: “Qualified 15 Min Avg Status”OKThe 15 Min Avg was calculatedUnitNo Potential-to-Emit existed for the entire period.DownThe 15 min avg is set to NULL.Bad ValThe % Good for the period was calculated by PI asless than 50%. The 15 min avg is set to NULL.Variable: “3 Hr Rolling Avg Status”OKThe 3 Hour Avg was calculatedUnitAt least six of twelve 15 Min Avgs reflect noDownPotential to EmitBad ValAt least six of twelve 15 Min Avgs reflect <50%Good data qualityNull InAt least six of twelve 15 Min Avgs are NULL.InsufAt least six of twelve 15 Min Avgs have aDatacombination of NULL Value, <50% Good data quality,or no Potential to Emit.


[0473] A block diagram of scrubber recirculation data flow is depicted in FIG. 1.


[0474] pH/ORP


[0475] The monitoring of pH/ORP is exactly analogous to that for recirculation flow except that a manually entered pH or ORP value can override the Proficy calculated 15 minute average. Additionally ORP measurements are compared to an upper warning specification limit as opposed to a lower warning limit specification used for pH and recirculation flow.


[0476] A block diagram of scrubber pH/ORP monitoring data flow is depicted in FIG. 2.


[0477] Scrubber Fan


[0478] Scrubber fan running status is determined within PI and communicated to Proficy through the use of a digital signal. Within PI, running status is determined by either comparing the scrubber fan amps to a minimum limit, by examining the differential pressure across the fan to be greater than a minimum limit, or by examining the scrubber motor status from the DCS (through the use of status from a zero speed switch or equivalent digital signal).


[0479] Scrubber fan EE and CMS events are created by using the Proficy downtime model 200. The Proficy model is typically configured with a 61 second filter (to eliminate signal noise) in conjunction with a PI performance equation to act as the event trigger.


[0480] For excess emissions calculation, the PI tag CR-BP-ScrubFan.EE returns the digital state “EE” whenever the PI logic determines that the fan is not running while the system is in a “CanEmit” state; otherwise the equation returns the value “OK”. To determine CMS downtime, a second PI performance equation (CR-BP-ScrubFan.DQ) verifies that the fan amp value (or fan running switch status) is within range (or has a valid state) and returns the value “Good.” If these conditions are not met, (and the PTE state of “CanEmit” exists) the equation instead returns the value “Bad.”


[0481] Proficy monitors the two digital tags CR-BP-ScrubFan.EE and CR-BP-ScrubFan.DQ for the fault values of “EE” and “Bad” respectively. If either value remains in the fault state for longer than the filter time, an EE or CMS event is recorded by the system.


[0482] A block diagram of scrubber fan monitoring data flow is depicted in FIG. 3.


[0483] Tag Name Specifications


[0484] All Cluster Rule PI tags will begin with “CR-”.


[0485] For locations with multiple bleach lines, each line will be differentiated by CR-BPx, where x represents the mill naming convention. For example, Franklin will use CR-BPE for the E-Line and Augusta will use CR-BP1 for #1 Bleach Plant.


[0486] Digital State Set Specifications


[0487] The following are the minimum required digital state sets in PI to support the Cluster Rule Bleach Plant model.
47Digital Set NameState 0State 1P2EmitCanEmitCanNotEmitOK-EEOKEEGOOD-BADGoodBadRUN-STOPRunningStopped


[0488] Scan Class Specifications


[0489] The following scan classes must be available in PI. Note, the scan class number will vary from mill to mill.


[0490] A one minute scan class offset 0 seconds from midnight;


[0491] A fifteen minute scan class offset 0 seconds from midnight;


[0492] A twenty-four hour scan class offset to the start of mill day.


[0493] Examples of the scan class syntax are as follows:


[0494] /f=00:01:00, 00:00:00 (alternately/fr=00:01 :00, 0)


[0495] /fr=00: 15:00, 00:00:00 (alternately/f=00: 15:00, 0)


[0496] /f=24:00:00, 07:00:00 (alternately/f=24:00:00, 25200) for mill day at 07:00 am


[0497] PI Tag Configuration Specification


[0498] The following tables provide tag configuration examples for a typical bleach plant model and the standard compression and exception attribute settings for the underlying mill tags.
48Bleach Plant PI Tag Configuration Table 1Tag NameDescriptorexdescCR-BP-BP Potential to Emitif BadVal(TimeEQ(‘CR-BP.STAT’, ‘*−60M’, ‘*’, “Running”)) thenPTE.STATStatusPrevVal(‘CR-BP-PTE.STAT’, ‘*−60M’) else if TimeEQ(‘CR-BP.STAT’,‘*−60M’, ‘*’, “Running”) > 0 then “CanEmit” else“CanNotEmit”CR-BP-PTE-BP Pot. To EmitTimeEq(‘CR-BP-PTE.STAT’,‘Y+7H’,‘T+7H’,“CanNotEmit”)/60Down.Daydowntime/dayCR-BP-BP PTE Status -event=CR-BP-PTE.STAT, if (‘CR-BP-PTE.STAT’ < > “CanEmit” andPTE.NUMNumeric‘CR-BP-PTE.STAT’ < > “CanNotEmit”) then PrevVal(‘CR-BP-PTE.NUM’,‘*’) else if ‘CR-BP-PTE.STAT’ < > “CanEmit” then 0 else 100CR-BP-BP Scrubber Fanif (‘CR-BPFan.PV’ < > “Run”) and (‘CR-BP-PTE.STAT’ =ScrubFan.EERunning Status“CanEmit”) then “EE” else “OK”CR-BP-BP Scrub Recirc PVevent=CR-BPRecirc.PV, if (‘CR-BPRecirc.PV’ > ‘CR-BP-ScrubRecirc.LLL’)ScrubRecirc.FiltFilterand (‘CR-BPRecirc.PV’ < ‘CR-BP-ScrubRecirc.HHL’) then‘CR-BPRecirc.PV’ else “BAD”CR-BP-BP Scrub pH PVevent=CR-BPpH.PV, if (‘CR-BPpH.PV’ > ‘CR-BP-ScrubPH.LLL’) andScrubPH.FiltFilter(‘CR-BPpH.PV’ < ‘CR-BP-ScrubPH.HHL’) then ‘CR-BPpH.PV’ else “BAD”CR-BP-BP Scrubber Fanif(‘CR-BPFan.PV’ < > “Stop” and ‘CR-BPFan.PV’ < > “Start”)ScrubFan.DQData Qualityand (‘CR-BP-PTE.STAT’ < > “CanNotEmit”) then “Bad” else “Good”CR-BP-BP Scrubber pH %if (TagMax(‘CR-BP-ScrubPH.Filt’, ‘*−3H’,ScrubPH.PctGdGood Data‘*’) −TagMin(‘CR-BP-ScrubPH.Filt’,‘*−3H’, ‘*’) = 0) orBadVal(PctGood(‘CR-BP-ScrubPH.Filt’, ‘*−15M’,‘*’)) then 0 else PctGood(‘CR-BP-ScrubPH.Filt’,‘*−15M’, ‘*’)CR-BP-BP Scrubber Recircif (TagMax(‘CR-BP-ScrubRecirc.Filt’, ‘*−3H’, ‘*’) −ScrubRecirc.PctGd% Good DataTagMin(‘CR-BP-ScrubRecirc.Filt’, ‘*−3H’, ‘*’) = 0) orBadVal(PctGood(‘CR-BP-ScrubRecirc.Filt’, ‘*−15M’, ‘*’)) then 0else PctGood(‘CR-BP-ScrubRecirc.Filt’, ‘*−15M’, ‘*’)CR-BP-BP Scrubber pHScrubPH.HHLHigh Lim DQCR-BP-BP Scrubber pHScrubPH.LL *Low LimCR-BP-BP Scrubber pHScrubPH.LLLLow Lim DQCR-BP-BP Scrubber RecircScrubRecirc.HHLHigh Lim DQCR-BP-BP Scrubber RecircScrubRecirc.LLLow LimCR-BP-BP Scrubber RecircScrubRecirc.LLLLow Lim DQCR-BP-BP Scrubber pH 15 Min AvgScrubPH.15MCR-BP-BP Scrubber pH 3ScrubPH.3HHr AvgCR-BP-BP Scrubber RecircScrubRecirc.l5M15 Min AvgCR-BP-BP Scrubber RecircScrubRecirc.3H3 Hr AvgNote: Italics bold print represents mill specific information. * CR-BP-ScrubPH.LL will become CR-BP-ScrubORP.HL for a mill with ORP control. Other pH tags will change in a similar manner in this and subsequent tables.


[0499]

49











Bleach Plant PI Tag Configuration Table 2


























Loca-

com-











point-
point-
Digital-
tion
comp-
press-
Comp-
xc-
xc-
shut-


Tag Name
engunits
source
type
Set
4
dev
ing
Max
dev
max
down
tep
ero
pan
























CR-BP-
CanEmit/
C
Digital
P2EMIT
1
0
1
28800

0
1





PTE.STAT
CanNotEmit


CR-BP-PTE-
Min/Day
C
Float32

4
0
1
7200

00
0


440


Down.Day


CR-BP-
0/100
C
Float32


0
1
60

0
1


00


PTE.NUM


CR-BP-
OK-EE
C
Digital
OK-EE
1
0
1
28800

0
0


ScrubFan.EE


CR-BP-
GPM
C
Float32

1
0
1
600

0
1


50


ScrubRecirc.Filt


CR-BP-
pH
C
Float32

1
0
1
600

0
1


4


ScrubPH.Filt


CR-BP-
Bad/Good
C
Digital
BAD-
1
0
1
28800

0
0


ScrubFan.DQ



GOOD


CR-BP-
%
C
Float32

3
0
1
600

0
1


00


ScrubPH.PctGd


CR-BP-
%
C
Float32

3
0
1
600

0
1


00


ScrubRecirc.PctGd


CR-BP-
pH
Lab
Float32

1
0
1
28800

00
0


4


ScrubPH.HHL


CR-BP-
pH
Lab
Float32

1
0
1
28800

00
0


4


ScrubPH.LL


CR-BP-
pH
Lab
Float32

1
0
1
28800

00
0


4


ScrubPH.LLL


CR-BP-
GPM
Lab
Float32

1
0
1
28800

00
0


50


ScrubRecirc.HHL


CR-BP-
GPM
Lab
Float32

1
0
1
28800

00
0


50


ScrubRecirc.LL


CR-BP-
GPM
Lab
Float32

1
0
1
28800

00
0


50


ScrubRecirc.LLL


CR-BP-
pH
Lab
Float32

1
0
1
28800

00
0


4


ScrubPH.15M


CR-BP-
pH
Lab
Float32

1
0
1
28800

00
0


4


ScrubPH.3H


CR-BP-
GPM
Lab
Float32

1
0
1
28800

00
0


50


ScrubRecirc.l5M


CR-BP-
GPM
Lab
Float32

1
0
1
28800

00
0


50


ScrubRecirc.3H










[0500]

50











Bleach Plant Mill Specific PI Tag Compression and Exception Attributes Table















Tag



compress-
Comp-





Name
Descriptor
pointtype
compdev
ing
Max
xcdev
xcmax
Comments





CR-
BP Running Status
Digital
Mill std
1
Mill std
ill std
ill std
Mill should st attributes to get representative


BP.STAT







values


CR-
BP Fan Running
Digital
Mill std
1
 7200
ill std
0
Mill should st attributes to get representative


BPFan.PV
Status






values


CR-
BP Recirculation
Float32
Mill std
1
<=3600
ill std
0
Archived values req;d for 3-hr std dev check


BPRecirc.PV
Flow DCS Value






in the .Filt PE










ExcMax is set at 60s to trigger event-based










.Filt PE


CR-
BP pH DCS Value
Float32
Mill std
1
<=3600
ill std
0
Archived values req;d for 3-hr std dev check


BPpH.PV







in the .Filt PE










ExcMax is set at 60s to trigger event-based










.Filt PE










[0501] The Proficy model consists of input variables (PI inputs), calculated variables, stored procedures, and Visual Basic scripts (VB scripts). Variables for a typical bleach plant (monitoring pH) and descriptions of the stored procedures and the VB scripts are included below. Complete listings of the Stored Procedures can be found in Appendix A.
51PI Interface Proficy VariablesDataSamplingSamplingSamplingVariableTypePrecisionIntervalOffsetWindowSampling TypePI TagRecirc Flow 15 Min (Raw PIFloat21500AverageCR-BP-ScrubRecirc.FiltAvg)Recirc Flow 15 Min - % GoodFloat215015LastGood ValueCR-BP-ScrubRecirc.PctGd(CMS)Recirc Flow 3 Hr Rolling AvgFloat26000CR-BP-ScrubRecirc.3HRecirc Flow 15 Min AvgFloat21500CR-BP-ScrubRecirc.15MRecirc Flow Lower LimitFloat21500CR-BP-ScrubRecirc.LLRecirc Flow Lower DQ LimitFloat21500CR-BP-ScrubRecirc.LLLRecirc Flow Upper DQ LimitFloat21500CR-BP-ScrubRecirc.HHLpH 15 Min - % Good (CMS)Float215015Last Good ValueCR-BP-ScrubpH.PctGdpH 15 Min (Raw PI Avg)Float21500AverageCR-BP-ScrubPH.FiltpH 15 Min AvgFloat21500CR-BP-ScrubPH.15MpH 3 Hr Rolling AvgFloat26000CR-BP-ScrubPH.3HpH Lower Limit 1Float21500CR-BP-ScrubPH.LLpH Lower DQ LimitFloat21500CR-BP-ScrubPH.LLLpH Upper DQ LimitFloat21500CR-BP-ScrubPH.HHLFan EE (Snapshot)String15015InterpolatedCR-BP-ScrubFan.EEBP Potential To EmitString15015InterpolatedCR-BP-PTE.STAT(Snapshot)Down TimeInteger1440 420 2  15LastGood ValueCR-BP-PTE-Down.DayFan Data Quality SnapshotString15015InterpolatedCR-BP-ScrubFan.DQ(CMS)BP % Time CanEmit (15 min)Float115015AverageCR-BP-PTE.NUMBP % Time CanEmit (1 hr)Float160060AverageCR-BP-PTE.NUM1 This example monitors pH of the effluent. When ORP (Oxygen Reduction Potential) of the effluent is monitored instead of pH, the pH Lower Limit is replaced by an ORP Upper Limit. 2 The sampling offset is determined based upon the mill Start of Day time. The offset value is the number of minutes from midnight to the mill start of day. In this example the start of day is 7:00 AM (as there are 420 minutes from midnight until 7:00 AM).


[0502]

52











16) Calculation Manager Proficy Variables














Data

Sampling
Sampling




Variable
Type
Precision
Interval
Offset
Calc. Type
Calc. Name
















Recirc Flow 15 Min Avg
Float
1
15
0
VBScript
Qualified 15 Min Avg


pH 15 Min Avg
Float
2
15
0
VBScript
Qualified 15 Min Avg


Recirc Flow 15 Min Avg
String

15
0
VBScript
Qualified 15 Min Avg Status


(Status)


pH 15 Min Avg (Status)
String

15
0
VBScript
Qualified 15 Min Avg Status


Recirc Flow 15 Min
String

15
0
VBScript
15 Min Avg/Status Reassembly


Avg/Status (Used for 3 Hr


Avg)


pH 15 Min Avg or Status
String

15
0
VBScript
15 Min Avg/Status Reassembly


(Reassembled)


pH Manual/15 Min Avg (Used
String

15
0
Stored Procedure
ManualUpdate


for 3 Hr Rolling Avg)


Recirc Flow 3 Hr Rolling Avg
Float
1
60
0
Stored Procedure
BleachRollingAvg with AvgPTE


pH 3 Hr Rolling Avg
Float
2
60
0
Stored Procedure
BleachRollingAvg with AvgPTE


Recirc Flow 3 Hr Rolling Avg
String

60
0
Stored Procedure
BleachRollingAvgStatus with AvgPTE


(Status)


pH 3 Hr Rolling Avg (Status)
String

60
0
Stored Procedure
BleachRollingAvgStatus with AvgPTE


Recirc Flow Lower Limit
Float
2
15
0
Equation
Scrubber Recirc Flow Lower Limit


Recirc Flow Lower DQ Limit
Float
2
15
0
Equation
Scrubber Recirc Flow Lower DQ Limit


Recirc Flow Upper DQ Limit
Float
2
15
0
Equation
Scrubber Recirc Flow Upper DQ Limit


pH Lower Limit 1
Float
2
15
0
Equation
pH Measurement Lower Limit


pH Lower DQ Limit
Float
2
15
0
Equation
pH Measurement Lower DQ Limit


pH Upper DQ Limit
Float
2
15
0
Equation
pH Measurement Upper DQ Limit


Recirc Flow EE Events
String

60
0
Stored Procedure
Bleach Events


pH EE Events
String

60
0
Stored Procedure
Bleach Events


Recirc Flow CMS Events
String

15
0
Stored Procedure
Bleach Events


PH CMS Events
String

15
0
Stored Procedure
Bleach Events


Running Time
Integer

1440
420
Equation
Uptime (Daily)


Mill Day
String

15
0
Stored Procedure
MillDay


BP CMS PTE Status (15 min)
String

15
0
VBScript
BP PTE CMS Status (15 min)


BP EE PTE Status (1 hr)
String

60
0
VBScript
BP PTE EE Status (1 hr)








1
This example monitors pH of the effluent. When ORP (Oxygen Reduction Potential) of the effluent is monitored instead of pH, the pH Lower Limit is replaced by an ORP Upper Limit.










CMS Event Logic

[0503] pH, ORP and flow CMS events are created from the stored procedure, BleachEvents, as described below. Scrubber fan CMS events are created using Proficy's downtime model 200 with a 61-second filter applied. The PI tag, CR-BP-ScrubFan.DQ, triggers the start of an event whenever its state changes from Good (the normal running state) to Bad (the fault state). The event ends when the state changes back to Good. If the state returns to Good within one minute, the change is ignored and an event is not created.



EE Event Logic

[0504] pH, ORP and flow EE events are created from the stored procedure, BleachEvents, as described below. Scrubber fan EE events are created using Proficy's downtime model 200 with a 61-second filter applied. The PI tag, CR-BP-ScrubFan.DQ, triggers the start of an event whenever its state changes from OK (the normal running state) to EE (the fault state). The event ends when the state changes back to OK. If the state returns to OK within one minute, the change is ignored and an event is not created


[0505] VB Script Descriptions


[0506] BP PTE CMS Status (15 min)


[0507] The inputs to this script are the BP % Time CanEmit (15 min) and the lower warning limit for BP % Time CanEmit (15 min). This script is triggered by time (based on the sample interval for the variable) or an input value change. This script compares the 15 min average numeric PTE value to its lower warning limit. If the % Time CanEmit (15 min) value is less than the lower warning limit (usually 50), the PTE status is CanNotEmit. If the % Time CanEmit (15 min) value is greater than or equal to the lower warning limit, the PTE status is CanEmit.


[0508] BP PTE EE Status (1 Hr)


[0509] The inputs to this script are the BP % Time CanEmit (1 Hr) and the lower warning limit for BP % Time CanEmit (1 Hr). This script is triggered by time (based on the sample interval for the variable) or an input value change. This script compares the 1 hr average numeric PTE value to its lower warning limit. If the % Time CanEmit (1 hr) value is less than or equal to the lower warning limit (usually 50), the PTE status is CanNotEmit. If the % Time CanEmit (1 Hr) value is greater than the lower warning limit, the PTE status is CanEmit.


[0510] Qualified 15 Min Avg


[0511] The inputs to this script are the BP CMS_PTE Status (15 min), the 15 minute raw PI average for pH, ORP or flow, the percent good value for pH, ORP or flow and the lower warning limit for percent good. This script is triggered by time (based on the sample interval for the variable) or an input value change. This script filters the 15 minute average (pH, ORP or recirculation flow) based on the PTE status or the percent good value for the average. If the percent good value is greater than 50% and the PTE status is CanEmit, this script outputs the average value. If the PTE status is CanNotEmit or the percent good value is less than 50%, this script outputs a null value.


[0512] Qualified 15 Min Avg Status


[0513] The inputs to this script are the BP CMS PTE Status (15 min), the 15 minute raw PI average for pH, ORP or flow, the percent good value for pH, ORP or flow and the lower warning limit for percent good. This script is triggered by time (based on the sample interval for the inputs) or an input value change. This script outputs the status of the Qualified 15 minute Average (pH, ORP or recirculation flow) for display on the Autolog display. If the PTE status is CanNotEmit, this script outputs Unit Down. If the percent good value is greater than 50% and the PTE status is CanEmit, this script outputs OK. If the percent good value is less than 50% and the PTE status is CanEmit, the script outputs Bad Val.


[0514] 15 Min Avg/Status Reassembly


[0515] The inputs to this script are the Qualified 15 min Avg and the Qualified 15 min Avg Status. This script is triggered by time (based on the sample interval for the inputs) or an input value change. This script combines the two inputs into one string value based on the string value of the Qualified 15 Min Avg Status. If the Qualified 15 Min Avg Status is OK, this script outputs the Qualified 15 min Avg. If the Qualified 15 min Avg Status is Unit Down or Bad Val, this script outputs Unit Down or Bad Val.


[0516] Stored Procedure Descriptions


[0517] ManualUpdate


[0518] This procedure has one input, the 15 min raw PI avg for pH or ORP and one dependant variable, the manually entered value for pH or ORP. This procedure performs a signal selection between a manually entered value and another variable. If the dependant variable value (the manually entered value) is NULL, the output is the value of the input variable (the 15 min raw PI avg). Otherwise, the output is set to the value of the dependant variable. The triggers for this procedure are time (based on the sample interval for the variable), value change for the dependant variable or value change for the input variable.


[0519] BleachRollingAvg with AvgPTE


[0520] This procedure has two inputs, the percent good value for pH, ORP or flow and the BP EE PTE Status (1 Hr), and one dependant variable, the reassembled 15 min avg/status for pH, ORP or flow. This procedure calculates a 3 hour moving average of the dependant variable every hour from a minimum number of samples over the 3 hour interval if the average PTE status over the last hour is CanEmit. The requirement for a good average is that there must be more than 50% good samples. “Good” samples consist of valid numeric values taken while the PTE status is CanEmit and the percent good value is greater than 50%, as determined by the 15 min avg/status reassembly VB script. Values of Bad Val, Unit Down and NULL are excluded from the moving average. The triggers for this procedure are time (based on the sample interval for the variable), value change for the dependant variable or value change for the input variable.


[0521] BleachRollingAvgStatus with AvgPTE


[0522] This procedure has three inputs, the percent good value for pH, ORP or flow, the three hour rolling avg for pH, ORP or flow and the BP Ee PTE Status (1 Hr), and one dependant variable, the reassembled 15 min avg/status for pH, ORP or flow. This procedure generates a status string to compliment the 3 hour moving average calculation, BleachRollingAvg. The following table shows the possible outputs for this procedure and the sample types required to generate them.
53OutputCondition RequiredOK>50% of samples have good numeric valuesNull In<=50% of samples have good numeric values and themajority of these “bad” samples have a valueof NULLBadVal<=50% of samples have good numeric values and themajority of these “bad” samples have a value ofBad Val.Unit Down<=50% of samples have good numeric values and themajority of these “bad” samples have a value ofUnit Down or the BP EE PTE Status (1 Hr) is CanNotEmit.Insuf Data<=50% of samples have a good numeric values andthere is not a majority of these “bad” sampleswith the same value OR the number of samples is lessthan the expected number of samples


[0523] The triggers for this procedure are time (based on the sample interval for the variable), value change for the dependant variable or value change for the input variable.


[0524] BleachEvents


[0525] This procedure is used to create CMS and EE events for pH, ORP and flow. This procedure has one input,the BP EE/CMS PTE Status (1 Hr/15 Min), and one dependant variable, the 3 hr rolling avg for pH, ORP or flow. This procedure tests for CMS or EE events when the average PTE status if CanEmit by comparing the dependant variable value against upper or lower specification limits as specified in the calculation inputs. If the value is above (below) the upper (lower) specification limit, a downtime event with duration as specified in the inputs is created. If an events exists for the previous time interval, the duration is appended to the existing event and the event end time is updated. The triggers for this procedure are time (based on the sample interval for the variable), value change for the dependant variable or value change for the input variable.
54Stored Procedure ListingsSpLocal_BleachEvents/*Procedure Name:spLocal_BleachEventsGeneral Description:This procedure tests for CMS or EE events by comparing the dependant variablevalue against upper or lower specification limits as specified in the calculation inputs. Ifthe value is above (below) the upper (lower) specification limit, a downtime event with durationasspecified in the inputs is created. If and event exists for the previous time interval, thedurationis appended to the existing event and the event end time is updated.The “Potential to Emit” (PTE), if configured for CMS events, is also taken into account.Triggers:1.Time (based on sample interval for variable)2.Dependant variable value change3.Input value changeIn order for the calculation to execute, non-optional calculation input values cannot be NULL.Inputs and Depedencies:1.Requires configuration of the depedant variable which is the value to be tested (e.g.,“pH 3-Hr Rolling Avg”).2.Inputs described in body of code.Outputs:Type: Status message (string)ValueOccurs when....--------------------------------------------------------------------------------------------“No dependant”The dependant variable is notconfigured.“No Reject”The Reject_Limit input constantis not configured(“LR”,“LW”,“UW” or “UR”).“No EventType”The EventType input constant isnot specified (“EE” or “CMS”).“No PTE Val”The event type is “CMS” andthe PTE value is not valid.“No Emission”The event type is “CMS” and the PTEvalue is “CanNotEmit”.“Incorrect Reject”The Reject_Limit input constant isconfigured but is incorrect(not“LR”,“LW”,“UW” or “UR”).“Bad Limit”The retrieved specification limitis NULL.“No Value”The dependant variable value isNULL.“No Event”None of the proceedingconditions apply, the test was performed and passed.“Event Created”The test failed and a downtime eventwas created.Variables:1. Described in body of code.Tables Modified:1.Timed_Event_Details.*/CREATE PROCEDURE dbo.spLocal_BleachEvents--Calculation Input and Output@OutputValue varchar(50) OUTPUT,--Status message (output)@Var_Id int,--This variable's Id@PU_Id int,--This variable's unit Id@Timestamp datetime,--Timestamp@Reject_Limit varchar(2),--Specification limitapplied in test--(valid values: “LR”,“LW”,“UW” or “UR”)@EventWindow int,--Duration ofthe event (if created)@PTEValue varchar(30),--PTE value forthis time interval (optional)@EventType varchar(3)--Event type (validvalues: “EE” or “CMS”)AS--Local variablesDeclare@DepVar_Id int,--Variable Id of the configured dependant variable@RejectVar_Id int,--Variable Id from which specifications limits are read.--In this case, this is the same as @DepVar_Id@RejectVal float,--Thespecification limit value@Value varchar(30),--The value ofthe depedant variable for this time interval.@SourcePU_Id int,--notused in this procedure@StatusId int,--notused in this procedure@FaultId int,--not used in this procedure@Reason1 int,--Usedto retain reasons if an event is appended@Reason2 int,--Usedto retain reasons if an event is appended@Reason3 int,--Usedto retain reasons if an event is appended@Reason4 int,--Usedto retain reasons if an event is appended@ProductionRate float,--Must be specified forevent creation (= 0.0 in this procedure)@Duration float,--Mustbe specified for event creation (= 0.0 in this procedure)@Transaction_Type int,--Specifies thetransaction type in event creation--(1=Add, 2=Update, 3=Delete, 4=Close)@EventStartTime datetime,--Start time for thisevent if created@Start_Time datetime,--Start time for theevent if appended@End_Time datetime,--End time foran event for the previous interval if it exists.@TEDet_Id int,--EventId@TEFault_Id int,--Thefault name from the fault translation table for this unit@Count int,--Number of events with timestamps later than the timestamp for--this interval@Outside_Limit int--Indicates that the dependant variable value is outside of--the specification limitsSet @OutputValue = ‘No Event’--Validate configured dependant variableSelect @DepVar_Id = Var_Id From Calculation_Instance_Dependencies Where Result_Var_Id = @Var_IdIf (@DepVar_Id is Null) Begin Set @OutputValue = ‘No dependant’ Return End--Validate Configured Reject Limit Constantif @Reject_Limit = NULL or @Reject_Limit = ‘’ begin Set @OutputValue = ‘No Reject’ Return end--Validate Configured Event Type (‘EE’ or ‘CMS’)if @EventType < > ‘CMS’ and @EventType < > ‘EE’ begin Set @OutputValue = ‘No EventType’ Return end--Check for Non Null PTE Status if event type is CMSIf@EventType = ‘CMS’BeginIf (@PTEValue < > ‘CanNotEmit’ and @PTEValue < > ‘CanEmit’) BeginSet @OutputValue = ‘No PTE Val’ Return EndEnd--Output status if CanNotEmit (will not evaluate to true for EE events because PTE input not configured)If (@PTEValue = ‘CanNotEmit’ and @EventType = ‘CMS’)BeginSet @OutputValue = ‘No Emission’ ReturnEnd--Get Spec Limits from specification configurationSet @RejectVar_Id = @DepVar_IdSet @RejectVal = NULLif @Reject_Limit = ‘LR’Select @RejectVal = L_Reject from var_specs where var_id = @RejectVar_IdElseif @Reject_Limit = ‘LW’Select @RejectVal = L_Warning from var_specs where var_id = @RejectVar_IdElseif @Reject_Limit = ‘UW’Select @RejectVal = U_Warning from var_specs where var_id = @RejectVar_IdElseif @Reject_Limit = ‘UR’Select @RejectVal = U_Reject from var_specs where var_id = @RejectVar_IdElse begin Set @OutputValue = ‘Incorrect Reject’ Return end--Validate specification valueif @RejectVal = NULLbegin Select @OutputValue = ‘Bad Limit’ Returnend--Get value of the dependant variableSelect @Value = Result From Tests Where Var_Id = @DepVar_Id and Result_On = @Timestamp--Validate dependant variable valueIf ((@Value is Null) or (@Value = ‘’)) Begin Set @OutputValue = ‘No Value’ Return EndSet @Outside_Limit = 0--Compare the value of the dependant variable to the specification limit and set flag--“@Outside_Limit” if the value is out of limitIf @Reject_Limit = ‘LR’ or @Reject_Limit =‘LW’beginif Convert(float,@Value) <= Convert(float,@RejectVal) Set @Outside_Limit = 1endIf @Reject_Limit = ‘UW’ or @Reject_Limit =‘UR’beginif Convert(float,@Value) >= Convert(float,@RejectVal) Set @Outside_Limit = 1end--Check for a later event : Do not create an event for earlier time than latest eventSelect @Count = Count(*) From Timed_Event_Details Where pu_id = @pu_id and ((Start_Time >= @Timestamp) or (End_Time >= @Timestamp))If Convert(float,@Count) > 0.0 Begin Set @OutputValue = ‘No Event’ Return End--Setup to create eventSet @EventStartTime = DateAdd(mi,−1*@EventWindow,@Timestamp)Set @ProductionRate = 0.0Set @Duration = 0.0--Get the fault value from the fault translation tableSelect @TEFault_Id = TEFault_Id From Timed_Event_Fault Where PU_Id = @PU_Id--Create or Append event if outside limitIf @Outside_Limit = 1 Begin Set @OutputValue = ‘Event Created’ Select @TEDet_Id = TEDet_Id,@Start_Time = Start_Time,@End_Time = End_Time,@Reason1=Reason_Level1,@Reason2=Reason_Level2,@Reason3=Reason_Level3,@Reason4=Reason_Level4From timed_event_detailsWhere pu_id = @Pu_Id and Start_time <= @EventStartTime and ((End_Time >=@EventStartTime) or (End_Time is Null)) If @TEDet_Id is NULL  BeginSelect 5, @PU_Id,@PU_Id,NULL,@TEFault_Id,NULL,NULL,NULL,NULL,@ProductionRate,@Duration,1,@EventStartTime,NULL,0Select 5, @PU_Id,@PU_Id,NULL,@TEFault_Id,NULL,NULL,NULL,NULL,@ProductionRate,@Duration,4,NULL,@Timestamp,0End ElseBegin Select 5, @PU_Id,@PU_Id,NULL,@TEFault_Id,@Reason1,@Reason2,@Reason3,@Reason4,NULL,NULL,2,@Start_Time,@Timestamp,@TEDet_IdEnd End/* 5.0B76 required for downtime rst// Downtime// --------------------------------// 0 - Result Set Type (5)// 1 - PU_Id// 2 - Source PU_ID// 3 - Status ID// 4 - Fault Id// 5 - Reason1// 6 - Reason2// 7 - Reason3// 8 - Reason4// 9 - Production Rate// 10 -Duration// 11 -TransType (1,2,3,4)-(1 Add)-(2 Update)-(3 Delete)-(4 Close)// 12 - StartTime// 13 - EndTime// 14 - TEDet_Id*/


[0526]

55

















SpLocal_BleachRollingAvg



/*










Procedure Name:
spLocal_BleachRollingAvg









Copyright (C) 2001, International Paper Company









Revision History:










Date
By









Description











----------
------------------
---------------------------------------



---------------------------











06/30/2001
SC (Entegreat, Inc.)
Initial release



08/20/2001
SC (Entegreat, Inc.)
Comments added









General Description:









This procedure calculates a 3-hour moving average of the dependent variable (typically ph, ORP



or recirculation flow) value every hour from a minimum number of samples over the 3-hour









interval.









Currently, the requirement is that there must be more than 50% good samples in order for



the average to be calculated. “Good” samples consist of valid numeric values taken while



there was potential to emit (PTE) and where the data validity, as determined by










the %-Good PI variable, is good.
Null values and values where the %-Good requirment










is not met are excluded from the moving average.
Typically, for the standard model,









this procedure calculates the average of the 15-minute ph, ORP, or recirculation flow



values over the last 3-hours.









Triggers:










1.
Time (based on sample interval for variable)



2.
Dependant variable value change



3.
Input value change









In order for the calculation to execute, non-optional calculation input values cannot be NULL.









Inputs and Depedencies:










1.
Requires configuration of the depedant variable which is the value to be tested (e.g.,









“pH 15-Min Avg Used for 3Hr Rolling Avg”).










2.
Inputs described in body of code.









Outputs:










1.
3-Hour Average (float)









Variables:









1. Described in body of code.









Tables Modified:










1.
N/A









*/



CREATE PROCEDURE spLocal_BleachRollingAvg



--Calculation Input and Output










@OutputValue float OUTPUT,
--Calculated 3-hour moving









average (output)



@Var_id int,









--Variable Id of this variable










@Start_Time varchar(30),
--Beginning of









the time interval over which the 3-hr average









--is calculated. Internally calculated by Proficy based on









--the sample window specified in the variable sheet.










@End_Time varchar(30),
--End









of the time interval over which the 3-hr average









--is calculated. Internally calculated by Proficy based on



--the sample window specified in the variable sheet.









@PctVar_Id int









--Variable Id of the corresponding %-Good variable









--that determines data validity.









AS



Declare









@DepVar_Id int,



--Dependent variable Id (the variable to be averaged).










@UnitDownCount int,
--









Number of samples with a status of “Unit Down”.










@BadDataCount int,
--









Number of samples with a status of “Bad Val”.









@NullCount int,



--Number of samples with NULL values.



@PctGood float,



--Lower reject limit of the %-Good variable.



@PctLimit float,



--Calculated upper limit on the number of invalid samples









--allowed in the 3-hr window.









@SampleSize float,



--Calculated expected number of samples over the interval









--to be averaged (typ 12=180/15).









@SampleVar int,



--Sampling window for this variable (typ 180 mins).










@SampleDepVar int,
--









Sampling interval of the dependant variable (typ 15 mins).









@totalcount int



--Total number of samples found over the sample









--window (typ 12 samples over 3-hours).









--Get the variable Id of the dependant variable (i.e., the variable to be averaged)



Select @DepVar_Id = Var_Id



 From Calculation_Instance_Dependencies



 Where Result_Var_Id = @Var_Id



--Validate the dependant variable Id



If (@DepVar_Id is Null)



begin



 Select @OutputValue = Null



 Return



end



--Get the lower reject limit of the corresponding %-Good variable (typically 50%)



Select @PctGood = Convert(float,L_Reject)



 from var_specs



 where var_id = @PctVar_Id



--Get the sampling window for this variable (typically 180-mins)



Select @SampleVar = Sampling_Window



 From Variables



 Where Var_Id = @Var_Id



--Get the sampling interval of the dependant variable (typically 15-mins)



Select @SampleDepVar = Sampling_Interval



 From Variables



 Where Var_Id = @DepVar_Id



--Calculate the expected number of samples over the 3-hour interval (typically 12=180/15)



Set @SampleSize = Convert(float,@SampleVar)/Convert(float,@SampleDepVar)



--Calculate the upper limit for the number of invalid values allowed in the



--3-hour window (typically 6=50%*12)



Set @PctLimit = @SampleSize *(@PctGood/100.0)



--Store the values of the dependant variable (the variable to be averaged) over the



--3-hour window into a temporary table



Select Result



 Into #Tests



 From Tests



 Where (Var_Id = @DepVar_Id) And (Result_On > @Start_Time) And (Result_On <= @End_Time)



--Count the number of samples over the 3-hour window



Select @totalcount = count(*)









From #tests









-- If there are less than the expected number samples (typically 12) over the window then quit



if @totalcount < @samplesize









begin









Set @OutputValue = Null



Return









end









--Count the number of samples taken where the unit has no PTE



Select @UnitDownCount = Count(*)



 From #Tests



 Where Result = ‘Unit Down’



--Count the number of samples where the corresponding data %-Good variable



--indicates bad data (i.e., CMS event)



Select @BadDataCount = Count(*)



 From #Tests



 Where Result = ‘Bad Val’



--Count the number of samples with no value



Select @NullCount = Count(*)



 From #Tests



 Where Result is Null



Select @OutputValue = NULL



--If the “Unit Down Count” >= the maximum allowable (typically 6) then



--quit - do not calculate the average



If Convert(float,@UnitDownCount) >= @PctLimit



 Return



--If the “Bad Data Count” >= the maximum allowable (typically 6) then



--quit - do not calculate the average



If Convert(float,@BadDataCount) >= @PctLimit



 Return



--If the “No Value Count” >= the maximum allowable (typically 6) then



--quit - do not calculate the average



If Convert(float,@NullCount) >= @PctLimit



 Return



--If the sum of the above counts >= the maximum allowable (typically 6) then



--quit - do not calculate the average



If (Convert(float,@UnitDownCount+@BadDataCount+@NullCount)) >= @PctLimit



 Return



--Calculate the 3-hour average using only valid values



If (@BadDataCount > 0) or (@UnitDownCount > 0) or (@NullCount > 0)



 Select @OutputValue = SUM(Convert(float,Result))/(@SampleSize −



(Convert(float,@UnitDownCount+@BadDataCount+@NullCount)))









from #Tests



where (Result < > ‘Bad Val’ and Result < > ‘Unit Down’ and Result is NOT Null)









else



 Select @OutputValue = SUM(Convert(float,Result))/@SampleSize









from #Tests



where (Result < > ‘Bad Val’ and Result < > ‘Unit Down’and Result is NOT Null)









--Drop the temporary table



Drop Table #Tests











[0527]

56













SpLocal_BleachRollingAvgStatus


/*








Procedure Name:
spLocal_BleachRollingAvgStatus









Copyright (C) 2001, International Paper Company







Revision History:








Date
By









Description









----------
------------------
---------------------------------------


---------------------------









06/30/2001
SC (Entegreat, Inc.)
Initial release







General Description:









This procedure generates a status message to compliment the 3-hour moving average calculation







result.


Triggers:










1.
Time (based on sample interval for variable)



2.
Dependant variable value change



3.
Input value change









In order for the calculation to execute, non-optional calculation input values cannot be NULL.







Inputs and Depedencies:










1.
Requires configuration of the depedant variable which is the value to be tested (e.g.,









“pH 15-Min Avg Used for 3Hr Rolling Avg”).










2.
Inputs described in body of code.







Outputs:









Type: Status message (string)










Value
Occures when....










-------------------
-------------------------------------------------







------------------------










“OK”
The 3-hour average was







successfully calculated. The result was inside









the







specification limit and an EE event was not generated.










“EE”
The 3-hour average was







successfully calculated. The result was outside









the







specification limit and an EE wvent was generated.










“Insuf Data”
The average was not calculated







because there was less than the minimum









required







number of valid samples (typically 7)










“Unit Down”
The average was not calculated







because the unit was down (i.e.,









no potential to







emit)









for half or more







intervals over the 3-hour period.










“Bad Data”
Half or more of the %-Good







values were less than 50%.










“Null In”
Half or more of the







samples were NULL.










“No Dep Variable”
The dependant variable is not







configured.










“No Spec Variable”
The input variable from which







specification limits are retrieved









is not







configured.










“No Limit”
The Reject_Limit input constant







is not configured (“LR”,“LW”,“UW” or “UR”).










“Bad Limit”
The retrieved specification limit







is NULL.










“BadPctGood”
The lower reject limit of the %-Good







variable is NULL.


Variables:









1. Described in body of code.







Tables Modified:










1.
N/A







*/


CREATE PROCEDURE spLocal_BleachRollingAvgStatus


--Input and Output








@OutputValue varchar(25) OUTPUT,
--Status message (output)







@Var_Id int,









--Variable Id of this variable








@Start_Time varchar(30),
--Beginning of







the time interval over which the 3-hr average









--is calculated. Internally calculated by Proficy based on the



-sample window specified in the variable sheet.








@End_Time varchar(30),
--End of the







time interval over which the 3-hr average









--is calculated. Internally calculated by Proficy based on the



--sample window specified in the variable sheet.







@PctVar_Id int,









--Variable Id of the corresponding %-Good variable that









--determines data validity.








@Reject_Limit varchar(2),
--Specification limit







applied in test









--(valid values: “LR”,“LW”,“UW” or “UR”)









@RejectVar_Id int

--The







variable Id of the variable with the appropriate









--specifications.







AS


Declare








 @DepVar_Id int,
--







Dependent variable Id (the variable to be averaged).








 @UnitDownCount int,
--Number of samples







with a status of “Unit Down”.








 @BadDataCount int,
--Number of







samples with a status of “Bad Val”.








 @NullCount int,
--







Number of samples with NULL values.








 @PU_Id int,
--Unit







Id of this variable








 @PctGood float,
--







Lower reject limit of the %-Good variable.








 @PctLimit float,
--







--Calculated upper limit on the number of invalid samples









--allowed in the 3-hr window.








 @Average float,
--3-







hour rolling average value








 @RejectVal float,
--







--Specification limit value used to test for EE events








 @SampleVar int,
--







--Sampling window for this variable (typ 180 mins).








 @SampleDepVar int,
--Sampling







interval of the dependant variable (typ 15 mins).








 @SampleSize int,
--







Calculated expected number of samples over the interval









--to be averaged (typ 12=180/15).










@totalcount int
--Total







number of samples found over the sample window









--(typ 12 samples over 3-hours).







Set @OutputValue = ‘OK’


--Get dependant variable Id


Select @DepVar_Id = Var_Id


 From Calculation_Instance_Dependencies


 Where Result_Var_Id = @Var_Id


--Validate dependant variable Id


If (@DepVar_Id is Null)


begin


 Select @OutputValue = ‘No Dep Variable’


 Return


end


--Validate variable to which specification limits have been assigned


If (@RejectVar_Id is Null)


begin


 Select @OutputValue = ‘No Spec Variable’


 Return


end


--Get the unit Id for this variable


Select @PU_Id = PU_Id


 From Variables


 Where Var_Id = @Var_Id


--Validate specification limit used for comparison (“LR”,“LW”,“UW”, or “UR”)


if @Reject_Limit = NULL or @Reject_Limit = ‘’


begin


 Set @OutputValue = ‘No Limit’


 Return


end


Set @RejectVal = NULL


--Get designated specification limit value


if @Reject_Limit = ‘LR’









Select @RejectVal = L_Reject



 from var_specs



 where var_id = @RejectVar_Id







if @Reject_Limit = ‘LW’









Select @RejectVal = L_Warning



 from var_specs



 where var_id = @RejectVar_Id







if @Reject_Limit = ‘UW’









Select @RejectVal = U_Warning



 from var_specs



 where var_id = @RejectVar_Id







if @Reject_Limit = ‘UR’









Select @RejectVal = U_Reject



 from var_specs



 where var_id = @RejectVar_Id







--Validate specification limit value


if @RejectVal = NULL


begin


 Select @OutputValue = ‘Bad Limit’


 Return


end


--Get the sampling window for this variable (typically 180-mins)


Select @SampleVar = Sampling_Window


 From Variables


 Where Var_Id = @Var_Id


--Get the sampling interval of the dependant variable (typically 15-mins)


Select @SampleDepVar = Sampling_Interval


 From Variables


 Where Var_Id = @DepVar_Id


--Get the lower reject limit of the %-Good variable (typically 50%)


select @PctGood = Convert(float,L_Reject)









From var_specs



Where var_id = @PctVar_Id







--Validate the value of the lower reject limit of the %-Good variable


if @PctGood = NULL or @PctGood = ‘’


begin


 Select @OutputValue = ‘Bad PctGood’


 Return


end


--Calculate the expected number of samples over the 3-hour interval (typically 12=180/15)


Set @SampleSize = @SampleVar/@SampleDepVar


--Calculate the upper limit for the number of invalid values allowed in order for the 3-hour


--average to be calculated (typically 6=50%*12)


Set @PctLimit = Convert(float,@SampleSize)*(@PctGood/100.0)


--Store the sample values of the dependant variable over the 3-hour window into a temporary table


Select Result


 Into #Tests


 From Tests


 Where (Var_Id = @DepVar_Id) And (Result_On > @Start_Time) And (Result_On <= @End_Time)


--Count the number of samples over the 3-hour window


Select @totalcount = count(*)









From #tests







--If there are less than the expected number of samples (typically 12) in the 3-hour window


--then send message and quit


if @totalcount < @samplesize









Begin







 Set @OutputValue = ‘Insuf Data’









Return









end







--Count the number of samples taken where the unit has no PTE


Select @UnitDownCount = Count(*)


 From #Tests


 Where Result = ‘Unit Down’


--Count the number of samples where the corresponding data %-Good variable indicates bad data (i.e.,


CMS event)


Select @BadDataCount = Count(*)


 From #Tests


 Where Result = ‘Bad Val’


--Count the number of samples with no value


Select @NullCount = Count(*)


 From #Tests


 Where Result is Null


--Calculate the 3-hour average using only valid samples


If (@BadDataCount > 0) or (@UnitDownCount > 0) or (@NullCount > 0)


 Select @Average = SUM(Convert(float,Result))/(@SampleSize −


(Convert(float,@UnitDownCount+@BadDataCount+@NullCount)))









from #Tests



where (Result <> ‘Bad Val’ and Result <> ‘Unit Down’ and Result is NOT Null)







else


 Select @Average = SUM(Convert(float,Result))/@SampleSize









from #Tests



where (Result <> ‘Bad Val’ and Result <> ‘Unit Down’and Result is NOT Null)







--If the “Unit Down Count” >= the maximum allowable (typically 6) then send message and quit.


If Convert(float,@UnitDownCount) >= @PctLimit


 Begin


 Set @OutputValue = ‘Unit Down’


 Return


 End


--If the “BadDataCount” >= the maximum allowable (typically 6) then send message and quit.


If Convert(float,@BadDataCount) >= @PctLimit


 Begin


 Set @OutputValue = ‘Bad Val’


 Return


 End


--If the “NULL Count” >= the maximum allowable (typically 6) then send message and quit.


If Convert(float,@NullCount) >= @PctLimit


 Begin


 Set @OutputValue = ‘Null In’


 Return


 End


--If the sum of the above counts >= the maximum allowable (typically 6) then send message and quit.


If (Convert(float,@UnitDownCount)+ Convert(float,@BadDataCount)+ Convert(float,@NullCount)) >=


@PctLimit


 Begin


 Set @OutputValue = ‘Insuf Data’


 Return


 End


--If there is sufficient data then test for an EE event


If @Reject_Limit = ‘LR’ or @Reject_Limit =‘LW’


begin









if @Average < @RejectVal



Set @OutputValue = ‘EE’



Return







end


If @Reject_Limit = ‘UW’ or @Reject_Limit =‘UR’


begin









if @Average > @RejectVal



Set @OutputValue = ‘EE’



Return







end


Set @OutputValue = ‘OK’


Drop Table #Tests










[0528]

57

















SpLocal_ManualUpdate



/*










Procedure Name:
spLocal_ManualUpdate









Copyright (C) 2001, International Paper Company









Revision History:










Date
By









Description











----------
------------------
---------------------------------------



---------------------------











06/30/2001
SC (Entegreat, Inc.)
Initial release



08/20/2001
SC (Entegreat, Inc.)
Comments added









General Description:









This procedure performs a signal selection between a manually entered value and another



variable. If the dependant variable value (the manually entered value) is NULL,



the output is the value of the input variable (the PI value). Otherwise, the output is



set to the value of the dependant variable.









Triggers:










1.
Time (based on sample interval for variable)



2.
Dependant variable value change (the manually entered value)



3.
Input value change (the PI variable)









In order for the calculation to execute, non-optional calculation input values cannot be NULL.









Inputs and Depedencies:










1.
Requires configuration of the depedant variable which is the manually entered value.



2.
Inputs described in body of code.









Outputs:










1.
The manually entered value if it's value is not NULL, otherwise









the input variable value.









Variables:









1. Described in body of code.









Tables Modified:










1.
N/A









*/



CREATE PROCEDURE spLocal_ManualUpdate










@Result varchar(25) OUTPUT,
--The value of the selected variable










@Var_Id int,
--









Variable Id of this variable










@Timestamp datetime,
--Timestamp of this variable










@PIVar_Val varchar(25)
--Value of the PI









variable



AS



Declare










@ManualVar_Id int
--Variable Id of









the dependant variable (the manually entered value)



--Find the variable Id for the manually entered value (the dependant variable)



Select @ManualVar_Id = Var_Id



 From Calculation_Instance_Dependencies



 Where Result_Var_Id = @Var_Id



--Validate the variable Id for the manually entered variable



If (@ManualVar_Id is NULL)



 Begin



 Set @Result = ‘Null ManualVar’



 Return



 End



--Get the current value of the manually entered variable



Select @Result = Result from Tests



 where Var_Id = @ManualVar_Id and Result_On = @TimeStamp



--If the value of the manually entered variable is NULL, then output the value of the input variable (PI



variable)



If (@Result is NULL) or (@Result = ‘’)



 Begin



 Set @Result=@PIVar_Val



 End











[0529]

58













SpLocal_MillDay


/*








Procedure Name:
spLocal_MillDay









Copyright (C) 2001, International Paper Company



Process Management Application Group







Revision History:








Date
By









Description









----------
------------------
---------------------------------------


---------------------------









06/30/2001
SC (Entegreat, Inc.)
Initial release


08/20/2001
SC (Entegreat, Inc.)
Comments added







General Description:









This procedure calculates a date string for display that coincides with the mill day. The



time at which the mill day begins is hard-coded within this procedure (see comments below).







Triggers:










1.
Time (based on sample interval for variable)







Inputs and Depedencies:










1.
Inputs described in body of code.







Outputs:










1.
Date string for the mill day.







Variables:









1. Described in body of code.







Tables Modified:










1.
N/A







*/


CREATE PROCEDURE spLocal_MillDay








@Outputvalue varchar(255) OUTPUT,
--MillDay








@TimeStamp datetime
--Timestamp







for this variable


AS


Declare








@Day varchar(25),
--Day







part of mill day








@PreviousDay datetime,
--Timestamp







for previous day








@Month varchar(25),
--Month part of







mill day








@Year varchar(25),
--Year part of







mill day








@MillDay varchar(25),
--Mill day







string








@Hour varchar(25),
--Hour part of







timestamp








@Minute varchar(25),
--Minute part of







timestamp


@time float









--Time part of timestamp







--Initialize variables


Select @PreviousDay = ‘’


Select @Day = ‘’


Select @Month = ‘’


Select @Year = ‘’


--Strip hour and minute from timestamp


Select @Hour=DatePart(hh,@Timestamp)


Select @Minute=DatePart(mi,@Timestamp)


Select @time=100*@Hour+@Minute


--Calculate mill day with the new day beginning at on minute past the mill day rollover


--The rollover time is hard-coded within the “If” statement below.


If ((@time>=0) and (@time<701))


Begin


Select @PreviousDay = DateAdd(dd,−1,@Timestamp)


Select @Day = DatePart(dd,@PreviousDay)


Select @Month = DatePart(mm,@PreviousDay)


Select @Year = DatePart(yyyy,@PreviousDay)


Select @MillDay = convert(varchar(25),@Month) + ‘/’ + convert(varchar(25),@Day) + ‘/’ +


convert(varchar(25),@Year)


End


Else


Begin


Select @Day = DatePart(dd,@Timestamp)


Select @Month = DatePart(mm,@Timestamp)


Select @Year = DatePart(yyyy,@Timestamp)


Select @MillDay = convert(varchar(25),@Month) + ‘/’ + convert(varchar(25),@Day) + ‘/’ +


convert(varchar(25),@Year)


End


Select @Outputvalue = @MillDay










Claims
  • 1. A method for the combined monitoring and reporting of actual and potential emissions of multiple phases of matter from a production facility which utilizes and/or generates such multiple phases of matter comprising the steps of: a. identifying each of the potential sources of emission events of gaseous matter generated within the production facility and desired to be monitored and reported, b. identifying each of the potential sources of emission events of liquid matter generated within the production facility and desired to be monitored and reported, c. at each identified potential source of gaseous or liquid emission event, providing means for detecting an emission event occurring at said source and generating an event signal which is representative of a detected emission event of a respective one of gaseous or liquid emission events at said source, said signal being representative of at least the occasion of the emission event, the volumetric extent of the event, the timing of the event, and the location of the event with the production facility, d. transmitting said event signal from its identified source thereof to at least one central location, e. generating a further signal representative of an operational phase of the production facility which is associated with each identified potential source of an emission event, f. transmitting said signal representative of an operational phase of the production facility to said at least one central location, g. at said central location, monitoring said incoming signals from said sources of emission events and said signals representative of respective associated operational phases of operation of the production facility associated with said sources of emission events, comparing each of said signals from respective ones of said sources of emission events with said signals representative of a respective one or more operational phase of the production facility associated with said source of said emission event to determine the status of the operation of the production facility at the time of said emission event, h. reporting as actual emission events only those emission events which positively correlate with an associated ongoing production phase of the production facility at the time of the reported emission event.
  • 2. The method of claim 1 and the steps of a. monitoring one or more of the operational phases of the production facility for input of raw materials to said one or more operational phases of the production facility, b. generating a signal which is representative of the quantity of raw materials input into each of said monitored operational phases of the production facility, c. transmitting said signal representative of the quantity of raw materials input into each of said operational phases of the production facility to said at least one central location, d. generating an signal which is representative of the quantity of product output from the production facility associated with said raw materials input to the production facility, e. transmitting said signals representative of the quantity of product output from the production facility associated with said raw materials input to the production facility, f. at said at least one central location, comparing said signals from said raw materials input with corresponding product output from the production facility to derive a value representative of the loss, if any, of raw materials in the course of conversion of said raw materials into product output of the production facility, and g. providing a report showing the relationship of raw material loss, if any, from the production facility relative to the occurrence, if any, of emission events reported to said at least one central location during the time between introduction of said raw materials input and the product output of the production facility employing said raw materials input.
  • 3. The method of claim 2 and including the step of comparing the total emission of gaseous material over a given time period to the total regulatory allowable emission of gaseious material over said given time period.
  • 4. The method of claim 2 and including the step of comparing the total emission of liquid material over a given time period to the total regulatory allowable emission of liquid material over said given time period.
CROSS-REFERENCE TO RELATED APPLICATIONS

[0001] This application is a Non-provisional application of Provisional Application S. No. 60/344,216 filed Dec. 21, 2001. Priority is claimed based on the aforesaid Provisional application S. No. 60/344,216.

Provisional Applications (1)
Number Date Country
60344216 Dec 2001 US