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

Tag 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

Tag is updated only if OPC Block's AllowRead property and OPC Group's Enable property are set to True, and the Tag is associated to an active object, such as a Display on an open Screen or an enabled Alarm, among others. A Tag 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)

 

Example:

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

Was this page useful?