Calculation example: sum of analog values

In this first example of the use of Calculation, we need to fetch two values from two different IGSS analog objects, for instance tanks, and display the result as a total value.

To illustrate clearly what we’re doing, we create a third tank on the process diagram whose data input does not come from the process but from simply fetching values already collected from the process by the two tanks on the diagram. In the Definition module, our process visualization looks like the illustration below, where Tank_FR1 and Tank_FR2 are the two tanks whose sum we wish to display.

 

images\DEF_Calc_2tanks.gif

 

  1. Let's start by creating a third analog object and placing it on the diagram underneath Tank_FR1 and Tank_FR2, and we’ll call it Intake_Main.

 

images\Calculation__3TanksAnalog.gif

 

  1. The only work to be done on the Intake_Main analog object is on its Calculation tab. Remember that we don’t actually receive data directly from the process for this tank but via the two other tank objects. Double click on the new object Intake_Main and then find the tab Calculation and open it.

 

images\DEF_Calc_IntakeMain_Calculationtab.gif

 

  1. Put a check mark in the Actual Value atom as shown above.
  2. Under Execution trigger to the right, make sure the On object changes in expression is selected.
  3. In the field under Expression key in the following parameters: Value('Tank_FR1')+Value('Tank_FR2'). The latter are called IGSS object functions.
  4. Click on the button Test Expression… and the following message box appears confirming that the expression syntax is valid.

 

images\DEF_Calc_TestExpression_ok_msgbox.gif

 

  1. Click OK.
  2. In the field called Comment, the system designer may write a brief note about what occurs. If operators are permitted to view an object's properties in Supervise, then this note will be viewable for them.
  3. Now go to the Display tab and under Show select Name > Enable and select State /Value > Enable.
  4. At the bottom left of the Display tab remove the checkmark from Selectable, which prevents operator access to the object's properties.
  5. Click OK to save and close.
  6. Save and install the configuration.
  7. Start the configuration up by clicking on the IGSS Starter.
  8. Try changing the Actual Value atoms on either of the two tanks Tank_FR1 or Tank-FR2.

For a complete list of the object functions available for Calculation, please click here.

For a complete list of the arithmetical functions and operators available for Calculation, please click here.