Expression Items
Expression Items are items not driven by a PLC. Instead they allow you to configure a static value, or use some other means to automatically set a value, such as a query. They are useful for executing comparisons, simple math, and looking up values from other database tables.
Much like OPC Items, Expression Items can have alarms configured, as well as numeric scaling applied directly to the item.
Scope
It is important to understand that an Expression Item only exists within its group, and can not be referenced by items in other Transaction Groups, Tags, and any components on a window. The only exception is to use an Expression Item to store/retrieve a value with storeVariable() and getVariable() functions. These functions store values in a space that is accessible by all Transaction Groups.
Execution Order
All Expression items will evaluate in order from top to bottom. This means referencing an Expression Item above will pull the new value, but referencing an Expression Item below will give you the value from the last group execution.
Expression Type
How an Expression Item determines its value depends heavily on its type.

Expression Type | Definition |
---|
None | Behaves similar to a Memory Tag in that the value does not automatically change. |
Expression | Uses Ignition's Expression Language to determine the value on the Item. The expression can reference other items in the group, as well as Tags. |
SQL Query | Utilizes a SQL query to determine the item's value. Thus, a query can execute on the item and the results can be referenced by other items in the same group. |
Named Query | Selecting this option will cause the value on the item to be determined by a Named Query in the same project as the Transaction Group. |
Refer to the Property Table at the bottom of this page to see the Expression Item properties.