Skip to main content
Version: V2 (Ignition 8.1)

system.mes.oee.getCalculationRecord

Description

Retrieves an OEE Calculation Record by its ID. Returns None if no record exists with the given ID, or if the record has been disabled.

Permissions

This method requires the OEE.READ.GET permission.

Syntax

system.mes.oee.getCalculationRecord(id)

Parameters

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

Returns

A JSON representation of an OeeCalculationRecordDTO, or None if not found.

NameTypeNullableDescriptionDefault Value
idStringTrueThe ID of the record (ULID).null
locationIdStringFalseIdentifier of the associated location.null
locationPathStringTruePath of the associated location (display only).null
periodTypeStringFalsePeriod granularity: HOUR, DAY, WEEK, MONTH, or SHIFT.null
startDateInstantFalseStart of the period bucket (calendar-aligned).null
endDateInstantFalseEnd of the period bucket (calendar-aligned).null
calculatedDateInstantFalseWhen this record was computed.null
availabilityDoubleTrueAvailability metric (0.0 to 1.0).null
performanceDoubleTruePerformance metric (0.0 to 1.0).null
qualityDoubleTrueQuality metric (0.0 to 1.0).null
oeeDoubleTrueOverall Equipment Effectiveness metric (0.0 to 1.0).null
teepDoubleTrueTotal Effective Equipment Performance metric (0.0 to 1.0).null
totalDurationSecDoubleFalseTotal duration of the period in seconds.0.0
scheduledDurationSecDoubleFalseDuration scheduled for production in seconds.0.0
runningDurationSecDoubleFalseDuration the machine was actively running in seconds.0.0
downtimeDurationSecDoubleFalseDuration in downtime state in seconds.0.0
scheduledDowntimeDurationSecDoubleFalseDuration in scheduled downtime mode in seconds.0.0
unscheduledDowntimeDurationSecDoubleFalseDuration in unscheduled downtime mode in seconds.0.0
productionCountDoubleFalseTotal units produced during the period.0.0
expectedProductionCountDoubleFalseExpected units to be produced during the period.0.0
goodCountDoubleFalseTotal good units recorded during the period.0.0
wasteCountDoubleFalseTotal waste units recorded during the period.0.0

Code Examples

# Retrieve a calculation record by its ID
recordId = "01JCH3ENEB-SV2X8B3W-NFY8WZNK"
record = system.mes.oee.getCalculationRecord(recordId)
if record is not None:
print "OEE:", record['oee']
else:
print "No record found with ID:", recordId