AdviseType

<< Click to Display Table of Contents >>

 

AdviseType

Enum Controls the Advise mode. The available options are described on the next table.

Available options for the AdviseType property

Option

Description

0 - AlwaysInAdvise

OPC Block is updated if OPC Block's AllowRead property is set to True and OPC Group's Enable property is also set to True

1 - AdviseWhenLinked

OPC Block is updated only if OPC Block's AllowRead property and OPC Group's Enable property are set to True, and the OPC Block is associated to an active object, such as a Display on an open Screen or an enabled Alarm, among others. An OPC Block link for this purpose can be assigned to the properties Value, RawValue, Quality, and from Bit00 to Bit31 of OPC Block Elements, and Quality and TimeStamp of OPC Blocks (default)

 

The next script contains an example of using this property.

Sub CommandButton3_Click()
  MsgBox Application._
    GetObject("OPCDriver.OPCGroup.SCRIPT1").AdviseType
End Sub

Was this page useful?