Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Unified Engineering

Logical Expressions

  • Last UpdatedJan 13, 2023
  • 3 minute read

Use the Logical Expressions part of the Rule Manager window to modify expressions in RLOGIC elements. Expressions are split into multiple cells with valid values, to allow for easy construction of complex expressions. Any modifications made in the grid are applied to the database immediately.

Each row in the grid contains the content of a single RLOGIC element. If the RLOGIC owns an RVALUE, it displays into the Result column.

The expression (as it is stored in the database) displays below the grid. The expression is split up into the grid columns, with descriptive text instead of syntax where available. Expressions with up to one logical AND/OR operator are supported. If the operator is present, the cells for Item 2, Data Description 2, Evaluator 2 and Value 2 become active.

Level

Displays the level of ownership of the RLOGIC element.

Level 1 is applied to an RLOGIC element owned directly by the DRULE element.

Level 2 is applied to an RLOGIC element which has one RLOGIC above it in the hierarchy.

Item

Select an item which owns the property to be queried. The value list in the Data Description column changes depending on the selected item. Some items are only available for certain ruleset purposes:

  • Component - The properties from the current component's dataset. Only available if a component is available.

  • Template - The properties from a linked template dataset. Only available if a template is available.

  • Owner/Attached - The properties from the owning/attached sections. Available if the ruleset purpose is JOIN, or if the component's dataset contains relevant OWNE/ATTA data elements.

    For WDET and WSEL rulesets, this option instead queries the Welded Plate Thickness Array (WPTHKA) attribute on the STWELD, which contains plate thicknesses which are relevant to the weld's owning and attached elements.

  • Expression - The value list is not loaded, and free text entry is enabled in the Data Description cell. The entry must be a valid attribute or property expression.

    Note:
    When entering expressions with the Expression option, special care must be taken to ensure the attribute is valid for the component when it is evaluated in context in Model.

Data Description

Displays a valid list of available data, depending on the selected Item. Data is listed with descriptions instead of DKEYs to improve readability.

If Expression is selected in the Item column, any valid attribute or expression can be entered.

Evaluator

Select a logical evaluator to construct the True/False expression.

Value

Input a value to query for the data chosen in the Data Description column. The entered value must be of the correct type and have the correct units for the data property being queried. If an invalid value, or one with incorrect units is entered, the row is highlight red and a message is shown on the row tooltip indicating the problem.

Operator

Select a logical And/Or operator to construct a compound expression.

Result

Specify the result of the rule if the given logical expression evaluates as True. If a value is entered in this column, an RVALUE element is created under the current RLOGIC.

The entered value must be of the correct type and have the correct units for the property which is set by the rule.

A PML function or reference to another DRULE can be entered in the Result column. Refer to Rules with Functions and Rules with Sub-Rules for further information.

TitleResults for “How to create a CRG?”Also Available in