Skip to main content
Version: V2 (Ignition 8.1)

system.mes.equipment.getEquipment

Description​

Retrieves an Equipment record by its ID or path.

Permissions​

This method requires the EQUIPMENT.READ.GET permission.

Syntax​

system.mes.equipment.getEquipment(idOrPath)

Parameters​

ParameterTypeNullableDescription
idOrPathStringFalseThe ID or path of the equipment to retrieve.

Returns​

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

NameTypeDescription
nameStringThe name of the equipment.
descriptionStringA description of the equipment.
equipmentClassIdString (ULID)The ULID of the equipment class this equipment belongs to.
locationIdString (ULID)The ULID of the location where this equipment is stationed.
pathStringThe path of the equipment.
idString (ULID)The ULID of the equipment.
notesStringNotes related to the equipment.
enabledBooleanIndicates if the equipment is active.
spare1StringAdditional field for user-defined context.
spare2StringAdditional field for user-defined context.
spare3StringAdditional field for user-defined context.

Code Examples​

equipment = system.mes.equipment.getEquipment('Pumps/CentrifugalPumps/Pump-101')
print(equipment)