Skip to main content
Version: V2 (Ignition 8.1)

system.mes.oee.getCalculationConfig

Description​

Retrieves an OEE Calculation Configuration by its ID. Throws ResourceNotFoundException if no configuration exists with the given ID.

Permissions​

This method requires the OEE.READ.GET permission.

Syntax​

system.mes.oee.getCalculationConfig(id)

Parameters​

ParameterTypeNullableDescription
idString (ULID)FalseThe ID of the OEE Calculation Configuration.

Returns​

A JSON representation of an OeeCalculationConfigurationDTO object.

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​

# Retrieve a calculation config by its ID
configId = "01JCH3ENEB-SV2X8B3W-NFY8WZNK"
try:
config = system.mes.oee.getCalculationConfig(configId)
print "Rows per cycle:", config['numRowsPerCycle']
print "Location:", config['locationPath']
except:
print "No calculation configuration found with ID:", configId