Skip to main content

system.mes.oee.getPerformanceReason

Description

Retrieves an OEE Performance Reason by its unique identifier.

Permissions

This method requires the OEE.READ.GET permission.

Syntax

system.mes.oee.getPerformanceReason(id)

Parameters

ParameterTypeNullableDescription
idString (ULID)FalseThe ULID of the performance reason to retrieve.

Returns

Returns a JSON representation of an OeePerformanceReasonDTO object if found, or None if the performance reason doesn't exist.

NameTypeNullableDescriptionDefault Value
idStringTrueThe id of the Performance Reasonnull
locationIdStringTrueIdentifier of the associated location where this performance reason appliesnull
locationPathStringTruePath of the associated location where this performance reason appliesnull
parentIdStringTrueIdentifier of the parent performance reason, if applicablenull
codeIntegerFalseUnique fault code associated with this performance reason0
nameStringFalseName of the performance reasonnull
descriptionStringTrueDescription of the performance reasonnull
pathStringTruePath representation of the performance reason within a hierarchical structurenull
notesStringTrueNotes associated with the Performance Reasonnull
enabledbooleanTrueIndicates whether the Performance Reason is enabledtrue
spare1StringTrueExtra field 1null
spare2StringTrueExtra field 2null
spare3StringTrueExtra field 3null

Code Examples

# Get a specific performance reason
reasonId = "01JCH3ENEB-SV2X8B3W-NFY8WZNK"
reason = system.mes.oee.getPerformanceReason(reasonId)

if reason:
print reason['name'], reason['code']
else:
print "Performance reason not found"