Promotic
WikipediaLinkedInYoutubeTwitterFacebook

Object PmVar (Variable)

Description:
The PmVar object represents one data variable of the Pma object.

Such variable holds more information in itself (value, name, index, etc.), and so it is represented by the object. Then the object has got this information as its properties.

PmVar object can be created in objects: PmaData, PmaOpcClientGroup, PmaCommGroup, PmaTrendGroup, PmaCommMsg.

Properties and methods:
Owner Reference to the PmVar object owner in the tree of Pma objects
Extension Data extension access
GetBit Returns the bit in the value of the variable
ChangedOnLastWrite Flag showing if value was changed by last writing
Index Index of the variable in the object
Name Name of the variable
Note Note of the variable
Quality Quality of the variable value
SetBit Sets the bit in the value of the variable
TimeChange Time of last writing into the variable that changed value
TimeWrite Time of last writing to the variable
Unit Physical unit of the variable (only for PmaData and PmaTrendGroup)
Value Value of the variable
ValueBeforeChange Last value before changing value to current
Obsolete properties and methods:
Bit Value of one bit of the variable
Configuration windows:
Variable Setting the property of one variable
Data binding configuration Definition of the data binding of the variable to another value
Multi items adding Multiple definition of new variables
Related objects:
Data extensions The data extensions are PROMOTIC system components, extending the basic functionality of PmVar data items (variables). Each data extension type is used for specific purpose (e.g. limit excess alarm, OPC server or PmaComm object connection, trends, etc.).
Note:
 
In the script PmVar variables can be obtained following ways:
 
Example1:
Following objects PmaData, PmaCommGroup, PmaOpcClientGroup, PmaTrendGroup: The variables of these objects are located on the "Data" page.
JavaScriptVBScriptSelect and copy to clipboard

//by the Item method of these objects, for example
oTemperature2 = pMe.Pm("/Data").Item("Temperature2");

//or directly by the Pm method with the #vars identifier, for example
oTemperature2 = pMe.Pm("/Data/#vars/Temperature2");
 
Example2:
For PmaCommMsg object: This object contains got two groups of variables located in the Data-sent and Data-received pages.
JavaScriptVBScriptSelect and copy to clipboard

//using the WriteVars and ReadVars properties, for example
oSnd1 = pMe.Pm("/PmaComm/PmaCommMsg").WriteVars.Item("Snd1");
oRcv4 = pMe.Pm("/PmaComm/PmaCommMsg").ReadVars.Item("Rcv4");

//or directly by the Pm method with the #sndvars and #rcvvars identificators, for example
oSnd1 = pMe.Pm("/PmaComm/PmaCommMsg/#sndvars/Snd1");
oRcv4 = pMe.Pm("/PmaComm/PmaCommMsg/#rcvvars/Rcv4");
 
Data extensions:

The PmVar object directly contains only basic functionality (most important common properties). The functionality of the PmVar can be extended by adding one or multiple data extensions.

Each data extension is then contained in the PmVar object in form of a subobject (e.g. ExtAlarmAnalog, ExtComm, ...), accessible by the PmVar.Extension method or by #ext identifier.


History:
Pm8.03.13: (Variable) has a new "Rounding" configurator.
PROMOTIC 9.0.4 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice