sPath | (String) Relative or absolute path to the Pma object in the Pma objects tree or to its subobject (case sensitive text).
The path describes the location of the object in the Pma objects tree. Each tree level adress is separated by the / character. - The immersed Pma object is referrenced by its name.
- The superior Pma object is referrenced by .. characters.
- The immersed implementation subobject (other than PmaObject type) is referrenced by # character, followed by the implementation subobject type definition (e.g. #vars).
It means that the # addressing leaves the Pma objects tree (created by user) and starts to address the implementation subobjects of the Pma object. For example "/appdata/data/#vars/Temperature". |
---|---|
nAttr | [optional] (Long) It allows to change the behavior of the function.
0 (default) - Default behavior.
1 - When referencing the non-existing object, the global error of the INFO system will not be generated. |
Dim oTemp
Set oTemp = pMe.Pm("/Boiler1/Temperature")
Dim oTemp
Set oTemp = pMe.Pm("../Temperature")
Dim oVar
Set oVar = pMe.Pm("/Boiler1/Data/#vars/Temperature")