Skip to main content

system.mes.equipment.getEquipmentProperty

Description

Retrieves an Equipment Properties record by its ID or name.

Permissions

This method requires the EQUIPMENT.READ.GET permission.

Syntax

system.mes.equipment.getEquipmentProperty(idOrName)

Parameters

ParameterTypeNullableDescription
idOrNameStringFalseThe ID or name of the equipment property to retrieve.

Returns

Returns a JSON representation of the equipment property. Returns nothing if no equipment property is found.

NameTypeDescription
nameStringThe name of the equipment property.
descriptionStringA description of the equipment property.
dataTypeStringThe data type of the property (e.g., String, Boolean, Int8, Float8, DateTime, ByteArray).
lowLimitDoubleThe minimum allowed value. Only applicable for numeric data types.
highLimitDoubleThe maximum allowed value. Only applicable for numeric data types.
formatStringAn optional format string for display.
unitOfMeasureIdString (ULID)The ULID of the unit of measure for this property.
unitOfMeasureNameStringThe name of the unit of measure.
unitOfMeasureSymbolStringThe symbol of the unit of measure.
optionsList<String>A list of allowed values for the property.
nullableBooleanWhether the property value can be null.
defaultValueMixedThe default value for the property. The type depends on the configured dataType.
idString (ULID)The ULID of the equipment property.
notesStringNotes related to the equipment property.
enabledBooleanIndicates if the equipment property is active.
spare1StringAdditional field for user-defined context.
spare2StringAdditional field for user-defined context.
spare3StringAdditional field for user-defined context.

Code Examples

# Retrieve by name
property = system.mes.equipment.getEquipmentProperty('MaxFlowRate')
print(property)

# Retrieve by ID
property = system.mes.equipment.getEquipmentProperty('01ARZ3NDEKTSV4RRFFQ69G5FAV')
print(property)