Skip to main content
Version: V2 (Ignition 8.1)

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.

ColumnTypeDescriptionExample
idString (ULID)Unique identifier for the entity.01JAP8RJBN-8ZTPXSGY-J9GSDPE1
enabledBooleanIf the entity is enabled or not. Default is true.true
created_dateDateTimeDate the entity was created.2025-12-09T19:48:44Z
created_byStringPerson who created the entity.TamakiMES
modified_dateDateTimeDate the entity was modified. Value is null upon creation, and gets initially populated upon the first edit.2025-12-09T19:48:44Z
modified_byStringLast person to modify the entity. Value is null upon creation, and gets initially populated upon the first edit.TamakiMES
notesStringNotes about the entity.This entity has these extra notes
spare1StringThe first spare column that can be used for additional context on the entity.extra context 1
spare2StringThe second spare column that can be used for additional context on the entity.extra context 2
spare3StringThe third spare column that can be used for additional context on the entity.extra context 3
location_idString (ULID)References the location for the OEE configuration. See Location.01JAP8RJBN-8ZTPXSGY-J9GSDPE1
max_record_durationIntegerMaximum record duration in seconds. How often should records be taken.300
max_time_between_executionsIntegerMaximum number of seconds between executions.5
max_flush_intervalIntegerSeconds between flush operations to the database. Null means no maximum.30
prune_daysIntegerNumber of days to keep records. If null, records will be kept indefinitely.10
mode_expressionStringOEE Mode Expression. The result of this expression should be an integer that corresponds to the mode number.{[provider]/tag/value}
enable_availabilityBooleanEnable OEE Availability Calculations for the configuration location.true
state_expressionStringIgnition expression for Machine Status integer.{[provider]/tag/value}
downtime_reason_sourceString (Enum)Determines how the system resolves what downtime reason code to use.MANUAL
downtime_reason_expressionStringIgnition expression that returns an integer "code" that corresponds to a downtime reason.{[provider]/tag/value}
hold_first_non_running_stateBooleanWhen 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_strategyString (Enum)Primary Alarm Resolution Strategy for this OEE Configuration.EARLIEST
primary_alarm_maximum_delayIntegerMaximum delay in seconds for primary alarm resolution.5
enable_performanceBooleanEnables Performance Calculations for Unit.true
unit_of_measure_idString (ULID)References the unit of measure for machine production/quality counts. See unit_of_measure.02K4M9QY3F-7XW8A2ZL-QM9D6B1P
production_count_expressionStringExpression for Machine Production Count.{[provider]/tag/value}
production_count_calc_typeString (Enum)Calculation type for Production Count.DELTA
production_count_overflow_valueDoubleOverflow value for Production Count. Only used in DELTA count calculation type.0.0
standard_rate_sourceString (Enum)Source for Standard Rate.STATIC
standard_rateDoubleStandard Rate for this Unit.100.0
standard_rate_expressionStringExpression to provide the standard rate for this machine.{[provider]/tag/value}
production_rate_time_unitsString (Enum)Unit of measure for the machine production rate & standard rate.MINUTES
enable_qualityBooleanEnables Quality Calculations for Unit.true
quality_count_calc_typeString (Enum)Calculation type for Quality Count.DELTA
quality_strategyString (Enum)Quality Strategy for this OEE Configuration.WASTE_COUNT
quality_count_expressionStringIgnition Tag Path for Production quality Count Number.{[provider]/tag/value}
quality_count_overflow_valueDoubleOverflow value for quality count.5
production_order_sourceString (Enum)Source for the production order resolution.EXPRESSION
production_order_expressionStringExpression 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.

max_record_duration​

Maximum record duration in seconds. Controls how often records should be taken. The max record duration must be greater than or equal to 30 seconds.

max_time_between_executions​

Maximum number of seconds between executions. Max time between executions must be greater than or equal to 1 second.

max_flush_interval​

Seconds between flush operations to the database. Null means no maximum. Max flush interval must be greater than or equal to 10 seconds.

prune_days​

Number of days to keep records. If null, records will be kept indefinitely. Prune days must be greater than 0.

mode_expression​

OEE Mode Expression. The result of this expression should be an integer that corresponds to the mode number. See OEE Mode for details.

enable_availability​

Enable OEE Availability Calculations for the configuration location.

state_expression​

Ignition expression for Machine Status integer. Generally, 0=Off, 1=Run, 10=Paused etc.

downtime_reason_source​

Determines how the system resolves what downtime reason code to use. Sources include MANUAL where the user manually selects the downtime reason and EXPRESSION where the downtime reason is determined through an Ignition expression. See OEE Downtime Reason for details.

downtime_reason_expression​

Ignition expression that returns an integer "code" that corresponds to a downtime reason. See OEE Downtime Reason for details.

hold_first_non_running_state​

When true, the system will not allow cutover between two non-running states. When false, the system will allow cutover between any state changes, including non-running to non-running. Default is true to maintain backward compatibility.

primary_alarm_resolution_strategy​

Primary Alarm Resolution Strategy for this OEE Configuration.

primary_alarm_maximum_delay​

Maximum delay in seconds for primary alarm resolution. When set, only alarms that occur within this many seconds of the state change will be considered for primary alarm selection. A value of 0 means only alarms active at or before the state change are considered. Values > 0 allow alarms that become active up to that many seconds after the state change (useful for handling race conditions).

enable_performance​

Enables Performance Calculations for Unit.

unit_of_measure_id​

References the unit of measure for machine production/quality counts. See unit_of_measure for details.

production_count_expression​

Ignition expression for Machine Production Count.

production_count_calc_type​

Calculation type for Production Count. Types include DIRECT and DELTA.

production_count_overflow_value​

Overflow value for Production Count. Only used in DELTA count calculation type. When the count overflows, this value will be added to the count. For example, if the machine will constantly reset the count at 1000 units, and we see 999 one scan, and 4 on the next scan, we'll assume 5 additional units.

standard_rate_source​

Source for Standard Rate. Sources include STATIC in which a static value set in configuration is used and EXPRESSION in which an expression that will return the quantity expected per second is used.

standard_rate​

Standard Rate for this Unit.

standard_rate_expression​

Expression to provide the standard rate for this machine.

production_rate_time_units​

Unit of measure for the machine production rate & standard rate. Time Unit types are NANOSECONDS, MICROSECONDS, MILLISECONDS, SECONDS, MINUTES, HOURS, and DAYS.

enable_quality​

Enables Quality Calculations for Unit.

quality_count_calc_type​

Calculation type for Quality Count. The calculation types are DIRECT and DELTA

quality_strategy​

Quality Strategy for this OEE Configuration. The quality strategy is used to calculate an OEE State number. The quality strategy types are WASTE_COUNT and GOOD_COUNT.

quality_count_expression​

Ignition Tag Path for Production quality Count Number.

quality_count_overflow_value​

Overflow value for quality count. Only used in DELTA count calculation type. When the count overflows, this value will be added to the count. For example, if the machine will constantly reset the count at 1000 units, and we see 999 one scan, and 4 on the next scan, we'll assume 5 additional units.

production_order_source​

Source for the production order resolution. Source types include EXPRESSION and NONE.

production_order_expression​

Expression to provide the production order (id or name) for the current oee record.