Skip to main content

system.mes.oee.getAllOeeAlarmsForLocation

Description

Retrieves all OEE Alarm configurations for a specific location.

Permissions

This method requires the OEE.READ.GET permission.

Syntax

system.mes.oee.getAllOeeAlarmsForLocation(locationIdOrPath)

Parameters

ParameterTypeNullableDescription
locationIdOrPathStringFalseThe location ID or path to get alarm configurations for.

Returns

Returns a list of JSON objects representing all OeeAlarmDTO objects for the location.

Each object has the following properties:

NameTypeNullableDescriptionDefault Value
idStringTrueThe id of the OEE Alarmnull
locationIdStringFalseIdentifier of the associated locationnull
locationPathStringTruePath for the associated locationnull
tagPathStringFalseThe qualified path to monitor for alarmsnull
minPriorityAlarmPriorityFalseMinimum alarm priority to include in eventsDiagnostic
labelFilterStringTrueOptional filter to apply to alarm labels. Only alarms with labels matching this filter will be included.null
availabilityReasonCodeOverrideStringTrueName of the associated data property in Ignition alarms that contains the availability reason code override valuenull
stateCodeOverrideStringTrueName of the associated data property in Ignition alarms that contains the state code override valuenull
notesStringTrueNotes associated with the OEE Alarmnull
enabledbooleanTrueIndicates whether the OEE Alarm is enabledtrue
spare1StringTrueExtra field 1null
spare2StringTrueExtra field 2null
spare3StringTrueExtra field 3null

Code Examples

# Get all alarms for a location
alarms = system.mes.oee.getAllOeeAlarmsForLocation('DairyCo/Plant1/Line1')

# Output all alarms
for alarm in alarms:
print "Tag:", alarm['tagPath'], ", Min Priority:", alarm['minPriority']