Skip to main content
Version: V2 (Ignition 8.1)

system.mes.oee.getCalculationConfigs

Description

Returns the OEE Calculation Configurations for the given location. By default only enabled configurations are returned; pass includeDisabled=True to also return soft-deleted (disabled) configurations.

Permissions

This method requires the OEE.READ.GET permission.

Syntax

system.mes.oee.getCalculationConfigs(locationIdOrPath, includeDisabled=False)

Parameters

ParameterTypeNullableDescription
locationIdOrPathStringFalseLocation ID (ULID) or path.
includeDisabledBooleanTrueOptional. When True, soft-deleted (disabled) configurations are also returned. When False (the default), only enabled configurations are returned.

Returns

A JSON list of OeeCalculationConfigurationDTO objects.

NameTypeNullableDescriptionDefault Value
idStringTrueThe ID of the configuration (ULID).null
locationIdStringFalseIdentifier for the associated location.null
locationPathStringTruePath for the associated location (display only).null
periodTypeStringFalsePeriod granularity: HOUR, DAY, WEEK, MONTH, or SHIFT.null
numRowsPerCycleIntegerFalseMaximum records to generate per job cycle.1
weekStartDayStringFalseFirst day of the calendar week for WEEK bucketing."MONDAY"
numDaysDelayIntegerFalseMinimum number of days a period must end before it is pre-computed. The pre-processed row in the rollup table will always be at least this many days behind the current date. This is to allow for a settling period.1
latestCalculationTimestampInstantTrueISO-8601 timestamp of the most recently computed period.null
enabledBooleanFalseWhether this configuration is active.true
notesStringTrueOptional notes.null

Code Examples

# List all enabled calculation configs for a line
configs = system.mes.oee.getCalculationConfigs("Enterprise/Site/Line1")
for config in configs:
print config['periodType'], "- rows per cycle:", config['numRowsPerCycle']

# Include disabled (soft-deleted) configs as well
all_configs = system.mes.oee.getCalculationConfigs("Enterprise/Site/Line1", includeDisabled=True)