Promotic
WikipediaLinkedInYoutubeTwitterFacebook

SpecProp

It is possible to use the obsolete property SpecProp in order to access the properties of data binding that is accessible via the Var.Extension property.

 
Description of the SpecProp property:
Syntax:
SpecProp(sName As String) As Variant
Parameters:
sName - The name of special data extension property. Each data extension type enables its own set of special properties:
- for data extension ExtAlarmAnalog:
Extension.SpecProp("alarm") - a link to the corresponding PmAlarmEventItem object. Property access for read only.
Extension.SpecProp("max2") - the value of 2nd upper limit. Property access for read and write. See the configurator "High 2.limit".
Extension.SpecProp("max1") - the value of 1st upper limit. Property access for read and write. See the configurator "High 1.limit".
Extension.SpecProp("min1") - the value of 1st lower limit. Property access for read and write. See the configurator "Low 1.limit".
Extension.SpecProp("min2") - the value of 2st lower limit. Property access for read and write. See the configurator "Low 2.limit".
- for data extension ExtAlarmBinary:
Extension.SpecProp("alarm") - a link to the corresponding PmAlarmEventItem object. Property access for read only..
- for data extension ExtOpcClient:
Extension.SpecProp("ItemId") - Text address/identifier of the variable on the OPC server. Property access for read only. See the configurator "ItemID".
Extension.SpecProp("AccessPath") - Access path to the variable on the OPC server. This value can often be empty. Property access for read only. See the configurator "AccessPath".
- for data extension ExtComm:
Extension.SpecProp("ItemId") - Text address/identifier of the variable for the corresponding communication type. Property access for read only. See the configurator "ItemID".
- for data extension ExtTrend:
Extension.SpecProp("min") - Minimum Property access for read and write. See the configurator "Minimum".
Extension.SpecProp("max") - Maximum Property access for read and write. See the configurator "Maximum".
Extension.SpecProp("unit") - Unit Property access for read and write. See the configurator "Unit".
Example:
Read/write the 1st lower limit from ExtAlarmAnalog data extension (identifier "al") from the Var type variable (named val1) in the PmData object (on path "/Data").
min1 = pMe.Pm("/Data/#vars/val1").SpecProp("al").SpecProp("min1")
pMe.Pm("/Data/#vars/val1").SpecProp("al").SpecProp("min1") = 70
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice