Adding a custom calculation using the PC Client

Last Updated : Sep 13, 2024 |
Prolog information
Resource Id: Chapter3-049_html:1066
You can create a custom calculation in the Dictionary. The formula for the calculation can have up to three levels of nesting. It can include database items, constants, and the following arithmetic operators:
  • + (add)
  • – (subtract)
  • * (multiply)
  • / (divide)
  • ( ) (do first, as in standard mathematical operations)
Important:
Calculations that refer to another calculation should enclose the referenced calculation within parentheses. For example, if Calculation 1 (C1) is A + B + C and Calculation 2 (C2) is C1 divided by D, type (C1)/D for Calculation 2.
  1. From the Controller window, select CommandsDictionary.
    STEP RESULT:
    CMS Supervisor displays the Dictionary window.
  2. In the Operations list, select Calculations.
  3. Click OK.
    STEP RESULT:
    CMS Supervisor displays the Dictionary Calculations window.
  4. Enter the name of the calculation in the Calculation Name field.
    ADDITIONAL INFORMATION:
    Use lowercase letters in the name to distinguish this custom calculation from a standard CMS calculation.
  5. In the Calculations field, enter the formula for the calculation.
  6. Add any other information about the calculation in the Description field.
    ADDITIONAL INFORMATION:
    You can enter up to 50 characters in this field.
  7. From the Actions menu, click Add.
    STEP RESULT:
    The custom calculation is added to the Dictionary.