Creating Simple Equation Calculations
-
Browse into the Plant Model, then into A Production Unit and Group.
-
Right-click on a Group and select "Create Variable."
-
Type in the name of the new Variable. Variable names must be unique within a given Production Unit.
-
Select the new variable; right-click and select "Create Calculation."
-
From the Calculation Configuration window, select a Calculation Type of "Equation."
-
Type in the number of inputs the calculation will have.
-
Type the Equation within the Equation window. Variables names A-Z are used as "aliases" to inputs, with "A" being the first input, "B" being the second input, and so on.
-
Select the "Identify Input Variables" tab.
-
Select the first Calculation Input and select identify the variable attached to the calculation by selecting the "…" button at the bottom of the screen.
-
From the Search Variables dialog, optionally select a Production Line, Production Unit, and all or part of a variable description to limit the variable search.
-
Select the "Search" button.
-
Select a variable from the search results to attach to the calculation and select "OK" to return to the calculation configuration window.
-
Select "Save" to save the calculation.
-
Set up the calculation interval. By default, the calculation will trigger each time one of the input variables change. You may also force calculation on a time or event basis by modifying the attributes of the variable the calculation is attached to.
-
Select the Variable; right-click and select "Variable Sheet."
-
In the Variable Sheet window, select "Production Event" for the Event Type. This will cause the calculation to fire whenever the input variables change, or whenever a Production Event is created or modified.
-
When finished in the Variable Sheet, select the "Save" icon in the toolbar to make the current changes active.
See Also