Skip to main content

system.mes.oee.getOeeProductionRecord

Description

Retrieves a specific OEE Production Record by its ID.

Permissions

This method requires the OEE.READ.GET permission.

Syntax

system.mes.oee.getOeeProductionRecord(id)

Parameters

ParameterTypeNullableDescription
idString (ULID)FalseThe ID of the OEE production record to retrieve.

Returns

Returns a JSON representation of the OeeProductionRecordDTO object. Returns nothing if no record is found.

NameTypeNullableDescriptionDefault Value
idStringTrueThe id of the OEE Production Recordnull
locationIdStringFalseIdentifier of the associated location where this OEE production record was capturednull
locationPathStringTruePath of the location where this OEE production record was capturednull
locationNameStringTrueName of the associated locationnull
statusStatusFalseStatus of the OEE production record (e.g., running, faulted, canceled, complete)UNKNOWN
startDateInstantFalseStart date and time of the OEE production recordInstant.now()
endDateInstantTrueEnd date and time of the OEE production recordnull
totalDurationSecDoubleFalseTotal duration of the OEE production record in seconds0.0
'performanceReasonId'StringTrueThe id of the associated performance reason, if applicablenull
'performanceReasonName'StringTrueThe name of the associated performance reason, if applicablenull
'performanceReasonPath'StringTrueThe path of the associated performance reason, if applicablenull
infeedCountDoubleFalseTotal number of infeed units during this record period0.0
expectedInfeedCountDoubleFalseExpected number of infeed units during this record period0.0
qualityStrategyOeeQualityStrategyFalseQuality Strategy for this OEE Production RecordWASTE_COUNT
outfeedCountDoubleFalseTotal number of outfeed units recorded during this period0.0
infeedCountUnitOfMeasureIdStringTrueIdentifier of the unit of measure for the infeed countnull
infeedCountUnitOfMeasureNameStringTrueName of the unit of measure for the infeed countnull
infeedCountUnitOfMeasureSymbolStringTrueSymbol of the unit of measure for the infeed countnull
infeedRateTimeUnitsTimeUnitFalseUnit of measure for the machine infeed rate & standard rateMINUTES
stateRecordIdStringTrueIdentifier of the associated state recordnull
standardRateDoubleTrueThe standard rate for this record0.0
productionOrderIdStringTrueThe id of the production order associated with this OEE production recordnull
productionOrderNameStringTrueThe name of the production order associated with this OEE production recordnull
notesStringTrueNotes associated with the OEE Production Recordnull
enabledbooleanTrueIndicates whether the OEE Production Record is enabledtrue
spare1StringTrueExtra field 1null
spare2StringTrueExtra field 2null
spare3StringTrueExtra field 3null

Code Examples

# Retrieve an OEE production record by ID
oeeProductionRecord = system.mes.oee.getOeeProductionRecord('01JAP8RJBN-8ZTPXSGY-J9GSDPE1')

# Output the record
print(oeeProductionRecord)