|
Creating a Calculated Indicator Template
To Create a Calculated Indicator Template
1.
2. Select the Templates tab. By default, the table lists the indicator templates for the site and above.
3. Click New. The Indicator template window appears.
4.
• Select an indicator type from the Indicator type list. The window changes to reflect the value type.
6. In the Collection method list, select “Calculated using a formula.” The Calculation tab is added to the window.
7. On the Collection tab, you can enter values that determine how often readings are expected and the next collection date. You can also enter information to make it easier to select this indicator when adding indicators to a work order task or standard task, when copying indicators to another asset, when setting up dynamic inspection routes, or when implementing reliability programs.
8. Select the Details tab if the indicator’s readings are to be represented with the gauge control. The target value defines the range of the gauge.
9. To specify the months during which readings should be taken, select the Seasonal tab. Click This indicator is collected seasonally and select the starting and ending dates. For example:
10. Select the Description tab to enter more information about the indicator.
11. Select the Calculation tab.
12. On the Expression tab, select the type of expression. A calculated indicator can be based on:
• VB.NET – Inputs and functions defined on the Calculation tab can be used to create a formula that is calculated at run time. This is the default option
• C# – Inputs and functions defined on the Calculation tab can be used to create a formula that is calculated at run time
• Stored procedure – The expression is provided in a stored procedure that receives its inputs at runtime and returns a valueWith the Complete class option, a starter script template is provided automatically, which you can edit as needed. You can also click Regenerate from Template to reset the formula to the starter script.Tip: You can view the template scripts by opening the Enterprise window, clicking the Administration menu and then Calculation options. For more information, see Defining Calculation Options.
14. If the type of expression is VB.NET or C#, in the text box provided, type the mathematical formula that the indicator will use. You can use three elements in your formula:
15. If the type of expression is stored procedure, the information on the Calculation tab changes:
16. Now you need to define all of the inputs for the calculation. You can create two types of calculation inputs: based on indicator readings or based on filters. From the New list select either Indicator Input or Filter Input. The Calculation Input dialog appears.
17. For VB.NET and C# expressions, you can check the syntax (the order of the elements) of your calculation by clicking Check (Test) and the system verifies the calculation for errors.
18. To use the test values on the inputs to complete a test calculation, click Calculate. You can use the result of this calculation to check that the expression is giving the desired results.
19. When you have defined the calculation expression and inputs, you can click Check (Live). The test function uses the values from the inputs (for example, indicator readings) and displays the result in the Test Reading window.Note: If you are using a C# complete class script and change the expression to a VB.NET complete class script (or vice versa), you must first click Regenerate from Template to regenerate the template to use the proper syntax.
21. If necessary, you can change the Required Proximity of the calculation inputs. This option appears in the Expression tab after you have added two or more inputs based on readings.
22. Select the Frequency tab. In the Triggering mechanism section, select when and how the system triggers the calculation. If the calculation is to be triggered at a regular interval (based on a recurrence pattern), define the scheduled interval for the indicator.
23. On the States and Alarms tab, you can set up states and alarms for the indicator template. For detailed instructions, see Adding States and Alarms to an Indicator or Template.