Returns the given equipment string with its cluster prefix and caching it in the process. The function will attempt to automatically detect the cluster of the equipment in the following order:
If the cluster cannot be automatically detected, the original equipment string will be returned.
Syntax
Workspace_GetEquipmentCluster(STRING sEquipmentContext [, INT bRefreshCache])
sEquipmentContext
The equipment context to verify.
bRefreshCache
Force the function to ignore any cached value. This is an optional parameter. The default value is FALSE.
Return Value
The context will be returned with the cluster prefix. If the cluster cannot be automatically detected, the original equipment string will be returned.
Example
STRING sEquipmentNameWithCluster = WWorkspace_GetEquipmentCluster("MyPlant.Mixing.TNK01");
Result: Cluster1.MyPlant.Mixing.TNK01
Related Functions
Published June 2018