Update cookies preferences
Promotic

Unit - property of the PmVar object

Description:
Physical unit of the variable.
This property is accessible only for variables of the object: PmaData and PmaTrendGroup.
Syntax:
String Unit
Note:
Property access for read only. The value of this property is defined in the "Unit" configurator of this object.
 
Although the property is read only it is possible to write initial value into it by script (if it si empty). After that it is not possible to modify the value (until the application is restarted).

Note for the PmaTrendGroup object:
The value entered here serves as initialization value for the trend viewer (for the PmgTrendViewer object). This value is entered in the property: tvTrend.Unit.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oData = pMe.Pm("/Data");
var sUnit = oData.Item(2).Unit;   // Reading from the property

History:
Pm9.00.10: The property can now be writen only once
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.