Skip to main content

system.mes.equipment.setEquipmentPropertyValue

Description

Sets the value of an Equipment Property Values record for a given equipment and property, creating the record if it does not already exist.

Permissions

This method requires the EQUIPMENT.WRITE.SAVE permission.

Syntax

system.mes.equipment.setEquipmentPropertyValue(equipmentIdOrPath, propertyIdOrName, value)

Parameters

ParameterTypeNullableDescription
equipmentIdOrPathStringFalseThe ID or path of the equipment.
propertyIdOrNameStringFalseThe ID or name of the equipment property.
valueMixedTrueThe value to assign. The type depends on the data type of the property.

Returns

Returns a JSON representation of the updated equipment property value.

Code Examples

updatedValue = system.mes.equipment.setEquipmentPropertyValue('Pumps/CentrifugalPumps/Pump-101', 'MaxFlowRate', 300.0)
print(updatedValue)