OEE Configuration
Overview
The OeeConfiguration entity represents a configuration for an OEE provider for a given location in the factory. The
entity contains several parameters to determine how OEE is calculated. Parameters include the location the configuration
belongs to, parameters defining machine production count, parameters defining quality calculation, parameters defining
production rate, and parameters defining production order, among others.
Table Structure
The following table outlines the SQL columns for the oee_configurations table, providing a brief description of each.
| Column | Type | Description | Example |
|---|---|---|---|
id | String (ULID) | Unique identifier for the entity. | 01JAP8RJBN-8ZTPXSGY-J9GSDPE1 |
enabled | Boolean | If the entity is enabled or not. Default is true. | true |
created_date | DateTime | Date the entity was created. | 2025-12-09T19:48:44Z |
created_by | String | Person who created the entity. | TamakiMES |
modified_date | DateTime | Date the entity was modified. Value is null upon creation, and gets initially populated upon the first edit. | 2025-12-09T19:48:44Z |
modified_by | String | Last person to modify the entity. Value is null upon creation, and gets initially populated upon the first edit. | TamakiMES |
notes | String | Notes about the entity. | This entity has these extra notes |
spare1 | String | The first spare column that can be used for additional context on the entity. | extra context 1 |
spare2 | String | The second spare column that can be used for additional context on the entity. | extra context 2 |
spare3 | String | The third spare column that can be used for additional context on the entity. | extra context 3 |
location_id | String (ULID) | References the location for the OEE configuration. See Location. | 01JAP8RJBN-8ZTPXSGY-J9GSDPE1 |
max_record_duration | Integer | Maximum record duration in seconds. How often should records be taken. | 300 |
max_time_between_executions | Integer | Maximum number of seconds between executions. | 5 |
max_flush_interval | Integer | Seconds between flush operations to the database. Null means no maximum. | 30 |
prune_days | Integer | Number of days to keep records. If null, records will be kept indefinitely. | 10 |
mode_expression | String | OEE Mode Expression. The result of this expression should be an integer that corresponds to the mode number. | {[provider]/tag/value} |
enable_availability | Boolean | Enable OEE Availability Calculations for the configuration location. | true |
state_expression | String | Ignition expression for Machine Status integer. | {[provider]/tag/value} |
downtime_reason_source | String (Enum) | Determines how the system resolves what downtime reason code to use. | MANUAL |
downtime_reason_expression | String | Ignition expression that returns an integer "code" that corresponds to a downtime reason. | {[provider]/tag/value} |
hold_first_non_running_state | Boolean | When true, the system will not allow cutover between two non-running states. When false, the system will allow cutover between any state changes. | true |
primary_alarm_resolution_strategy | String (Enum) | Primary Alarm Resolution Strategy for this OEE Configuration. | EARLIEST |
primary_alarm_maximum_delay | Integer | Maximum delay in seconds for primary alarm resolution. | 5 |
enable_performance | Boolean | Enables Performance Calculations for Unit. | true |
unit_of_measure_id | String (ULID) | References the unit of measure for machine production/quality counts. See unit_of_measure. | 02K4M9QY3F-7XW8A2ZL-QM9D6B1P |
production_count_expression | String | Expression for Machine Production Count. | {[provider]/tag/value} |
production_count_calc_type | String (Enum) | Calculation type for Production Count. | DELTA |
production_count_overflow_value | Double | Overflow value for Production Count. Only used in DELTA count calculation type. | 0.0 |
standard_rate_source | String (Enum) | Source for Standard Rate. | STATIC |
standard_rate | Double | Standard Rate for this Unit. | 100.0 |
standard_rate_expression | String | Expression to provide the standard rate for this machine. | {[provider]/tag/value} |
production_rate_time_units | String (Enum) | Unit of measure for the machine production rate & standard rate. | MINUTES |
enable_quality | Boolean | Enables Quality Calculations for Unit. | true |
quality_count_calc_type | String (Enum) | Calculation type for Quality Count. | DELTA |
quality_strategy | String (Enum) | Quality Strategy for this OEE Configuration. | WASTE_COUNT |
quality_count_expression | String | Ignition Tag Path for Production quality Count Number. | {[provider]/tag/value} |
quality_count_overflow_value | Double | Overflow value for quality count. | 5 |
production_order_source | String (Enum) | Source for the production order resolution. | EXPRESSION |
production_order_expression | String | Expression to provide the production order (id or name) for the current oee record. | {[provider]/tag/value} |
Field Details
location_id
References the location for the OEE configuration. See Location for details.