Update cookies preferences
Promotic

Object PmVar (Variable)

Description:
The PmVar object represents one data variable of the Pma object.
This variable holds more information in itself (value, name, index, etc.), and therefore it is represented by the object. Then the object has got this information as its properties.
the PmVar object can be created in objects: PmaData, PmaOpcDaClientGroup, PmaCommGroup, PmaTrendGroup, PmaCommMsg.
Properties and methods:
Extension()Data extension access
GetBit()Returns the bit in the value of the variable
ChangedOnLastWriteFlag showing if the value was changed by last writing
IndexIndex of the variable in the object
NameName of the variable
NoteNote of the variable
OwnerReturns reference to the PmVar object owner in the Pma object tree
QualityQuality of the variable value
SetBit()Sets the bit in the value of the variable
SetValue()Writing the value, quality and time of the source simultaneously
TimeChangeTime of last writing into the variable that changed value
TimeSourceTime of value origin in the value source
TimeWriteTime of last writing into the variable
UnitPhysical unit of the variable (only for PmaData and PmaTrendGroup)
ValueValue of the variable
ValueBeforeChangeLast value before changing to current value
Obsolete properties and methods:
BitValue of one bit of the variable
Configuration windows:
VariableSetting the properties of one variable
Data binding of the PmVar objectDefinition of the data binding of the variable to another value
Multi items addingMultiple definition of new variables
Related objects:
Data extensionsThe 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 connection to the PmaComm object, trends, etc.).
Note:
In the script PmVar variables can be obtained following ways:
 
Example1:
Following objects PmaData, PmaCommGroup, PmaOpcDaClientGroup, PmaTrendGroup: The variables of these objects are located on the "Data" tab.
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 on the Data-sent and Data-received tabs.
JavaScriptVBScriptSelect and copy to clipboard

// by methods WriteVars and ReadVars, for example
oSnd1 = pMe.Pm("/PmaComm/PmaCommMsg").WriteVars("Snd1");
oRcv4 = pMe.Pm("/PmaComm/PmaCommMsg").ReadVars("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 more data extensions.
Each data extension is then contained in the PmVar object in the form of a subobject (e.g. ExtAlarmAnalog, ExtComm, …), accessible by the PmVar.Extension method or by means of the Data extensions identifier.
See also:

History:
Pm8.03.13: (Variable) New "Rounding" configurator.
PROMOTIC 9.0.31 SCADA system documentation MICROSYS, spol. s r.o.

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